Hi
I'm pretty new to Arduino, and have been wondering how to use a motor with Arduino. I've seen Motor Shields and things like that, but I really don't understand whether I have to have one of those to use a motor(s). I'm not talking about servos, but a fully rotational motor. And I also don't really understand the programming for a motor.
Looks good - but why the external power source? Why not the 5V supplied by the Arduino itself? That also looks like a good shield, but is it possible to do those things without the shield?
It's not a sheild. All I have is wires. The external batterys are for the amps the board doesn't have. You'll blow the pins. (I think, and I'm not going to try.)
If you don't know the voltage, try at 3V, then 4.5V, 6V and adding 1.5V each time. Before you do that, are there any tags or manafactures printed on the motors?
Ok. Your going to want to have the middle pin of the transister in a pwn pin. Pwm pins are 3 5 6 9 10 and 11. Just programming one of those pins analog. I don't think you can do revirsing, but it may be posible with another resister. I'll try it. You might want to see my website if you didn't and read if in further detail. Look at the picture.
Pwm will control speed. I'm still not sure about direction, if you can set the value in the programming negative? idk, but this might be it: analogWrite(3, -255);