Skip to content

darkol/Sim-Gear-Arduino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sim Gear Library for Arduino

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

Sim Racing Library for Arduino

arduino-library-badge Build Status Documentation LGPL license

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

Getting Started

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.

Supported Devices

Generic Devices

TODO

  • Joysticks
  • PAS pedal sensor

Commercial Devices

TODO

Adapters

Sim Racing Adapters

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.

License

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.

About

A library to connect sim gaming peripherals to Arduino ATMega32U4 boards

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 100.0%