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.
- π 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.
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 |
Arduino Pin | Connected To |
---|---|
A3 | TMP36 Output |
6 | Motor (via PWM) |
4 | Green LED |
2 | Red LED |
3 | Buzzer |
- < 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.
Example output from Serial Monitor: