This is the project that taught me how to read physical switches from the Raspberry Pi. The idea is simple: a Pomodoro clock that can be used to track work/rest time.
- A START/PAUSE switch
- A RESET switch
- Four 5mm dimmed LEDs for tracking completed Pomodoro-s
- Adafruit 4-digit 7-segment display backpack
- 4 x 300R resistors for the LEDs
- 2x 1k and 2x 10k resistors for the switches
- Jumpers, breadboard, Pi
Press the START button to begin a new Pomodoro. The display lights up and starts counting towards the 25 minute mark. Once there, the system enters STANDBY mode and lights the first LED to indicate the completed Pomodoro. Press START after the break to begin again. On the fifth Pomodoro the system is reset and you should take a longer break.
The Python script is on GitHub. The circuit diagram (my first one, mind you) is available on CircuitLab.
Connect this to Toggl API to record your Pomodoros.