microcontroller-based system to display temperature, trigger alarms, and indicate temperature ranges using LEDs and 4Digit Seven Segment display.
This project involves designing a microcontroller-based temperature monitoring system that displays temperature on a 7-segment display, triggers alarms at specified thresholds, and indicates temperature ranges using LEDs. The system will also support switching between Celsius and Fahrenheit displays and toggle between temperature display and range indication modes.
- Microcontroller (ATmega328p ic)
- 7-Segment Display
- Push Buttons (5)
- LEDs (5 for temperature indication, 1 for alarm)
- Resistors
- Breadboard and jumper wires
- Increment and Decrement Temperature: Use two push buttons to simulate the increment and decrement of the temperature.
- Display Temperature: The current temperature is displayed on a 7-segment display. The display alternates between Celsius and Fahrenheit.
- Threshold Temperature: An alarm is triggered when the temperature exceeds 40°C.
- Alarm Signal: A separate LED blinks to signal the alarm.
- Alarm Reset: A push button is used to reset or acknowledge the alarm.
- Alarm Functionality: The alarm works in both display modes.
- Temperature Ranges and LEDs:
- LED 1: Cold (below 15°C)
- LED 2: Normal (15°C to 25°C)
- LED 3: Warmth (26°C to 35°C)
- LED 4: Hot (above 35°C)
- LED Brightness: The brightness of the LEDs changes within the specified temperature ranges:
- Increase brightness of LED 1 in 0-15°C range.
- Increase brightness of LED 2 in 16-25°C range.
- Increase brightness of LED 3 in 26-35°C range.
- Increase brightness of LED 4 in 36-40°C range.
- Blink the alarm LED when the temperature is above 40°C.
- Push Button: A push button is used to switch between Celsius and Fahrenheit display on the 7-segment display.
- Conversion Logic: The system includes logic to correctly convert and display temperatures in both units.
- Mode Toggle: A push button toggles between different display modes:
- Mode 1: Display the current temperature on the 7-segment display.
- Mode 2: Show the temperature range indication using the LEDs.
- Button Press: Each press of the button switches to the next mode.