Blue Mountain
Overview:
When your drinking a coors light it is easy to tell whether it’s the right temperature (see link https://www.youtube.com/watch?v=cv2a-Yzzr_o&list=WL&index=2 ), but if your drinking literally anything else there is no way to tell. That is why I set out to find a cheap and easy way to tell the temperature of your drink without playing russian roulette with your tongue. My device makes it as simple as possible, you just put your drink in the holder, press a button and like magic the temperature sensor will take reading and the servo will rotate revealing a red light for cold enough and a green for too hot.
Base
Cut a 18 in x 24in piece of cardboard
Drink Holder
Cut four 2.5 in x 2 in pieces of cardboard
In the middle of one piece cut an opening for your temperature sensor
Glue the four pieces of cardboard to the base (on the corner about half a cm in) longside down to form a square holder
Mountain/Cover
Make a triangle that is 16 in (length) x 6 in (height)
3 in in cut out another triangle in the shaping it like 2 mountains similar to the coors light can
Cut 4 small triangles .5 in x .5 in to use as supports
Cut on .5 in x 1 in square
Glut to the base half an in behind the holder so .5 in are covered on one side
Glue the four triangles to the cover on the back side to form supports, then glue the square to the rectangle and case from the otherside as a support
Cut another rectangle and glue it at the taller peak to use as a light holder
Cut two circles out 5 in up and in the middle of the taller peak
Downloads
Covering Case
Cut a 3 in diameter circle out of cardboard and trim the sides so it can rotate on the face of the backside of the cover in between the lights and holes.
Downloads
Stand/ Servo
Glue cardboard squares together 3 in high and glue the servo to the top.
Downloads
Final Assembly
Glue the covering case to the servo arm and attach it to the servo.
Glue the servo to the board so the middle of the cover case is skimming the back of the mountain and it is covering both of the holes.
Put the lights in the back holder so they are lined with the holes.
Place Arduino, the breadboard, and battery behind the holding case
Circuit Assembly
See Circuit diagram
Plug the 4 aa battery into the breadboard and the temperature sensor power to the 5 v arduino
Ardiuino Code
// Lines 3 - 10 assign my pin numbers for my hot light (red), my cold light
// (blue), and my servo (while importing the needed code)
// lines 12 - 14 set my base integer values.
// 20-27 is my actual set up for my lights and servo
// 30 - 33 is my sensor setup
// 33- 36 here my temperature sensor is defined and my temperature in celsius
// value is determined
// 41- 53 Here my is where my sensor detects whether it is hot or cold
// and moves the servo while turning on the proper light if the button is pushed
// 57 - just sets the base position of the servo while it is not being
// tested.
#include <Servo.h>
int hot=11;
int cold=13;
int servo =12;
Servo myServo;
float sensor=0;
float celsius=0;
float voltage=0;
void setup()
{
pinMode(hot,OUTPUT);
pinMode(cold,OUTPUT);
myServo.attach(servo);
Serial.begin(9600);
myServo.write(0);
}
void loop()
{
sensor=analogRead(0);
voltage=sensor*5000/1024;
voltage=voltage-500;
celsius=voltage/10;
if(digitalRead(8) == HIGH){
if(celsius>= 10)
{
digitalWrite(hot,HIGH);
digitalWrite(hot,LOW);
myServo.write(45);
}
else{
digitalWrite(cold,HIGH);
digitalWrite(cold,LOW);
myServo.write(135);
}
}
else{
myServo.write(90);
}
}
Operating Instructions and Demo
To start the spinning case is set to the home position, Just press the button on the breadboard and the temperature sensor should take a measure and the cover should rotate revealing the red light for cool, and green for hot. Once the button is released it should return to the home position.