Hello everyone,
I would like to know if the below will work, and which way the diodes will need to face, so only one option /output will be active low at a time.
It will be for selecting different resistor values, but only one can be applicable at any one time, but the input needs the resistor tied to ground, while the 4017 is active high, but I need an active low, unless there's another IC available.
So I have used an inverter, of which is great, but I can't have the other values going high, as that will cause damage to the charging IC. IC shown is indicative only, all charging IC ILim resistors need to be connected to ground.
I have made most of the schematic, and yes, I know the R values are all the same, it's for illustration purpose, I just wanted to know if adding the diodes will work, as I don't want to use a uC and digi-pot.
I am attaching an image of the schematic for reference.
Thank you.
I don't think the diodes will work as shown, because if
any of the outputs are high, that will turn the associated diode on, & put a high on pin (5) of IC6.
I'm wondering about "the other way round", (reversing the diodes), so that only the low outputs will turn the diodes on .
I think to make that work, though, you would have to hold pin (5) of IC6 high by default, & rely on the previous IC outputs having the capability to sink current through the resistors.
I built something similar, but more complex, 30+ years ago, but had to switch components in an existing device, (a commercially made "Wein bridge" oscillator), so ended up using 4066 switches.
With them, you would have isolation between the control signals & the actual resistor selection part of the circuit.
A problem I found with the 4066s I had, was that returning their control pins to zero volts did not completely turn them off, so if you end up having a package with a bunch of unused sections, they can get quite warm.
There was probably a way around this, but I was under time constraints, so I just provided a separate negative supply to turn them off "hard".
Another possiblity is to use optocouplers.
In both the latter options, you could dispense with the inverter.
I found that it is often easier to visualise what will happen with a circuit if you build a real version, (rough as you like), of the particular section, hit it with the appropriate signals, & see if it behaves as you expected.