Dog Treat Counter

Dog Treat Counter

thingiverse

My girlfriend and I are on different schedules, so we needed a way to track how many treats our dog was getting. Enter the Dog treat counter. About 4 inches around, ESP8266 controlled, with just enough room for an 18650 lithium-ion battery and holder, 0.96-inch OLED display, 12x12mm tactile button, MCP1700 voltage regulator, two capacitors, a resistor, and the ESP8266 itself. Topped with a paw-shaped button. I plan to have the display show an animation followed by the daily count of treats (button presses), then send the updated count to Home Assistant for display and tracking there. After that, the ESP will go back into deep sleep until the next button press. Screw holes are 2.8mmx6mm, making it easy to thread in M3x6 screws (you'll need two). Included are the STL files and Fusion 360 archives to edit as you see fit. The spacing for the button is a parameter, so if your button has a different height (without a plunger or cover), you can easily adjust it. Note: I'm attaching magnets to the back, which will account for any screw head height. If you're flush mounting or desk mounting, you might need to countersink the holes on the back cover and use pan-head screws (M3x6). I'll add the code for the ESP and Home Assistant once it's working. UPDATE: The code is mostly working; I just need to tweak the MQTT stuff. If you want to copy this project, this should get you most of the way there. This is for ESPHome and use with Home Assistant. The code can be found at pastebin.com/hp3eGasz.

Download Model from thingiverse

With this file you will be able to print Dog Treat Counter with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Dog Treat Counter.