1 arduino leonardo 2 joysticks

Hi! I need help on circuit model: connect 2 joysticks on 1 Arduino leonardo board

for 1 joystick I followed this scheme : DIY Joystick Game Controller using Arduino Leonardo and Joystick Module

and my program works fine (when keyboard library doesn't mess)

now I try to connect a second joystick (same model) to the arduino leonardo board, and I have many doubts:

  • Vrx → A2*
  • Vry → A3*
    GND → GND (above the GND for the 1st joystick)
  • SW → Digital(PMM) ~3*

and for the voltage +5V, I don't know where should I connect it ? 3.3V ? or no plug ?

My goal is to emulate a keyboard key with each direction of each joystick -> a total of 8 keys

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.