go away spammer

Author Topic: Motor Library for Arduino Question  (Read 5455 times)

0 Members and 1 Guest are viewing this topic.

Offline DudekillerTopic starter

  • Jr. Member
  • **
  • Posts: 33
  • Helpful? 0
Motor Library for Arduino Question
« 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?

Offline sonictj

  • Supreme Robot
  • *****
  • Posts: 416
  • Helpful? 11
    • Tim's Workshop
Re: Motor Library for Arduino Question
« Reply #1 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.
 
« Last Edit: August 17, 2008, 12:46:27 AM by sonictj »

Offline newbie

  • Jr. Member
  • **
  • Posts: 36
  • Helpful? 0
Re: Motor Library for Arduino Question
« Reply #2 on: August 27, 2008, 12:07:55 AM »
hi there, ;)

i am using this motor driverhttp://www.ladyada.net/make/mshield/index.html, for a mini servo and using this libraryhttp://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? :-\

Offline sonictj

  • Supreme Robot
  • *****
  • Posts: 416
  • Helpful? 11
    • Tim's Workshop
Re: Motor Library for Arduino Question
« Reply #3 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.

 


Get Your Ad Here