Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, a pushbutton, a photocell (LDR), and a stepper motor. The Arduino UNO serves as the central control unit, interfacing with the photocell to read light levels and controlling the stepper motor based on the input. The pushbutton is included for additional user input.
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
Pushbutton
- Description: A simple pushbutton switch.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Photocell (LDR)
- Description: A light-dependent resistor used to measure light intensity.
- Pins: pin 0, pin 1
Stepper Motor
- Description: A stepper motor with four control inputs and power connections.
- Pins: IN1, IN2, IN3, IN4, +, -
Wiring Details
Arduino UNO
- 5V: Connected to Photocell (LDR) pin 1 and Stepper Motor +
- GND: Connected to Stepper Motor -
- A0: Connected to Photocell (LDR) pin 0
- D11: Connected to Stepper Motor IN4
- D10: Connected to Stepper Motor IN3
- D9: Connected to Stepper Motor IN2
- D8: Connected to Stepper Motor IN1
Pushbutton
- Pin 3 (out): Not connected
- Pin 4 (out): Not connected
- Pin 1 (in): Not connected
- Pin 2 (in): Not connected
Photocell (LDR)
- pin 0: Connected to Arduino UNO A0
- pin 1: Connected to Arduino UNO 5V
Stepper Motor
- IN1: Connected to Arduino UNO D8
- IN2: Connected to Arduino UNO D9
- IN3: Connected to Arduino UNO D10
- IN4: Connected to Arduino UNO D11
- +: Connected to Arduino UNO 5V
- -: Connected to Arduino UNO GND
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 descriptions, wiring details, and the code used in the Arduino UNO microcontroller.
