Introduction to TemperaMug

by ejremoroza in Circuits > Arduino

460 Views, 1 Favorites, 0 Comments

Introduction to TemperaMug

W_rtp66MVQr3l2gDfAQjWp9j2AuChJaTjqwMZjJQCEE.jpeg

I like coffee and other hot beverages, like tea. So, creating a mug that detects temperature started off as a good idea. I would like to thank Matthew (I don't know his last name, sorry), Chris Whitmire, and of course, Zane Cochran for helping me with this project.

Preparations

fUDYWO4KXaTOa9qkIrKvlJBF3EkU2UxpAWAnqgNxmxw.jpeg

Soldering iron

Helping Hand

Soldering material

3 330 Ohm resistors

Red, Green, and Blue Wires

There are more materials on the way, but those are some of the few that would help. We will need to solder the three resistors, one to each wire.

Getting It All Together

HtxB_pnIexZ1L9wihCYhFGO7l-ZryDy7llYUdu9vK8s.jpeg

mug

temperature sensor

Arduino board

Arduino program

proper USB cord

soldered wires

There are different proper ways of connecting the wires on the breadboard. It's important to be able to know which ones connect horizontally and vertically.

Transferring to Something More Compact

MPAcOGdxB9bflqF_ZErjEKx-llUqzB77HMoDW62dPrA.jpeg

A smaller breadbaord

Pro-Mini

pre-programmed temperature sensor

I transferred the connected wires to a smaller Arduino breadboard. I also connected a temperature sensor courtesy of Chris. This smaller breadboard demonstrates for more portability of the mug.

Displaying Information

pYIL6F3qvoIzYByDMCn30USE0yhWizWkvn5wWsHY7LE.jpeg

Arduino application

USB cord

Matthew helped me out with the process of coding on the Arduino application. It was quite simple. I just pulled up one of the sample code scripts and entered several integer variables and - Serial.print(" Hello World "); - variables. We managed to read this information by using the Serial Monitor option.

LED Connection

OHFh3FH7SanysKSekB0m9a3dW7GhNG_5phHZEku88q8.jpeg

A functional RGB LED

Code to enter in Arduino application

I connected the RGB LED to the breadboard in a meticulous manner - plug in the longest wire first, otherwise the RGB LED will break.

Typing in the Code

Otvx0gHdCDBshPI755pAS0CFBBNjcfw_BPgYXpq8kKY.jpeg

Once again, you'll need the Arduino application.

I integrated the code for the RGB LED in the Arduino document. I had to make some changes because the initial code suggested that the RGB would turn red when the substance reaches a certain temperature, not when it would feel hot to the user.

Shiny

TcPqytJ1yYWJ4LNfQuCh3GRN2pyjf-kVP2DhtxmgSbg.jpeg

It works!

Transferring to the Smaller Breadboard

sEvt0WOwvVEBzAcqBiUoRNwjNQfhZZ7crXZelZ1JX6g.jpeg

Now all I had to do was transfer the rest of the wiring and RGB-LED to the smaller breadboard and the Pro-Mini. I had to remove the soldering and resistors because it didn't respond to the smaller breadboard as well as it did to the larger breadboard.

And There You Have It!

W_rtp66MVQr3l2gDfAQjWp9j2AuChJaTjqwMZjJQCEE.jpeg