atmega328

Servo Control on atmega328 using Timer 1

It seems like a lot of people these days Arduino for a lot of microcontroller tasks, using the magic Arduino libraries to abstract away the underlying architecture. This time and energy saving platform is a beautiful thing, however, people shouldn't be afraid of "pulling back the curtain" on Arduino and, moreover, they should know roughly what's going on. This post covers the voodoo behind the Servo library and how 6 simple registers control flexible hardware PWM.
Syndicate content