I'm a bit perplexed here, any thoughts would be appreciated.
I'm trying to get a PIC to "share" a fuel level sender in a vehicle. The sender is a 33-240 ohm variable resistor, so simple as dirt, right? You use a reference voltage and a voltage divider to figure out what the unknown resistor (fuel level sender) is. Ok, that's easy enough and it's working fine.
**broken link removed**
So the sharing part.. I'm using two nice little dual FETs in SO-8 packages to swap the fuel level sender back and forth between a gauge (which is a glorified voltage divider running @ ~14v reference) and my PIC ADC circuit, which is 5v reference.
One FET swaps the fuel gauge back and forth between the actual sender and an on-PCB 120 ohm resistor to ground (1/2 full tank basically) so it doesn't go nuts when I totally disconnect it. The plan is to leave the gauge connected 99% of the time and only shunt it to the resistor for a few milliseconds while the PIC is sampling. But that's not even at work at the moment, just thought I'd mention it for clarity's sake since it's in the diagram.
The other FET turns on/off the PIC's ADC & voltage divider circuit to the fuel level sender. All three circuits work in concert. But for right now, I have them all turned off except for the fuel gauge gate (U$10 G-1).
So here's the funny part: It works fine for my PIC's ADC circuit, but for some reason the fuel gauge doesn't work. The fuel gauge's lead is normally attached to the U$10 drain (both FETs), and the source (S1) is run to an external ~160 ohm resistor for simulation (what would normally be the fuel level sender.)
I energize the fuel gauge's FET gate, and I can take my voltmeter and I get the same voltage from the +14v Vdd to either the drain (D1-1) or source (S1) which is 14.09v. I can also switch over to ohms and read 0 ohms across the FET. This all makes sense, right? The FET is energized so it should essentially be transparent. I can even take an LED and run it from external Vdd (+14v) to either D1-1 or S1 and it lights up on both. But when I connect the fuel gauge lead (which ALSO reads +14v when a voltmeter is used between it and either D1-1 or S1) to D-1 the needle doesn't move. Place it on S1 and it moves just like it should. This means that the FET isn't transparent to the gauge for whatever reason.
Anyone have any thoughts? If I can light up an LED across the FET from +14v to D1-1, shouldn't the gauge work too?
Here's a link to the FET datasheet if it helps: https://www.st.com/stonline/products/literature/ds/10590.pdf
Thanks!
Ray
I'm trying to get a PIC to "share" a fuel level sender in a vehicle. The sender is a 33-240 ohm variable resistor, so simple as dirt, right? You use a reference voltage and a voltage divider to figure out what the unknown resistor (fuel level sender) is. Ok, that's easy enough and it's working fine.
**broken link removed**
So the sharing part.. I'm using two nice little dual FETs in SO-8 packages to swap the fuel level sender back and forth between a gauge (which is a glorified voltage divider running @ ~14v reference) and my PIC ADC circuit, which is 5v reference.
One FET swaps the fuel gauge back and forth between the actual sender and an on-PCB 120 ohm resistor to ground (1/2 full tank basically) so it doesn't go nuts when I totally disconnect it. The plan is to leave the gauge connected 99% of the time and only shunt it to the resistor for a few milliseconds while the PIC is sampling. But that's not even at work at the moment, just thought I'd mention it for clarity's sake since it's in the diagram.
The other FET turns on/off the PIC's ADC & voltage divider circuit to the fuel level sender. All three circuits work in concert. But for right now, I have them all turned off except for the fuel gauge gate (U$10 G-1).
So here's the funny part: It works fine for my PIC's ADC circuit, but for some reason the fuel gauge doesn't work. The fuel gauge's lead is normally attached to the U$10 drain (both FETs), and the source (S1) is run to an external ~160 ohm resistor for simulation (what would normally be the fuel level sender.)
I energize the fuel gauge's FET gate, and I can take my voltmeter and I get the same voltage from the +14v Vdd to either the drain (D1-1) or source (S1) which is 14.09v. I can also switch over to ohms and read 0 ohms across the FET. This all makes sense, right? The FET is energized so it should essentially be transparent. I can even take an LED and run it from external Vdd (+14v) to either D1-1 or S1 and it lights up on both. But when I connect the fuel gauge lead (which ALSO reads +14v when a voltmeter is used between it and either D1-1 or S1) to D-1 the needle doesn't move. Place it on S1 and it moves just like it should. This means that the FET isn't transparent to the gauge for whatever reason.
Anyone have any thoughts? If I can light up an LED across the FET from +14v to D1-1, shouldn't the gauge work too?
Here's a link to the FET datasheet if it helps: https://www.st.com/stonline/products/literature/ds/10590.pdf
Thanks!
Ray