Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, an HC-05 Bluetooth module, a Micro servo 9G, two LEDs (blue and white), and two resistors. The circuit is designed to control the LEDs and the servo motor via Bluetooth communication.
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
HC-05 Bluetooth Module
- Description: A Bluetooth module for wireless communication.
- Pins: Key, VCC, GND, TXD, RXD, State
Micro servo 9G
- Description: A small servo motor for precise control of angular position.
- Pins: GND, +5V, PWM
Resistor (220 Ohms)
- Description: A resistor with a resistance of 220 Ohms.
- Pins: pin1, pin2
LED: Two Pin (blue)
- Description: A blue LED.
- Pins: cathode, anode
LED: Two Pin (white)
- Description: A white LED.
- Pins: cathode, anode
Wiring Details
Arduino UNO
- 5V: Connected to VCC of HC-05 Bluetooth Module and +5V of Micro servo 9G.
- GND: Connected to GND of HC-05 Bluetooth Module, GND of Micro servo 9G, cathode of blue LED, and cathode of white LED.
- D11: Connected to RXD of HC-05 Bluetooth Module.
- D10: Connected to TXD of HC-05 Bluetooth Module.
- D9: Connected to PWM of Micro servo 9G.
- D3: Connected to pin1 of a 220 Ohm resistor.
- D2: Connected to pin1 of another 220 Ohm resistor.
HC-05 Bluetooth Module
- VCC: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- RXD: Connected to D11 of Arduino UNO.
- TXD: Connected to D10 of Arduino UNO.
Micro servo 9G
- +5V: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- PWM: Connected to D9 of Arduino UNO.
Resistor (220 Ohms)
- First Resistor:
- pin1: Connected to D3 of Arduino UNO.
- pin2: Connected to anode of blue LED.
- Second Resistor:
- pin1: Connected to D2 of Arduino UNO.
- pin2: Connected to anode of white LED.
LED: Two Pin (blue)
- cathode: Connected to GND of Arduino UNO.
- anode: Connected to pin2 of the first 220 Ohm resistor.
LED: Two Pin (white)
- cathode: Connected to GND of Arduino UNO.
- anode: Connected to pin2 of the second 220 Ohm resistor.
Documented Code
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, and the loop() function contains the main code that runs repeatedly. You can add your specific logic to control the LEDs and servo motor based on Bluetooth commands received from the HC-05 module.
