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

DIY Arduino Buttonbox

Discussion in 'DIY peripherals' started by TOPMO3, Mar 28, 2016.

  1. marmar

    marmar New Member

    Joined:
    Jun 14, 2017
    Messages:
    1
    Location:
    Warsaw
    Balance:
    166Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    Dear friends,
    Perfect project!
    Can someone help me.
    I don t need 25 pushbuttons. I need 5 rotary encoders. Can someone look and make change to use 5 rotary encoders ?
    Best regard
  2. branoj

    branoj New Member

    Joined:
    Jul 22, 2017
    Messages:
    2
    Location:
    SVK
    Balance:
    23Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    Hi,
    I have a problem. I have a Buttonbox connected according to the schematic, but only 3 encoders work from 4. How can I solve this problem?
    Thank you.
  3. branoj

    branoj New Member

    Joined:
    Jul 22, 2017
    Messages:
    2
    Location:
    SVK
    Balance:
    23Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    I have solved the problem.
  4. Claudemir

    Claudemir Member Gold Contributor

    Joined:
    Oct 22, 2012
    Messages:
    168
    Balance:
    49Coins
    Ratings:
    +33 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Hello friends ! Does a button boxes work on PS4? Recognized as a keyboard?
  5. TOPMO3

    TOPMO3 Active Member

    Joined:
    May 12, 2015
    Messages:
    133
    Location:
    Russia
    Balance:
    890Coins
    Ratings:
    +201 / 0 / -0
    Hi @Claudemir

    Sorry, I don't have PS4 so I can't check it
  6. Lukas_Kvapil

    Lukas_Kvapil New Member

    Joined:
    Sep 15, 2017
    Messages:
    2
    Location:
    Prague
    Balance:
    186Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    Hi,

    Thank you very much for your work and I would like to ask you how I could wire EC11 Rotary Encoder
    to use the encoder button.
    I mean when I press the whole encoder to make it as other button.

    Thanks
    Best regards

    Lukas
  7. TOPMO3

    TOPMO3 Active Member

    Joined:
    May 12, 2015
    Messages:
    133
    Location:
    Russia
    Balance:
    890Coins
    Ratings:
    +201 / 0 / -0
    Hi Lukas

    An encoder with button has 5 legs - 3 legs for encoder and 2 leg (on the opposite side) for a button. So just wire those 2 legs like a normal button

    Cheers!
  8. Lukas_Kvapil

    Lukas_Kvapil New Member

    Joined:
    Sep 15, 2017
    Messages:
    2
    Location:
    Prague
    Balance:
    186Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    Thanks for your reply !

    I did it at first, but it didn´t work I think.
    I will give it other try.

    Have you some hints to make the layout for buttons and wires ?
    I´m confused :D
    Also I wanted to design PCB and let them produce.

    Thanks
    All the best

    Lukas
  9. TOPMO3

    TOPMO3 Active Member

    Joined:
    May 12, 2015
    Messages:
    133
    Location:
    Russia
    Balance:
    890Coins
    Ratings:
    +201 / 0 / -0
    Well, my layouts are in the OP...
    Good luck with PCB producing!
  10. dualin

    dualin Member

    Joined:
    Jul 11, 2012
    Messages:
    31
    Location:
    Cáceres - Spain
    Balance:
    - 41Coins
    Ratings:
    +4 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino

    Hi, thanks for that great project. I´m trying to make one. But, where can I download the layouts for make pcb?.What is OP?? Sorry for my poor english and thanks in advance

    Best Regards
    Dualin
  11. TOPMO3

    TOPMO3 Active Member

    Joined:
    May 12, 2015
    Messages:
    133
    Location:
    Russia
    Balance:
    890Coins
    Ratings:
    +201 / 0 / -0
    Hi @dualin

    there is sample schematic in the my first post which you can use as a reference. It shows how to wire and connect buttons and encoders to arduino board. In general, you don't need PCB, only if you want to have more comfy connectors and so on..
  12. dualin

    dualin Member

    Joined:
    Jul 11, 2012
    Messages:
    31
    Location:
    Cáceres - Spain
    Balance:
    - 41Coins
    Ratings:
    +4 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Ah! ok, I asked because i have made a button box with the connections like your schematics and doesn't work fine. I use 16 buttons, 4x4, the buttons work, but all the buttons in a row show the same button in Windows joystick panel, then i have only 4 buttons instead of 16....
    I have tried all the things that i can, but doesn't work. I dont know what happen.

    Thanks and best regards
    Dualin
  13. TOPMO3

    TOPMO3 Active Member

    Joined:
    May 12, 2015
    Messages:
    133
    Location:
    Russia
    Balance:
    890Coins
    Ratings:
    +201 / 0 / -0
    Hi @dualin

    It seems something wrong in your wiring or soldering, can it be you mistakenly wire all buttons in a row also in one column? Hard to say exactly what is wrong without physical access to your device. May be you can show a picture of your wiring?
  14. donovan

    donovan New Member

    Joined:
    Apr 7, 2014
    Messages:
    22
    Balance:
    169Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino

    Good job
  15. Bongo1435

    Bongo1435 New Member

    Joined:
    Nov 10, 2017
    Messages:
    19
    Location:
    Belgium
    Balance:
    277Coins
    Ratings:
    +11 / 0 / -0
    My Motion Simulator:
    Arduino
    thanks for tuto i try to do my first button box and your tuto is great to do it ;-)
  16. f1simgames

    f1simgames Member

    Joined:
    Mar 21, 2014
    Messages:
    34
    Balance:
    516Coins
    Ratings:
    +27 / 0 / -0
    My Motion Simulator:
    Arduino
    Hello all guys,

    i have use 02c version but i have a problem...everything works fine but i can't find where is button No1....can you help please?
  17. TOPMO3

    TOPMO3 Active Member

    Joined:
    May 12, 2015
    Messages:
    133
    Location:
    Russia
    Balance:
    890Coins
    Ratings:
    +201 / 0 / -0
    Hi @f1simgames

    there are 2 lines in the sketch:
    byte rowPins[NUMROWS] = {21,20,19,18,15}; //connect to the row pinouts of the keypad
    byte colPins[NUMCOLS] = {14,16,10,9,8}; //connect to the column pinouts of the keypad

    1st line containts pins used for rows and 2nd line - for columns.
    So very 1st button will be that which is connected to 21 & 14 pins

    And please use 2d version because its better :)
  18. f1simgames

    f1simgames Member

    Joined:
    Mar 21, 2014
    Messages:
    34
    Balance:
    516Coins
    Ratings:
    +27 / 0 / -0
    My Motion Simulator:
    Arduino
    when i try to compile 2D i get this...

    Arduino: 1.8.2 (Windows 7), Board: "Arduino Leonardo"

    buttsimpjoy_02d:121: error: 'JOYSTICK_DEFAULT_REPORT_ID' was not declared in this scope

    Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID,

    ^

    buttsimpjoy_02d:122: error: 'JOYSTICK_TYPE_JOYSTICK' was not declared in this scope

    JOYSTICK_TYPE_JOYSTICK, 34, 0,

    ^

    exit status 1
    'JOYSTICK_DEFAULT_REPORT_ID' was not declared in this scope
    Last edited: Nov 30, 2017
  19. xiatian

    xiatian Member

    Joined:
    Sep 5, 2017
    Messages:
    78
    Location:
    Xi'an, China
    Balance:
    262Coins
    Ratings:
    +28 / 0 / -0
    My Motion Simulator:
    2DOF
    I want, I hope there are many programs, thank you.
  20. reddo

    reddo New Member

    Joined:
    Nov 18, 2017
    Messages:
    13
    Location:
    Nederland
    Balance:
    267Coins
    Ratings:
    +10 / 1 / -0
    used this to make my buttonplate.. seems to work well !! Also included the switch function of the encoders, giving me a total of 12 pusbuttons and 3 encoder functions. Thanks !

    [​IMG]
    • Like Like x 3