The Cookie Counter

by stephenjoyce in Circuits > Arduino

512 Views, 1 Favorites, 0 Comments

The Cookie Counter

IMG_0547.JPG
cookiecounter.gif

This cookie jar tracker is meant to measure how many times you eat cookies over a given week. The data collected from opening the cookie jar will be linked to your email, so you will get a breakdown of how many times you reach for a cookie at the end of the week. Additionally, anytime the cookie jar is opened, you will be texted, so you can potentially catch people who are stealing your cookies!

Supplies

Solder Your NodeMCU to Your Breadboard Based on the Picture

IMG_0544.JPG
IMG_0570.JPG

Then Log Into Adafruit.io. Under Feeds, Make a New Feed Called “Cookie Counter”.

Screen Shot 2020-12-08 at 6.35.11 PM.png

From There, Log Into IFTT and Make an Applet.

Screen Shot 2020-12-07 at 2.12.12 PM.png

Under “If This”, Choose the “Motion Detected” Option and Follow the Steps to Completion

Screen Shot 2020-12-07 at 2.13.42 PM.png

From There, Select the “Then That” Button and Select ‘Email and Follow the Steps to Completion.

Test to See If the Motion Sensor Works.

IMG_0550.JPG

Once the Adafruit IO and IFTT Work Are Synced, Connect Your NodeMCU to the Internet Via Your Arduino Software.

Screen Shot 2020-12-07 at 2.13.05 PM.png

Download the Arduino Code

Downloads

Open This Code in the Arduino and Upload the Code to Your NodeMCU.

Put in Your Wifi Name and Password As Well As Your Adafruit Username and Key From Your Adafruit.io Account.

Open the Serial Monitor to See If It Is Properly Connected As Shown Here:

Once Everything Is Connected, Go Ahead and Adhere to the Beardboard and Battery Pack on the Inside of the Lid of the Cookie Jar. Make Sure the Wires That You Have Arent Too Long to Conserve Space.

Once Everything Is Secure, Cut Out a Piece of Foamcore to Block the Electronics From the Cookies, Leaving a Cut Out for the Motion Sensor.

IMG_0547.JPG

Fill the Cookie Jar With As Many Cookies As You Can.

IMG_0541.JPG

Eat

IMG_0545.JPG