- Joined
- Jul 4, 2009
- Messages
- 16,489
- Helped
- 5,157
- Reputation
- 10,347
- Reaction score
- 5,207
- Trophy points
- 1,393
- Location
- Aberdyfi, West Wales, UK
- Activity points
- 139,504
For some reason I can't view the images at the moment, I'll try again tomorrow when the internet traffic is quieter.
Brian.
No idea what a window comparator system is.window comparator system so you could use all the possible voltage selection combinations. In other words all the possible binary values to turn the transistors on.
Brian.
Oh! I did not realise you could do that.Incidentally, the output of the LM393 is open-collector so you can pull it up to 5V through a single resistor, even when it is powered from 18V,
Brian.
Of course! Forgot about that.there is no need to do the voltage scaling and you can reverse the logic if necessary by swapping the comparator inputs over.
Brian.
Oh OK. So I would be dropping 2V or so off the 18V input rather than off the LM317s output. That would be much better. Thanks.You could consider swapping the current limit and voltage regulation stages over so current limiting comes first, that makes it easier to follow the battery voltage rise as it charges and the current can never exceed the limit anyway.
Brian.
I am not sure that understand how that is advantageous.A window comparator is very similar to a normal comparator except it has two thresholds. It turns on as one is passed and off again when the other is passed. It would allow you to overlap the voltages, for example comparator 1 might turn on at 1V and off again at 3V, comparator 2 turn on at 2V and off at 4V and comparator 3 turn on at 3V and off at 5V.
Brian.
Would you be able to do a circuit diagram of what you mean?The LM393 output is not committed to any voltage, it can only pull the pin low and relies on the output resistor to lift it to 'high' level. That allows you to connect the pull-up resistor to any voltage you like within range of the IC. As you already have a supply for the logic gates, use that as the top of each pull-up resistor and the levels will automatically match the ones needed by the gates. You can experiment by removing all the logic and transistors, connecting the outputs of the LM393 directly to the voltage setting resistors on the LM317, in other words using it's internal output transistors instead of the three switch transistors, it should work exactly the same but with far fewer components.
Brian.
I'm still not sure how the current limiting is supposed to work when nothing monitors what the current actually is. Are the resistor values R60 & R61 correct, it seems to be producing a very small voltage for the comparator. I would also connect the cathode of D1 to 18V, it is there so that if the 18V supply is turned of while a charged battery is still connected the voltage across the whole circuit is limited to 0.7V, without it the transistor Q11 may have full battery voltage across it in reverse.
Brian.
There is no 5.6 Ohm resistor in the schematic you posted! I suspect you took a snapshot of only part of the schematic, the measuring input of the comparator isn't shown.
It may work but I would urge caution when using thresholds as low as 2mV because a voltage as small as that is quite easy to produce from the resistance of the wiring alone, especially when relatively high currents are invoved. It is only 2mA in 1 Ohm or looking at it the other way, 1 Amp in 2 milliOhms. You may well find it oscillates in real life as the current is switched on and off and that in turn would make the comparator change state and start the curent again cyclically.
Brian.
I think it is safe to assume that it is just not practical to implement a transistor based 'fuse'. At least not in the way I have been trying to do it. Far easy to just stick in an actual fuse - 1A or so.There isn't technically a safe or unsafe value but when you use such small differences as 2mV you will find other voltage drops in the circuit and even supply ripple and noise start to look in comparison. For example, if the bottom resistor in the comparator reference had as little as 0.002 Ohms in series with it and 1A flowed along the ground wire, it would be enough to fool the comparator into changing state. If you can, try to make the difference in 'on' and 'off' levels as big as possible. This is why some of the other circuits you showed had an op-amp connected across the sense resistor, it was to amplify the voltage dropped across it so the resistor could be lower value and so the comparator saw a bigger voltage difference.
As for what I would suggest is a safe level would depend on the construction you were using and how 'clean' the 18V rail is but as a rule of thumb I wouldn't go below about 100mV.
Brian.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?