Arduino UNO-Based Smart Fan Controller with DHT11 Sensor and 5V Relay
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, a DHT11 temperature and humidity sensor, a 5V relay, a 12V fan, and a 220V power source. The Arduino UNO controls the relay, which in turn controls the fan. The DHT11 sensor provides temperature and humidity data to the Arduino.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
DHT11
- Description: A temperature and humidity sensor.
- Pins: DATA, GND, VCC
5V Relay
- Description: An electromechanical relay that operates at 5V.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
40 Fan 12V
- Description: A 12V fan.
- Pins: +12V, -12V
Power 220V
- Description: A 220V power source.
- Pins: hot wire, neutral wire
Wiring Details
Arduino UNO
- 5V: Connected to VCC of the 5V relay and DHT11.
- GND: Connected to GND of the 5V relay and DHT11.
- D7: Connected to In of the 5V relay.
- D6: Connected to DATA of the DHT11.
DHT11
- VCC: Connected to 5V of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
- DATA: Connected to D6 of the Arduino UNO.
5V Relay
- VCC: Connected to 5V of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
- In: Connected to D7 of the Arduino UNO.
- Normally Open: Connected to +12V of the 12V fan.
- Common terminal: Connected to hot wire of the 220V power source.
40 Fan 12V
- +12V: Connected to Normally Open of the 5V relay.
- -12V: Connected to neutral wire of the 220V power source.
Power 220V
- hot wire: Connected to Common terminal of the 5V relay.
- neutral wire: Connected to -12V of the 12V fan.
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components, and the loop() function is where you place the main logic that runs repeatedly.
Additional Documentation
// This file is intended for additional documentation purposes.
This section is reserved for any additional documentation that may be required for the project.