I managed to build pedals attached to potentiometers. How do you program the potentiometers to output some sort of throttle control similar to the ones found in PS4 and Xbox buttons.
You can not program a potentiometer.
You can of course read the current resistance of the pot with e.g. an Arduino, and produce a digital output based on that.
Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html
Have you googled arduino ps4 controller
Tom...
Thanks for the replies,
I have made the pedals output a serial number ranging from 0 to 1023 which is based on the potentiometer's angle.
I am currently struggling on how to make windows detect the arduino's serial output similarly as a game controller. I have tried making the pedals output a certain keystroke that matches the corresponding pedal but you cannot control it as a throttle with an output based on an axis. I am also looking for a windows software that could possibly detect the board's serial output and turn it into a virtual game controller.
P.S: I am using an arduino uno and I use 20k potentiometers for the pedal
Update: I have found a software called mmjoy ( Home · MMjoy/mmjoy_en Wiki · GitHub) although it does say that it supports only leonardo and micro boards.
Are there any alternatives or is there any way to make it work on Uno boards