Author Topic: Can you make an 'ideal diode circuit' with voltage 'bias'?  (Read 1680 times)

0 Members and 1 Guest are viewing this topic.

Offline No_ShortyTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Can you make an 'ideal diode circuit' with voltage 'bias'?
« on: March 07, 2024, 11:58:59 am »
Hi,

So I'm mulling over putting together a simple circuit using 'off the shelf' ideal diode circuits like this:



I would like to two DC battery sources to be connected, and for when one runs out for the other to kick in. However, if the voltage ranges of the batteries cross over, I would assume (from the little I know) that once both batteries are at the same voltage, the diode would continuously switch back and forth.

Is it possible to cause the diode to have a bias to one source? So one source needs to be +10v higher (for example) before the diode switches?
« Last Edit: March 07, 2024, 02:42:48 pm by No_Shorty »
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 4957
  • Country: si
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #1 on: March 07, 2024, 12:08:52 pm »
Yep it is possible, put a 10V voltage source in series with the diode. That way when the voltage difference is below 10V the diode is seeing a negative voltage.

But this is obviously not practical in a real life circuit since the voltage source has to pass all of the current.

What you are actually looking for is so called 'ideal diode controllers' where it is a chip that switches a MOSFET on/off in a way that mimics a diode with a near 0V drop. Often these chips also have a control pin that could forcefully disable the transistor until some condition is met (like say the difference is 10V as detected using a external comparator)
 
The following users thanked this post: RJSV

Offline No_ShortyTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #2 on: March 07, 2024, 12:36:46 pm »
Yea, I figured I could do the former, but that it wouldn't work in practice as you said. The current will be about 10A.

I don't suppose there is a pre-made circuit for electronics-dummies is there? I can hook up a basic circuit but designing one isn't something I can do.

I'm mulling other options like putting a voltage regulator in line with one of the sources to keep it constantly below the lowest voltage of the other source... but it's impractical and of course wasteful.
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 4957
  • Country: si
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #3 on: March 07, 2024, 12:52:31 pm »
You can often follow example schematics from the chip datasheets to get results quickly. Sometimes you just need to tweak a few things around to get the chip to do what you want.

The big problem with this ideal diode circuit is that once the diode goes into the conducting stage the MOSFET is turned on, this makes the voltage across the MOSFET near 0V and so measuring the voltage across it becomes difficult. The ideal diode controller chips have special sensing circuits inside that detects any tiny negative voltage across the MOSFET, this means current wants to flow the opposite way and so the MOSFET must be turned off again. Doing this yourself out of jellybean analog circuitry is difficult.

So for this reason you want to use an existing ideal diode controller or hot swap controller chip and add your 'switch at 10V' logic on top of it.

Tho careful with closing switches across the 10V difference. You could cause large currents to flow when you suddenly short the two sides together (like connecting two differently charged batteries in parallel is a BAD idea)
 

Offline No_ShortyTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #4 on: March 07, 2024, 01:58:28 pm »
Thanks,

I have been looking over the analog website, but designing anything myself is out of the question - I simpyl dont have enough electronics knowledge. I may head to fiverr or similar if I can't find what I'm after "off the shelf".

There seem to be plenty of ideal circuits that just favour the highest voltage, and I can find circuits that only switch when one source fails (i.e. VIN=0) but only in lower voltages/currents.

If anyone happens to be able to direct me to an off the shelf solution that can handle up to 60v10a, but only switches when one source fails/falls below a threshold, then thats what I'm looking for!
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19529
  • Country: gb
  • 0999
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #5 on: March 07, 2024, 02:07:35 pm »
I'm not sure what you're asking for.

A circuit consisting of two voltage sources connected to the output via diodes, ideal, or otherwise, will always favour the higher voltage. If you want something else, then you're not looking for an ideal diode circuit.
 

Offline No_ShortyTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #6 on: March 07, 2024, 02:21:34 pm »
Fair enough - that was my initial question, if the answer is that it isn't something I am going to find then that that's no problem, I'll ave to look for an alternative solution.

As I said before, I can manage/regulate my DC sources to simply make an ideal diode circuit work, but is there anything else i should be looking at that would provide the switching function I'm looking for?
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #7 on: March 07, 2024, 02:36:36 pm »
I'm not sure what you're asking for.

A circuit consisting of two voltage sources connected to the output via diodes, ideal, or otherwise, will always favour the higher voltage. If you want something else, then you're not looking for an ideal diode circuit.

and if the inputs are the same voltage they'll just share the load
 
The following users thanked this post: Chernobyl

Online golden_labels

  • Super Contributor
  • ***
  • Posts: 1210
  • Country: pl
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #8 on: March 07, 2024, 02:38:40 pm »
The image address is invalid. Did you notice that? :D

Since I don’t get the picture, I may be misunderstanding something. But why do you want to avoid the switching behavior in the first place? Diodes are not mechanical relays, they don’t wear out by being switched on and off. They are also not transistors with inefficient “partially open” state, which one wants to avoid in switching applications.

The diode will also not switch back and forth, just settle in a single, stable state.
People imagine AI as T1000. What we got so far is glorified T9.
 

Offline No_ShortyTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #9 on: March 07, 2024, 02:46:32 pm »
Thanks, fixed the link.

Yes I realise the batteries will drain together when they are the same voltage,

I want to avoid the use of the 'backup battery' at all unless the primary source fails/runs out. It would also provide system power when swapping out the other DC source (but the regular ideal diode circuit would obviously be fine for this)

I want to keep the 'backup battery' at 55v, whilst allowing the main battery to brain from 58v down to 50v. At 50v it would cut out (bms controlled). With only the ideal diode circuit the backup battery would have also drained down to 50v, significantly reducing its remaining capacity.
 

Online tszaboo

  • Super Contributor
  • ***
  • Posts: 7392
  • Country: nl
  • Current job: ATEX product design
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #10 on: March 07, 2024, 02:49:21 pm »
What you need is a prioritized diode OR circuit, or a power multiplexer. It's an ASIC, you can find it at TI or AD.
 

Offline No_ShortyTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #11 on: March 07, 2024, 03:06:02 pm »
Thanks, I'll do some research!
 

Online golden_labels

  • Super Contributor
  • ***
  • Posts: 1210
  • Country: pl
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #12 on: March 07, 2024, 03:42:09 pm »
(Since I still can’t see the image, I’m answering based on the text only)

If running batteries in sequence is your goal, follow tszaboo advice. Just pay attention to maximum voltage the chip can support: you want 58 V nominal (what is real max voltage?), while e.g. no Texas Instruments multiplexer go that high. If the current draw isn’t too big or you will not be able to find a part for 58 V, you may use a p-channel MOSFET to switch the backup battery on from a microcontroller. Be sure to place diodes to prevent charge from going between batteries. Also remember that MOSFET’s gate has to be driven up to the battery voltage to turn it off, which is not possible directly from a microcontroller I/O pin — even in open collector style driving.

However, I would still consider, if it’s really your goal to switch batteries like that. I’m aware of situations, where this may indeed be desirable. But also remember that, if the current draw is constant, two batteries drained together last as long as two batteries drained in sequence. Avoiding overengineering will save you some pain, money, and potential failure points.

Forum lets you post images. Please use this feature instead of broken and questionable 3rd-party services. :)
« Last Edit: March 07, 2024, 03:45:48 pm by golden_labels »
People imagine AI as T1000. What we got so far is glorified T9.
 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2008
  • Country: us
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #13 on: March 07, 2024, 04:05:23 pm »
I've seen posts here and elsewhere in the past wanting a circuit that lets you switch in one battery at a time, or perhaps charge one battery while another is powering the load.  But in the end there was never a good reason for doing that when you could just use two batteries in parallel as @golden_labels suggests.  Is this another such case?  Under what circumstances would you actually gain some battery life by switching batteries in and out?

 

Offline schmitt trigger

  • Super Contributor
  • ***
  • Posts: 2223
  • Country: mx
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #14 on: March 07, 2024, 04:07:47 pm »
Unfortunately, then Ideal_Diode control IC has had its part number scratched. Otherwise, you could look at its datasheet to determine how to modify the circuit to meet your requirements.

A while back I purchased a full bridge ideal rectifier built with individual control ICs for each Mosfet. Those ICs also had their part numbers scratched. I reverse-engineered the PWB, and attempted to figure out the IC part number based on the actual connections, and find a commercial IC that matched.
I was unsuccessful to make a match with any device manufactured by western IC companies. I concluded that it must be a Chinese design IC, from one of the many companies that we in the west are unfamiliar with.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19529
  • Country: gb
  • 0999
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #15 on: March 07, 2024, 06:42:26 pm »
An ideal diode could be part of the solution, but there's more to it than that.

Sounds like an X Y problem.

Are the batteries the same?

What voltage thresholds?

Do you want any indication when it switches from one battery to the other?

I doubt there's a simple off the shelf solution for this problem.
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 8179
  • Country: fi
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #16 on: March 07, 2024, 07:14:16 pm »
Why do you want two batteries one of which is used first and then the other? Almost certainly a single larger battery - e.g. by permanently connecting the two in parallel - is not only simpler - and I mean significantly simpler, since a safe battery turnover switching system is far from trivial to engineer -, but also better (e.g., better efficiency, higher current capability).
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 7746
  • Country: ca
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #17 on: March 07, 2024, 08:08:38 pm »
I doubt there's a simple off the shelf solution for this problem.

Google 'ideal diode ORing controller'.

They have single multichannel, or separate discrete IC's designed just for this task, IE battery switcher with adjustable thresholds to drive the GATE of the mosfets you choose.

Yes, some of the more complex ones have a 3 resistor power switch on good, switch out bad adjustable levels with a status line to pass between ICs to prevent rapid modulated switching if you only want 1 battery at a time logic.
« Last Edit: March 07, 2024, 08:19:44 pm by BrianHG »
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19529
  • Country: gb
  • 0999
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #18 on: March 08, 2024, 08:33:29 am »
I doubt there's a simple off the shelf solution for this problem.

Google 'ideal diode ORing controller'.

They have single multichannel, or separate discrete IC's designed just for this task, IE battery switcher with adjustable thresholds to drive the GATE of the mosfets you choose.

Yes, some of the more complex ones have a 3 resistor power switch on good, switch out bad adjustable levels with a status line to pass between ICs to prevent rapid modulated switching if you only want 1 battery at a time logic.
I've had a quick look and the ones I've found just power the circuit from the battery with the higher voltage, which isn't what the original poster wants.

Can you please suggest a part which suits the original poster's application?
 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2008
  • Country: us
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #19 on: March 08, 2024, 03:11:36 pm »
It appears that TI refers to them as power mux ICs.  An example is the TPS2117, but it won't handle the OP's voltage and current needs.
 

Offline No_ShortyTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #20 on: March 10, 2024, 12:36:59 pm »
Hi all, thanks for the further advice, I actually didn't have a chance to look into this more. There is good reason I don't want the second battery to drain at the same time - it will be acting as a UPS.

Basically I run computer kit often away from mains AC for long durations, I am looking to make an 'all in one' DC power distro and UPS. AC should be the primary source of power, with an exterior battery the second source (so the distro would switch to the battery if AC is pulled or not present). However when running on the external battery, if this battery runs out or fails I need there to be a backup to switch to - hence not wanting to drain these batteries at the same time. This will also allow the main exterior battery to be switched out without AC power and without losing power to the system.

Here is a rough diagram:



*I would note that total power consumption will be significantly lower that the upper end of what I am speccing it for.

In an attempt to keep this 'simple' and try to steer clear of circuit design which I would have to pay someone else to do I think... I am considering just have a 13s2p 18650 bank, but limiting the charge voltage to 40-50v, I would lose some capacity but would still be enough for switching power sources (as well as being high enough to allow the DCAC to work), and would work with the 'off-the-shelf' ideal diode circuits as its voltage range would consistently be lower than either primary source.

Although I have been looking at the Analog/TI websites, I couldn't find anything that seemed suitable. It is well possible that I am missing things based on lack of understanding of the terminology in the data sheets.
« Last Edit: March 10, 2024, 12:39:53 pm by No_Shorty »
 

Online wraper

  • Supporter
  • ****
  • Posts: 16867
  • Country: lv
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #21 on: March 10, 2024, 01:04:24 pm »
Note that such two terminal "ideal diodes" are not really ideal. The issue is that they still need voltage for internal operation. So they either charge internal capacitor with reverse voltage and can only work with AC voltage, or part of the time become a "normal diode" and charge internal capacitor from forward voltage like this one https://www.ti.com/lit/ds/symlink/lm74670-q1.pdf thus you get pulsating voltage and increased loss.
For OR-ing operation you should prefer 3 terminal part that has GND connection like this one https://www.diodes.com/assets/Datasheets/ZXGD3111N7.pdf
« Last Edit: March 10, 2024, 01:10:07 pm by wraper »
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19529
  • Country: gb
  • 0999
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #22 on: March 10, 2024, 01:08:07 pm »
Ideal diodes will will work, so long as:

VPriority 1 > VPriority 2 > VPriority 3

Going by your block diagram, Priority 1 and Priority 2 meet the above criteria. All you need to do is select a lower battery voltage than Priority 2, for Priority 3
 

Offline No_ShortyTopic starter

  • Contributor
  • Posts: 39
  • Country: gb
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #23 on: March 10, 2024, 01:25:12 pm »
@Wraper - I did just pick the image in the first post at random, but it does in fact have a GND connection (bottom left) and is supposedly for a DC solar circuit.

@Zero999 - Indeed, this I understand at least. My only problem is that I would like AC output, and the only reputable DCAC inverter I can find for a reasonable price is the Meanwell NTS-400p, which has a voltage range of 40-60v. This works for my other sources, but means my 'UPS' source has to be above 40v and below the low end of the other battery source.

I did consider either a lower voltage UPS battery with a DCDC boost converter, but couldn't find anything that looked decent and could handle the current, or a higher voltage UPS battery with a step down converter, but again couldn't find anything that looked good and could handle the current - whilst not being too big for the remaining space I have.
 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2008
  • Country: us
Re: Can you make an 'ideal diode circuit' with voltage 'bias'?
« Reply #24 on: March 10, 2024, 02:37:36 pm »
It's not clear to me how charging would work for both battery packs.  They would need separate chargers it seems.

It's also still not clear that the combined run time on the two battery packs in sequence would be any longer than just moving the priority-3 cells to the priority-2 pack in parallel, and having one UPS backup instead of two.  Can you, or anyone, explain why that would be the case?

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf