Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, a servo motor, an OLED display, a solar panel, a current sensor, a joystick module, an LED, and a resistor. The circuit is designed to interface these components with the Arduino UNO for various functionalities, including display, motor control, and sensor 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 for precise control of angular position.
- Pins: gnd, vcc, pulse
0.96" OLED
- Description: A small OLED display for visual output.
- Pins: GND, VDD, SCK, SDA
Solar Panel
- Description: A solar panel for generating electrical power.
- Pins: Vcc, Gnd
ACS712 Current Sensor 5A 20A 30A
- Description: A current sensor for measuring current flow.
- Pins: 1, 2, GND, OUT, VCC
Joystick Module
- Description: A joystick module for user input.
- Pins: SW, VRY, VRX, VCC, GND
LED: Two Pin (white)
- Description: A white LED for visual indication.
- Pins: cathode, anode
Resistor
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
- Properties: Resistance: 200 Ohms
Wiring Details
Arduino UNO
- A0: Connected to Joystick module (VRX)
- A1: Connected to ACS712 Current Sensor (OUT)
- A2: No connection
- GND: Connected to GND of OLED, Joystick module, Servo, ACS712 Current Sensor
- 5V: Connected to VDD of OLED, VCC of Joystick module, Servo, ACS712 Current Sensor
- SCL: Connected to SCK of OLED
- SDA: Connected to SDA of OLED
- D9: Connected to pulse of Servo
Servo
- gnd: Connected to GND of Arduino UNO
- vcc: Connected to 5V of Arduino UNO
- pulse: Connected to D9 of Arduino UNO
0.96" OLED
- GND: Connected to GND of Arduino UNO
- VDD: Connected to 5V of Arduino UNO
- SCK: Connected to SCL of Arduino UNO
- SDA: Connected to SDA of Arduino UNO
Solar Panel
- Vcc: Connected to pin 2 of ACS712 Current Sensor
- Gnd: Connected to cathode of LED
ACS712 Current Sensor 5A 20A 30A
- 1: Connected to pin1 of Resistor
- 2: Connected to Vcc of Solar Panel
- GND: Connected to GND of Arduino UNO
- OUT: Connected to A1 of Arduino UNO
- VCC: Connected to 5V of Arduino UNO
Joystick Module
- SW: No connection
- VRY: No connection
- VRX: Connected to A0 of Arduino UNO
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
LED: Two Pin (white)
- cathode: Connected to Gnd of Solar Panel
- anode: Connected to pin2 of Resistor
Resistor
- pin1: Connected to pin 1 of ACS712 Current Sensor
- pin2: Connected to anode of LED
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 connections, and the code running on the Arduino UNO.
