
Pill Box Alert - Atiny 85
I'm trying to create a pill box alert that lights up, to remind me to take pills. Because I like pain and suffering and want to sacrifice my sanity, I plan to create this project with the atiny 85 in assembly.
I suspect the best way to go about this would be to run a series of electrical circuits in each pill box that have a magnetic sensor. When this magnet pulls away, it would cause a break in the circuit to somehow alert the atiny to "reset" its clock for that day. If the clock gets to zero, the atiny would cause led to flash rapidly.
Some difficulties that come to mind...
My atiny 85 has 6 I/o pins, but there are 7 days in the week (and this doesn't account for any input from the different boxes.
I need to track the time. The atiny does have a clock, but I'd essentially need two clocks. One to track the current clock countdown and another that tracks the cumulative time. For example, if I take the pills at 10 am, I would need the next in 23 hours, but if I take them at 9 am, I would need to retake at 24 hours.
Any ideas how to best go about this and is this outside the scope of something a beginner can do?