MicroPoMo - a Fancy Stopwatch Help Stay Focused
by Salvador Enrohk in Circuits > Clocks
17 Views, 0 Favorites, 0 Comments
MicroPoMo - a Fancy Stopwatch Help Stay Focused
Since I'm a person with ADHD, the Pomodoro method challenges me to practice something for a set amount of time...
So I built a little machine to help me with this process.
It's a simple timer—it counts up to 30 minutes, triggers an alarm, and lights up an LED, then gives you a 5-minute break. When the alarm sounds again, it's time to get back to work!
I added a button to start the timer and another to set how many times you want to repeat the 30-minute block.
I also had a few SSD1306 displays lying around, so I included one (2-color) that shows: status, seconds, minutes, current block number, and total blocks to complete. Since I had some extra space both in the sketch and on the screen, I added an animated "pet" that changes based on the current state.
Use "image2cpp" for converting 2-bit images to raw data for use in the Adafruit library. Feel free to disable the splash image or make your own ;)
The first version used an ATTiny85, but I couldn't get it to work as I wanted, so I switched to a Pro Micro.
There's still a bit of memory left, so maybe in the future I will update, adding a pause button and not taking the break when there's only one block left.
Supplies
- Arduino Pro Micro
- OLED I2C 128x64 SSD1306
- Piezo Speaker
- 2 x 12mm Push Button
- 2kΩ Resistor
- 100Ω Resistor
- 5mm LED (mine is pink)
Code
The sketch uses the Adafruit SSD1306 library. I’ve separated the graphics, icons, and other elements into a separate file. The code for generating the alarm is pretty sloppy, as is the way the pet animation is handled, but it gets the job done.
Suggestions on how to improve this part are welcome!
Schematics
Try to Make It Beaty
First time trying to get a case done, I failed, so it took me a bit of time to make the final aspect