Arduino UNO and ESP-01 Wi-Fi Controlled Dual Servo Motion Detection System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, two servos, a PIR sensor, an ESP-01 WiFi module, and a voltage regulator. The circuit is designed to control the servos and read data from the PIR sensor, with the ESP-01 module providing WiFi connectivity. The voltage regulator ensures that all components receive the appropriate voltage levels.
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
Servo (x2)
- Description: A servo motor for precise control of angular position.
- Pins: gnd, vcc, pulse
PIR Sensor
- Description: A passive infrared sensor for motion detection.
- Pins: VDD, SIG, GND
ESP-01
- Description: A WiFi module based on the ESP8266.
- Pins: GND, GPIO02, GPIO0, RX, VCC, RST, CH_PD, TX
Resistor (160 Ohms)
- Description: A resistor with a resistance of 160 Ohms.
- Pins: pin1, pin2
Resistor (330 Ohms)
- Description: A resistor with a resistance of 330 Ohms.
- Pins: pin1, pin2
Voltage Regulator 12V to 5V/3V
- Description: A voltage regulator to convert 12V input to 5V and 3V outputs.
- Pins: gnd, dc in1, dc in2, dc in3, v6 5v, v5 5v, v4 5v, v3 3v, v2 3v, v1 3v
Wiring Details
Arduino UNO
- D3: Not connected
- GND: Connected to Voltage Regulator (gnd)
- Vin: Connected to Voltage Regulator (v6 5v)
- D12: Connected to PIR Sensor (SIG)
- D11: Connected to Servo (pulse)
- D10: Connected to Servo (pulse)
- D2: Connected to ESP-01 (TX)
Servo (1)
- gnd: Connected to Voltage Regulator (gnd)
- vcc: Connected to Voltage Regulator (v4 5v)
- pulse: Connected to Arduino UNO (D11)
Servo (2)
- gnd: Connected to Voltage Regulator (gnd)
- vcc: Connected to Voltage Regulator (v4 5v)
- pulse: Connected to Arduino UNO (D10)
PIR Sensor
- VDD: Connected to Voltage Regulator (v5 5v)
- SIG: Connected to Arduino UNO (D12)
- GND: Connected to Voltage Regulator (gnd)
ESP-01
- GND: Connected to Voltage Regulator (gnd)
- RX: Connected to Resistor (pin2)
- VCC: Connected to Voltage Regulator (v1 3v)
- CH_PD: Connected to Voltage Regulator (v2 3v)
- TX: Connected to Arduino UNO (D2)
Resistor (160 Ohms)
- pin1: Connected to Resistor (330 Ohms) (pin2)
- pin2: Connected to ESP-01 (RX)
Resistor (330 Ohms)
- pin1: Connected to Resistor (160 Ohms) (pin2)
- pin2: Connected to ESP-01 (RX)
Voltage Regulator 12V to 5V/3V
- gnd: Connected to Servo (gnd), ESP-01 (GND), PIR Sensor (GND), Arduino UNO (GND)
- v4 5v: Connected to Servo (vcc)
- v6 5v: Connected to Arduino UNO (Vin)
- v5 5v: Connected to PIR Sensor (VDD)
- v2 3v: Connected to ESP-01 (CH_PD)
- v1 3v: Connected to ESP-01 (VCC)
Code Documentation
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)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.