Тёмный
No video :(

Lesson 95: Using L293D 4 DC Motors Shield for Arduino UNO and Mega | Arduino Step By Step Course 

Robojax
Подписаться 108 тыс.
Просмотров 85 тыс.
50% 1

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 149   
@erniea5843
@erniea5843 Месяц назад
very comprehensive overview in a relatively short video! Appreciate the spec sheets, diagrams and code examples. Your Arduino series is great.
@robojax
@robojax Месяц назад
Glad it was helpful!
@istvannejonas6246
@istvannejonas6246 Год назад
Thank you very much, I was finally able to build my robot car!
@robojax
@robojax Год назад
You are welcome. The best thank you for me is to subscribe to my channel.
@DsComputerWorld
@DsComputerWorld 3 месяца назад
Thankyou it helped me a lot the PWR pin junper
@robojax
@robojax 3 месяца назад
Glad it helped
@ayushyadav8328
@ayushyadav8328 Год назад
I had a school project where I needed to build a robot. I was very confused wether I needed to connect external power to the motor shield or not. Your explanation at the end was superb. Thx bro! Im subscribing from now on :D
@thenerdsofficial
@thenerdsofficial 10 месяцев назад
Hii Bro i am also in the same condition i am making an obstacle avoding robot and i am using L298N motor driver but there is some issue with the power supply what can i do ?
@aigerakabane1312
@aigerakabane1312 10 месяцев назад
I amde an obstacle avoiding robot and my motor driver is not working and making a beepmsound every 4 secodns what might be the reason?
@asligm9008
@asligm9008 7 месяцев назад
Check voltage
@yttechcatalyst
@yttechcatalyst 18 дней назад
Did your project work when you step up the voltage
@bimashsiriwardana
@bimashsiriwardana Год назад
was very helpful this is the type of cord that i was searching for
@coder-c6961
@coder-c6961 8 месяцев назад
Great video really well done. How did you solder the wires to the motor? And is it okay for the wire to be connected to sheild regularly no solder?
@jemyj2591
@jemyj2591 Год назад
Love from iraq
@ArcanePath360
@ArcanePath360 6 месяцев назад
Thanks for this. I think the 600ma you mention is limiting me. I can hear the motor PWM signal with a high pitch noise but the motor doesn't turn. I tried increasing voltage but it didn't work. I ran the 4.5v outlet direct to the motor and it span no problem but going through the board (jumper on or not) the shield just doesn't have the juice to make it even spin even at 255 power in the code.
@edward3105
@edward3105 2 года назад
So if I place the shield over my Arduino I can't use the others pins(I mean I can) but I need to solder female pins on Shield,why they didn't already made with female pins?!
@robojax
@robojax 2 года назад
you are right. all other pins are not available .
@mingosutu
@mingosutu Год назад
Nice video. Thanks bro.
@user-ew7dc4yq9u
@user-ew7dc4yq9u 8 месяцев назад
very informative
@MODEH7
@MODEH7 Год назад
I really like your explanation it's very clear and easy to understand but can I use the other pins or add sensors and modules such as NRF24l01 radio module?
@robojax
@robojax Год назад
yes all other pins are available.
@anthonydorothycagampang3431
I have a question, I was making just like that but with bluetooth module, and everytime I turn on the battery the BT module will not blink but if I use the Arduino it works. Can you explain? Thanks
@domseschummsi5476
@domseschummsi5476 10 месяцев назад
Hello, first and foremost, great video! I‘ve got a question however, how do i start and stop this sequence via the computer or something connected to the arduino via cable? I‘m looking forward to your response and am thanking you in advance.
@majestro4077
@majestro4077 9 месяцев назад
I bilieve you might need to add a switch for that (on the arduino) so you can manage to stop and start it, however you might need to make a code for it for the sensor of the switch to work properly using the arduino IDE and you will probably need to use a decision statement for that also an analogwrite function
@domseschummsi5476
@domseschummsi5476 9 месяцев назад
ok ill look into that, thanks alot for the help!@@majestro4077
@karthiktalakokkula2537
@karthiktalakokkula2537 2 года назад
Hi there, Karthik here. Recently came across your channel and loving the content! By the way, for one of my projects I was looking for voice recorder and playback module. So, found APR33A3 to be best fit But is it possible to interface in such a manner that if IR detects any obstacle then M1 will play and if ultrasonic detects any then M2 will play, etc.
@robojax
@robojax 2 года назад
Hi, why you posted your comment under motor video while I have sound recording module video ? Please search . Here is how you can find specific video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OhkUceBWcHs.html
@sudhansumtripathy
@sudhansumtripathy 8 месяцев назад
hi , how do i connect it to the stm32
@valee_mayzar
@valee_mayzar Год назад
Hi Sir, first question: is it possible to connect a manual switching on this circuit using switch buttons to start&stop the circuit and then switch it back to automatic sequence when you are using arduino mega 2560? second question: can i still connect the LCD display on the circuit to show which motors is running and how can i connect it?
@robojax
@robojax Год назад
Hi, yes both are possible. you just need to know how to make it work.
@allenjoseph3147
@allenjoseph3147 10 месяцев назад
hey,how can i connect L293D 4 DC Motors Shield with raspberry pi 3
@User-Tal1951
@User-Tal1951 2 месяца назад
When I change the velocity of one motor without changing the others, their velocity is also changing 😢. It looks like the power of each motor is being dependent of each other. Do you know?
@robojax
@robojax 2 месяца назад
No. Each should be independent. Make sure use the main code without changing it.
@bazlone9565
@bazlone9565 11 месяцев назад
Hello Sir Why mine is hot, I use l293d for 2 servo , 2 12v water pump with 0.6 current load each and also 2 12v dc motor with 1.1 current load each 😅
@VishalPatil-vp2xp
@VishalPatil-vp2xp 2 года назад
I want to connect 5 dc motors and 1 motor pump then how can I connect to motor shield?
@robojax
@robojax 2 года назад
you can't control 5V. you need additional motor driver.
@j0t4r0kuj0
@j0t4r0kuj0 Год назад
@Robojax I have a question. So I hooked up 4 6v dc motors to the motor shield, supplied them with 4 AA batteries(6V). M1 runs just fine, but M2 M3 M4 isn't getting any Power. How can I fix this? Please respond ASAP, thank you so much!
@robojax
@robojax Год назад
The same power that goes to all motors . It is the arduino you have send single or control them.
@awesomecubed
@awesomecubed 2 месяца назад
Did you solve this? Also having the problem that with all 4, only 2 seem to work.
@rhythm2620
@rhythm2620 Год назад
Hello buddy, great video! Would a project using the TB6612 shield work with an L293D?
@robojax
@robojax Год назад
I just looked at the datasheet for 6612 and it seems it can be used instead of 293d. Yo understand it search my channel for l293d and learn about the pins then you should be able to use 6612 instead of it.
@rhythm2620
@rhythm2620 Год назад
@@robojax Thank you for the reply Sir! I'm planning to use the 12C motor shield with it, and I watched a video with someone using a TB6612 and all I can seem to find for a reasonable price is L293D's so I was wondering if I could go with that instead. Again, Thank you for replying :))
@anirudhraj1555
@anirudhraj1555 2 года назад
Can you please show us how to connect Ultrasonic and IR sensors to the same setup.
@robojax
@robojax 2 года назад
I have the video for that. Just add the pin and other definitions related to other project , and whether is inside setup() and after that whenever is inside loop()
@anirudhraj1555
@anirudhraj1555 2 года назад
@@robojax Can you please share the video link
@EDITZ0091
@EDITZ0091 Год назад
HLO BUDDY IT CAN RUN BY AA BATTERY OR 18650 battery
@robojax
@robojax Год назад
we don't care about the source. I mentioned the voltage which I forgot if it was 12V or 20v. just supply the voltage. of course you can't carry 5000kg using a Toyota Corolla. The same is true for battery. I have no idea what kind of morot you run. but yes both batteries will work.
@tareksma1
@tareksma1 Год назад
why the motors still turns after being stoped?? where does the leak voltage come from??? this is bad if you want precision?? is there something floating??
@robojax
@robojax Год назад
they should not run. when you stop them. they stop. you must have done something wrong. either wiring or code.
@paulwatts615
@paulwatts615 Год назад
Hello, Can I use this very same shield to control the same motors with a joystick? On an uno board? If not what is the best solution to do so? Thanks
@robojax
@robojax Год назад
Yes you can do it.
@paulwatts615
@paulwatts615 Год назад
@@robojax great how can I find out how to do it? Firstly all of the pins are being used and I can’t access them. Second I don’t know how to code for such. Can you please help?
@technoah3346
@technoah3346 Год назад
If I use this for a robot car. Can I also use my arduino mega to control LED Lights on the robot car?
@robojax
@robojax Год назад
of course all other featurees can be used. this is a shield and shied does not interfer with other functions.
@adilabusafa
@adilabusafa Год назад
أهلاً وسهلاً ومرحباً-يتعذر الاشتراك ولا يوجد جرس-يتعذر الاستجابة لكل طلباتك--يتعذر التعليق- لا أعلم .
@robojax
@robojax Год назад
This is the comment you posted. So you can subscribe
@maximilianomauna8233
@maximilianomauna8233 Год назад
Are the input pins (for battery) rated for 9V or 36V? Datasheet is confusing and Amazon's description is just as confusing
@robojax
@robojax Год назад
I mentioned the voltage for the board at beginning of the video. That is important. Then the datasheet is for the chip L293D. That is for information as I mentioned the capacitors on the board can't accept 36V they will explode. I don't remember what was the input voltage but watch the video I know I mentioned it.
@maximilianomauna8233
@maximilianomauna8233 Год назад
@@robojax Thank you I missed it the first time. 5-16V
@blackseanorthstar
@blackseanorthstar 2 года назад
selamün aleyküm. Will the driver work with 2 pcs 24v stepper motors and 2 pcs 12v stepper motors?
@robojax
@robojax 2 года назад
walaikum salaam, for each 2 DC motors you can connect one stepper motor. so you can control 2 Stepper motor. We talk about bipolar stepper which has 4 wires. but as for the voltage, I am not sure. I have mentioned and provided the datasheet for L293D chip.
@sylvesterdunggat2326
@sylvesterdunggat2326 Год назад
Hello, I have a problem when the car moving forward the right side DC motor move slow & sometimes not moving I need to move the tyre using hand then it worked but still slow but when reverse it worked. Can you help me? Thanks
@robojax
@robojax Год назад
check the code. make sure you have not changed it before using it for the first time.
@kamalkamel7559
@kamalkamel7559 2 года назад
nice!! possible diagram and code arduino for controling dc motor 115v 15 A with potentiometer?
@robojax
@robojax 2 года назад
115V is very high. it is possible. by Driver with that voltage might be hard to find.
@kiranshashiny
@kiranshashiny Год назад
@5.30 - I want to change the direction of the motor revolution without changing or switching the wires physically ? How do I do it. Is there an Input Pins / control pin mechanism of some sort where I can change programmatically using the sketch. I can do that for the L298 breakout board using the IN1 and IN2 pins. I am looking for something similar on this breakout too. Appreciate a reply. BTW : I dont want to install the AF motor library - but I want to do something using bare Arduino sketch like digitalWrite( InputPin, HIGH); also I m using a Wemos D1 to control the motor. The AF library is not compatible with this hardware/uC.
@robojax
@robojax Год назад
Hello, the chip is L293D and I have multiple videos on that. here is the video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-LkJRakZBChI.html where the chip is used on breadboard. I have mentioned the pins on the shield, just send command that hat pin shown in this new video. Good luck
@kiranshashiny
@kiranshashiny Год назад
@@robojax Wow ! that response was quick - Was not expecting it. Thanks - Will check and much appreciated the timely help.
@kiranshashiny
@kiranshashiny Год назад
@@robojax I saw the video now, and I was hoping to use the breakout board ( L293shield) instead of using the bare chip L293D
@mozarellachan5854
@mozarellachan5854 2 года назад
bruh I want to use those shiled without attach it on my Arduino. Can you make the tutorial? Like which should be wired if I only need the M1
@robojax
@robojax 2 года назад
Will. It work with Arduino
@-yousefhassab3492
@-yousefhassab3492 2 года назад
don't know how I put the motor's wires in their entrances to the board. Are there conditions for connecting the motor's wires to their entrances or not?
@robojax
@robojax 2 года назад
you are question is not clear? are you talking about "connection" or "condition" there is not condition. but for connection I've shown them all.
@chiyankwan611
@chiyankwan611 2 месяца назад
How much power in suplly
@robojax
@robojax 2 месяца назад
Explained in the video . If your motor is 10V then connect 10V. Watch the video
@drexler6013
@drexler6013 2 года назад
Why my motors is not working in 9v battery ,please help
@robojax
@robojax 2 года назад
If you did not change the code , the check the wiring.
@drexler6013
@drexler6013 2 года назад
@@robojax its working if I connect with PC ,but not working with battery
@robojax
@robojax 2 года назад
The you are forgetting to connect the jumper. Watch the wiring section of the video
@jimrob2768
@jimrob2768 2 года назад
I have just discovered your tutorials, excellent. However I am trying your 4 dc motor code and I have an error. "Expected initialiser before AF_DCMotor". I am new to Arduino and I am not familiar yet with commands, I have been using Raspberry Pi for my robots but RPi has now become impossible to get so I have turned to Arduino.
@robojax
@robojax 2 года назад
Hi, it seems you have not installed the library.
@djzatka
@djzatka Год назад
​@@robojaxcan i use 4 motors of 24 volt 350watt?
@mohammedkamran8559
@mohammedkamran8559 2 года назад
There is voltage drop at each motor I have a 10V supply M1 has 3.6V M2 has 2.5V M3 has 2V M4 has 1.5V The motors r not running at full potential
@robojax
@robojax 2 года назад
We should have voltage and it should be consistent and about 1.7V or less
@pshtiwankarim7616
@pshtiwankarim7616 2 года назад
karim, can you write a code for (4) brushless motors? please
@robojax
@robojax 2 года назад
very cool project. we need Electronic Speed Controller or ESC which is a hardware that drives the brushless motor. I will see if I get the components, I will write code and make video.
@ry32muhammadadibbinabdulra47
@ry32muhammadadibbinabdulra47 2 года назад
I have just discovered your tutorials, excellent. However I am trying your 4 dc motor code and I have an error. " call to 'AF_DCMotor::AF_DCMotor(uint8_t, uint8_t)' uses the default argument for parameter 2, which is not yet defined ". I am new to Arduino and I am not familiar yet with commands
@robojax
@robojax 2 года назад
It means you have skipped the video. Watch it fully and the issue will be resolved.
@ry32muhammadadibbinabdulra47
@ry32muhammadadibbinabdulra47 2 года назад
@@robojax Can run the program. Because choose different boards, after change to arduino uno can run the program
@ry32muhammadadibbinabdulra47
@ry32muhammadadibbinabdulra47 2 года назад
@@robojax Can the motor shield run while been control by mpu6050?
@robojax
@robojax 2 года назад
you can use it with anything else but you gotta know which pins are using by the shield. I should have explained it and I don't remember which pins are. see the video.
@NNandithaElectronicsEngineerin
will the driver work for 4 dc motors(3V each)?
@robojax
@robojax Год назад
I believe I have mention the operating voltage of the shield
@schlechtestergtaspielerdek3851
Is this shield compatible with a Arduino nano?
@robojax
@robojax Год назад
When we say shield, it means it should fit physically. Now check if it fits on top of your board.
@donipereira7
@donipereira7 Год назад
Hello: I am just try to run the code but occuer this: error: 'DC_MOTOR_PWM_RATE' was not declared in this scope 156 | AF_DCMotor(uint8_t motornum, uint8_t freq = DC_MOTOR_PWM_RATE);. Could you hep me? Tks a lot...
@robojax
@robojax Год назад
It means you have not installed the library or you removed portion of the code.
@donipereira7
@donipereira7 Год назад
​@@robojax OK. Thank you for your rapid response, but what library? I can not find it.. PS. The code is complet.
@robojax
@robojax Год назад
I mentioned in the video on how to install it. if you don't instlal it won't work.
@donipereira7
@donipereira7 Год назад
@@robojaxHello again, I am sorry insist, but the fail goes on. Could you inform your email in order to send a photo with the library error?
@abdulanan524
@abdulanan524 Год назад
in fritzing software, this shield is not available. can you send me fritzing file or software name for circuit diagram.
@robojax
@robojax Год назад
of course fritzing has very limited library. you just Bing or Googe for "L293D shield fritzin" and you will find.
@mochamadgalihramdhani7813
@mochamadgalihramdhani7813 2 года назад
great explanation !! but i have question, i'm running 4 dc motors (6v 120mA) and 12 V battery (3x 18650 3 A) with a step down module to 9V (so the power is 9V to the driver). It works perfectly but the driver making a tiny sound, what does that mean?
@robojax
@robojax 2 года назад
The noise is heard when the speed is too low to make the motor move at faster speed. If your motor is not regular motor and has electronic circuit, that could cause noise due to compatibility issue.
@mochamadgalihramdhani7813
@mochamadgalihramdhani7813 2 года назад
​@@robojax thanks for the answer
@zaidobaid2348
@zaidobaid2348 Год назад
I have 4 gear motors and whenever I try running them all using my motor shield they don't run I always have to spin them with my hands to make them spin and they stop when I apply very small load on them . The power supply is given through motor shield and is 18v.please help(arduino uno)
@robojax
@robojax Год назад
Hi (we say Hi or Salam first), it seems you are not sending full PWM signal to the motor. I forgot the maximum voltage this shield can handle but if it 18V is within the range, then just apply 100% PWM as you already have geared motor which slows the motor at certain ratio. Good luck
@zaidobaid2348
@zaidobaid2348 Год назад
Asalamualikum I did it but still it's the same
@bhagawatiofficial__singer4271
@bhagawatiofficial__singer4271 6 месяцев назад
Sir My One Problem Solution Find Me Please Sir Motor Driver L293D Shield Is Canect On Arduino Uno Problem Is Motor Driver All Ic is Very high Hit When A Problem Solution Please sir Reply 🙏😢
@MrAshutoshMohle
@MrAshutoshMohle 6 месяцев назад
IC should not get heat when it has its own power supply.. but if you use power from Arduino then it might heat up a bit. Also if your motor driver IC is heating up...check your battery
@carenbelarmino1004
@carenbelarmino1004 Год назад
Help arduino mega 2560 timeout communicating with programmer i need help 😭
@zaidobaid2348
@zaidobaid2348 Год назад
I have 4 gear motors and whenever I try running them all using my motor shield they don't run I always have to spin them with my hands to make them spin and they stop when I apply very small load on them . The power supply is given through motor shield and is 18v.please help(arduino uno) I tried increasing the PWM signal but its still the same
@awesomecubed
@awesomecubed 2 месяца назад
Did you solve this? Also having the problem that with all 4, only 2 seem to work.
@thesaltycorn1622
@thesaltycorn1622 2 месяца назад
@@awesomecubed have you found a solution? I have tried everything and keep running into the same problem. The motors all make a little buzzing noise but don't rotate.
@awesomecubed
@awesomecubed 2 месяца назад
@@thesaltycorn1622 I found I had two of the motors backwards. The L293D chip doesn't specify which is the positive port and which is the negative. A voltmeter helped me see that and then switching the direction of the leads solved the problem.
@nilugajjar182
@nilugajjar182 Год назад
Can it is possible
@gauravdighe8474
@gauravdighe8474 2 года назад
hii sir after watching all videos .I decide to make interface MAX30102 and MLX90614 sensor with LCD display but i got problem with connect SDA and SCL pins of sensor and lcd together . I humble request u sir can u make video on it please sir please. i waiting for the video thank u.
@robojax
@robojax 2 года назад
This is wrong video you have posted your comments under. If you watch the course set by step you won’t have this issue . Please watch this video yo solve the problem ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-TkKPUHMFDiI.html
@gauravdighe8474
@gauravdighe8474 2 года назад
@@robojax hii sir i just watch u r video carefully but here i use. Only one display and 2 different sensor max30102 and mlx906 so i dont know how i can interface with 3 sdl and 3 scl pins i try to do watching video. But now also i got prblm its shows Nan for max sensor can u make it and upload the video related to it plz sir pls sir. I just 1 st time buy the components and now i am not able to get output and that make me feell low plz sir help me to get output
@gauravdighe8474
@gauravdighe8474 2 года назад
@@robojax and i delete all. My spam comment sry for this wrong behavior
@robojax
@robojax 2 года назад
They are all they need can see them all in one page
@gauravdighe8474
@gauravdighe8474 2 года назад
@@robojax yes i want to display all info in lcd pannel
@Umang2005
@Umang2005 Год назад
Bro my ardiuno is not getting power from the motor driver shield , when I connect it with computer it work but when I remove with computer and supply power from battery it is not working
@robojax
@robojax Год назад
please watch carefully. there is jumper sittings you have to pay attention to .
@Umang2005
@Umang2005 Год назад
@@robojax bro after coding I have connected the jumper in motor shield and supplied battery power from external supply then too it’s not working
@kaleemkhan9693
@kaleemkhan9693 2 месяца назад
Same problem with me
@umitcelik2841
@umitcelik2841 Год назад
Esp32 cam ?
@robojax
@robojax Год назад
Search my channel
@syedfaizanhussain1845
@syedfaizanhussain1845 Год назад
Arduino Mega2560 gets hot when I gave 12v to motor shield. What should I do ?
@robojax
@robojax Год назад
you are connecing it incorretly., your Arduino should be powred either with 5V or through the power adapter connector if you are connecting 12V.
@syedfaizanhussain1845
@syedfaizanhussain1845 Год назад
@@robojax I seriously just started working with arduino I'm newbie can you please help me and and answer in bit descriptive way. I really love your work sir need your help
@syedfaizanhussain1845
@syedfaizanhussain1845 Год назад
@@robojax You meant to say we have to power Mega2560 and L239d separate ?
@robojax
@robojax Год назад
I don’t know how you powered the Arduino pay attention to that
@umranhelal3755
@umranhelal3755 Год назад
how i can simulate l293d ?
@robojax
@robojax Год назад
simulate it where? if it is the MATLAB, then you need to look into datasheet and design the pieces.
@ezzatluqman
@ezzatluqman 2 года назад
can we control this shield using joystick?
@robojax
@robojax 2 года назад
I have explained how to control a motor, then it is easy to use a joystick to send the same command to control a motor. here is the video on joystick ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6N8Iq353GM8.html just watch, learn and easily combine them.
@robojax
@robojax 2 года назад
you didn't reply back? I searched the video for you but you didn't say anything عزت لقمان
@ezzatluqman
@ezzatluqman 2 года назад
@@robojax thanks for the reply. I just have seen my notification on youtube. Appreaciate your help and your insightful videos!
@gauravdighe8474
@gauravdighe8474 2 года назад
bro i want your help i am not able to solve this problem
@robojax
@robojax 2 года назад
Hello, what is the problem? please explain or provide error code.
@bk_thescorpio_007
@bk_thescorpio_007 2 месяца назад
code
@robojax
@robojax 2 месяца назад
Link in description or go directly to Robojax.com
@saikatd9037
@saikatd9037 3 месяца назад
This motor sheild has blown up my 2pcs. Arduino Uno
@robojax
@robojax 3 месяца назад
you must have connected it incorrectly. 1000s of people are using it. there must be something wrong you do . or possibailly that particular shield is defective.
Далее
SIGMA ENVY IS UNTOUCHABLE 🔥 #insideout2
00:10
Просмотров 2,8 млн
I Built a WATERPARK In My House!
26:28
Просмотров 19 млн
Motor driver shield control (L293D IC)
9:38
Просмотров 103 тыс.
Driving DC Motors with Microcontrollers
1:04:32
Просмотров 638 тыс.
Stepper Motors and Arduino - The Ultimate Guide
29:57
Arduino Tutorial: Using a Motor shield!
7:05
Просмотров 191 тыс.
SIGMA ENVY IS UNTOUCHABLE 🔥 #insideout2
00:10
Просмотров 2,8 млн