Arduino UNO Controlled Multi-Color LED and Servo System with Bluetooth Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as resistors, LEDs, a 9V battery, an Arduino UNO, a Bluetooth module, servos, a buzzer, an LCD module, and a PIR sensor. The circuit is designed to interface with an Arduino UNO microcontroller, which controls the operation of the connected components. The document includes a component list, wiring details, and the embedded code used in the microcontroller.
Component List
Resistor
- Description: A passive electrical component that implements electrical resistance as a circuit element.
- Pins: pin1, pin2
- Properties:
- Resistance: 220 Ohms
LED: Two Pin (red)
- Description: A red light-emitting diode.
- Pins: cathode, anode
LED: Two Pin (white)
- Description: A white light-emitting diode.
- Pins: cathode, anode
LED: Two Pin (green)
- Description: A green light-emitting diode.
- Pins: cathode, anode
LED: Two Pin (blue)
- Description: A blue light-emitting diode.
- Pins: cathode, anode
9V Battery
- Description: A 9V battery used as a power source.
- Pins: -, +
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
HC-05 Bluetooth Module
- Description: A Bluetooth module used for wireless communication.
- Pins: Key, VCC, TXD, RXD, State, GND
Servo
- Description: A servo motor used for precise control of angular position.
- Pins: gnd, vcc, pulse
Buzzer
- Description: An audio signaling device.
- Pins: PIN, GND
LCM1602 IIC
- Description: A 16x2 LCD module with I2C interface.
- Pins: GND, VCC, SDA, SCL, D6, D7, A, K, VSS, VDD, V0, RS, D2, D3, D4, D5, RW, E, D0, D1, LED_A, LED_B
PIR Sensor
- Description: A passive infrared sensor used to detect motion.
- Pins: VDD, SIG, GND
Wiring Details
Arduino UNO
GND is connected to:
- Buzzer PIN
- LCM1602 IIC GND
- HC-05 Bluetooth Module GND
- Servo gnd (multiple)
- Resistor pin2 (multiple)
5V is connected to:
- LCM1602 IIC VCC
- HC-05 Bluetooth Module VCC
- Servo vcc (multiple)
D12 is connected to:
- LED: Two Pin (blue) anode
D4 is connected to:
- LED: Two Pin (white) anode
D11 is connected to:
- LED: Two Pin (green) anode
D2 is connected to:
- LED: Two Pin (red) anode
A4 is connected to:
- LCM1602 IIC SDA
A5 is connected to:
- LCM1602 IIC SCL
D13 is connected to:
- Servo pulse
D8 is connected to:
- Servo pulse
D7 is connected to:
- Buzzer GND
D5 is connected to:
- Servo pulse
D3 is connected to:
- Servo pulse
D1 is connected to:
- HC-05 Bluetooth Module RXD
D0 is connected to:
- HC-05 Bluetooth Module TXD
Resistor
pin1 is connected to:
- LED: Two Pin (white) cathode
- LED: Two Pin (green) cathode
- LED: Two Pin (red) cathode
- LED: Two Pin (blue) cathode
pin2 is connected to:
- Arduino UNO GND (multiple)
LED: Two Pin (red)
cathode is connected to:
- Resistor pin1
anode is connected to:
- Arduino UNO D2
LED: Two Pin (white)
cathode is connected to:
- Resistor pin1
anode is connected to:
- Arduino UNO D4
LED: Two Pin (green)
cathode is connected to:
- Resistor pin1
anode is connected to:
- Arduino UNO D11
LED: Two Pin (blue)
cathode is connected to:
- Resistor pin1
anode is connected to:
- Arduino UNO D12
HC-05 Bluetooth Module
GND is connected to:
- Arduino UNO GND
VCC is connected to:
- Arduino UNO 5V
RXD is connected to:
- Arduino UNO D1
TXD is connected to:
- Arduino UNO D0
Servo
gnd is connected to:
- Arduino UNO GND (multiple)
vcc is connected to:
- Arduino UNO 5V (multiple)
pulse is connected to:
- Arduino UNO D13
- Arduino UNO D8
- Arduino UNO D5
- Arduino UNO D3
Buzzer
PIN is connected to:
- Arduino UNO GND
GND is connected to:
- Arduino UNO D7
LCM1602 IIC
GND is connected to:
- Arduino UNO GND
VCC is connected to:
- Arduino UNO 5V
SDA is connected to:
- Arduino UNO A4
SCL is connected to:
- Arduino UNO A5
PIR Sensor
- VDD is not connected
- SIG is not connected
- GND is not connected
Code Documentation
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 used to initialize any settings or configurations, and the loop() function contains the main code that runs repeatedly. Currently, both functions are empty and can be filled with the desired logic for the circuit.