Hi.
I am a returning newbie. I tinkered around a couple of beginner-level Arduino projects 8 years ago but then I dropped out of Electronics and pursued a career in Software Engineering.
I remember the basics of electronics but still, I am missing something, as the motors are not running. I am using an Arduino UNO board.
Here is my circuit diagram.
This is the first time I am drawing a circuit diagram, that is not on paper, please excuse me if it is messy,
Both the batteries are 1000mAh and 8.4v and fully charged.
Specification of the motors are:
Operating Voltage: 3V~6V DC
No-load speed(5V): about 208RPM
Load current: 170mA (when it is 4.5V)
I have tried moving the IC to different positions on the breadboard, and also tried with a L293D driver shield. When trying with the driver shield, I can see 2 LEDs out of 4 are ON, on the shield, but still no voltage across output pins.
Since I am trying to figure out the problem, I have removed everything else from the breadboard and the code is straightforward as well.
#define left_motor_pin_1 4
#define left_motor_pin_2 5
#define en_left 9
#define en_right 10
#define right_motor_pin_1 6
#define right_motor_pin_2 7
void setup() {
pinMode(left_motor_pin_1,OUTPUT);
pinMode(left_motor_pin_2,OUTPUT);
pinMode(en_left, OUTPUT);
pinMode(en_right, OUTPUT);
pinMode(right_motor_pin_1,OUTPUT);
pinMode(right_motor_pin_2,OUTPUT);
}
void loop() {
analogWrite(en_left, 255);
analogWrite(en_right, 255);
moveForward();
}
void moveForward() {
digitalWrite(left_motor_pin_1,HIGH);
digitalWrite(left_motor_pin_2,LOW);
digitalWrite(right_motor_pin_1,HIGH);
digitalWrite(right_motor_pin_2,LOW);
}
This is my first post on the forum, if this is not the correct place to post this, please guide me about the right channel for this post.
Thanks