Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If you can get your signals consistent at 0 and -14V then connect the -14 to pic ground and use a voltage divider on the 0V signal. Or do you need the ground lines connected?
Mike.
There is no -14V! It is +14V (battery positive if car is running, likely 12.6V if car is not running)
That was my understanding too.I am sure everyone here assumed you mean the negative signal wzs with reference to ground which is 0 volts.
For the last 20 years I've worked for companies that build electronic assemblies for automotive, motorcycle and heavy machinery OEMs.
In this environment, one finds four broad signal types:
1) On/Off signals. Older vehicles had a mix between 0-5v and 0-vbat (either 12 or 24 volt) levels, but most modern vehicles have standardized towards 0-5v levels.
2) Analog signals. Again, on some older vehicles you may find 0-vbat, but things are standardizing towards the 0-5v level.
3) PWM signals. These are exclusively 0-5v levels, unless it is a power PWM which is driving lights or motors.
4) Serial bus. On these, the CANBus reigns supreme, which is a differential bus. Google it for info on its logic levels and termination requirements. I've also seen RS485 and LIN usage, but for very limited networks.
What sort of automotive module are these signals coming from?
Since the signal you are interested in has only two "levels", why run it into the ADC? Just clean it up (lpf or Schmitt), and run it into a normal port pin and treat it as a 1 or 0.
In that case, I would make the signal ratiometric with respect to the 14V signal. It is likely why they make it available on that other wire. That way, the ADC reading of the gearshift voltage would be independent of RPM (alternator spun up or not)... I could do but I'm still not entirely convinced that it doesn't change for other gears. I can only select 1st at the moment so going to use the signal going into an ADC and the output the ADC value whilst driving to finally fine out...
In that case, I would make the signal ratiometric with respect to the 14V signal. It is likely why they make it available on that other wire.