One of the absolute best Arduino tutorial creators out there. So engaging and clear. Thank you for explaining so well. I'm glad I came across your channel randomly.
Hi Rachel! I use those motors and wheels for small mobile robot projects, and they’re pretty hard to beat without spending a whole lot more money. For a few dollars more, these motors can be purchased with Hall effect encoders, and the Arduino Uno has interrupt pins to read them. Having encoders opens up the possibility of very accurate (in Arduino terms) closed-loop position and speed control of the motors, but at the expense of more hair-pulling in software development. I have just a couple comments on the hardware in this video. First of all, the motors can be run at higher than the rated voltage. I run mine at 9.6 volts, and have run them at 12 volts DC. The trick is to limit the maximum PWM signal, reducing the 0-255 in your code down to something like 0-120. This is relatively advanced stuff where the builder has to ensure that the stall current of the motors doesn’t exceed the current rating of the motor driver board. I mention it only because finding information on the topic can be a challenge of its own. So this is just to say, “Yes, you can do it.” The wheels that come with the motors are designed to be pushed onto the motor shafts, and are retained by the interference fit. Over time, the hubs of the wheels will crack, though, and no amount of gluing will provide a permanent repair. What has worked for me is a healthy tie wrap snugged down on each hub before using them for the first time. I haven’t had a failure since using the method. Next point concerns the joystick used. Those things can be purchased from a lot of different sources, but regardless of brand name I suspect that most are made by the same company. They are inexpensive, making them very valuable to the hobbyist, but they shouldn’t be considered to be precision devices - they aren’t. Knowing that going in can save the user some headaches in trying to figure out why his or her robot doesn’t behave very well under joystick control. There are better ones that are both a lot larger and a lot more expensive, but the cheap ones can be made to work well enough (and precisely when using encoders). Writing software that accommodates noisy and/or inaccurate sensors is what separates roboticists from garden variety programmers anyway, and it’s probably the biggest challenge.
WOW Rachel I`ve just made a Arduino Smart Alternator tester using 2 variable switches going from 0-1023. It makes a 12 volt square wave to tell the alternator whether to charge or not. Low duty cycle means less voltage output and a full duty cycle means full voltage. 12.5 to 15.5 volts I found. I used to work in a factory to fixed Alternators and they paid £200 for the same bit of kit.
I hope you had a nice sleep. Thank you for sharing it. At first this chip H-brige was a nightmare, over time you were a live saver whole been in tech worlds. What are recommendations to have the best grasp to have sense of humour and fun like you did. Lastly, what frame of minds helped you to have great mentors whom solve all your questions when you so what improved everyday. Level of support you got from your own neat workshop that make you be pretty wise and expressive of joy to teach make you smile in camera.
Love you videos! Thank you! Would it be possible to do a lesson on OLED screens? And maybe include how to control a menu using a joystick and button? So far, I haven't been able to find a good resource for that.
Hello! I am using this code for an underwater ROV project. So i watched the video and used those same motors just for testing. The only difference is that i am using a MEGA because i need to add another motor to control depth. I'm gonna change the motors to 12V and run 12V into the motor controller, but right now I am testing code. My issue is i hear the motors humming, but they are not moving. I already checked code and wiring and i cant seem to find an issue troubleshooting? would you mind giving me some advice on what you think is going on? Thanks!
great video. I wonder if u can help me to write a code for 5 dc motor for my old arm robot that has 5 dc motor, I will probably use 3 l298n and 3 joystick. thank you and have a great day
i tried this code, the x & y values are fetched from joystick but after if statement motors are not driving, i checked all the connections, 12v battery supply for motor driver, changed 3 motor driver, tried on arduino nano plus nano shield and then on uno. but still not working. can you please help me
It won't do it as written, but it could be modified so that while the joystick is within a range of 505-700 along the X axis (turning left), the right wheel could turn more quickly than the left. This would cause a more gentle left turn. An interesting idea for me to try out next time!
One of the absolute best Arduino tutorial creators out there. So engaging and clear. Thank you for explaining so well. I'm glad I came across your channel randomly.
This woman deserves all the appreciation there is out there
Hi Rachel! I use those motors and wheels for small mobile robot projects, and they’re pretty hard to beat without spending a whole lot more money. For a few dollars more, these motors can be purchased with Hall effect encoders, and the Arduino Uno has interrupt pins to read them. Having encoders opens up the possibility of very accurate (in Arduino terms) closed-loop position and speed control of the motors, but at the expense of more hair-pulling in software development.
I have just a couple comments on the hardware in this video. First of all, the motors can be run at higher than the rated voltage. I run mine at 9.6 volts, and have run them at 12 volts DC. The trick is to limit the maximum PWM signal, reducing the 0-255 in your code down to something like 0-120. This is relatively advanced stuff where the builder has to ensure that the stall current of the motors doesn’t exceed the current rating of the motor driver board. I mention it only because finding information on the topic can be a challenge of its own. So this is just to say, “Yes, you can do it.”
The wheels that come with the motors are designed to be pushed onto the motor shafts, and are retained by the interference fit. Over time, the hubs of the wheels will crack, though, and no amount of gluing will provide a permanent repair. What has worked for me is a healthy tie wrap snugged down on each hub before using them for the first time. I haven’t had a failure since using the method.
Next point concerns the joystick used. Those things can be purchased from a lot of different sources, but regardless of brand name I suspect that most are made by the same company. They are inexpensive, making them very valuable to the hobbyist, but they shouldn’t be considered to be precision devices - they aren’t. Knowing that going in can save the user some headaches in trying to figure out why his or her robot doesn’t behave very well under joystick control. There are better ones that are both a lot larger and a lot more expensive, but the cheap ones can be made to work well enough (and precisely when using encoders). Writing software that accommodates noisy and/or inaccurate sensors is what separates roboticists from garden variety programmers anyway, and it’s probably the biggest challenge.
Def put the joy back in the stick. Thank you for the lesson
I forgot to say what a great video this was! So much information, and all in one place. Thank you for the effort in producing it.
WOW Rachel I`ve just made a Arduino Smart Alternator tester using 2 variable switches going from 0-1023. It makes a 12 volt square wave to tell the alternator whether to charge or not. Low duty cycle means less voltage output and a full duty cycle means full voltage. 12.5 to 15.5 volts I found. I used to work in a factory to fixed Alternators and they paid £200 for the same bit of kit.
That's awesome! 🥳
I hope you had a nice sleep. Thank you for sharing it. At first this chip H-brige was a nightmare, over time you were a live saver whole been in tech worlds. What are recommendations to have the best grasp to have sense of humour and fun like you did.
Lastly, what frame of minds helped you to have great mentors whom solve all your questions when you so what improved everyday.
Level of support you got from your own neat workshop that make you be pretty wise and expressive of joy to teach make you smile in camera.
Just marvelous. I just love your tutorials. Specially millis().
LOve your channel and very pretty instructor plus I started watching cause your hands show you do actual work
Very true! No aspirations to become a hand model any time soon 🤣
Love you videos! Thank you! Would it be possible to do a lesson on OLED screens? And maybe include how to control a menu using a joystick and button? So far, I haven't been able to find a good resource for that.
You're doing a great job ❤
Hello! I am using this code for an underwater ROV project. So i watched the video and used those same motors just for testing. The only difference is that i am using a MEGA because i need to add another motor to control depth. I'm gonna change the motors to 12V and run 12V into the motor controller, but right now I am testing code. My issue is i hear the motors humming, but they are not moving. I already checked code and wiring and i cant seem to find an issue troubleshooting? would you mind giving me some advice on what you think is going on? Thanks!
Thank you!!!
Really Really GOOD tutorial! Mahalo 💮
can the circuit in this episode be used in some way to create a proportional control for 120v winch. Thanks for your great videos
I do like your videos. Just a suggestion on variable names. INApin to MOTAenable, IN1pin to MOTAcw or MOTAforward etc.
Great suggestion! 👍
Muito bom ! Ótimo projeto.
Sweet 😍love that code :)
I'll have it up on my website shortly. I'll post the link in the description.
great video. I wonder if u can help me to write a code for 5 dc motor for my old arm robot that has 5 dc motor, I will probably use 3 l298n and 3 joystick. thank you and have a great day
ขอบคุณมากครับ❤❤❤
Where can I get the program 😢
So cool ❤
Thanks! Let me know if there's any topic you'd like to see me cover.
Are u from Bangladesh..😮??
Yes!!!!
That's what I'm talking about 👍
i tried this code, the x & y values are fetched from joystick but after if statement motors are not driving, i checked all the connections, 12v battery supply for motor driver, changed 3 motor driver, tried on arduino nano plus nano shield and then on uno. but still not working. can you please help me
Is there a place to download the code for this project?
"There's trickery afoot" 🤣🤣🤣
There always is with circuits 😄
Hi. Where i get code file? Please write code in description.
i need a woman like this in my life
Exactly what version of the arduino software is this
I'm using 2.3.2.
can you please share the code of this?
Hmmmm.... I wonder how you get the car to turn slightly WHILE it's going forward. I don't think your code will do that, will it?
It won't do it as written, but it could be modified so that while the joystick is within a range of 505-700 along the X axis (turning left), the right wheel could turn more quickly than the left. This would cause a more gentle left turn.
An interesting idea for me to try out next time!
Is it i possible to pin the code in the comment
Nice way of teaching but improvement is required
70 is the new 0
So true! In my first attempt I used 0 but the wheels were too sluggish.
You covered the evil genie code... but where's the fast & furious wheelie popping and bridge jumping code? 😂😂😂😂 🎉🎉
Yaaas! 🏁