Introduction: DIY Display the Temperature on LCD Screen Using Arduino
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.
5V DC source
. • • 5V DC source.
LCD screen 16*2
10 Kiloohms Potentiometer
LM35 temperature sensor
Step 1: Prepare All the Required Components .
Step 2: 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
Step 3: Wire These Pins to the Anode of the Breadboard. (VCC and LED Pin the One Before the Final Pin + Resistor).
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.
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.
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.
Step 6: 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.
Step 7: 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.
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.