Logitech G27 Pedals Conversion

I'm trying to setup an Arduino Leonardo to use as a 10bit A/D USB input (Joystick) 3 axis gaming pedal input.

Where all I want is:

A0 = Throttle (Potentiometer Input) 0-5VDC = 0-1023
A1 = Brake (Loadcell Input) 0-5VDC = 0-1023
A2 = Clutch (Potentiometer Input) 0-5VDC = 0-1023

As I will use the Logitech G27 switches and steering as they are now, what I'm trying to achieve is better resolution of the actual pedal inputs - Currently 8Bit (0-256 steps)

Now I've used the https://github.com/MHeironimus/ArduinoJoystickLibrary which uses a "Joystick.h" file with 32 buttons etc...but I simply cant get the 3 pedals to work (A0 kind of works...once) :o .

It would be nice if DXTweak recognised the Arduino "Game Controller" found in Devices and Printers so I can adjust the axis spans too?

Can someone out there please tell me what I'm doing wrong, or perhaps guide me to a more suitable example file I could use to achieve this please?

Thanks in advance for reading this :slight_smile:


Yo estoy con el mismo problema soy novato y no he conseguido ayuda ni para saber como conectar la celula de carga y un potenciometro en la misma placa de arduino,me dicen ke ya hay temas sobre esto pero no he encontrado nada