That's interesting, sorry to hear that! Are you using a breadboard power supply? If so, was it damaged? Did you use the power supply with the jumper on the 3v side or did you use one of the 3v headers to operate a 5v motor? what kind of plug did you power the breadboard psu with ? More detail will help pinpoint the reason for smoking.
Hi HASAN! use multimeter to test connection. Check motor connection (solder joints, alligator clips..etc) however you made connection. If you're using a battery, maybe replace or use 9v wall adapter in the barrel Jack of arduino. Don't power motor through arduino board. Use external power. Try those ideas. Thanks for reaching out! 👍
here ya go! //www.elegoo.com //2017.12.12 /************************ Exercise the motor using the L293D chip ************************/ #define ENABLE 5 #define DIRA 3 #define DIRB 4 int i; void setup() { //---set pin direction pinMode(ENABLE,OUTPUT); pinMode(DIRA,OUTPUT); pinMode(DIRB,OUTPUT); Serial.begin(9600); } void loop() { //---back and forth example Serial.println("One way, then reverse"); digitalWrite(ENABLE,HIGH); // enable on for (i=0;i
great video, thank you. I'm having the following issue. Have rechecked code several times and cannot see the problem, can you please help. E:\Documents\PERSONAL\Bens_Arduino\projects\DC_motor_2_forward_reverse\DC_motor_2_forward_reverse.ino: In function 'void loop()': E:\Documents\PERSONAL\Bens_Arduino\projects\DC_motor_2_forward_reverse\DC_motor_2_forward_reverse.ino:24:20: error: expected ';' before ')' token for(i=0, i
Hey there! thanks~ You have some syntax errors and missing ";" ...maybe typos. Don't forget to define ENABLE. Try this #define ENABLE 5 // Define the pin connected to the motor driver void setup() { pinMode(ENABLE, OUTPUT); // Set the ENABLE pin as an output } void loop() { for (int i = 0; i < 5; i++) { // cycle will continue until i
Effortlessly understood, thanks for the review lol
worked like a charm
even with my bootleg kit! same parts different names but worked!
Thanks for leaving a message. glad it worked! 💪👍
awesome job! good luck with your projects
Hey I followed the tutorial but my PSU started smoking. What did I do wrong?
That's interesting, sorry to hear that! Are you using a breadboard power supply? If so, was it damaged? Did you use the power supply with the jumper on the 3v side or did you use one of the 3v headers to operate a 5v motor? what kind of plug did you power the breadboard psu with ? More detail will help pinpoint the reason for smoking.
hello, i have a problem with the two dc motor cables as they have come loose from the two metal parts, what should i do? Should I solder them again ?
Hi there! Yes, solder them back on. Clean off the old solder and apply new
@@BMonsterLaboratory thank you, i Will try!
Hey really good tutorial but I have a problem: my motor makes sound like if it was working, but the fan doesn't always spin. How can I fix it ?
Hi HASAN! use multimeter to test connection. Check motor connection (solder joints, alligator clips..etc) however you made connection. If you're using a battery, maybe replace or use 9v wall adapter in the barrel Jack of arduino. Don't power motor through arduino board. Use external power. Try those ideas. Thanks for reaching out! 👍
@@BMonsterLaboratory Ok thank you ! I tried what you said but everything is properly installed, do you have anything else to help ?
@@hasankhaddam540 if the motor is getting power it should work. Can you try another motor? You could also send me a pic of your setup
@@BMonsterLaboratory I don't have another DC Motor, but I can send you a picture. Where do I send you the picture ?
Bmonsterlab@yahoo.com
I can't find the code for this
here ya go!
//www.elegoo.com
//2017.12.12
/************************
Exercise the motor using
the L293D chip
************************/
#define ENABLE 5
#define DIRA 3
#define DIRB 4
int i;
void setup() {
//---set pin direction
pinMode(ENABLE,OUTPUT);
pinMode(DIRA,OUTPUT);
pinMode(DIRB,OUTPUT);
Serial.begin(9600);
}
void loop() {
//---back and forth example
Serial.println("One way, then reverse");
digitalWrite(ENABLE,HIGH); // enable on
for (i=0;i
great video, thank you. I'm having the following issue. Have rechecked code several times and cannot see the problem, can you please help.
E:\Documents\PERSONAL\Bens_Arduino\projects\DC_motor_2_forward_reverse\DC_motor_2_forward_reverse.ino: In function 'void loop()':
E:\Documents\PERSONAL\Bens_Arduino\projects\DC_motor_2_forward_reverse\DC_motor_2_forward_reverse.ino:24:20: error: expected ';' before ')' token
for(i=0, i
Hey there! thanks~
You have some syntax errors and missing ";" ...maybe typos. Don't forget to define ENABLE.
Try this
#define ENABLE 5 // Define the pin connected to the motor driver
void setup() {
pinMode(ENABLE, OUTPUT); // Set the ENABLE pin as an output
}
void loop() {
for (int i = 0; i < 5; i++) { // cycle will continue until i