i have a 2A brushed motor and a L293D driver IC board… i ran the below code using an arduino uno board…
the motors runs at very high rpm even with 1v supply.
int enablePin=9;
int a1=3;
int a2=11;
void setup()
{
pinMode(enablePin, OUTPUT);
pinMode(a1, OUTPUT);
pinMode(a2, OUTPUT);
}
void loop()
{
for(int i=0; i<=125; i++)
{
analogWrite(enablePin, i);
digitalWrite(a1, HIGH);
digitalWrite(a2, LOW);
}
delay(2000);
}
i have connected only one motor to the driver and the arduino board is powered by the computer. a 9v battery was connected to the l293d board.
the motor did not run… first there was a high speed sound as if the motor was running. i thought this was beacuse the supply was not enough. then the noise stopped in a while. but the motor did not run at all. the l293d board got heated up.
Please tell me wat my mistake could be and how to rectify it.