Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with a Bluetooth HC-06 module, a Two Channel Relay, a Micro Servo 9G, an AC Bulb, an AC source, and a Fan. The Arduino UNO controls the relay channels, which in turn control the AC Bulb and Fan. The Bluetooth module allows for wireless communication, and the Micro Servo is used for precise control of mechanical movements.
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
Two Channel Relay 5V
- Description: A relay module that allows control of high voltage devices.
- Pins: VCC, IN2, IN1, GND, NC2, C2, NO2, NC1, C1, NO1
Bluetooth HC-06
- Description: A Bluetooth module for wireless communication.
- Pins: VCC, GND, TXD, RXD
AC Bulb
- Description: An AC-powered light bulb.
- Pins: P, N
AC Source
- Description: An AC power source.
- Pins: +, -
Micro Servo 9G
- Description: A small servo motor for precise control.
- Pins: GND, +5V, PWM
Fan
- Description: A small fan powered by 5V.
- Pins: GND, 5V
Wiring Details
Arduino UNO
- IOREF: Connected to VCC of Bluetooth HC-06
- 5V: Connected to +5V of Micro Servo 9G and VCC of Two Channel Relay 5V
- GND: Connected to GND of Two Channel Relay 5V, GND of Bluetooth HC-06, and GND of Micro Servo 9G
- D11: Connected to PWM of Micro Servo 9G
- D6: Connected to IN2 of Two Channel Relay 5V
- D5: Connected to IN1 of Two Channel Relay 5V
- D3: Connected to RXD of Bluetooth HC-06
- D2: Connected to TXD of Bluetooth HC-06
Two Channel Relay 5V
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- IN2: Connected to D6 of Arduino UNO
- IN1: Connected to D5 of Arduino UNO
- NC2: Connected to P of AC Bulb
- C2: Connected to + of AC Source
- C1: Connected to + of AC Source
- NC1: Connected to 5V of Fan
Bluetooth HC-06
- VCC: Connected to IOREF of Arduino UNO
- GND: Connected to GND of Arduino UNO
- TXD: Connected to D2 of Arduino UNO
- RXD: Connected to D3 of Arduino UNO
AC Bulb
- P: Connected to NC2 of Two Channel Relay 5V
- N: Connected to GND of Fan and - of AC Source
AC Source
- +: Connected to C2 and C1 of Two Channel Relay 5V
- -: Connected to N of AC Bulb and GND of Fan
Micro Servo 9G
- GND: Connected to GND of Arduino UNO
- +5V: Connected to 5V of Arduino UNO
- PWM: Connected to D11 of Arduino UNO
Fan
- 5V: Connected to NC1 of Two Channel Relay 5V
- GND: Connected to N of AC Bulb and - of AC Source
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:
}
Additional Documentation (documentation.txt)
