winavr code for avr mega8. The program get data from serial port in interrupt function. And then out put the data to 74ls595 (serial to parallel IC) for controlling relay output.
This file implements a pid controller used to simulator cruise control in a car
The input is a throtle value between 0 - 100 ( read on P1 )
The output is the car s speed ( P2 - P0 )