YAY Tracker

Published: Sep 12, 2020 by K. E. Claytor

So I’ve been mostly enjoying pandemic work-from-home. The one thing I don’t like though is the easy access to snacks. So to try to reduce my snacking consumption, I thought I would try to replace the instant gratification of a snack with something else.

Thus was born the “YAY Tracker” - instead of going for a snack, I can click “YAY” (A button) and get some motivational support! If I can’t refuse temptation and end up getting the snack, I can click the “NAY” (C button) and get some support for next time. The total counts of “YAY”s (snack avoided) and “NAY”S (whoops snacked) are logged throughout the day and can be accessed (B button).

Here’s what it looks like:

YAY Tracker in action

This project also appears at:

This project costs $43 and is easy:

  • Hardware: Easy
  • Software: Easy
  • Assembly: Easy

Hardware

The electronics parts list consist of:

  • Feather M0
  • Featherwing OLED 128x32
  • Lithium Ion Battery 400 mAh

Wiring & Assembly

Solider on some short headers or stacking headers to the feather, snap on the LCD featherwing, sandwiching in the battery, upload the code, and you’re good to go.

Code

The full source is on Github, I re-used the button code from the multipad project.

There’s nothing too fancy about it - pull a random message from a list, increment a counter, keep track of display levels. Regarding the dispaly, the Adafruit displayio has an excellent tutorial.

Conclusion

This was a fun introduction to the adafruit drawing library, but ultimately it did not help me in my snacking goals. Some improvements would be longer battery life to where it could go the whole day on a charge, and storage of the yay/nay counts so they don’t reset when power is lost.

programming, electronics, kids projects, circuitpython, micropython, python, project, easy, diy, improvement, time tracking

Share

Latest Posts

Arrow Selection Math

I’m a recurve shooter preparing for the outdoor archery season again and it’s time to do some arrow selection. Do I want thick arrows or thin arrows? Thick arrows may gain you more points (although unlikely with the large target). And thin arrows are rumored to be less susceptible to wind effects. But let’s see — let’s do a bit of math!

Arrow Fletching

Found a great little customizable arrow fletching jig on thingiverse.

SWU / Magic Life Counter

After playing my first games of Star Wars Unlimited, I was inspired to design my own 3d-printed life counter. multicolor 3d printed swu high-republic life counter