Build 0.18 progress 2008/06/20
June 20th, 2008On the ATTINY84 and ATMEGA88 these new features are working:
SETIO - set the direction and default state of digital I/O pins (retained in EEPROM)
OUTPUT - set the state of digital output pins
OUTPULSE - momentarily change the state of output pins - used to set latching relays
INPUT - read the digital state of input pins
ALERT - send a text message when a selected pin changes state. This is interrupt driven and will catch very short changes.
Any line can be set to input with pull-up, so a switch closure to ground generates an alert.
MEASURE - read the analog value (0 - 3.3 volts = 0 - 1023) of analog inputs. Also reads the TINY84’s rather approximate temperature sensor.
For the ATTINY84, lines A3-A7 are the I/O and can be digital outputs, digital inputs, or analog inputs.
For the ATMEGA88, lines B0-B7 are digital I/O and lines C0-C5 are analog inputs.
On the ATMEGA88, the LED is on D3-D4 and GPS power is on D5.
Todo:
Test the other phones (including one which is on the way.)
More regression testing.
The build 0.18 code assembles to the same binary as build 0.17A if the new features are turned off.
There are define options at the top of the file to enable and disable features.
Who sells mercury switches (or equivalent) nowadays? One simple and handy use for build 0.18 will be to connect a mercury switch to an input line, and enable alerting. The unit can then be hung on a doorknob, put in a briefcase, etc. and if that object moves you will know about it anywhere in the world. Even without a GPS module, this makes a cheap and handy long-distance alarm.