Arduino Thermometer
![Untitled.jpg](/proxy/?url=https://content.instructables.com/FMA/XHMK/I99R6SMR/FMAXHMKI99R6SMR.jpg&filename=Untitled.jpg)
![DSC00812.JPG](/proxy/?url=https://content.instructables.com/F6P/6YAH/I99R6RT0/F6P6YAHI99R6RT0.jpg&filename=DSC00812.JPG)
Its hot here in Los Angeles! Besides the massive drought California is in, Its not as cool around here lately. I wanted to build something to see just how hot it really was, and here it is!
Read this instructable and Ill teach how you can turn just a few components you have into an accurate mini desktop thermometer!
I hope you enjoy the project and vote for it for the contests!
Lets Build It!
You Will Need...
![DSC00791.JPG](/proxy/?url=https://content.instructables.com/FN7/L4MP/I99R6RW8/FN7L4MPI99R6RW8.jpg&filename=DSC00791.JPG)
![DSC00792.JPG](/proxy/?url=https://content.instructables.com/FQC/AH2D/I99R6RZB/FQCAH2DI99R6RZB.jpg&filename=DSC00792.JPG)
![DSC00793.JPG](/proxy/?url=https://content.instructables.com/FLB/LLUW/I99R6RZC/FLBLLUWI99R6RZC.jpg&filename=DSC00793.JPG)
![DSC00794.JPG](/proxy/?url=https://content.instructables.com/F36/1VHT/I99R6S10/F361VHTI99R6S10.jpg&filename=DSC00794.JPG)
![DSC00796.JPG](/proxy/?url=https://content.instructables.com/FU1/RN7E/I99R6S2I/FU1RN7EI99R6S2I.jpg&filename=DSC00796.JPG)
![DSC00797.JPG](/proxy/?url=https://content.instructables.com/FGQ/YBCO/I99R6S3Y/FGQYBCOI99R6S3Y.jpg&filename=DSC00797.JPG)
![DSC00798.JPG](/proxy/?url=https://content.instructables.com/F0M/XZFH/I99R6S3Z/F0MXZFHI99R6S3Z.jpg&filename=DSC00798.JPG)
If you would like to make this project, you will need:
- LM35 sensor (Already had)
- Plastic Tupperware (Free)
- Breadboard (Already had)
- 9v Battery and Arduino 9v clip (Already had)
- LCD 16x2 (Already had)
- Arduino Uno (Already Had)
- Wires! (Already Had)
As you can see, you dont need much. In fact I had these pieces lying around my house so this was FREE!
Test the LCD
![DSC00795.JPG](/proxy/?url=https://content.instructables.com/FD1/WGWW/I99R6S2G/FD1WGWWI99R6S2G.jpg&filename=DSC00795.JPG)
I wanted to test and see if my LCD still worked. It still worked! Heres how I wired it:
LCD Arduino
1...... GDN
2...... 5V
3...... GDN
4...... PIN 8
5...... GDN
6...... PIN 9
7...... –
8....... –
9...... –
10...... –
11...... PIN 4
12......PIN 5
13......PIN 6
14...... PIN 7
15...... 5V
16...... GDN
Add in the LM35!
![DSC00799.JPG](/proxy/?url=https://content.instructables.com/F4P/GMHQ/I99R6S5F/F4PGMHQI99R6S5F.jpg&filename=DSC00799.JPG)
Take the LM35 and add it in! Heres a helpful guide:
(Ignore the periods)
____________
[ LM35 (Front) ]
[...................... ]
[___________]
I............I...........I
I............I...........I
I............I.......... I
(5v)....(A0).....(GDN)
Check Your Wiring
![Untitled Sketch_bb.jpg](/proxy/?url=https://content.instructables.com/F6J/C444/I99R7956/F6JC444I99R7956.jpg&filename=Untitled Sketch_bb.jpg)
Make sure to double check your wiring!
We don't want any mistakes!
Heres a schematic I used for this project
Code!
![DSC00803.JPG](/proxy/?url=https://content.instructables.com/F46/INH2/I99R6SA5/F46INH2I99R6SA5.jpg&filename=DSC00803.JPG)
![DSC00801.JPG](/proxy/?url=https://content.instructables.com/FA3/J5KC/I99R6S6Z/FA3J5KCI99R6S6Z.jpg&filename=DSC00801.JPG)
![DSC00800.JPG](/proxy/?url=https://content.instructables.com/FII/JGHH/I99R6S5J/FIIJGHHI99R6S5J.jpg&filename=DSC00800.JPG)
![DSC00802.JPG](/proxy/?url=https://content.instructables.com/FSQ/GD8N/I99R6S70/FSQGD8NI99R6S70.jpg&filename=DSC00802.JPG)
Now its time to code!
Here the code! (Please If you see anything wrong tell me)
//---------------------------------------------------------------- // Program: LCD_temperature // By: Constructed https://www.youtube.com/channel/UCD4TpqX_CJW0d4YoLLaaHYA //---------------------------------------------------------------- #include // Arduino pins used for LCD LiquidCrystal lcd(8,9,4,5,6,7); void setup() { lcd.begin(16, 2); } void loop() { float temperature = 0.0; // stores the calculated temperature int sample; // counts through ADC samples float ten_samples = 0.0; // stores sum of 10 samples for (sample = 0; sample < 10; sample++) { // convert A0 value to temperature temperature = ((float)analogRead(A0) * 5.0 / 1024.0) - 0.5; temperature = temperature / 0.01; // sample every 0.1 seconds delay(100); // sum of all samples ten_samples = ten_samples + temperature; } // get the average value of 10 temperatures temperature = ten_samples / 10.0; // display the temperature on the LCD lcd.setCursor(0, 0); lcd.print("Temperature:"); lcd.setCursor (0,1); lcd.print (temperature); lcd.print((char)223); lcd.print(" F "); ten_samples = 0.0; }
Downloads
Measure LCD
![DSC00804.JPG](/proxy/?url=https://content.instructables.com/FUO/H8K5/I99R6SA6/FUOH8K5I99R6SA6.jpg&filename=DSC00804.JPG)
![DSC00805.JPG](/proxy/?url=https://content.instructables.com/FWB/Q36P/I99R6SD9/FWBQ36PI99R6SD9.jpg&filename=DSC00805.JPG)
![DSC00806.JPG](/proxy/?url=https://content.instructables.com/FNV/EEYL/I99R6SDB/FNVEEYLI99R6SDB.jpg&filename=DSC00806.JPG)
![DSC00807.JPG](/proxy/?url=https://content.instructables.com/FPV/UGW7/I99R6SGI/FPVUGW7I99R6SGI.jpg&filename=DSC00807.JPG)
Now its time to make the case
Measure the LCD protruding sceen and cut a hole just big enough to squeeze over the LCD.
Your Done!
![DSC00808.JPG](/proxy/?url=https://content.instructables.com/FBK/92WM/I99R6SGJ/FBK92WMI99R6SGJ.jpg&filename=DSC00808.JPG)
![DSC00809.JPG](/proxy/?url=https://content.instructables.com/FVH/PZCM/I99R6SJM/FVHPZCMI99R6SJM.jpg&filename=DSC00809.JPG)
![DSC00810.JPG](/proxy/?url=https://content.instructables.com/F7Y/QDZJ/I99R6SJN/F7YQDZJI99R6SJN.jpg&filename=DSC00810.JPG)
![DSC00811.JPG](/proxy/?url=https://content.instructables.com/FMZ/E3I5/I99R6SJO/FMZE3I5I99R6SJO.jpg&filename=DSC00811.JPG)
Saftly place all the electronics in the plastic container and snap the lid on!
Your DONE!
Place your thermometer near your bed like I did, whenever I wake up, I can see how hot it is!
Please Like Comment And Subscribe for more!