Go Down

Topic: .5-4.5VDC analog signal from Throttle Position Sensor (Read 3947 times) previous topic - next topic

Yankneck696

I am working on a project for my truck. The TPS already has a "Gnd" & "+5VDC" from the ECU. It has a center output similar to a pot. I want to read the value with an analog pin.

Would I just connect the GND from the TPS/ECU to the Uno for reference?
Would I need some form of isolation for either the Gnd or Signal?

What would be the best way to go about this? The coding is working with a spare TPS, but I need to know how to connect it to the existing wiring.

Attatched is a diagram.

http://dodgeram.org/tech/dsl/ECM/figures/ecm.gif

THank you,
Ed

KeithRB

While you don't necessarily *need* any thing else for a 5 V signal. Automotive electronic systems are very nasty environments. You might want some sort of voltage clamp to protect the UNO.

MarkT

Just add some series resistance to the pin, perhaps 10k, and a 10nF to ground (to short
out any RFI).  That will protect you from most evil out there(!)
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Yankneck696

#3
Mar 13, 2015, 04:36 pm Last Edit: Mar 13, 2015, 04:38 pm by Yankneck696
OK, I have a voltage clamp schematic & can add to that simply. I was also thinking a simple LC filter, as I do not want to screw up the signal to the ECU. I see your RC filter & that might work. I can try both.

What about a reference for the .5-4.5 signal? If there is no ground or +5VDC connection on the Uno, what would it reference the signal to? I would think it needs a reference to be read.

Thank you,
Ed

KeithRB

There better be a +5 V connection on the UNO, or it won't work very well.

MarkT

A 10k series resistor uses the internal protection diodes as the clamp, makes it much simpler.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Yankneck696

#6
Mar 13, 2015, 04:44 pm Last Edit: Mar 13, 2015, 05:12 pm by Yankneck696
OK, so the Uno uses the +5VDC for the reference to the Analog Pins, correct? The reason I ask is that the TPS already has a Gnd & +5VDC from the ECU. Those need to stay intact.

Thank you,
Ed

noisymime

If you need a solid, noise free signal (Well, as much as is possible from a TPS), here's a good circuit for it in case it helps:

The GND and 5v that are at the TPS will need to be shared with the Arduino (vref or power).

Yankneck696

So, connecting the Gnd & 5VDC to the Uno will nave no affect on the uno? What about the ECU? I truly appreciate your solution, but a replacement is $1600 + $600 for reprogramming & I would like to have it all correct.

Thank you,
Ed

polymorph

Do NOT cross connect two separate power sources. The grounds must be connected, but not sources of power.

The 5V on D5 must be connected to the Arduino 5V. All of that is meant to protect the Arduino from noisy signals that may go over 5V or under 0V.
Steve Greenfield AE7HD
Drawing Schematics: tinyurl.com/23mo9pf - tinyurl.com/o97ysyx - https://tinyurl.com/Technote8
Multitasking: forum.arduino.cc/index.php?topic=223286.0
gammon.com.au/blink - gammon.com.au/serial - gammon.com.au/interrupts

Yankneck696

THank you very much. That's what I was thinking, but wasn't sure.

Ed

dustin02rsx

#11
Mar 16, 2015, 07:46 pm Last Edit: Mar 16, 2015, 07:48 pm by dustin02rsx
I would buffer the signal coming from the TPS before I worried too much about noise. You dont want to cause any issues on the vehicle side by loading down that circuit with resistors/ external circuitry.


note: you will obviously want to take care of any noise as well, but not at the cost of disrupting the existing circuit.

raschemmel

Wouldn't it be safer to use an op amp differential amplifier running off power external to the TPS ?
(WITH NO COMMON GROUND)(Just the TPS OUT and TPS GND as the two inputs to the amp)
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,<br />DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Yankneck696

I'm liking the op-amp idea. ANy others? Please keep them coming.

Thank you,
Ed

dustin02rsx

the differential op amp will also act as a buffer. I probably wouldnt take that approach, but the same principal of buffering is there.


Google op amp buffer. You will obviously want a single supply op amp unless you want to further complicate by using a virtual ground to get a negative supply voltage.

Personally, Id use an op amp buffer with the op amp being supplied by an external voltage regulator (being powered from the car's battery). That signal would run into the arduino analog input (through a low pass filter if noise is an issue). Then ground everything to the body of the car.

Go Up