chuckjaxfl
Well-Known Member
I think I want to teach myself to code AVR's outside of the Arduino environment. So far, I can read a button and blink and LED (deja vu).
While looking at the Atmel site for some tutorials or beginner projects to get myself started, I came across this:
There is an application note, and a zip file with the main.c and everything. I don't (yet) have the skills to implement it. It looks to me like the skeleton of PID program, you'll have to add your own code to read whatever sensor you're using, your LCD or whatever, etc, etc.
Seems like a great starting point if you don't want to just use Arduino to do it. Especially since it looks like it will run on just about any AVR, not just the ones that have cores written for Arduino. The ATtiny44's are $1.16 on Digikey in quantities of 1!
While looking at the Atmel site for some tutorials or beginner projects to get myself started, I came across this:
AVR221: Discrete PID controller on tinyAVR and megaAVR devices
(file size: 97986, 10 pages, revision A, updated: 05/2006)
This application note describes a simple implementation of a discrete Proportional-Integral-Derivative (PID) controller on tinyAVR and megaAVR devices.
(file size: 97986, 10 pages, revision A, updated: 05/2006)
This application note describes a simple implementation of a discrete Proportional-Integral-Derivative (PID) controller on tinyAVR and megaAVR devices.
There is an application note, and a zip file with the main.c and everything. I don't (yet) have the skills to implement it. It looks to me like the skeleton of PID program, you'll have to add your own code to read whatever sensor you're using, your LCD or whatever, etc, etc.
Seems like a great starting point if you don't want to just use Arduino to do it. Especially since it looks like it will run on just about any AVR, not just the ones that have cores written for Arduino. The ATtiny44's are $1.16 on Digikey in quantities of 1!