I require a sketch that will run on a ATTiny2313 or ATTiny4313
The hardware consists of:
ATTiny2313 / ATTiny4313 microprocessor (depending on software size)
Power: 2 X AA alkaline batteries (3V)
The microprocessor sleeps continually and wakes up on an event from a hardware interrupt.
The hardware interrupts are driven by the vibration sensor and the reed switch.
On an interrupt event, a message is sent out the UART.
Must be extremely low power.
More details and schematic will be sent to Freelancers that are interested