Want to smarten your pill box in an economical way? Look no further. This project will help you keep track if you have taken your medications in time.
Step 1: Fixing the Push Button
Fix the push button with feviquick or quickfix so that it is pushed down properly when the box is closed. When open, the push button should open. Then, solder the push button between ground and P3.
Step 2: Programme the ATtiny
I used the ATtiny85 board below.
Any ATtiny board with USB programming feature will do. Follow the instructions on the webpage to get the programming working.
The code is attached on this page. Run the code at 6 am and you will have it giving a flash at 8 am, 12 noon, 5 pm and 9 pm. You can change the timings as you would like.
Please reset the device once in a few days for correct timing.