Author Topic: center servo roboduino.  (Read 2727 times)

0 Members and 1 Guest are viewing this topic.

Offline SmAsHTopic starter

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
center servo roboduino.
« on: May 08, 2009, 04:26:23 PM »
as the title suggests i am trying to center a few servos for modification,
i have looked in the tutorial and tried downloading the .hex file but that didn't work :-\
so, my question to you is, what can i put in the arduino window to send a 1.5ms pulse?
or can i input an angle?
really confused as i am the shiz with software :-\
thanks in advance,
james

EDIT:
i uploaded this code to the roboduino and it worked...
Code: [Select]

#define Servo 10 

void setup() {
 
  pinMode(Servo, OUTPUT);
  digitalWrite(Servo, LOW);
}

void loop(){
  digitalWrite(Servo, HIGH);           
  delayMicroseconds(1500);       
  digitalWrite(Servo, LOW);   
  delayMicroseconds(9000);       
}
« Last Edit: May 08, 2009, 04:35:16 PM by SmAsH »
Howdy

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: center servo roboduino.
« Reply #1 on: May 09, 2009, 08:20:50 AM »
There is a servo library in Arduino  ;)

Offline SmAsHTopic starter

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: center servo roboduino.
« Reply #2 on: May 09, 2009, 10:56:14 AM »
yeah, im gonna take a look at that in the morning... its 3am here :o
Howdy

 

SMF spam blocked by CleanTalk