This device can be used as a simple input device for many projects, and acts as a (more or less) standalone unit. It reads 5 buttons and a touch wheel (if I can get that to work), processes the readings and transmits a human readable string over an RS232 line at 9600 baud 8N1 whenever something happens. It is powered externally with 5 V.
I will add a LiPo battery and a charger circuit later, so that it can additionally be used as a power supply for the device it gives input to.
Christoph
In the above picture, the battery is supplying power (the red wire from the Teensy is open, upper left corner). After a while (1h 15m), I connected the charger to the Teensy to give it 5V from USB, so it switched to that supply line and started charging:
It stopped charging after about 6h, but the device was still supplied from USB. So I disconnectd USB power again (6h 15m) and the battery was used again. The was no power loss in between, so I can connect or disconnect external power while the device is running.
And one with the Teensy and the cable that goes to the main device:
A very simple piece of example code has shown that everything is hooked up correctly (I can read the buttons).
The buttons will be through-hole devices, but mounted on the soldering side. That allows me to put the microcontroller and all support circuitry on the other side and when I push the buttons, their solder joints are pushed into the PCB instead of being pulled out (I've made bad experience with that).
(The image should be upright...)
The yellow wire is the Serial1 Tx line (TTL, nothing fancy like RS232).
W R Garou
Aaron Swartz Day
Chris Jones
Nicholas Junker