Control DC Motors with Arduino and Joystick - Step-by-Step Guide

  Рет қаралды 5,550

Rachel De Barros

Rachel De Barros

Күн бұрын

Пікірлер: 38
@mianfazlerazik3636
@mianfazlerazik3636 2 ай бұрын
This woman deserves all the appreciation there is out there
@Reach41
@Reach41 2 ай бұрын
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.
@eliyahumedia
@eliyahumedia 5 күн бұрын
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.
@damianbutterworth2434
@damianbutterworth2434 2 ай бұрын
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.
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
That's awesome! 🥳
@naeemhaq3504
@naeemhaq3504 2 ай бұрын
Nice way of teaching but improvement is required
@boltvalley3076
@boltvalley3076 2 ай бұрын
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.
@noisytech13
@noisytech13 3 күн бұрын
Where can I get the program 😢
@TIMETRAVELSF2AND3
@TIMETRAVELSF2AND3 Ай бұрын
Are u from Bangladesh..😮??
@donaldspade975
@donaldspade975 Ай бұрын
Is there a place to download the code for this project?
@moneytosh
@moneytosh 29 күн бұрын
can you please share the code of this?
@Programming-Fun-With-Hima
@Programming-Fun-With-Hima Ай бұрын
You're doing a great job ❤
@ALBINOxRHINO713
@ALBINOxRHINO713 Ай бұрын
i need a woman like this in my life
@jesseservice7828
@jesseservice7828 2 ай бұрын
Muito bom ! Ótimo projeto.
@EngRMP
@EngRMP 2 ай бұрын
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?
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
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!
@dr.saurabhipatkar5441
@dr.saurabhipatkar5441 Ай бұрын
Exactly what version of the arduino software is this
@RachelDeBarrosLive
@RachelDeBarrosLive Ай бұрын
I'm using 2.3.2.
@banglarif
@banglarif 2 ай бұрын
Just marvelous. I just love your tutorials. Specially millis().
@Reach41
@Reach41 2 ай бұрын
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.
@chadzulu4328
@chadzulu4328 2 ай бұрын
"There's trickery afoot" 🤣🤣🤣
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
There always is with circuits 😄
@christiane321
@christiane321 2 ай бұрын
Really Really GOOD tutorial! Mahalo 💮
@DBB-KE5DUO
@DBB-KE5DUO 2 ай бұрын
You covered the evil genie code... but where's the fast & furious wheelie popping and bridge jumping code? 😂😂😂😂 🎉🎉
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Yaaas! 🏁
@MichaelHagberg
@MichaelHagberg 2 ай бұрын
I do like your videos. Just a suggestion on variable names. INApin to MOTAenable, IN1pin to MOTAcw or MOTAforward etc.
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Great suggestion! 👍
@shannonwilliams9744
@shannonwilliams9744 2 ай бұрын
LOve your channel and very pretty instructor plus I started watching cause your hands show you do actual work
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Very true! No aspirations to become a hand model any time soon 🤣
@gl8512
@gl8512 2 ай бұрын
70 is the new 0
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
So true! In my first attempt I used 0 but the wheels were too sluggish.
@sampamnl.8964
@sampamnl.8964 2 ай бұрын
ขอบคุณมากครับ❤❤❤
@strandum67
@strandum67 2 ай бұрын
Sweet 😍love that code :)
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
I'll have it up on my website shortly. I'll post the link in the description.
@Perfectflight-i3f
@Perfectflight-i3f 2 ай бұрын
So cool ❤
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Thanks! Let me know if there's any topic you'd like to see me cover.
@meiowalot7570
@meiowalot7570 2 ай бұрын
Yes!!!!
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
That's what I'm talking about 👍
Beginner's Guide to Controlling Stepper Motors with Arduino
9:59
Rachel De Barros
Рет қаралды 10 М.
Trigger DC Motor with PIR Sensor & Arduino - Complete Guide
35:29
Rachel De Barros
Рет қаралды 18 М.
小天使和小丑太会演了!#小丑#天使#家庭#搞笑
00:25
家庭搞笑日记
Рет қаралды 33 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 21 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 78 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 50 МЛН
Control Different LEDs with a Joystick and Arduino
22:22
Rachel De Barros
Рет қаралды 7 М.
Make Posable, Movable, Articulating Joints for your PVC Props
36:33
Rachel De Barros
Рет қаралды 79 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
DIY Laser Image Projector (100ft+ Range!)
20:08
Ben Makes Everything
Рет қаралды 315 М.
Motion-activated Sound Effects with Arduino, PIR Sensor & MP3 Player
25:26
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Рет қаралды 663 М.
High precision speed reducer using rope
20:19
Aaed Musa
Рет қаралды 1,7 МЛН
Design Electronics Enclosures with a Mechanical Engineer
36:58
David Malawey
Рет қаралды 24 М.
How to Wire Multiple LEDs: Series vs. Parallel LED Circuits
21:24
Rachel De Barros
Рет қаралды 70 М.
小天使和小丑太会演了!#小丑#天使#家庭#搞笑
00:25
家庭搞笑日记
Рет қаралды 33 МЛН