DIY Display the Temperature on LCD Screen Using Arduino

by Ziad_Tohamy in Circuits > Arduino

540 Views, 0 Favorites, 0 Comments

DIY Display the Temperature on LCD Screen Using Arduino

DIY Display the temperature on LCD screen using Arduino (NO ADS)

In this project, we are going to make a circuit using some components like Arduino, temperature sensor, etc. In this circuit the degree will be viewed continuously on the LCD, there is 100 milliseconds delay between the view of the new degree on the LCD and you can edit that time in the code, and when the temperature reaches a specific figure the light of the RGB LED will be changed to one of these colors red, green, blue, light blue, purple or yellow.

The wiring of the circuit will take approximately 30 minutes on average, so it is not hard to make one. And the coding will take approximately 10 minutes to finish it. For simulation your circuit you can use tinakercad to make sure that the circuit which you made is right. The temperature sensor will be responsible for sending the current temperature to the microcontroller, in this case, the microcontroller is an Arduino, the temperature sensor senses analog phenomena and it is the degree of the weather and it is analog then it that degree into voltages, because it is the language which the computers in general understand, and then in converts that analog voltages signals to digital singles because the microcontroller is digital and the weather is digital so we need something to convert that analog signal into a digital one to make the microcontroller be able to read it. The LCD will be responsible for viewing the temperature degree in both Celsius and Fahrenheit.

Supplies

Components:


Breadboard

Jumpers

Arduino Uno

5V DC source

4x resistor

RGB LED

. • • 5V DC source.

LCD screen 16*2

10 Kiloohms Potentiometer

LM35 temperature sensor

Prepare All the Required Components .

Wire These Pins to the Cathode of the Breadboard. (gnd, RW and LED). Note: Wire the LED Pin Which Is at the Edge of It and the One Next to It, Will Be Used Soon

3baf183a-4af0-42ff-bbe6-0a52907737d3.jpg

Wire These Pins to the Anode of the Breadboard. (VCC and LED Pin the One Before the Final Pin + Resistor).

e687e9c1-d0f8-4409-961e-fbe9636a7d8e.jpg

Important: please, done forget to put a resistor in *series connection * with the LED pin of the LED screen to not cause damage to the LED screen.

9970e12a-5e4f-4dcb-aa04-7521a7376f4c.jpg

Wire the RS pin to the “12” pin of the Arduino. Wire the RW pin to the “11” pin of the Arduino. Wire the DB4 pin to the “5” pin of the Arduino. Wire the DB5 pin to the “4” pin of the Arduino. Wire the DB6 pin to the “3” pin of the Arduino. Wire the DB7 pin to the “2” pin of the Arduino.

fe53d242-d63f-4360-b39c-ffde2db3ad3a.jpg

Wire the Red pin of the RGB LED to the “8” pin of the Arduino. Wire the Blue pin of the RGB LED to the “9” pin of the Arduino.

Wire the Green pin of the RGB LED to the “10” pin of the Arduino. Wire the cathode pin of the RGB LED to cathode pin of the breadboard. DON'T forget to put a resistor on each pin of the RGB led except the cathode pin.

Wire the First Pin of the Potentiometer to the Cathode of the Breadboard, Wire the Third Pin of the Potentiometer to the Anode of the Breadboard and Wire the Second Pin of the Potentiometer to the VD Pin of the LED Screen.

3c554f23-1259-4e79-98d4-bb1c65e386fa.jpg

Wire the Right Pin of the Temperature Sensor to the Cathode of the Breadboard, Wire the Left Pin to the Anode of the Breadboard and Wire the Middle Pin to A0 of the Arduino.

769b8bda-4fd8-419a-a072-83097d208c0b.jpg

ab683ccb-b0bf-4b94-b370-05e55324868c.jpg

Wire the 5V pin of the Arduino to the anode of the breadboard and wire the GND of the Arduino to the cathode of the breadboard.

Potentiometer to the cathode of the breadboard, wire the third pin of the Potentiometer to the anode of the breadboard and wire the second pin of the Potentiometer to the VD pin of the LED screen.

Tinkered Simulation

a circuit that can sense the temperature in the place and display it on an LCD screen

Arduino Source Code