Circuit Documentation
Summary
The circuit in question is designed to control a fan using a 5V relay, which is actuated by an Arduino UNO microcontroller. The system also includes a Bluetooth HC-06 module for wireless communication and a DHT11 sensor for measuring temperature and humidity. The relay enables or disables power to the fan, while the Arduino UNO serves as the central processing unit, interfacing with the Bluetooth module and the DHT11 sensor. The Bluetooth module allows for remote control and data transmission, and the DHT11 sensor provides environmental feedback to the Arduino.
Component List
5V Relay
- Description: A relay is an electrically operated switch that allows you to control a high-power circuit with a low-power signal.
- Pins:
- Normally Open (NO)
- Common terminal (COM)
- Normally Closed (NC)
- Input (In)
- Ground (GND)
- Voltage Supply (VCC)
Arduino UNO
- Description: The Arduino UNO is a microcontroller board based on the ATmega328P. It has digital input/output pins, analog inputs, a USB connection for programming, and power management features.
- Pins:
- Digital I/O Pins (D0-D13)
- Analog Input Pins (A0-A5)
- Power Pins (3.3V, 5V, GND, Vin)
- Communication Pins (IOREF, Reset, SCL, SDA, AREF)
Bluetooth HC-06
- Description: The HC-06 is a Bluetooth module that allows for wireless communication between devices. It can act as a serial (UART) bridge and is commonly used for short-range communication.
- Pins:
- Voltage Supply (VCC)
- Ground (GND)
- Transmit Data (TXD)
- Receive Data (RXD)
Fan
- Description: An electric fan powered by a 5V supply. It can be used for cooling or ventilation purposes.
- Pins:
- Ground (GND)
- Voltage Supply (5V)
DHT11
- Description: The DHT11 is a basic, low-cost digital temperature and humidity sensor that uses a capacitive humidity sensor and a thermistor to measure the surrounding air.
- Pins:
- Data (DATA)
- Ground (GND)
- Voltage Supply (VCC)
Wiring Details
5V Relay
- Normally Open (NO) connected to Fan (5V)
- Common terminal (COM) connected to 5V supply
- Input (In) controlled by Arduino UNO (D7)
- Ground (GND) connected to common ground
- Voltage Supply (VCC) connected to 5V supply
Arduino UNO
- Digital Pin D7 controls the 5V Relay (In)
- Digital Pin D8 connected to DHT11 (DATA)
- Digital Pin D0 connected to Bluetooth HC-06 (TXD)
- Digital Pin D1 connected to Bluetooth HC-06 (RXD)
- 5V supply powers the 5V Relay, Bluetooth HC-06, and DHT11
- Ground (GND) connected to common ground
Bluetooth HC-06
- Voltage Supply (VCC) connected to 5V supply
- Ground (GND) connected to common ground
- Transmit Data (TXD) connected to Arduino UNO (D0)
- Receive Data (RXD) connected to Arduino UNO (D1)
Fan
- Voltage Supply (5V) connected to 5V Relay (NO)
- Ground (GND) connected to common ground
DHT11
- Data (DATA) connected to Arduino UNO (D8)
- Ground (GND) connected to common ground
- Voltage Supply (VCC) connected to 5V supply
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not contain any functional code to control the relay, read from the DHT11 sensor, or communicate via the Bluetooth module. Additional code is required to implement the desired functionality.
