I'm trying to emulate my Throttle position sensor temporarily until I can buy a new assembly. (My year model only comes as a whole replacement throttle body for $400)
So my idea is to have the voltage signal input, and the arduino read the voltage and categorize it into 1 of 4 ranges. Then it would send out a signal based on which category it chose.
Is this feasible? Any feedback would be amazing!
Depends on what kind of "a signal" you want it to "send out".
Taylor20ten:
Any feedback would be amazing!
Especially as you have provided almost no information about the system you want to connect to.
What is the range of the input voltage?
What is it coming from?
Four ranges of what?
What sort of output signal?
What is the signal going to?
...R
The input would be a varying 1-5 volt signal. Output also 1-5 volts. The categories would be <1volts and then between 1-2, 2-3, & 4-5 volts.
An Arduino Uno or Mega has an ADC so it can measure a 0-5v input but it does not have a DAC so it cannot produce a 1-5v output without additional electronics.
How about answering my other 3 questions?
...R
Bad idea.Where is the varying 5volts coming from if our TPS is bad? A TPS is meant to sweep the voltage from 0 to 5 volts as the throttle blade goes from closed to open. Doing it in steps is going to totally confuse your engine control module and your engine will run like crap. That is why it is called a throttle position sensor.