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

Open Source: SimRacing 14Bit Handbrake Custom Firmware

Discussion in 'Miscellaneous' started by Dakor, Jan 25, 2021.

  1. Dakor

    Dakor New Member

    Joined:
    Mar 4, 2019
    Messages:
    4
    Balance:
    - 40Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Most of you, probably know these "SimRacing 14Bit Handbrake" from AliExpress or eBay (see image), I wrote a custom "firmware" that allows to connect more buttons or axes to it :)
    [​IMG]
    Download:
    The Arduino Sketch is available on my GitHub. Please have a look at the README for instructions.
    https://github.com/Dak0r/Chinese-SimRacing-14Bit-Handbrake-Custom-Firmware-Arduino-Sketch

    More Info:
    I bought one and noticed that it's using an Arduino Pro Micro Clone and a HAL sensor.
    Seeing all those unused pins on the Arduino, I decided to engineer the software that is installed on the Arduino, so one could make use of the other pins, without changing the handbrakes original behavior.

    My sketch is designed as a drop-in replacement and works just like the original firmware, regarding the mapping of the HAL-Sensor values to the joystick axis. As an example for how to extend this sketch, it also defines two joystick buttons which get triggered, if pin 2 or 3 are connected to ground. (I used the well known ArduinoJoystickLibrary from MHeironimus, see Readme).

    I used this to connect my DIY Shifter to my PC, without having yet another USB Device. But a button box or such is of course also possible.

    Overall it's nothing too fancy and the project is already a little older, but I thought someone here might find this useful anyway :D
    • Useful Useful x 1
    Last edited by a moderator: Jan 25, 2021
  2. nyebalac

    nyebalac New Member

    Joined:
    Apr 9, 2020
    Messages:
    1
    Balance:
    35Coins
    Ratings:
    +0 / 0 / -0
    When I try to upload the code I get an error message. How can I make it work?

    Sketch uses 9272 bytes (32%) of program storage space. Maximum is 28672 bytes.
    Global variables use 346 bytes (13%) of dynamic memory, leaving 2214 bytes for local variables. Maximum is 2560 bytes.
    avrdude: ser_open(): can't open device "\\.\COM3": The system can not find the given file.


    Failed uploading: uploading error: exit status 1
  3. soon jae _Lee

    soon jae _Lee New Member Gold Contributor

    Joined:
    Apr 24, 2019
    Messages:
    4
    Location:
    republic of korea
    Balance:
    - 63Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, SCN6
    Thank you Dakor!
    Thanks to this, I was able to repair the broken board and make it work perfectly.
    It was my first time using Arduino, but thanks to my previous job, I was able to access it without much difficulty.
    The problem was that the port was not assigned, so I couldn't find the problem, and I was confused...
    I replaced the USB cable after realizing it was not for data transmission.
    The mini pro board, which only had a green LED on, turned on a red light and data was sent and received, and it worked perfectly right away!

    If anyone struggles with ports like me, suspect the cable!
    Dakor's explanations and materials are perfect!

    (This is a Google translation, so please understand if there are any awkward expressions.)
  4. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,050
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,998Coins
    Ratings:
    +10,884 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK