Controlling 2 Servos
with Joystick on Arduino, Node MCU, ESP32
Servo 1:
- Connect Ground (Brown) To ground on Breadboard
- Connect Power (Red) To Power on Breadboard
- Connect Input (orange) To Pin 9
Servo 2:
- Connect Ground (Brown) To ground on Breadboard
- Connect Power (Red) To Power on Breadboard
- Connect Input (Orange) To Pin 10
Step 3: Connecting Joystick
- Connect Ground on Joystick To Ground on Arduino
- Connect +5V to to Power on Breadboard
- Connect VRx to A1
- Connect VRy to A0
Step 4: Connecting Arduino to Breadboard
- Connect 5V To Power on Breadboard
- Connect Ground To Ground on Breadboard
Step 5: Code
- Open with Arduino IDE and you are good to go!