Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, two photocells (LDRs), two resistors, and a servo motor. The Arduino UNO reads the analog values from the photocells and controls the servo motor based on these 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
Photocell (LDR) 1
- Description: A light-dependent resistor that changes its resistance based on the light intensity.
- Pins: pin 0, pin 1
Photocell (LDR) 2
- Description: A light-dependent resistor that changes its resistance based on the light intensity.
- Pins: pin 0, pin 1
Resistor 1
- Description: A resistor with a resistance of 10k Ohms.
- Pins: pin1, pin2
- Properties:
- Resistance: 10k Ohms
Resistor 2
- Description: A resistor with a resistance of 10k Ohms.
- Pins: pin1, pin2
- Properties:
- Resistance: 10k Ohms
Servo (Wokwi Compatible)
- Description: A servo motor compatible with Wokwi simulation.
- Pins: GND, V+, PWM
Wiring Details
Arduino UNO
- 5V: Connected to V+ of the Servo, pin 1 of Photocell 2, and pin 0 of Photocell 1.
- GND: Connected to GND of the Servo, pin2 of Resistor 1, and pin1 of Resistor 2.
- A0: Connected to pin1 of Resistor 1.
- A1: Connected to pin2 of Resistor 2.
- D9: Connected to PWM of the Servo.
Photocell (LDR) 1
- pin 0: Connected to 5V of the Arduino.
- pin 1: Not connected.
Photocell (LDR) 2
- pin 0: Not connected.
- pin 1: Connected to 5V of the Arduino.
Resistor 1
- pin1: Connected to A0 of the Arduino.
- pin2: Connected to GND of the Arduino.
Resistor 2
- pin1: Connected to GND of the Arduino.
- pin2: Connected to A1 of the Arduino.
Servo (Wokwi Compatible)
- GND: Connected to GND of the Arduino.
- V+: Connected to 5V of the Arduino.
- PWM: Connected to D9 of the Arduino.
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:
}
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.
