Skip to content

This Arduino project automatically adjusts the speed of a DC motor (fan) based on ambient temperature using a TMP36 sensor. It includes visual (LEDs) and auditory (buzzer) alerts for specific temperature ranges.

Notifications You must be signed in to change notification settings

ahm-zahin/HeatGuardian-smart-temperature-controller

Repository files navigation

Temperature-Controlled Fan with Warning Indicators

This Arduino project automatically adjusts the speed of a DC motor (fan) based on ambient temperature using a TMP36 sensor. It includes visual (LEDs) and auditory (buzzer) alerts for specific temperature ranges.

πŸ”§ Features

  • πŸŒ€ Motor speed controlled using PWM based on temperature.
  • 🟒 Green LED for safe temperature (< 40Β°C).
  • πŸ”΄ Red LED for caution (40Β°C–79Β°C) and steady warning if > 79Β°C.
  • πŸ”Š Buzzer alarm at critical temperatures (> 79Β°C).
  • πŸ“Ÿ Serial monitor displays temperature and PWM values.

🧰 Components Used

Component Quantity
Arduino UNO 1
TMP36 Temperature Sensor 1
DC Motor (or Fan) 1
Green LED 1
Red LED 1
Buzzer 1
Breadboard + Jumper Wires + Resistors As needed

πŸ”Œ Pin Configuration

Arduino Pin Connected To
A3 TMP36 Output
6 Motor (via PWM)
4 Green LED
2 Red LED
3 Buzzer

🧠 How It Works

  • < 40Β°C : Green LED on, motor may run at low PWM, buzzer off.
  • 40–79Β°C : Red LED blinks, indicating caution. Motor speed increases with temperature.
  • > 79Β°C : Red LED stays on, buzzer sounds continuously to alert danger.

πŸ“ˆ Serial Output

Example output from Serial Monitor:

About

This Arduino project automatically adjusts the speed of a DC motor (fan) based on ambient temperature using a TMP36 sensor. It includes visual (LEDs) and auditory (buzzer) alerts for specific temperature ranges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages