Arduino Micro-Controlled Temperature-Activated Relay with Bluetooth Interface
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed to interface an Arduino Micro with a temperature sensor (LM35), a Bluetooth module (HC-05), a 12V single-channel relay, and a 220V fan. The circuit includes a power transformer and a bridge rectifier to convert AC supply to DC, and a 7805 voltage regulator to provide a stable 5V supply to the components. The Arduino Micro is programmed to interact with the HC-05 Bluetooth module for wireless communication and to read temperature data from the LM35 sensor. The relay is used to control the 220V fan based on the temperature readings or commands received via Bluetooth.
Component List
Arduino Micro (Rev3)
- Microcontroller board based on the ATmega32U4
- Features digital I/O pins, analog inputs, a crystal oscillator, a micro USB connection, an ICSP header, and a reset button
Temperature Sensor (LM35)
- Precision integrated-circuit temperature sensor
- Linear voltage output proportional to the Celsius temperature
12V Single Channel Relay
- Electromechanical switch with an activation coil rated at 12V
- Features Normally Open (NO), Normally Closed (NC), and Common (COM) terminals
Power Transformer
- Device that transfers electrical energy between two or more circuits through electromagnetic induction
- Designed for stepping down the AC supply voltage to a lower voltage
Bridge Rectifier
- An arrangement of diodes in a bridge circuit configuration that provides the same polarity of output for either polarity of input
- Used to convert AC input to DC output
Electrolytic Capacitor
- A capacitor with a capacitance value of 1 microfarad
- Used for filtering and smoothing the rectified DC voltage
7805 Voltage Regulator
- A fixed output voltage regulator that provides a regulated 5V output
- Features input, ground, and output pins
AC Supply
- The primary source of power for the circuit
- Provides alternating current (AC) voltage
220V Fan
- An electric fan designed to operate at 220V AC
- Used for cooling purposes
HC-05 Bluetooth Module
- A wireless communication module that allows for Bluetooth connectivity
- Features pins for enabling, power supply, ground, transmit, and receive functions
Wiring Details
Arduino Micro (Rev3)
D1/TXconnected to HC-05RXDD0/RXconnected to HC-05TXDGNDconnected to the common ground netD3/SCLconnected to RelayIN5Vconnected to the 5V net supplying power to RelayVCC, HC-05VCC, 7805Vout, and LM35+VsA1connected to LM35Vout
Temperature Sensor (LM35)
+Vsconnected to the 5V netVoutconnected to Arduino MicroA1GNDconnected to the common ground net
12V Single Channel Relay
GNDconnected to the common ground netINconnected to Arduino MicroD3/SCLVCCconnected to the 5V netCOMconnected to Power Transformer2 - PrimaryNOconnected to 220V FanL
Power Transformer
1 - Primaryconnected to AC Supply+ve2 - Primaryconnected to RelayCOM3 - Secondaryconnected to Bridge RectifierSource_in-4 - Secondaryconnected to Bridge Rectifiersource_in+
Bridge Rectifier
Source_in-connected to Power Transformer3 - Secondarysource_in+connected to Power Transformer4 - Secondarysource_out-connected to the common ground netsource_out+connected to the positive voltage net
Electrolytic Capacitor
-connected to the common ground net+connected to the positive voltage net
7805 Voltage Regulator
Vinconnected to the positive voltage netGndconnected to the common ground netVoutconnected to the 5V net
AC Supply
+veconnected to Power Transformer1 - Primary-veconnected to RelayCOM
220V Fan
Lconnected to RelayNONconnected to Power Transformer1 - Primary
HC-05 Bluetooth Module
VCCconnected to the 5V netGNDconnected to the common ground netTXDconnected to Arduino MicroD0/RXRXDconnected to Arduino MicroD1/TX
Documented Code
Arduino Micro (Rev3) - sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino Micro (Rev3) - documentation.txt
No additional documentation provided for the code.