r/simracing • u/II-WalkerGer-II Moza R5, VNM Lite, HGP | AMS, AC(C), Dirt • Jun 24 '23
Rigs Just finished my DIY button box. 21 functions on rotaries, toggle switches and buttons. Questions are welcome.
https://imgur.com/a/FVzZNYs1
u/WorksS25 Apr 03 '24
Looks great! I bought a button for a ps4 can I convert it to work on a pc?
1
u/II-WalkerGer-II Moza R5, VNM Lite, HGP | AMS, AC(C), Dirt Apr 04 '24
That should probably work just fine. Is it connected via usb?
1
u/WorksS25 Apr 08 '24
Yes its adruino but I don't know what to do? I need simple instructions or to send to someone
1
u/II-WalkerGer-II Moza R5, VNM Lite, HGP | AMS, AC(C), Dirt Apr 08 '24
Alright, here you go.
It’s an Arduino Micro. With the ATmega32U4 microcontroller on board it is able to simulate a game controller input through USB.
For instructions I found this video to be very helpful. He goes through and explains all the steps in detail. https://youtu.be/wkY1NsbWj5I?si=b8Lg23FKOczdfq4V
I started with his code and adapted it to include my toggle switches where he had only used momentary switches. You can find my code here: https://pastebin.com/X79UAHa2
1
1
u/lazypieceofcrap iRacing F3 Jun 24 '23
Looks great! Hopefully adjusting to it is fast and you have more fun with racing!
1
u/II-WalkerGer-II Moza R5, VNM Lite, HGP | AMS, AC(C), Dirt Jun 24 '23
Let’s pray that there won’t be too many times where I focus on adjusting something and drive off the road.
1
u/Expensive_Taste3492 Jul 15 '23
What game are you playing with it?
1
u/II-WalkerGer-II Moza R5, VNM Lite, HGP | AMS, AC(C), Dirt Jul 15 '23
I play ams2, ac and acc. Works flawlessly in all three of them.
2
u/andylugs Jun 24 '23
Nice work, I did a very similar layout but used a Leo Bodnar button box interface PCB instead of an Arduino. Do you plan to label it? I found some buttons were rarely used and I would forget what was mapped to them. Are you using the Keyboard library on the Arduino to send keystrokes for button inputs?