YAY Tracker

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

The YAY Tracker

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

Netrunner Laser-Cut Identities

Netrunner Laser-Cut Identities

I’ve been using the laser cutter/engraver to generate some Netrunner identities for some time, and finally got some that look really good.

M.C. Escher Ice Cube Molds

When staying at a bed-and-breakfast they had these really neat hexagonal ice cube trays. We picked up some of our own when we got home, but the thought was planted - “what other shapes could I do?” Of course, one of the most interesting space-filling tiling artists of all time has to be M.C. Escher.

Netrunner Card Boxes

Netrunner Card Boxes

I’ve been wanting to upgrade my Netrunner card storage for a while. Now that I have access to a laser cutter/engraver, I finally took the plunge and designed these boxes. I think they turned out fantastic!