This embedded system automatically controls a DC fan based on ambient temperature using the AT89S52 microcontroller, ADC0804, and LM35 temperature sensor.
When the temperature exceeds 29Β°C, the fan turns ON automatically; otherwise, it remains OFF.
- AT89S52 microcontroller
- ADC0804 (Analog to Digital Converter)
- LM35 temperature sensor
- 16x2 LCD display
- BC547 transistor (fan driver)
- DC fan, resistors, capacitors, and 10k potentiometer
- Keil Β΅Vision IDE β for Embedded C code
- Proteus Design Suite β for circuit simulation and testing
When Temperature > Threshold (Fan ON):

When Temperature < Threshold (Fan OFF):

- LM35 senses ambient temperature and outputs an analog voltage.
- ADC0804 converts the analog voltage into a digital signal.
- AT89S52 processes the data and determines whether to activate the fan.
- Temperature and fan status are displayed on the LCD.
This project is licensed under the MIT License. See the LICENSE file for more details.
Sreyas Kishore