AVR servo control

Here's a quick and simple way to control servos with an AVR microcontroller, stiant04 writes -
This code is developed for the ATmega16 on tha AVR-stk500 trainer and can only control two servos with a ten step resolution (but this can all easily be changed). It is ment to show newbies (like me) how they can make a C program that controls RC servos...:: AVR Freaks - Link.(Remeber that RC servoes needs a 1-2 millisecond high pulse at 50Hz)
PORTA=switches , 0=S1++,1=S1center,2=S1-- , 3=S2++,4=S2center,5=S2--
PORTB=Leds ,shows ten times the ms value(1-2ms -> 10-20 bin) for servo1
PORTC=Servo signal , PC0 & PC1Just push a button to move your servos.
The servo vil return to center position when max or min value is reached.(sorry that most comments are in norwegian)
Enjoy!
Related:
- WebCam servo control - Link.
- HOW TO - 16 Channel serial servo controller for ... - Link.
- HOW TO - Make a Servo pod - Link.
- HOW TO - Make a servo-based 4-legged walker - Link.
- OpenServo Wiki - low-cost digital servo for robotics - Link.
- Servo robot cat - Link.
Posted by Phillip Torrone |
Apr 30, 2007 10:00 PM
DIY Projects, Electronics, Robotics |
Permalink
| Comments (0)
| Email This |
| Digg this!
Recent Entries
- Best of CRAFT
- Not so lazy Sunday... Weekend Project - Ultimate LED fan sign
- Making Austin Weird: LED Bling
- Brush knuckles
- Found object robot sculptures
- Blob Mentality
- Got 10 hours? Make a paper swan
- Make it or break it
- Maker Faire Austin: Oct. 18th and 19th, 2008, Austin, TX (2 weeks away!)
- Halloween science grossology
Comments
Oldest comments listed first.
Subscribe to MAKE Magazine!
Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.
$34.95 / 1 year
(4 Quarterly Issues)
Features and more @ MAKE!
Add MAKE to iGoogle - GoogleGoogle.
Add MAKE to your RSS reader - Real simple.
Add MAKE on Twitter.
Add MAKE on FriendFeed & the MAKE room.

Why advertise on MAKE?
Read what folks are saying about us!
Click here to advertise on MAKE!
Phillip Torrone
Senior Editor
Tel: 707-827-7311
Gareth Branwyn
Robot Maker
Kip Kay
Video Maker
Jonah Brucker-Cohen
Artist / Researcher
Natalie Zee Drieu
Senior Editor
CRAFT
Becky Stern
Culture jammer
Collin Cunningham
Sound Maker
Marc de Vinck
CNC Maker



Leave a comment