Sunday, February 9, 2014
This project is based on two of my previous articles:
Fun with Servos
Using a Rotary Encoder with the Arduino
The problem we ran into, was that at power down, a rotary encoder does not retain it's position information, so when you power back up, you start back at zero. I added a few lines that writes the current position to EEPROM every time there is a change, so that on power up, the servo returns to the last known position.
Next modification is to add a LCD display instead of using the serial monitor.
Code - http://tny.cz/06b56746
Posted by Steve Spence at 9:45 AM