Gonzalo Galante Logo
Segment_03_Recordv1.2.0

Digital Thermometer with 7-Segment Display

Committed: Jan 4, 2026
Order_Index:03

Concept This project advances visual output by driving a complex 4-digit 7-segment display. It tackles the challenge of "Multiplexing"—fooling the human eye into seeing four steady numbers by rapidly switching them on and off, all while reading a sensor and performing calculations in the background.

The Tech Stack

  • Hardware: 4-Digit 7-Segment Display, LM35 Sensor.
  • Logic: Time-Division Multiplexing, Non-blocking Timing (millis()).
  • Libraries: SevSeg.
  • Objective: A standalone digital thermometer display.

How it Works The code manages two parallel tasks using non-blocking logic:

  1. The Sensor Task: Every 10ms, it wakes up to read the LM35 sensor, updating a moving average buffer to keep the temperature stable.
  2. The Display Task: The SevSeg library continuously refreshes the display at high frequency. It activates one digit at a time (switching fast enough that persistence of vision makes them all look "on").
  • Critical Detail: Standard delay() is banned here, as stopping the processor would cause the display to flicker or turn off.

AI Context 🤖 AI was instrumental in configuring the complex pin mapping for the display segments and implementing the non-blocking millis() timer logic, ensuring the display refresh rate wasn't interrupted by the sensor readings.

Status âś… Operational | Display is crisp, temperature is accurate.

ID_bgh660vg