Fresh Meat Notifier

by JosiahP4 in Circuits > Arduino

500 Views, 0 Favorites, 0 Comments

Fresh Meat Notifier

IMG_1729.jpg
Fresh Meat Notifier Demonstration
IMG_1533.JPG
IMG_1527.JPG

A device to keep meet fresh. This project got going because I was challenged in one of my classes to solve a problem using the skills we had learned in the class. I immediately thought of something that happened to my family a few years ago. One summer we went on vacation for a few weeks and came back to the smell of death and a blood stained floor, needless to say it was a nightmare to cleanup and the freezer was not getting power. That event caused my dad to question if we should even buy the free ranged/grass fed beef (the good stuff) at all. This is the embodiment of my problem so I devised a device that could work on its own and notify whomever maybe checking on the house and at some point in the future, send a text to the owners phone in order to give quick feedback from the freezer. Overall, the device uses a multi-colored LED to let the people around the house know that something is wrong and eventually anyone who wants to receive a text about the meat starting to go bad.

Gathering Parts and Tools

IMG_1564.JPG

To complete this project, a builder will need a basic knowledge in soldering, Arduino IDE, and 3D Printing (optional). The project mainly consists of electronics off of Amazon and anything else is found easily at a local department store.

Components:

  • NodeMCU board (http://a.co/haoqMPw)
  • DS18B20 Temperature sensor with Waterproofing (http://a.co/ewfkmng)
  • Common Cathode RGB LED (https://www.sparkfun.com/products/9264)
  • Soap Box to be the Encloser ($1 at Walmart)
  • USB Power Supply (http://a.co/ccjaQHv)

The rest of these components were gathered by ordering a kit off of Amazon (http://a.co/gUIA75y) but you can probably find a cheaper kit around Amazon (I was trying to learn Arduino).

  • Electronic Breadboard
  • Jumper Wires
  • Three 270Ω Resistors
  • One 4.7kΩ resistor
  • Three+ header pins

Tools:

  • Computer
  • Micro-USB Cord
  • Soldering Kit
  • High-temp Hot Glue Gun
  • Drill with a 1/4 Drill Bit
  • 3D Printer with filament

At first I thought that I would power the board via an internal power supply but after playing with the idea I ended up going with the external USB power supply because it was easiest.

Putting the Electronics Together

Super Habbi(1).png
IMG_1532.JPG
IMG_1709.JPG
IMG_1566.JPG
IMG_1712.JPG

Picture 1 shows the layout of the electronics

Part 1:

  • Solder each of the wires coming from the temperature sensor onto its own header pin (Pictures 2&3)

Part 2: Temp. Sensor

  • Place the NodeMCU board on the edge of the breadboard (Pictures 4&5)
  • Use the jumper wires to connect the NodeMCU to the temp. sensor
    1. Place a yellow wire from pin 4 to a free row on the breadboard
    2. Take the 4.7kΩ resistor and connect it to the 3.3v line then place the other side of it in the row from the previous step
    3. Place the yellow wire from the temp. sensor and place it on that on that same row
    4. Place the Red wire from the temp. sensor on the 3.3v line and place the black wire on the ground line
    5. Connect the 3.3v pin on the NodeMCU to the line on the breadboard
    6. Connect the ground pin on the NodeMCU to the line on the breadboard

Part 3: LED

  • This tutorial was very helpful when it comes to wiring the LED (https://learn.sparkfun.com/tutorials/sik-experiment-guide-for-arduino---v32/experiment-3-driving-an-rgb-led). You just need to keep track of what pins you are putting each part of the LED on (for example, My Pins are D6 (red), D7 (green), and D8 (blue).

The Code

Getting started with NodeMCU (ESP8266 tutorial #1)
Screenshot (9).png
IMG_1718.JPG

The code that I use currently was largely based off of the DS18x20_Temperature Example from the OneWire Library.

Part 1: Getting Setup

The video shown above should give you a pretty good start on using the NodeMCU.

Part 2: My Code

As stated above I mostly used the code from the OneWire Library but I added two variables to the top of the file and added a part that reacts if the temperature has reached a certain threshold (Arduino code above). Also, sorry if the code is not clean, it was my first time coding with Arduino.

3D Printed Snowflake (Optional)

IMG_1655.JPG
IMG_1653.JPG
snowprint.jpg

I added a snowflake to hold the temp. sensor to help signify to the user where it should go. The snowflake that I used came from https://www.thingiverse.com/thing:2732146 and I just added a link (to give credit back) and a hole for the temperature sensor.

Downloads

Cutting and Gluing

IMG_1589.JPG
IMG_1590.JPG
IMG_1733.JPG
IMG_1736.JPG
  • I decided to send the temperature sensor off to the side so I drilled a 1/4 inch hole in the side for the temp. sensor to go out of. I also cut the edge off of where the Micro-USB cord comes in.
  • For the gluing part, I used a High-temp Hot Glue Gun and that worked well just make sure that you use enough glue. I glued the temperature sensor to the case and the snowflake (Pictures 4&5).

Testing

IMG_1725.JPG
IMG_1720.JPG
IMG_1565.JPG

I am still in college so I have used my mini-fridge for testing. The OneWire code also sends the temperature over the serial line (9600 Baud) so testing the temperature is made easy.

Future: Adding WIFI Code

IMG_1587.JPG

I plan to add WIFI capabilities to the code so that the Notifier can send texts.

This was my first build on Instructables so try and forgive the holes in it.