Society of Robots - Robot Forum

Software => Software => Topic started by: harisankarsa on November 20, 2007, 10:52:59 AM

Title: C Code for using gear and stepper motors with ATmega8
Post by: harisankarsa on November 20, 2007, 10:52:59 AM
Due to financial reasons, my group has decided to use gear or stepper motors for constructing our robots.Can anyone pls post or email me source code in C for using them alongwith Atmega8.It would be better if you have commented it....
Pls send me the codes at [email protected].

Title: Re: C Code for using gear and stepper motors with ATmega8
Post by: Admin on November 25, 2007, 10:26:05 AM
Just use AVRlib
http://hubbard.engr.scu.edu/avr/avrlib/docs/html/install.html

And then use the PWM functions in timer.h:
http://hubbard.engr.scu.edu/avr/avrlib/docs/html/group__timer.html

or use google to find your PWM source code (http://www.google.com/search?hl=en&safe=off&rls=DGUS%2CDGUS%3A2006-11%2CDGUS%3Aen&q=atmega8+pwm+motor+code)