DIY Hot Beverage Monitor - Using the DS18B20 and Arduino Nano

by Peder Ward in Circuits > Arduino

8186 Views, 171 Favorites, 0 Comments

DIY Hot Beverage Monitor - Using the DS18B20 and Arduino Nano

13106805_10153728376483668_1064050990_o.jpg
13105827_10153738923353668_2096310288_o.jpg
13161255_10153738927093668_1571633066_o.jpg

My girlfriend always have a problem that she burns her tongue when she taste hot drinks. Then I started thinking, maybe I could create a device that prevents her burning her tongue, so she can drink her tea and it always have the perfect and wanted temperature.

Two things I wanted to learn about in this project was how I could use the temp sensor DS18B20 with Arduino and how I could make a easy battery function with a batterypack on Arduino.

Here is how it works!

Red light - to warm

Green light - prefect

Blue light - not connected

The project may not be something everybody want to make. But I want to show you what I made. Therefore I make my project as an Instructable so you can see my progress and see how I was thinking trough the project.

Check the next step to see how i made it.

Again, sorry for my bad English and I hope you like my project.

Parts

Parts.jpg

Here are the parts i uset to complete this project

9x Small magnets

1x Arduino Nano

1x Batterypack

1x Temp sensor

1x 4,7k resistor

4x RGB LED

1x Button

3mm steel plate

Wood

Acryl plate

Wire

Screws

Leg pads

Brown paint


Designing and Making the Device Housing

Spill inn.JPG
20160331_181928.jpg
20160331_190027.jpg
20160402_162447.jpg
20160331_173628.jpg

The first thing I started with was designing. I designed the device in Google Sketchup. First I started making two circles of wood there one circle was hole on the inside. Outer diameter 10cm, inner diameter 8cm. Thickness of the wood was about 1cm. Then I made a ring like the one wood ring, with hole inseid. Then I stacked these up on each other and got a round box without a bottom. To make a bottom I cut a steel plate to a circle so that it fits with the other circles.

After that I used wood glue and super glue to the layers together except the steel plate.

Electrical Parts

20160402_171119.jpg
13091616_10153728405883668_1370553492_o.jpg
20160102_180026.jpg
20160402_171138.jpg
20160402_215411.jpg
20160402_223841.jpg
20160403_141555.jpg
20160403_141600.jpg
20160403_141130.jpg
20160403_144544.jpg

This box is really very simple, made with some common electronic parts.

The battery box is an old powerbank I found lying around. I opened the cover and used the battery and circuit board.

I glued 4 RGB light inside the box that will alert about the temperature in the cup.

I add a simple button to turn on the device. It is connected between the battery and the Arduino.

I removed the USB connector on the circuit board for the batterypack and soldered 5v + and - to Arduino pin Vin + and Gnd-.

For easily charged up device, I drilled a hole in the steel plate so that the micro USB port on the circuit board to the battery can stick out there. Then I easily can charge the device with mobile charger. Also drilled a hole to the button.

See wiring diagram.

Connect Cup and Device

20160102_151430.jpg
20160104_164042.jpg
13113096_10153728323443668_1826117673_o.jpg
20160331_210032.jpg
20160331_191525.jpg
20160331_194101.jpg
20160331_194553.jpg
20160331_210036.jpg
20160402_214902.jpg

To communicate with the box I had a big problem figure out a solution. Eventually I found out that magnets were the solution.

To make the cup, I took a cup and drilled a hole in the bottom, then I took a 3 wire temperature sensor and threaded through and glued to the bottom. Then I made 3 circles in different size and soldered the 3 wires from temp sensor to the rings. To get the signals in the cup I mounted 9 magnets. I drilled holes for these on top of the unit. These holes are lain up against the rings on the cup. The one magnet in the middle is + on temp sensor, the 4 magnets in around the middle is - and the 4 outer magnets are the signal. Using food graded hot glue under the cup.

It's hard to explain how I did it but i hope you understand when you see the pictures.

Arduino Code

last ned.jpg

I'm no expert in programming. The code is very simple. It reads the temperature of the cup and based on what the tempertature is use different colour to alert through Arduino and RGB lights.

Blue light means that the cup is not connected. A green light indicates that the beverage is ready to drink. A red light indicates that the beverage is too hot and you have to wait. I myself have the ability to adjust the temperature I want in the program.

Last Touch

13112520_10153728437793668_1171972221_o.jpg
13078061_10153728323388668_967935152_o.jpg
20160402_214859.jpg
57210f3067400c5ccd000db6.jpeg
13078387_10153728323318668_180697957_o.jpg
13120570_10153728437843668_1076285876_o.jpg
13112631_10153728437818668_1939840363_o.jpg

The last thing I did was to paint device in a brownish paint. To add the bottom plate I glued four nuts inside the device so I could use screws to add the bottom. To the end I only used two because it wasn't space for all four. To get the box steady I put on four chair leg pads.

Hope you liked my project.

Make sure to vote in the contest if you want !

Thanks

Peder W