This project demonstrates how to measure ambient temperature using a temperature sensor (LM35) and display the temperature value on a 7-segment display using an Arduino UNO in Tinkercad.
The LM35 sensor outputs an analog voltage proportional to the temperature, which the Arduino reads through its analog pin. The Arduino then processes this voltage to convert it into a temperature value (in degrees Celsius). This temperature is then broken down into digits and displayed using a single-digit or multi-digit 7-segment display (common cathode or common anode).
Components Used:
Arduino UNO
LM35 Temperature Sensor
7-Segment Display (1-digit or 4-digit)
Resistors (220Ω for display segments)
Breadboard and jumper wires
Working Principle:
The LM35 sensor provides an analog voltage where 10 mV = 1°C.
The Arduino reads this analog value using the analogRead() function.
The analog value is converted to temperature
The temperature is then split into individual digits (if needed) and sent to the 7-segment display.
If using a multi-digit display, Arduino uses multiplexing to show each digit sequentially at high speed to simulate a continuous display.
The 7-segment display will show the temperature in degrees Celsius.
For example, if the temperature is 28°C, the display shows 28.