Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, two photocells (LDRs), two resistors, and a servo motor. The Arduino UNO reads the light intensity from the photocells and controls the servo motor based on the readings.
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 servo motor used for precise control of angular position.
- Pins: gnd, vcc, pulse
Photocell (LDR)
- Description: A light-dependent resistor used to measure light intensity.
- Pins: pin 0, pin 1
Photocell (LDR)
- Description: A light-dependent resistor used to measure light intensity.
- Pins: pin 0, pin 1
Resistor
- Description: A resistor with a resistance of 10k Ohms.
- Pins: pin1, pin2
- Properties: Resistance = 10k Ohms
Resistor
- Description: A resistor with a resistance of 10k Ohms.
- Pins: pin1, pin2
- Properties: Resistance = 10k Ohms
Wiring Details
Arduino UNO
- 5V: Connected to vcc of the Servo and pin 0 of both Photocells.
- GND: Connected to gnd of the Servo and pin2 of both Resistors.
- A0: Connected to pin1 of the Resistor and pin 1 of the first Photocell.
- A1: Connected to pin1 of the Resistor and pin 1 of the second Photocell.
- D5: Connected to pulse of the Servo.
Servo
- vcc: Connected to 5V of the Arduino UNO and pin 0 of both Photocells.
- gnd: Connected to GND of the Arduino UNO and pin2 of both Resistors.
- pulse: Connected to D5 of the Arduino UNO.
Photocell (LDR) 1
- pin 0: Connected to 5V of the Arduino UNO and vcc of the Servo.
- pin 1: Connected to A0 of the Arduino UNO and pin1 of the Resistor.
Photocell (LDR) 2
- pin 0: Connected to 5V of the Arduino UNO and vcc of the Servo.
- pin 1: Connected to A1 of the Arduino UNO and pin1 of the Resistor.
Resistor 1
- pin1: Connected to A0 of the Arduino UNO and pin 1 of the first Photocell.
- pin2: Connected to GND of the Arduino UNO and gnd of the Servo.
Resistor 2
- pin1: Connected to A1 of the Arduino UNO and pin 1 of the second Photocell.
- pin2: Connected to GND of the Arduino UNO and gnd of the Servo.
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 documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO.
