Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Raising a resistnace 4x through a range?

Status
Not open for further replies.
Looks like there MAY be a little problem, or I just don't see what should be changed.

Remembering-
Sender: 4:eek:hm: Full - 60:eek:hm: Empty

With the circuit built, Mock-up 12v battery hooked up, and hooked up the resistances look like this-
What the sender is turned into, between GND and the spade connector that plugs into the gauge, they read: 129.2K:eek:hm: Full - 288.7K:eek:hm: Empty
Current is 4mA at those same points.
Battery reads 12.25v
Voltage from GND to the gauge through the sender and circuit reads 0.29v with the sender at empty, and 0.13v when full.

This causes the gauge to want to read at 1/4 tank at Full, and well past the E when Empty.
https://img.photobucket.com/albums/v207/norcal02/other stuff/IMG_3144.jpg
https://img.photobucket.com/albums/v207/norcal02/other stuff/IMG_3145.jpg

Next time i put this circuit together I'll be smarter and do it on my breadboard. Then I can more easily change out the resistance values. FWIW, I used a 39:eek:hm: to replicate the original gauge, where to be entirely accurate, should be about 41:eek:hm:, and instead of 4.2K in R1, the cloesst single resistor was a 3.9K:eek:hm:. Lowering that resistance by 300:eek:hm: only changed the base mA by about .3 IIRC, I have it all written down somewhere. Could that change the end result that much though? The resistance is in the K range not hundreds, but with reads due to the mA to drive the gauge being proper if I understand correctly. Keeping with that, I would need to adjust the resistance measured through the circuit must be lowered as a whole a total of ~50k to 240k:eek:hm: and spread out by ~47k:eek:hm: to reach down to ~33k:eek:hm:, or something equivalent, I presume, assuming the battery voltage at only 12v didn't effect it too much. I'm wishing I didn't solder it all together. I bought some extra's online along with some other bits I need for a related but unrelated project, so when they show up I'll do the breadboard. Till then, well, that's where it stands. I'll try to figure some of it out tomorrow too. It's too late right now for me to be thinking logically about it :)
 
Last edited:
The resistance you quoted can't be correct. You didn't say how you measured it, but I suspect you used a multimeter set to read ohms on a the circuit that was powered by the battery.

That never works. Resistance is the ratio of voltage to current. It can only be calculated if you know the current and the voltage. The multimeter set to read ohms puts out a fixed current, measures the voltage and does the maths. If the circuit is powered, there will be other currents and the reading is meaningless.

129.2K:eek:hm: with 4 mA flowing would be over 500V.

I think that the voltage to ground at the guage points to where the problem is. My circuit is designed to give 3V at the sender. It relies on getting enough current through the guage, to power the sensor. The design current is up to about 70mA (that is 3V / 44 :eek:hm: ) and it seems that you are only getting 4 mA. 4 mA is also consistant with the 0.29 V and the 0.12 V that you saw.

With voltages like that, there is no way that you could get more current though the guage. You have just about shorted the wire to ground, and the guage reads less than half. I think that there is something wrong in the guage or the way that you have wired it. Have you grounded the guage? I guess so because the voltage seems to read correctly in the photos. You could check the guage with a 240 :eek:hm: resistor or a 33 :eek:hm: resistor and see if it reads empty and full. The voltages on the resistors would also be useful to check that the circuit is correct.

To check the circuit, put the guage to one side, and replace it in the circuit with an ammeter. It should read about 30mA empty and 70mA full.
 
Last edited:
Point taken. I wasn't quite thinking about how I was getting the numbers, and how they would be altered. Regardless, as explained, it comes back to me as a duh. I did check the circuit for any problems after I soldered it up and all seemed to be well. When I get home I'll check my numbers again. Particularly the mA.
 
I tried it again here at home and found something interesting, though kinda useless. The back of the gauge wants a Batt Pos 12v input, "Fuel" (from sender, which eventually see's the ground), as well as a direct ground to measure the battery voltage on another gauge. Without the Batt Neg connected to the ground on the back of the gauge, and when the sender says it's empty, it reads exactly Full. Hooking up the back of the gauge properly drops the needle at empty back to below E.

Anyway just for a recap for myself as much as anything else-
Sender-
Pin 1:Batt Neg
Pin 2:SNDR on board
Board-
SNDR:pin 2 on Sender
GAUGE:Fuel on Gauge
GND:Batt Neg
BATT+:Batt Pos
Gauge-
Fuel:GAUGE on Board
+12v:Batt Pos
GND:Batt Neg

Having everything hooked up this way, and removing the gauge entirely, I measured the mA between the "Board" GAUGE terminal and Batt Pos and got this-
Sender @ Empty: 23mA / 11.94v
Sender @ Full: 51mA / 12.10v
A little bit off..

The way I screwed up the resistances and other stuff last night, I accidentally measured between the GAUGE terminal on the board and Batt Neg, which ended up just measuring through the whole thing back to the battery, rather than anything the gauge would have seen.
 
It looks like there isn't enough voltage on the base of the transistor.

With the guage replaced with an ammeter, can you measure the base and emitter voltages on the transistor with the sender at full, empty, and disconnected?
 
Hmm, unfortunately I only have one good multimeter (fluke 88v) around here that I can use for a good ammeter. I'd have to go searching for one to measure voltages at the base and emitter. I think I have a cheapo one in the garage. I have somewhere I have to be in less than an hour and I have yet to get ready so I'll measure that stuff when I get home in a few hours.

Basically, you want it set up the same way as I was measuring the mA, but while the ammeter is connected, measure voltage from the base and emitter to Batt Neg? Gotcha.

Just for fun, I had been working on drawing this in paint-
**broken link removed**
 
Voltages w/ ammeter hooked up in place of gauge-
Empty-
Emitter: 2.21v
Base: 2.78v

hah, I'm not going to say I just didn't get a chance to test it. I managed to cook it, conveniently arcing collector to base on accident. No more voltage out of it at all and the zener doesn't test =x. Awesome. I'll pick up a couple new pieces Monday since the place I got these is closed Sundays and retest for empty, and get readings for a full tank and disconnected sender. This time if I remember, with the breadboard. Boy, do I feel like a dope. It happens. At least there's one reading.

The battery is at 12.2v still.
 
Last edited:
Hmm, done up on my breadboard again with basically the same parts I got slightly higher voltages, so I'll try it hooked up to the gauge to see if it makes enough of a difference.

I also have a 3.9v zener, and a wide assortment of resistors to play around with if I have to.

These are the results tonight -
EMPTY-
Emitter: 2.45v
Base: 3.05v
FULL-
Emitter: 2.41v
Base: 3.02v
SENDER D/C'ed-
Emitter: 2.75v
Base: 3.08v

I'll edit this post soon to update what the gauges look like.
Edit-
They look pretty much the same as before. Full is just above the 1/4 tank mark, and Empty is considerably below E.
 
Last edited:
Managing to break the 3.6v zener in half, :p, I put in my 3.9 and slowly went lower on the R1 resistance while constantly measuring the flow across the zener. I found that I can get it to read up to about 3/4 of a tank, but as I went lower and lower, it made less of a difference. I think I need a higher voltage zener so I can keep the resistor a slightly higher value, once it was down to about 100:eek:hm:, R1 was getting really, really hot =x. I didn't leave it that way for long, just to measure the current on the zener and what the tank capacity wanted to read. Just over 3/4 tank with that, but using a 560:eek:hm: it reads exactly 3/4 with only 23mA across the zener.

This causes me to think what I just said above, what about using a higher voltage zener so I can keep the resistor high keeping current and temperature in check?
 
FWIW, these are the measurements just as above, but that I got with the 560:eek:hm: resistor and 3.9v zener, and the actual gauge connected-

EMPTY-
(reads a needle width below E, which is fine and will probably come up a little higher as it's more finely tuned)-
Emitter: 3.22v
Base: 3.84v
FULL-
(reads as exactly 3/4 tank)
Emitter: 3.18v
Base: 3.83v
SENDER D/C'ed-
Emitter: 3.54v
Base: 3.84v

Also, ammeter hooked up as the gauge between the "gauge" terminal on the circuit and BATT NEG, the sender reading EMPTY pulls 14mA. Reading FULL it's 8mA. Disconnected all together, clip fell off but to report it anyway, is 20mA.

Any help to figure what higher voltage zener and R1 it should be would be helpful, if that's what would turn this around to be just right.

Thanks for the help so far, I certainly wouldn't have gotten to this point without it. =X
 
Last edited:
Alright, this is what I think I've found. Correct me if I'm wrong please :)
Edit-I hope I'm not too far off track, by the end of this post I think there's a solution that might work with an extra resistor. What do you think? I have a knack for popping zeners so I cant test my idea right now LOL ;)

As I was going lower on R1 values, the difference on the gauge got smaller and smaller. Reason being, the lower the resistance, the higher the mA at the base of TIP31, but as the mA's get higher, the change of the collector voltage gets smaller as the curve flattens out.

To get to the point where I need to be to get the gauge to read full, I've figured the mA input needs to probably be about 10ish mA to get a low enough output voltage at the collector to read the tank full. I hope that doesnt screw up the empty reading too badly, but I'll figure that out as I go.

This is how I've sort of gathered the ~10mA figure.
Two resistors I've tried-
a)3900:eek:hm:
b)560:eek:hm:
Two zener's I've tried-
a)3.6v
b)3.9v
Results for each-
aa)0.923mA
ab)1mA
ba)6.43mA
bb)6.96mA

Gathering that with the AB(1mA) combo went to about exactly 3/8'ths tank, and BB(6.96~7mA) was dead on at 3/4, what would I do to find what would give me a full tank considering the collector emitter voltage graph on the datasheet is a curve, so I dont think I can just make a straight line from 3/8 to 3/4 to 1 and change the numbers at the same ratio. If I did though, I would probably need that ~10mA base current to read a full tank on the gauge. If that's right, looks like it's close to something like .16-.18 base/emitter voltage.

Couldn't I just use the 3.9v zener, 560:eek:hm: R1, and put in an extra resistor between the gauge and collector to lower the mA to the gauge that extra little bit? Like 1:eek:hm: or less?

Perhaps there is a better suited transistor all together?


Edit 2-The difference between collector emitter voltages between what I have now and what I think would be closer, is so close even a 1:eek:hm: resistor would overshoot it depending on the real world resistances. If in a perfect world I have 0.19v now, and .5:eek:hm: resistance, the mA is .38 and reads 3/4 tank. I guess I should measure that to be sure next time, then I can have this for sure, I think. If I want to get the mA that 0.17v with .5:eek:hm: resistance would make (.34), I'd only need a difference in resistance of +.56:eek:hm:... umm but that doesn't seem right...? Of course this is still all speculation on what it looks like on the graph, and that a straight up 10mA base current is what the gauge needs to read full.

Im just trying to figure out some stuff on my own, right or wrong, but need to get pushed in the right direction again :) I hope I didn't write too much to confuse the situation. It's what I get for thinkinga bout it at midnight!
 
Last edited:
To let you know, I dont expect you to respond to all of this, most of it is just for record keeping and posting just in case any of it is useful. :)

Update, I found the obvious, putting a resistor between the gauge and collector is just like increasing R2, which only moves the sweep up and down on the gauge, but does not adjust the range larger or smaller. Undecided whether to use 39:eek:hm: or 36:eek:hm: at R2 quite yet. 39 reads exactly an empty tank when decreased from full to E, but turned on at E, rises to just below E, its maximum sweep up is to dead on 3/4 tank. 36 turns on when at E just a half needle below E (better), rises to 7/8 tank (better), but reduced to E from Full, it doesn't quite reach (badd), indicating I still have gas left when I wouldn't. I think I'll keep the 39:eek:hm: for now.

To reach the readings above I was using a 3.9v 500mW zener and 220:eek:hm: resistor.
 
Norcal02 said:
I put in my 3.9 and slowly went lower on the R1 resistance while constantly measuring the flow across the zener. I found that I can get it to read up to about 3/4 of a tank, but as I went lower and lower, it made less of a difference. I think I need a higher voltage zener so I can keep the resistor a slightly higher value, once it was down to about 100:eek:hm:, R1 was getting really, really hot.

That sounds like the zenner was doing what it should. R1 should provide enough current to keep the base of the transistor at 3.9 V. Reducing R1 below what is needed will just result in extra heating.

The current required by the base of the transistor depends on the gain of the transistor, and the value or R1 that I suggested was based on typical figures for the TIP31, so it could have been wrong.
 
Norcal02 said:
Update, I found the obvious, putting a resistor between the gauge and collector is just like increasing R2.

That shouldn't be the case. The collector current shouldn't vary much at all if the collector voltage changes, unless the resistance is so big that there is no voltage left across the transistor.

It could well be that a TIP31 has less gain than would be useful.

If you put aside everything except the guage, and find out what resistance between the guage and ground makes it read full, and what voltage there is across it at that point, it would help me work out what is happening.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top