You do not need to do this. Feedback set to 19V is absolutely fine. Higher input voltage will find its way to the output (throught inductor and boost diode) in any case.
Ok understood, I will modify it.
120mA shunt can stay always connected, no need to switch it.
It can affect the high current but not by much so yeah you are right. It would be around 1.32A instead of 1.2A so it is ok. but still need to switch the 0.1 shunt.
You have battery voltage (up to 16.8V) on source of the MOSFET. It would not open with just 5V on the
gate.
I was misguided.. logic level mosfet need Vgs to be 5v or more but this one has Vgs in the minus due to source voltage as you said. Putting DC jack voltage won't do a thing too. What do you suggest?
Note that RDSon of the MOSFET and ressistance of the tracks on PCB will affect results of curent measurement. Kelvin connection (Fig. 3 in the CN3765 datasheet) is not possible.
Rdson is low here and PCB tracks will be as short as possible.
why kelvin connection is not possible? Also, I was going to take the connection from the pads of the PCB directly, I don't have 4 terminal resistors.
Connect CTL to VSS, not to the minus pole of the battery.
will do.
You've definitely not read/understood how the buck converter/charge IC (CN3765) works. L2 is the buck inductor and is wired all wrong.
I was wiring it correctly but when I tried to fit everything into the small space I moved it like that but forgot to re-draw it properly. sorry for this.
Is D2 necessary?
datasheet doesn't say about it but rather it says we can eliminate D1. Not an issue right now.
Risk of pulling DC jack out, relay de-energising, C5 dumping straight into USB+, you could possibly argue that the relay will take longer to reclose than the boost converter will take to empty C5, but still not nice. You could just put a 2nd HX3608 in to deal with the 2nd voltage source, probably cost less than the relay.
it definitely costs less (assuming inductor + others are cheap) and will try to do it.
still the output of the 2 boost converters will be connected together. Yes the shotcky diodes will do some protection but still...
if both sources got connected... 5v on one of them while +12 on the other... could the diodes deal with isolation and protection? I guess we will be forced to put the feedback resistor divider before the diodes to make sure nothing gets triggered right?
My head hurts looking at the multiple current shunts (x3)
I will try to modify them to make it better... as consolidated as possible.
and I'm not going to start looking up the Vgs of Q4/5 to work out what is going on.
mvs spoke about Vgs of the mosfets and I took the note... working on it.
My advice would be to start again, simplify your specification (avoid mission creep) and prototype something.
I will work again to do all of these modifications. I don't have any parts to prototype but rather will finish the design and order the pcbs with materials.
always thanks for both of you...!!