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. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,030
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,878Coins
    Ratings:
    +10,880 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Hopefully this is the link you mean: https://github.com/FreeJoy-Team/FreeJoyWiki/blob/master/eng/Required-software.md
  2. Mikeness

    Mikeness New Member

    Joined:
    Jul 19, 2020
    Messages:
    2
    Balance:
    26Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF
    • Winner Winner x 1
  3. Panomi

    Panomi New Member

    Joined:
    Aug 14, 2020
    Messages:
    2
    Balance:
    13Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    I'm trying to program the STM32 for the pedalbox. I tried version 0.15 and 0.16.
    The ST-link software says it's flashed the chip.

    [​IMG]

    After connection to regular USB, Windows doesn't detect the device, nor OSHStudio.

    I've tried an Aliexpress one and an original Bluepill and both have the same problem.

    Anyone have an idea?
  4. Panomi

    Panomi New Member

    Joined:
    Aug 14, 2020
    Messages:
    2
    Balance:
    13Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    I've tested Freejoy aswel as OSH but both boards are not recognized. Help :)
  5. MartijnV

    MartijnV New Member

    Joined:
    Jun 25, 2020
    Messages:
    2
    Balance:
    59Coins
    Ratings:
    +0 / 0 / -0
    Hi There,

    I've flashed the firmware with ST-link and can see the correct FW in OSH Studio.
    But I can't write my config to the board in OSH studio. The program doen't respond to send or get config from device. Can someone help me with this. I've just completed the complete wiring of my DIY wheel and like to try it out.
  6. razzor13bt

    razzor13bt Member

    Joined:
    Jan 10, 2017
    Messages:
    32
    Occupation:
    automotive technician, sales manager.
    Location:
    Durban, South Africa
    Balance:
    393Coins
    Ratings:
    +8 / 0 / -0
    i finally had some time last night to mess around with mine.
    i have the round type reset button.
    my one recognises all my buttons, all 24 of them.
    i did notice after programming that both leds on the stm32 must be lit when connected to the usb cable for the osh software to recognise the device.
    thats as far as i got so far.
    need to connect 5 encoders but could only get keyes encoders with the built in circuit board.
    not sure if it will work or if the button pins are independent of the encoder pins. 5 pins in total that are marked gnd, +, sw, dt, clk.
  7. razzor13bt

    razzor13bt Member

    Joined:
    Jan 10, 2017
    Messages:
    32
    Occupation:
    automotive technician, sales manager.
    Location:
    Durban, South Africa
    Balance:
    393Coins
    Ratings:
    +8 / 0 / -0
    looks like the keyes encoders wont work properly.
    i got the buttons to work.
    Then played around with wiring and got the encoders to work but on the osh studio when i turn the encoders a different combination of 5 multiple buttons are lighting up.
    tried it in the settings screen of Content Manager for Assetto Corsa but all encoders are registering as button 49 and button 50.
    pressing them is working fine.
    will try again tomorrow.
  8. razzor13bt

    razzor13bt Member

    Joined:
    Jan 10, 2017
    Messages:
    32
    Occupation:
    automotive technician, sales manager.
    Location:
    Durban, South Africa
    Balance:
    393Coins
    Ratings:
    +8 / 0 / -0
    Finally after a lot of patience and trial and error, i got it working great.
    Turns out the encoders cannot be all set to one type of step and i had to use 3.3v on the ground pins and ground on the 3.3v pins
    Had to keep changing and juggling each encoders step value till i had no conflicts.
    I used the single encoder layout.
    When trying the chained layout i could only get 2 encoders working and as soon as i added number 3 or more, it wouldnt work.
    have 22 buttons + 5 buttons on the encoders + 5 encoders working great now.

    Still have to add on my sequential gear shifter and a handbrake.
    Will see how reliable it works and then decide if i will add on my VPP pedals.

    Attached Files:

    • Like Like x 2
  9. razzor13bt

    razzor13bt Member

    Joined:
    Jan 10, 2017
    Messages:
    32
    Occupation:
    automotive technician, sales manager.
    Location:
    Durban, South Africa
    Balance:
    393Coins
    Ratings:
    +8 / 0 / -0

    i initially had a similar issue.
    what i noticed after flashing the firmware you must swap the bridge plugs and make sure both leds are on for it to be seen by software.
  10. Alecont

    Alecont New Member

    Joined:
    Mar 17, 2021
    Messages:
    17
    Balance:
    139Coins
    Ratings:
    +1 / 0 / -0
    Hi, its posible add load cell ??
  11. Alecont

    Alecont New Member

    Joined:
    Mar 17, 2021
    Messages:
    17
    Balance:
    139Coins
    Ratings:
    +1 / 0 / -0

    Hello, greetings from Argentina. Works with load cell and amplifier HX711??
  12. lijo mathew

    lijo mathew New Member

    Joined:
    Jul 25, 2021
    Messages:
    3
    Balance:
    - 7Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    DC motor, AC motor, SCN5, SCN6, Arduino, JRK, Joyrider, SimforceGT, Motion platform, 4DOF, 6DOF
    please help me circuit diagram[​IMG]

    Attached Files:

  13. Adrian Culda

    Adrian Culda Member Gold Contributor

    Joined:
    Apr 3, 2020
    Messages:
    60
    Occupation:
    Jack of all, Master of a Few
    Location:
    Leduc, Alberta
    Balance:
    647Coins
    Ratings:
    +67 / 0 / -0
    Can any of the pins be used as an output ??

    As in PWM to drive a DRGB strip, Fans for wind sim or output to a vibrator to simulate ABS engagement
  14. evolaco

    evolaco Member

    Joined:
    Sep 27, 2015
    Messages:
    260
    Location:
    Spain
    Balance:
    1,070Coins
    Ratings:
    +29 / 0 / -0
    My Motion Simulator:
    3DOF
    Hello, I have two problems with OSH, first the device does not recognize me normally, I have to remove and put the usb until it recognizes it, if I use freejoy I do not have that problem. Second, I have a blocked stm32 but only with osh, I can neither read nor write from the software, but if I install freejoy I can record without problems.
  15. sulfail

    sulfail Member

    Joined:
    Aug 31, 2018
    Messages:
    55
    Occupation:
    Mason
    Location:
    vigo(pontevedra) SPAIN
    Balance:
    205Coins
    Ratings:
    +27 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Good afternoon, I have a g27, I take good care of it and it is old, but it still works well,
    I've been thinking about putting a controller in it to put the pedals separate, which one do you think is better this board or the arduino micro, do they have the same steps? I think not the arduino micro, if I remember correctly they are 1024, I don't know if I'm wrong, I have steering wheels with an arduino micro, which you recommend.
  16. seninha

    seninha New Member

    Joined:
    Jul 20, 2009
    Messages:
    8
    Balance:
    60Coins
    Ratings:
    +1 / 0 / -0
    I just find out about this great software.
    I had already this board lying around so I started to play with it.
    Until now everything I attached to is working fine, also potentiometer.

    Only thing that does not work is comnining 2 potentiometers.
    No ,atter what i try they both work as one but not cooperative

    Pot 1 is attached to A3 and 2de to A5. Bar AXIS 1 and AXIS 2 move as intended when i turn one of those pot's.

    But according to Combined part, as soon as i choose Cooperativework, AXIS 6 should move, But nothing happens there

    No idea if this could be the case because my board has a square reset button?

    Also wonder if anybody attached a Hall sensor to the board and configurated with OSHstudio?
  17. seninha

    seninha New Member

    Joined:
    Jul 20, 2009
    Messages:
    8
    Balance:
    60Coins
    Ratings:
    +1 / 0 / -0
    Mymistake. Cooperative work on both pot's is working fine. Had to change the Calibration Value on Axis 6. After I changed to 0 and 4095, I finally see movement

    Only issue I still have is the fact that on windows I dont see any pot movement. Device is recognized by Windows , and buttons light up, but no axis movement visible. Only on OSH Studio
  18. Wayne Thebus

    Wayne Thebus Member Gold Contributor

    Joined:
    Jun 10, 2019
    Messages:
    49
    Occupation:
    CNC Machinist/Programmer
    Location:
    Cape Town
    Balance:
    163Coins
    Ratings:
    +26 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    I encountered the same problem, then I tried a different usb cable and now my STM32 is detected
  19. seninha

    seninha New Member

    Joined:
    Jul 20, 2009
    Messages:
    8
    Balance:
    60Coins
    Ratings:
    +1 / 0 / -0
    WOnder if anybody had a clu what this issue can be.

    I am almost done with my DIY Sim steering Wheel. Have a total of 14 buttons , 2 rotary and 3 potentiometers running on 0.16 version of OSH Studio.

    Evrything works as it should only having 2 strang issues.

    First one

    Potentiometers are used as Clutch , and sometimes without touching my clutch handles, bar of potentiometer goes all the way to the right on the OSH software meaning my car has no drive.

    This can be solved by operating the clutch pedal .

    Second issue:

    SMT32 board stops for a few second , meaning that none of buttons react. No great when you need to change gears. After a 2 or 3 seconds everything works fine again.

    Windows does not give any USB disconnect /connect sound, so i have no ide what the issue could be.

    Wonder if going back to V 0.15 couald solve both problems.
    or maybe something else I need to change to stop this strange reactions.
  20. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,030
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,878Coins
    Ratings:
    +10,880 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I don't have specific insights, but generally speaking with weird USB stuff I would suggest examining electrical interference and USB controller overload/instability (particularly with USB 3): https://www.xsimulator.net/community/faq/simtools-usb-issues-can-cause-crashes.313/