Hi!
So, I figured it would be cool to have a digital potentiometer to change the resistance to vary the charging rate of a charging IC.
To make it even cooler, I also have a switch with a bunch of MOSFETs to enable it from having a default resistance.
My question here is that I'm a bit confused as how to connect the digital potentiometer to make this work properly.
So, when the switch SW1 is OFF, the charger IC U3, pin 5 goes through U2 through 10k R2 to GND. Having set at 100mA charging rate I believe. All nice and dandy.
However, when the switch SW1 is ON, I thought I use the resistance on the U1, by going from U3 pin 5 to Q1 to U1 to GND, but from what I've seen on other examples is that pin 6 on U1 is connected to, say a LED and then to GND.
So, how am I suppose to do this? I can't connect two outputs together essentially....
Bonus question: I'm not entirely sure, but I suppose that is how the shunts are suppose to be to connected when I want to use a current reader IC U4. Essentially the idea is to be able to get the current when charging the battery. The main confusing part might be that the SHUNT_MINUS goes to battery + side. But the shunts need to be connected like that so the IC can get the current right?
Thanks!