Arduino DC Motor Control
Uploader Comments (DukeNukeIt)
All Comments (36)
-
@francisroan If you want to control a motor within limits (say 90 degrees + and -) you need some sort of feedback to the microcontroller (It's called a closed loop). This way the microcontroller knows the position of the motor-shaft at any point in time.. A easy way to obtain this type of control is using a stepper motor. the Stepper motor will not continuesly run as it's powered, but move one step at the time(hense the name :) ). Stepper motors are easyer than to make a servo motor :)
-Kriss
-
I'm a big fan of DukeNukem, so your screen name "dukenukeit" is awesome. as for your project, I'd like to eventually use my shield which is Identical to your to do 2 motors controlled thru my com with xbox360 controller. your video is very informative. KUDOS man.
-
@francisroan You can use a rotary encoder.
-
tome em del cuso
-
can i get code for this setup please ?? its really imp..
-
@roofy2k Mostly cost, and I'm not sure about the speed/power of a stepper motor vs a gear reduction DC motor. It's just easier for me to stick with what I know.
-
Hola! Me podria sacar programa para control de motor inversa y tambien me podriar dar los datos y esquematico?saludo!
-
This is perfect. Do you have a schematic, pictorial diagram and code by chance? Awesome post. Just what I'm looking for. will save me a ton of time. Thanks!
hey i have a question i want to control a motor like a servo it must go left if u say lef and right wen u say right(with a pot)could ya give me a schematic to build a servo or anything like it????
francisroan 1 year ago
@francisroan I dont do much with servo motors so I cant help you. Good luck!
DukeNukeIt 1 year ago
Thanks! This is a nice tutorial for beginners. Actually I tried to make something similar, but it seems to me that I have a too powerfull motor. (Connected to 3V battery it consumes more than 2A). But in fact I wanted to use it with 8-9V+ battery. Couldn't you propose the idea how to do it?
Ixanezis 1 year ago
@Ixanezis First, find out what the actual voltage rating for your motor is. If you use to little voltage then the motor will draw way to much current. To much voltage and you can start a small fire :@
Once you have the correct voltage rating, and then use an H-bridge motor driver that can output the correct voltage and amperage your motor uses. Just guessing at these things can cause major problems and will not be reliable.
Good luck!
DukeNukeIt 1 year ago