Circuit Documentation
Summary of the Circuit
This circuit is designed to interface an Arduino UNO with multiple servo motors and two KY-023 Dual Axis Joystick Modules. The Arduino UNO acts as the central controller, reading inputs from the joystick modules and controlling the position of the servo motors accordingly. The joystick modules provide analog input to the Arduino, which then translates these inputs into PWM signals to control the servos. The circuit is powered by the Arduino's 5V output, which is distributed to both the joystick modules and the servo motors.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Purpose: Acts as the central processing unit of the circuit, reading joystick inputs and controlling servo positions.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.
Servo Motor
- Description: An actuator that can be precisely controlled for angular position.
- Purpose: Responds to PWM signals from the Arduino to move to desired positions.
- Pins: GND, VCC, PWM.
KY-023 Dual Axis Joystick Module
- Description: A module that provides two analog outputs corresponding to the X and Y positions of the joystick, and a digital output for the switch button.
- Purpose: Provides user input to the Arduino for controlling the servos.
- Pins: GND, +5V, VRx, VRy, SW.
Wiring Details
Arduino UNO
- 5V: Connected to the VCC pins of all Servo Motors and +5V pins of both KY-023 Joystick Modules.
- GND: Connected to the GND pins of all Servo Motors and GND pins of both KY-023 Joystick Modules.
- A0: Connected to VRx of one KY-023 Joystick Module.
- A1: Connected to VRy of the same KY-023 Joystick Module.
- A2: Connected to VRx of the other KY-023 Joystick Module.
- A3: Connected to VRy of the other KY-023 Joystick Module.
- D3, D5, D6, D9: Connected to the PWM pins of the Servo Motors.
- D10, D11: Connected to the SW pins of the KY-023 Joystick Modules.
Servo Motors
- VCC: Connected to the 5V output from the Arduino UNO.
- GND: Connected to the GND on the Arduino UNO.
- PWM: Connected to the digital pins D3, D5, D6, D9 on the Arduino UNO for PWM control signals.
KY-023 Dual Axis Joystick Modules
- +5V: Connected to the 5V output from the Arduino UNO.
- GND: Connected to the GND on the Arduino UNO.
- VRx, VRy: Connected to the analog pins A0, A1, A2, A3 on the Arduino UNO for X and Y axis position readings.
- SW: Connected to the digital pins D10, D11 on the Arduino UNO for switch state readings.
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 Notes (documentation.txt)
No additional code documentation provided.
