Based on the Sim Racing Library for Arduino ATMega32U4 by Dave Madison to extend the supported hardware connected as USB HID game controller device.
The library is intended for usage with raw hardware interfaces, replacing original controllers legacy interface electronics.
Examples of adapters converting legacy interfaces to USB:
- GamePort Adapter - Arduino ATMega32U4 based GamePort adapter supporting analog and several digital protocols
- Arduino NES/SNES USB - Arduino ATMega32U4 based NES/SNES gamepad adapter
- ...
The Sim Racing Library is an Arduino library for interfacing sim racing equipment such as pedals and gear shifters with Arduino development boards.
Author: Dave Madison
Install the library using either the .zip file from the latest release or TODO by searching for "Sim Gear" in the libraries manager of the Arduino IDE. See the Arduino documentation on how to install libraries for more information.
TODO Read the documentation (https://dmadison.github.io/Sim-Racing-Arduino/docs/md_pages_2supported__devices.html) to check if your device is supported by the library. Follow the wiring instructions on the device page to connect your device to the Arduino.
Run one of the library examples in the Arduino IDE by going to File -> Examples -> Sim Gear Library. For all peripherals, call begin() to initialize the class and update() to refresh with new data.
Upload example to the Arduino board and device should ne recognized as Game Controller upon next USB connection.
On Windows press Windows key + joy.cpl to open the control panel with listed game controller devices and do initial Calibration of the newly connected device.
- Two pedal peripherals (gas + brake)
- Three pedal peripherals (gas, brake, clutch)
- Analog shifters
- Analog handbrakes
TODO
- Joysticks
- PAS pedal sensor
- Logitech Two Pedal Peripheral (Gas, Brake)
- Logitech Three Pedal Peripheral (Gas, Brake, Clutch)
- Logitech Driving Force Shifter
TODO
- Thrustmaster T500RS/T3PA-PRO Pedals
- Logitech Wingman Extreme Digital
Open source shields are available to connect the Logitech Three Pedal Peripheral and the Logitech Driving Force Shifter to a SparkFun Pro Micro. The design comes with a 3D printable case and custom board files so that the adapter appears with a custom identity and "Sim Racing" name over USB. You can use these shields to build an inexpensive USB HID adapter.
You can find all of the necessary files in the project repository.
This library is licensed under the terms of the GNU Lesser General Public License (LGPL), either version 3 of the License, or (at your option) any later version. See the LICENSE file for more information.