B_Nabil
September 26, 2020, 3:23pm
1
i want to control DC motors but i found in internet that there is a circuit called L293d cheap and do same work. i bought 16 chip from Internet.
i watched all the videos in youtube about l293d, i saw the dataset and check my cricut many times still not working.
i powered the Vss with 6 batteries 1.5V = 9V for the motor.
the l293d with 5V ground from Arduino everything good but no switching nothing work.
Post your code. Post a schematic of the wiring. Post photos of the wiring. Post data sheets for your motors and the L293D modules. Which Arduino are you using? We cannot help until we know what you have and how you are using it.
Read the how to use this forum-please read sticky to see how to properly post code. Remove useless white space and format the code with the IDE autoformat tool (crtl-t or Tools, Auto Format) before posting code.
Did you connect the battery ground to the Arduino ground?
The ancient L293D is very inefficient, and will work with some, but not all small toy motors.
i want to control DC motors but i found in internet that there is a circuit called L293d cheap and do same work. i bought 16 chip from Internet.
i watched all the videos in youtube about l293d, i saw the dataset and check my cricut many times still not working.
i powered the Vss with 6 batteries 1.5V = 9V for the motor.
the l293d with 5V ground from Arduino everything good but no switching nothing work.
I've built the same circuit many times and it always worked. I'll see if I can find the parts to breadboard
it again.
I built this circuit:
It worked perfectly on first try.
I can't send video because file too large.
In the photo the blur on the shaft is a piece of tape spinning.
I used a 9V PPP smoke alarm battery in place of the "12V"
int in1 = 10;
int PWMControl = 9;
int PWM_Value =255;
int speed2 =128;
//int PWM_Value =100;
void setup()
{
pinMode(in1, OUTPUT);
pinMode(PWMControl, OUTPUT);
}
void loop() {
digitalWrite(PWMControl, LOW);
analogWrite(PWMControl, PWM_Value);
delay(3000);
digitalWrite(in1, HIGH);
delay(3000);
analogWrite(PWMControl, speed2);
delay(3000);
digitalWrite(PWMControl, LOW);
delay(3000);
digitalWrite(in1, LOW);
delay(3000);
analogWrite(PWMControl, speed2);
delay(3000);
digitalWrite(PWMControl, HIGH);
delay(3000);
}