Society of Robots - Robot Forum

Software => Software => Topic started by: Dudekiller on August 10, 2008, 08:12:49 PM

Title: Motor Library for Arduino Question
Post by: Dudekiller on August 10, 2008, 08:12:49 PM
For the motor library for Arduino to work, do I really need to get the motor/servo protoshield for the Arduino board?
Title: Re: Motor Library for Arduino Question
Post by: sonictj on August 17, 2008, 12:33:49 AM
which library and shield are you referring to?

either way you cannot just hook up a motor directly to an arduino or any other controller unless there is an h-bridge/motor driver connected to the i/o pins in question
the arduino i/o pins are only rated for (i think) ~40ma anything more than that will possibly fry that pin.

If you tell me specifically what you're intending to do I can suggest hardware solutions too.
 
Title: Re: Motor Library for Arduino Question
Post by: newbie on August 27, 2008, 12:07:55 AM
hi there, ;)

i am using this motor driverhttp://www.ladyada.net/make/mshield/index.html (http://www.ladyada.net/make/mshield/index.html), for a mini servo and using this libraryhttp://www.arduino.cc/playground/ComponentLib/Servotimer1 (http://www.arduino.cc/playground/ComponentLib/Servotimer1).

i want to program my physically modified servo to turn 360 degree continuously (with backward and forward movement), how to program it? :-\
Title: Re: Motor Library for Arduino Question
Post by: sonictj on August 27, 2008, 11:52:21 AM
all you have to do is use the write function with either 180 or 0 example: servo.write(180);
you can say servo.detach() to stop the servo from moving sense your servo is modified.