1. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  2. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  3. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Question Multiple Arduino Game Controllers

Discussion in 'DIY peripherals' started by Christiaan_du_Toit, Jun 22, 2022 at 11:52.

  1. Christiaan_du_Toit

    Christiaan_du_Toit New Member

    Joined:
    Wednesday
    Messages:
    2
    Balance:
    31Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    Hi everyone

    This is my first post on xsimulator and I would like to ask if anyone has the same problem.

    I am building custom game controllers with arduino pro micro's for my sim but noticed something. I have a few different arduino models (some sparkfun and other original) so when connecting them to my pc they all show up. However in the Game Controlles program on Windows only one Arduino is showwing controller inputs. (Both have the same serial number)

    What I think the problem could be:
    I think it could be the Arduino serial numbers. In the Arduino IDE using Board Info the first Arduino displays as the following. BN: Arduino Micro
    VID: 2341
    PID: 8037
    SN: HIDBC
    The second Arduino however uses the same SN value which I speculate is why the pc detects only the first Arduino's input. The third Arduino's SN value is different from 1 and 2 and works without intefearing with the others.

    Is there a way to fix this input issue or maybe change the Arduino's serial number?

    Sorry for any spelling errors or sentence structure, English is not my home language.

    Regards
    Christiaan
  2. Ads Master

    Ads Master

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
  3. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,604
    Location:
    London
    Balance:
    10,200Coins
    Ratings:
    +375 / 8 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    you need to configure them as different joystick devices

    eg

    Joystick0.pressButton(byte button)
    Joystick1.pressButton(byte button)
    Joystick2.pressButton(byte button)
    • Informative Informative x 1
  4. Christiaan_du_Toit

    Christiaan_du_Toit New Member

    Joined:
    Wednesday
    Messages:
    2
    Balance:
    31Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    Oh I see, thank you for the info. Played around with this and the board.txt file in the IDE. Games now recognize all Arduino's and their inputs. Thanks so much for the help.