I'm working on a project using the potentiometers in the pedals for a racing gaming setup.
The two pedals are just potentiometers, with four lines going to them: high, low, gas position, and brake position. The thing is, when the pedals are fully at rest allt he way up, the gas position is a low voltage, and the brake position is a high voltage. Press on both, and the gas position is high voltage, and the brake position is low voltage. They're backwards from each other.
I need to send these lines to the PCB from a microsoft xbox360 wheel. The xbox pcb is expecting the pedals to be a low voltage when at rest, and a high voltage when pressed; same for both pedals.
I cannot rewire the pedals because of other systems they will be used on, so please do not suggest that.
It seems that what I need to do is find a way to invert the voltage on that line. Accuracy and resolution is not that big of a deal (minimum of 4 bits please. anything over 7 bits is just overkill), nor is a high sample rate needed (60 samples per sec minimum, 120 samples per sec would be great, anything more is good but really overkill). The voltage range seems to be 3.3v levels, and it looks like I could power whatever chips are needed from the high and low lines (I just tested, and it provide enough amperage for an LED to light, so I think a couple of logic chips would be fine.)
So, any recommendation for an easy way to invert the voltage coming from a potentiometer? I'm thinking of looking into a i2c DAC and a small uC . I could definitely use recommendations on easy to use DACs. If anyone has any recommendations on standard logics that could do the job without using a uC, that'd be prefered. And if there is some easy analog electronics that can be used for the same effect, that'd be even better.
Let me know if anything in my description is unclear, and I'll be happy to explain.
Edit: Needless to say, analog circuits are not my strong point. By invert, I don't mean I need negative voltage. If the vref is 3.3v, and the output from the pot is 1v, then I need to change it to 2.3v. If the pot output is 3.0v, I need to change it to 0.3v, etc. There has got to be a single chip or way to use an opamp or something, but I dont know crap about analog circuits and could use some advice.
The two pedals are just potentiometers, with four lines going to them: high, low, gas position, and brake position. The thing is, when the pedals are fully at rest allt he way up, the gas position is a low voltage, and the brake position is a high voltage. Press on both, and the gas position is high voltage, and the brake position is low voltage. They're backwards from each other.
I need to send these lines to the PCB from a microsoft xbox360 wheel. The xbox pcb is expecting the pedals to be a low voltage when at rest, and a high voltage when pressed; same for both pedals.
I cannot rewire the pedals because of other systems they will be used on, so please do not suggest that.
It seems that what I need to do is find a way to invert the voltage on that line. Accuracy and resolution is not that big of a deal (minimum of 4 bits please. anything over 7 bits is just overkill), nor is a high sample rate needed (60 samples per sec minimum, 120 samples per sec would be great, anything more is good but really overkill). The voltage range seems to be 3.3v levels, and it looks like I could power whatever chips are needed from the high and low lines (I just tested, and it provide enough amperage for an LED to light, so I think a couple of logic chips would be fine.)
So, any recommendation for an easy way to invert the voltage coming from a potentiometer? I'm thinking of looking into a i2c DAC and a small uC . I could definitely use recommendations on easy to use DACs. If anyone has any recommendations on standard logics that could do the job without using a uC, that'd be prefered. And if there is some easy analog electronics that can be used for the same effect, that'd be even better.
Let me know if anything in my description is unclear, and I'll be happy to explain.
Edit: Needless to say, analog circuits are not my strong point. By invert, I don't mean I need negative voltage. If the vref is 3.3v, and the output from the pot is 1v, then I need to change it to 2.3v. If the pot output is 3.0v, I need to change it to 0.3v, etc. There has got to be a single chip or way to use an opamp or something, but I dont know crap about analog circuits and could use some advice.
Last edited: