Arduino UNO-Based Smart Light Control with IR Sensor and Servo
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, a servo motor, an IR sensor, a relay, an LED light strip, a 12V battery, and a buzzer. The circuit is designed to control various components using the Arduino UNO, with connections established as per the electrical net list provided.
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
- Description: A motor that can be controlled to move to a specific position.
- Pins: GND, VCC, PWM
IR Sensor
- Description: An infrared sensor used to detect objects.
- Pins: out, gnd, vcc
Relay 12V
- Description: A relay module that can be used to control high voltage devices.
- Pins: ground, in, VCC, NO, COM, NC
LED Light Strips (Violet)
- Description: LED light strips that emit violet light.
- Pins: VCC, GND
12V Battery
- Description: A 12V power source.
- Pins: -, +
Buzzer
- Description: An electronic device that emits sound.
- Pins: PIN, GND
Wiring Details
Arduino UNO
- 5V: Connected to VCC of Servo, IR Sensor, and Relay 12V
- GND: Connected to GND of Servo, IR Sensor, Relay 12V, and Buzzer
- D12: Connected to PIN of Buzzer
- D4: Connected to in of Relay 12V
- D3: Connected to PWM of Servo
- D2: Connected to out of IR Sensor
Servo
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- PWM: Connected to D3 of Arduino UNO
IR Sensor
- vcc: Connected to 5V of Arduino UNO
- gnd: Connected to GND of Arduino UNO
- out: Connected to D2 of Arduino UNO
Relay 12V
- VCC: Connected to 5V of Arduino UNO
- ground: Connected to GND of Arduino UNO
- in: Connected to D4 of Arduino UNO
- NO: Connected to VCC of LED Light Strips (Violet)
- COM: Connected to + of 12V Battery
LED Light Strips (Violet)
- VCC: Connected to NO of Relay 12V
- GND: Connected to - of 12V Battery
12V Battery
- +: Connected to COM of Relay 12V
- -: Connected to GND of LED Light Strips (Violet)
Buzzer
- PIN: Connected to D12 of Arduino UNO
- GND: Connected to GND of Arduino UNO
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)
This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code for the Arduino UNO microcontroller.