1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. 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!
  3. 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
  4. 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.

  1. Christiaan_du_Toit

    Christiaan_du_Toit New Member

    Joined:
    Jun 22, 2022
    Messages:
    2
    Occupation:
    Mechatronics student
    Location:
    South Africa
    Balance:
    1Coins
    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. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,897
    Location:
    London
    Balance:
    11,610Coins
    Ratings:
    +458 / 9 / -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
  3. Christiaan_du_Toit

    Christiaan_du_Toit New Member

    Joined:
    Jun 22, 2022
    Messages:
    2
    Occupation:
    Mechatronics student
    Location:
    South Africa
    Balance:
    1Coins
    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.