Comparison of Temperature Sensors
by SayantanM4 in Circuits > Sensors
6446 Views, 15 Favorites, 0 Comments
Comparison of Temperature Sensors
![DS18B20.jpg](/proxy/?url=https://content.instructables.com/FD7/EW4R/J86HU0XH/FD7EW4RJ86HU0XH.jpg&filename=DS18B20.jpg)
![DHT22-PinOut.png](/proxy/?url=https://content.instructables.com/F3S/07UC/J86HU0XQ/F3S07UCJ86HU0XQ.png&filename=DHT22-PinOut.png)
![temperature-hobbyists.jpg](/proxy/?url=https://content.instructables.com/FUT/SWOV/J8AGX4YC/FUTSWOVJ8AGX4YC.jpg&filename=temperature-hobbyists.jpg)
![lm35.jpg](/proxy/?url=https://content.instructables.com/FVE/OPAE/J86HU0XR/FVEOPAEJ86HU0XR.jpg&filename=lm35.jpg)
You are probably familiar with microcontrollers like Arduino,ESP,PIC etc. Now Sensor is a device that is used to get the information of the outer world with the help of electrical transducers. Any physical property of the environment can be converted to voltage or currents with those transducers and that change is fed into microcontrollers where necessary calculations are done to bring out standard values of that physical quantity/property. Examples LDR, Photodiode,PTC/NTC, etc. We will be here discussing about temperature sensors.
Now probably you are familiar with temperature sensors.Many temperature sensors like LM35,DHT 11/22, DS18B20, etc are comaptible with arduino and are very popular.So I here will be presenting a comparative study of DS18B20,LM35 and DHT22 using UNO as the brains of our organisations.
Parts Required
![lm35.jpg](/proxy/?url=https://content.instructables.com/FYR/TR14/J86HU393/FYRTR14J86HU393.jpg&filename=lm35.jpg)
1. Arduino UNO/Nano/Mega/promini
2. DHT22
3. LM35
4. DS18B20
5. 10K resistor
6. 4.7Kohm resistor
7. Wires and jumpers
Understanding the Basic Operation
![temp1.bmp](/proxy/?url=https://content.instructables.com/F3V/ALT2/J86HU0P0/F3VALT2J86HU0P0.bmp&filename=temp1.bmp)
![F08D2MZJ7UQVJ06.MEDIUM.jpg](/proxy/?url=https://content.instructables.com/F4H/31FE/J86HU1WZ/F4H31FEJ86HU1WZ.jpg&filename=F08D2MZJ7UQVJ06.MEDIUM.jpg)
![IMG_20171002_195315.jpg](/proxy/?url=https://content.instructables.com/FK2/JTAZ/J86HU02Y/FK2JTAZJ86HU02Y.jpg&filename=IMG_20171002_195315.jpg)
![IMG_20171002_195101.jpg](/proxy/?url=https://content.instructables.com/F5U/5IAM/J86HU02X/F5U5IAMJ86HU02X.jpg&filename=IMG_20171002_195101.jpg)
I have used namely DHT22,DS18B20 and LM35. You can try out any other temp sensor too.This is just a comparative study.
The DHT and LM35 connections are shown separately in the pics attached.For the DS18B20, check out the following link. http://www.hobbytronics.co.uk/ds18b20-arduino
Every detail is given there, you can check out the pdfs
https://datasheets.maximintegrated.com/en/ds/DS18B...
http://www.ti.com/lit/ds/symlink/lm35.pdf
https://www.sparkfun.com/datasheets/Sensors/Temper...
Connect them on a breadboard. After connecting it will look somehow as in the pic attached.
Uploading Code and Opening the Serial Monitor
![IMG_20171002_195047.jpg](/proxy/?url=https://content.instructables.com/FSI/DBGK/J86HU037/FSIDBGKJ86HU037.jpg&filename=IMG_20171002_195047.jpg)
![tsf.jpg](/proxy/?url=https://content.instructables.com/FYP/3TYI/J86HU02O/FYP3TYIJ86HU02O.jpg&filename=tsf.jpg)
Now upload the code given here and open the serial monitor and observe. You can find 3 columns with the 3 devices and the temperatures measured by them. Now bring some ice and fire near it successively and observe the variations. Keep it as your homework. If the temperatures are not showing, check the connections again, also remove power immediately if temp are not showing (the ICs become hot if not connected properly).So everything is ready now,. You can even use a SD Card module for storing the temperatures and can even bring out a chart in excel. You can watch this too
Please comment here for any problems.