YUROBOT is a versatile robotic platform designed for educational and research purposes. It is equipped with programmable capabilities and a variety of sensors, making it ideal for interaction, automation, and experimentation. YUROBOT is widely used in robotics education, prototyping, and research projects due to its modular design and ease of integration with microcontrollers like Arduino.
Below are the key technical details and pin configurations for YUROBOT:
Parameter | Specification |
---|---|
Operating Voltage | 5V - 12V |
Motor Driver | Dual H-Bridge Motor Driver (L298N) |
Microcontroller Support | Arduino, Raspberry Pi, and others |
Sensors | Ultrasonic, IR, Line Tracking, etc. |
Communication Protocols | I2C, UART, SPI |
Dimensions | 200mm x 150mm x 80mm |
Weight | 500g |
Pin Name | Description |
---|---|
IN1 | Input pin for Motor A |
IN2 | Input pin for Motor A |
IN3 | Input pin for Motor B |
IN4 | Input pin for Motor B |
ENA | Enable pin for Motor A (PWM control) |
ENB | Enable pin for Motor B (PWM control) |
VCC | Power supply for motors (5V-12V) |
GND | Ground connection |
5V | Logic voltage supply for the motor driver |
Pin Name | Description |
---|---|
VCC | Power supply (5V) |
GND | Ground connection |
TRIG | Trigger pin for sending ultrasonic pulses |
ECHO | Echo pin for receiving reflected pulses |
Pin Name | Description |
---|---|
VCC | Power supply (3.3V-5V) |
GND | Ground connection |
OUT | Digital output signal (HIGH/LOW) |
NewPing
for ultrasonic sensors).Below is an example code to control YUROBOT's motors and read data from an ultrasonic sensor:
// Include the NewPing library for ultrasonic sensor
#include <NewPing.h>
// Define motor driver pins
#define IN1 8
#define IN2 9
#define ENA 10
#define IN3 11
#define IN4 12
#define ENB 13
// Define ultrasonic sensor pins
#define TRIG_PIN 6
#define ECHO_PIN 7
// Define maximum distance for ultrasonic sensor
#define MAX_DISTANCE 200
// Create a NewPing object
NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
void setup() {
// Initialize motor driver pins as outputs
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(ENA, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
pinMode(ENB, OUTPUT);
// Set initial motor states to LOW
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
// Initialize serial communication
Serial.begin(9600);
}
void loop() {
// Read distance from ultrasonic sensor
unsigned int distance = sonar.ping_cm();
// Print distance to the Serial Monitor
Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" cm");
// Example motor control: Move forward if distance > 20 cm
if (distance > 20) {
digitalWrite(IN1, HIGH); // Motor A forward
digitalWrite(IN2, LOW);
analogWrite(ENA, 150); // Set speed for Motor A
digitalWrite(IN3, HIGH); // Motor B forward
digitalWrite(IN4, LOW);
analogWrite(ENB, 150); // Set speed for Motor B
} else {
// Stop motors if obstacle is too close
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
}
// Small delay for stability
delay(100);
}
Motors Not Running
Ultrasonic Sensor Not Detecting Objects
Line Tracking Sensor Not Responding
Robot Behaving Erratically
Q: Can YUROBOT be used with Raspberry Pi?
A: Yes, YUROBOT is compatible with Raspberry Pi. You can use GPIO pins to control the motor driver and sensors.
Q: What is the maximum load capacity of YUROBOT?
A: YUROBOT can handle a payload of up to 1kg, depending on the motor specifications.
Q: How do I calibrate the line tracking sensors?
A: Place the robot on the track and adjust the sensor's sensitivity using the onboard potentiometer until it detects the line accurately.
Q: Can I add additional sensors to YUROBOT?
A: Yes, YUROBOT's modular design allows for easy integration of additional sensors using available GPIO pins.