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 Pedals & Buttons Controller

Discussion in 'DIY peripherals' started by TOPMO3, Jul 30, 2016.

  1. TOPMO3

    TOPMO3 Active Member

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

    you should use 3.3V

    Did you solve the problem with reassigning buttons in AC?
  2. razzor13bt

    razzor13bt Member

    Joined:
    Jan 10, 2017
    Messages:
    32
    Occupation:
    automotive technician, sales manager.
    Location:
    Durban, South Africa
    Balance:
    393Coins
    Ratings:
    +8 / 0 / -0
    thanks for the quick reply.
    i havent had a chance to check.
    Am hooking up the pedals, button box and the sequential shifter.
    then only the wheel will be indepentant of the stm.
    once hooked up i need to get familiar with your app and program everything.
    hope to have sorted by end of the week.
    once again thank you.
  3. TOPMO3

    TOPMO3 Active Member

    Joined:
    May 12, 2015
    Messages:
    133
    Location:
    Russia
    Balance:
    893Coins
    Ratings:
    +201 / 0 / -0
    OK
    feel free to ask any question about the app. Its my first PC app for 20 years after univercity, so its may be not so intuitive and user-friendly ))
    • Useful Useful x 1
  4. ferslash

    ferslash Active Member

    Joined:
    Feb 8, 2011
    Messages:
    495
    Balance:
    4,798Coins
    Ratings:
    +181 / 2 / -0
    man, sily question...

    can i take your project and use it on an arduino board, or the code sketch works only on the st board?

    best regards
  5. TOPMO3

    TOPMO3 Active Member

    Joined:
    May 12, 2015
    Messages:
    133
    Location:
    Russia
    Balance:
    893Coins
    Ratings:
    +201 / 0 / -0
    @ferslash sorry, it only works on stm32 board
  6. Giustino

    Giustino New Member

    Joined:
    Jul 17, 2017
    Messages:
    9
    Location:
    Italy
    Balance:
    247Coins
    Ratings:
    +5 / 1 / -0
    Hi TOPMO3
    can you reshare your links, these are offline.
    Thanks
  7. TOPMO3

    TOPMO3 Active Member

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

    here is new version of the firmware and app.
    Added support for 1/2 and 1/4 step encoders and ability to connect encoders in single (non chained configuration).
    Project URL
    • Winner Winner x 2
  8. Giustino

    Giustino New Member

    Joined:
    Jul 17, 2017
    Messages:
    9
    Location:
    Italy
    Balance:
    247Coins
    Ratings:
    +5 / 1 / -0
    Awesome work Top! Maybe I'll be the first to check new firmware. I am still waiting the material. I'll update you as soon as possible.
  9. Giustino

    Giustino New Member

    Joined:
    Jul 17, 2017
    Messages:
    9
    Location:
    Italy
    Balance:
    247Coins
    Ratings:
    +5 / 1 / -0
    @TOPMO3 How do I connect one hat switch to your schematic? is it compatible with your firmware?
    I'm thinking that in AC it is necessary to set the pit strategy.
  10. TOPMO3

    TOPMO3 Active Member

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

    Yes, you can connect Hat Switch. From hardware side of view POV switch is just 4 buttons, so you can basically use any 4 buttons for it. If AC allows remap buttons, you can remap these 4 buttons for functions you need. If AC requires POV Switch defined in USB descriptor, so you can configure your 4 buttons to act as POV Switch in the Buttons tab
    • Like Like x 1
  11. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,962Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    absolutely brilliant!! smiley51.gif

    dsc_0473.jpg list.png buttons_tab1.png
  12. Giustino

    Giustino New Member

    Joined:
    Jul 17, 2017
    Messages:
    9
    Location:
    Italy
    Balance:
    247Coins
    Ratings:
    +5 / 1 / -0
    Is there anyone who can suggest a hat switch / pov and where to buy it? Obviously of acceptable size for a steering wheel. I found something like as a ps2 joystick but It is too big.
  13. TOPMO3

    TOPMO3 Active Member

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

    Here is 0.12 version of OSH PB Controller. Please make full chip erase before uploading the new firmware.

    app now shows both OSH Studio and firmware version. They should be equal.
    Added Tuning Tab. It allows:
    - define unique identifier for the device. It will appear in brackets after main product string
    - define different serial number for defferent devices. If you have several controllers, they should have different s/n to help windows identifing them.
    - change USB polling interval. Default value in 16ms is enough for button boxes or rim plates, but if you building high performance pedals (for example) you can consider to decrease it up to 1ms.

    other parameters I think are self explaining. "Amount of time a button will be pressed" is how long virtual button appears to be pressed in windows. Debounce time you can increase if you notice some transient presses.

    Tuning_Tab.png

    Devices_Printers.png
    • Like Like x 3
    • Winner Winner x 1
  14. Nick Moxley

    Nick Moxley Well-Known Member

    Joined:
    Dec 13, 2013
    Messages:
    2,779
    Occupation:
    Owner/Operator- Moxleys Rantals
    Location:
    Winnipeg Manitoba Canada
    Balance:
    17,055Coins
    Ratings:
    +2,505 / 30 / -2
    My Motion Simulator:
    2DOF, 3DOF, DC motor, JRK
    just got my boards today, Ill get to playing with them asap. :thumbs:thumbs
  15. Ned

    Ned Member

    Joined:
    Jul 22, 2017
    Messages:
    63
    Occupation:
    fixed operations manager
    Location:
    melbourne
    Balance:
    714Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    That Is cool
  16. CorradoSKJ

    CorradoSKJ New Member

    Joined:
    Nov 27, 2015
    Messages:
    15
    Occupation:
    Poland
    Location:
    Poland/Bydgoszcz
    Balance:
    693Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform, 4DOF
    Hi, amazing work.
    I have small problem, I need 4 analog axis and i make this in OSH Studio but first 3 axis Assetto recognize but 4 not. In OSH Studio all 4 axis works perfect. What i doing wrong ?
  17. TOPMO3

    TOPMO3 Active Member

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

    Currently 4, 5 and 6 axises made as Vbr* (USB HID standart has several meanings for axises, but usually a game allows to map any axis to user function)
    Is it inly AC issue, did you try any other game?
    I can made those axises as sliders for example, just for try
  18. CorradoSKJ

    CorradoSKJ New Member

    Joined:
    Nov 27, 2015
    Messages:
    15
    Occupation:
    Poland
    Location:
    Poland/Bydgoszcz
    Balance:
    693Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform, 4DOF
    Yes i try Dirt Rally, Assetto and Project Cars. I use Your v0.12 firmware and latest OSH Studio, in control panel i see only 3 axis, in AC i see 8 axis but works only 4, 5 and 6 in OSH Studio i see 6 axis but works first 4.
  19. TOPMO3

    TOPMO3 Active Member

    Joined:
    May 12, 2015
    Messages:
    133
    Location:
    Russia
    Balance:
    893Coins
    Ratings:
    +201 / 0 / -0
    Sorry, now I'm confused a little bit

    What is correct?
    "first 3 axis Assetto recognize but 4 not."
    or
    "in AC i see 8 axis but works only 4, 5 and 6 "
  20. CorradoSKJ

    CorradoSKJ New Member

    Joined:
    Nov 27, 2015
    Messages:
    15
    Occupation:
    Poland
    Location:
    Poland/Bydgoszcz
    Balance:
    693Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform, 4DOF
    Sorry my bad in AC i see 8 axis but works only 4, 5 and 6