Sim racing wheel

What are you developing?
Post Reply
andreasdahl1987
Posts: 1
Joined: Tue Jan 26, 2021 12:10 am

Sim racing wheel

Post by andreasdahl1987 »

First of all I'm a total rookie when it comes to electronics, programming and arduino.

I'm building a formula steering wheel. Aprox. 26 buttons, 5 analog axes, 6 rotary encoders. There is a greay joystick library for arduino Pro Micro, but that one doesnt have enough pins, meaning I'd have to use two of them as well as a USB hub. In that case Im running out of space. I'm really interested in the Blue Pill (STM32F103C6T8) for my project, but it seems this joystick library doesnt support the STM32.

https://github.com/MHeironimus/ArduinoJoystickLibrary

Anyone got any good advice on a library for creating a joystick with arduino and STM32? Im also considering something like
https://github.com/FreeJoy-Team/FreeJoy, but I'd kinda like to try masting the coding bit by myself.

Regards,
Andreas
racemaniac
Posts: 20
Joined: Wed Dec 18, 2019 6:53 pm

Re: Sim racing wheel

Post by racemaniac »

Maybe you can look into some basic electronics. If for all your digital buttons you'd use a shift register (or multiple ones daisy chained), you can have as many buttons as you want at the cost of 3 or 4 pins in total. Here's an arduino tutorial example: https://www.arduino.cc/en/Tutorial/Foundations/ShiftIn

Mapping everything you do to a single pin is very easy, but fairly inefficient. Via a shift register you can connect many buttons to only a few pins, and it'll still be plenty fast :).

I don't have any experience with the joystick library you're using, so don't know how easy it'll be to combine with that, let us know if you run into issues :).
Post Reply

Return to “Projects”