Outsourcing PWM comtrol Its rather straight forward to drive up to 8 hobby servos. Just need a small ISR (5 lines of c code), and a function in the main loop of the program that is called at least every...
driving multiple servos? Depends on what sort of servos your using, you wouldn't want anything less than 8 bit resolution normally, but if you're using expensive servos that are high speed and much more...
Tuesday, 22 January 2008 - 01:26
[solved]CTC interrupt general question Great, it works! From what knutbr said, all I did was put it in normal mode (as opposed to CTC mode), and it worked. No more clearing of the timer. Thats saved a major headache....
Wednesday, 16 January 2008 - 01:20
[solved]CTC interrupt general question Yea just looking at the data sheet, and it seems its possible. If the CTC interrupt is disabled, I could poll the Output Compare Flag (OCFnx) in normal mode, and hence high CPU...
strange char array parsing problem Ok, I got it, thanks glitch for pointing me in the correct direction. It was looking for it in RAM. I used this tutorial on PROGMEM here to fix it. Its working like a dream now....
Sunday, 30 December 2007 - 00:19
strange char array parsing problem Yes its compiling for a atmega644p, here is my make file below. I reinstalled the lasted version of winavr to get 644p support. It compiles without any errors or warnings.
main...
Saturday, 29 December 2007 - 15:12
help getting EM-406A GPS data into a ATMEGA32 Try setting the UBRRH, and UBRRL bytes at the end of your initialization code after you've set all the other settings. Thats how I got mine working. I did a simulation in Avr...
Sunday, 25 November 2007 - 01:09
[TUT] [C] Newbie's Guide to AVR Timers Thanks for the great tutorial. Using your tutorial alone, I've just wrote my very first interrupt implementation, to drive a servo with PWM signal in software, on a atmega8....
Tuesday, 20 November 2007 - 15:03
Max current draw from multiple IO pins Yea you should be able to. On a uni project I did last year we had 8x 5mm LED's connected to IO on a atmega8, and they take like 20mA each.
Its rather straight forward to drive up to 8 hobby servos. Just need a small ISR (5 lines of c code), and a function in the main loop of the program that is called at least every...
Have you disabled the JTAG fuse? its enabled by default from factory.
Depends on what sort of servos your using, you wouldn't want anything less than 8 bit resolution normally, but if you're using expensive servos that are high speed and much more...
Great, it works! From what knutbr said, all I did was put it in normal mode (as opposed to CTC mode), and it worked. No more clearing of the timer. Thats saved a major headache....
Yea just looking at the data sheet, and it seems its possible. If the CTC interrupt is disabled, I could poll the Output Compare Flag (OCFnx) in normal mode, and hence high CPU...
Cheers dude, spot on, works great now.
Ok, I got it, thanks glitch for pointing me in the correct direction. It was looking for it in RAM. I used this tutorial on PROGMEM here to fix it. Its working like a dream now....
Yes its compiling for a atmega644p, here is my make file below. I reinstalled the lasted version of winavr to get 644p support. It compiles without any errors or warnings. main...
Try setting the UBRRH, and UBRRL bytes at the end of your initialization code after you've set all the other settings. Thats how I got mine working. I did a simulation in Avr...
Thanks for the great tutorial. Using your tutorial alone, I've just wrote my very first interrupt implementation, to drive a servo with PWM signal in software, on a atmega8....
Yea you should be able to. On a uni project I did last year we had 8x 5mm LED's connected to IO on a atmega8, and they take like 20mA each.