Arduino UNO Controlled Environment Monitoring System with I2C and Transistor Fan Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed to interface an Arduino UNO with various components including a DHT11 temperature and humidity sensor, an I2C module, a BC547 transistor to control a 12V fan, and a 7805 voltage regulator to step down the voltage from a 12V power supply. The Arduino UNO serves as the central processing unit, reading sensor data and controlling the fan's operation. The 7805 voltage regulator ensures that the Arduino and I2C module receive a stable 5V supply. The BC547 transistor acts as a switch to control the fan based on the logic from the Arduino.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- Provides I/O pins for interfacing with various components
BC547 Transistor
- NPN Bipolar Junction Transistor (BJT)
- Used for switching or amplifying electronic signals
7805 Voltage Regulator
- Voltage regulator IC
- Outputs a stable 5V from an input voltage range of 7V to 35V
Power Jack
- Connector for the power supply
- Provides power to the circuit
12V Power Supply
- Provides the 12V input to the circuit
- Powers the 7805 voltage regulator and the 12V fan
40mm Fan 12V
- 12V cooling fan
- Used for cooling purposes in the circuit
I2C Module
- Interface module for I2C communication
- Allows for serial communication between the Arduino and compatible devices
DHT11
- Temperature and humidity sensor
- Provides ambient temperature and humidity readings
Resistor (220 Ohms)
- Passive electrical component
- Used to limit current or divide voltages in the circuit
Wiring Details
Arduino UNO
5Vconnected to DHT11VCCGNDconnected to DHT11GND, I2C moduleGND, and BC547 TransistorEmitterSCLconnected to I2C moduleSCLSDAconnected to I2C moduleSDAD5connected to one end of the Resistor (220 Ohms)D2connected to DHT11DATA
BC547 Transistor
Collectorconnected to 40mm Fan 12V-12VBaseconnected to the other end of the Resistor (220 Ohms)Emitterconnected to common ground
7805 Voltage Regulator
Vinconnected to 12V Power Supply+and 40mm Fan 12V+12VGndconnected to Power JackNEGATIF, 12V Power Supply-, and common groundVoutconnected to Power JackPOSITIFand I2C moduleVCC
Power Jack
POSITIFconnected to 7805VoutNEGATIFconnected to common ground
12V Power Supply
+connected to 7805Vinand 40mm Fan 12V+12V-connected to common ground
40mm Fan 12V
+12Vconnected to 12V Power Supply+-12Vconnected to BC547 TransistorCollector
I2C Module
SCLconnected to Arduino UNOSCLSDAconnected to Arduino UNOSDAVCCconnected to 7805VoutGNDconnected to common ground
DHT11
DATAconnected to Arduino UNOD2GNDconnected to common groundVCCconnected to Arduino UNO5V
Resistor (220 Ohms)
- One end connected to Arduino UNO
D5 - The other end connected to BC547 Transistor
Base
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 interact with the components. It needs to be populated with the necessary initialization and control logic for the DHT11 sensor and the fan control via the BC547 transistor.