hai
i'am a newbie to arduino and has very less knowledge in electronics
i want to control my remote car using arduino, so i removed the circuitry of my remote car leaving the motors( had attached the images of it )
i had read some basic tutorials on arduino and motors, i used l293d to control 2 motors and made the connections like
enable1,2 -- arduino pin 10
enable 3,4 -- arduino pin 11
input 1 -- arduino 8
input 2 -- arduino 9
input 3 -- arduino 4
input 4 -- arduino 2
in order to check the simple motion of back wheels i uploaded the following code
i connected output 3 and 4 to the motor wires of back wheels of my car
int enable34=11;
int input3=4;
int input4=2;
void setup()
{
pinMode(enable34,INPUT);
pinMode(input3,OUTPUT);
pinMode(input4,OUTPUT);
}
void loop()
{
analogWrite(enable34,255);
digitalWrite(input3,HIGH);
digitalWrite(input4,LOW);
delay(3000);
digitalWrite(input4,HIGH); delay(3000);
}
when i connected USB cable to power arduino and vcc pins(8,16) of l293d to 5v of arduino the car moves
when i connected USB cable to arduino and 8 th pin of l293d to 9v battery and 16 th pin of l293 d to 5v of arduino the car is not moving
when i connect arduino to 9v battery and 8 th pin of l293d to 9v battery and 16 th pin of l293 d to 5v of arduino the car is not moving but when i lift it up the wheels are moving too slow and some times i had to initialize the motion
iam totally worried about this
i am thinking that the battery's could not supply the sufficient power to run the motor
but the usb port is providing the sufficient !
as i told earlier i had very less knowledge in electronics please help me with a way to provide an alternate power supply to run my car with out the usb
iam providing the necessary photographs of my project
thanks in advance