I've searched the internet and forums here for some help, and while I found some useful information, I still need some assistance.
I have an XBOX 360 Wireless Racing Wheel. I am trying to control the accelerator and brake pedals using an arduino.
The pedal assembly connects to the steering wheel using a 4 wire RJ-11 connector. Inside the pedal assembly there are 2 small pots, one for the brake pedal and one for the accelerator pedal. I believe the wires are power, ground, pot1 and pot2.
I know you will need some further information but I was wondering the best way to go about something like this. I was messing with PWM to a low pass filter using some resisters and caps but was unsure how to pass this voltage to the steering wheel since the arduino and the steering wheel are separate circuits.
You need to measure the resistance of the pots you are trying to replace. Remove the wires and measure with a resistance meter the value between the two outer pins.
It is that value you need.
Just measured one of the pots. It appears to range from about 480 thru 10k. I don't think I need the 6 pot version, 4 should do just fine. I see a bunch of 10k versions, but I still don't have enough knowledge to pick the right one.
Rather than emulating the POT, a more practical approach is to generate the control signal directly.
For this you will need a digital-to-analog (DAC) converter. In its simplest form a DAC can be built with a series resistor and a capacitor (RC element). The output from the DAC will then take the place of the mechanical wiper (the POT center pin). To set desired voltage output, you can use a digital Arduino pin to either charge (output high) or discharge (output low) the capacitor based on feedback to an analog input (ADC). Analog feedback allows you set and track the desired voltage output with high precision and works well with a simple RC element.
Yes, the RC element used as a DAC in this setup can also be used as a low-pass filter. It's a bit tricky to get this to work with PWM, but quite easy with the on/off (charge/discharge) approach and using ADC feedback.