PDA

View Full Version : SERVO CONTROL PROGRAM



sudarshan
06-06-2009, 06:33 PM
DOES ANY ONE HELP ME TO PROGRAM WITH TWO SERVOS AVR 40 PIN RAPID ROBOT CONTROLLER V2 BOARD WITH TWO SERVOS.IF SO PLEASE HELP ME AND I HAVE ATMEGA32 MICRO CONTROLLER. :D .IF SO PLEASE HELP ME

maddy_nish
06-13-2009, 11:07 AM
Servo runs on the frequency of pulse u supply..


Example u give a pulse 1ms 'on' and 'off' for 20ms, it would go to one dead end, and that pulse can be given till 2ms to make go to the other dead end.But off time must always be 20ms. Initially , for testing u can give delays written in a loop to achieve.. But this is not accurate. U have to use pwm for accuracy.

Example
while(1)
{
portd = 255; // servo connected to portd, any pin
delay(time1);
portd = 0;
delay(time2);
}

sudarshan
06-13-2009, 02:14 PM
since i am a beginner pls give me more detailed info and program :P

asimov_18
06-14-2009, 01:17 AM
Hi ,
try searching for program on the google.........

sudarshan
06-14-2009, 02:42 PM
google doesn't work well for the exact answer well.so any other answer for servo control with atmega32 for avr rapid robot controller v2 board from www.robokits.co.in/shop. :arrow:

debu
06-14-2009, 05:45 PM
google doesn't work well for the exact answer well.

Really?? Check this (clickie) (http://tinyurl.com/l2u6da). The first link contains everything that you need, explanation, code, etc.

Regards,

Debu :)