[info] Power supply - kb1gtt

Hardware inside and outside of the ECU
Gone_AWOL
Posts: 7
Joined: Mon Mar 23, 2015 12:15 pm

Re: Power supply - kb1gtt

Post by Gone_AWOL »

Also, bench testing of power supplies at home is certainly achievable however you will need some test gear to do so, a USB scope will miss most transients :(

If you haven't already I would highly recommend picking up an old tek 456b on ebay... you can get these for next to nothing and they are more capable than any Chinese digital scope I have ever used. You can aslo go a long way towards testing high transients with a small capacitor back and a high voltage power supply, load dump like wise with a semi decent power supply.

Do you have a friendly local EMC company you could go a see? For a few hundred dollars you can find out a huge amount.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

As luck has it, I do have a local EMC shop I can see. I have a HamEgg spectrum analyzer which works reasonably well for conducted emissions. This board is so small that if you can survive conducted emissions, then you're almost guaranteed to pass radiated and other EMC. After myself I have access to a some really nice RF gear. However I don't see much need for it here. We want to keep the EMC low enough that it's not a problem physically, as well we want to be friendly enough that we don't radiate and get noticed. I have built a couple PCB's for work related efforts and they have passed the typical 61000 and 55011 tests preformed by Intertek.

You can get the entire switching device for nearly what you claim for the linear regulator. See this one which is a bit high priced. http://www.seeedstudio.com/depot/adjustable-dcdc-power-converter-125v-35v3a-p-1534.html if you shop ebay you can find that for about $2, see this listing http://www.ebay.com/itm/10-pcs-DC-DC-LM2596-Step-Down-Adjustable-Converter-Power-Supply-Module1-3V-35V-/301120877446?pt=LH_DefaultDomain_0&hash=item461c33f386

We started with this design, then worked our way to automotive grade via following the above mentioned ISO standard for voltage spikes, load dumps and such. I have measured the normal current to be .12A and the inrush to be as much as .3A. That was for just the board with LCD and with out external 5V loads.

Going from 15V to 5V at .12A is 1.2 watts which needs to be removed if you go the linear approach. This switcher is at worst 80% efficient, so it generates less than .12W. If you include the option for an external load, that could be 2 or 3A which is 20 to 30 watts with the linear and 2 to 3 watts with the switcher. With an ambient of 50C what's your junction temperature in the linear chip? What's the effects on the near by chips? What's the thermal resistance between your chip and the ambient? Keep in mind those injector drivers on the other side of the board are going to make a pile of heat, and every watt is going to raise the temperature of the PCB. When we are talking about 2 different designs that cost around $2 each, I tend to remove the watts by design, instead of removing them by adding a heavy and expensive heat sink.

If you want to make your own linear design, I have not problems with that. If you want to help make this more robust against transients, I'm all ears. For example, I understand that the industry standards are to test the transients repeatedly, but I used a TVS that's potentially a bit small. There are some un-likely situations where continuous transients can overheat the TVS diodes. I designed it such that a hard transient will blow a 5A upstream fuse, but repeated minor transients could overheat the TVS. I believe the TVS would then short, which would then pop the upstream fuse, but I haven't tested that, and I would prefer if that TVS could safely survive long term medium transients. If you have a suggested more rugged reasonably low cost TVS, I'm all ears. I made this a thru hole friendly component to allow for multiple mounting options just in case it becomes an issue of concern.

We are planning for more than MCU only currents as we plan for expansion via CAN bus extension which would include 5V and GND.
Welcome to the friendlier side of internet crazy :)
Gone_AWOL
Posts: 7
Joined: Mon Mar 23, 2015 12:15 pm

Re: Power supply - kb1gtt

Post by Gone_AWOL »

As an electrical engineer working specifically with engine control modules and automotive electronic products I hoped to give a little help here, luckily the project appears to already have a specialist.

For your information, radiated emission is by far the hardest part of EMC testing to pass, you almost certainly have a number of unintentional antennas through out your design.

You go on to say that your switcher is 80% efficient, have you physically measured this? And what 5V external load at 2-3A are you seriously anticipating?

The reason I mention decent and fast oscilloscopes is that the schematic shown on page one of this topic shows two TVS diodes placed directly across the input (after fuse and PCH), these may not be able to clamp high voltages effectively with out some form of current limitation, you possibly will not be able to see this on a slow scope. Further, although the P channel set up as a diode is a nice idea and gives very little voltage drop, a fast diode may possibly yield better results for negative transients (without looking at your P channel data sheet).

You are right that under sustained transients the TVS may fail etc, the most likely failure mode is short, however it is not guaranteed.. either way if the TVS fails short and the main fuse blows and the car cuts out and kills every all passengers what will you say? "I though the TVS might get a bit hot and short". Either way you have failed all normal OEM levels of testing as the fault was non recoverable. So my suggestion is not to rely upon a TVS and instead attempt to filter high frequency/fast rising edge spikes as much as possible before the TVS and to limit current as much as is practical to give the TVS an easier time when it does have to clamp transients....

I didn't sign up to swing my cock about, unfortunately I have struggled and solved with a great many of the hardware challenges raised on this forum before and as such feel well equipped to sift through things that will and won't work in areas that you may not have considered.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

No complaints about talking tech and hearing different suggestions. What doesn't kill this will only make it stronger.

About killing people because the engine stops, first things first. This is not for road use, it's for track and fixed engine applications. You should read the disclaimer / reminder written on the PCB. I expect applications will have 5 point harness, guard rails, and other such safeties on the stages, closed tracks, drag stripes, ect. Also if loss of power harms someone, that's an indication of how bad a driver they are. Fully qualified OEM car's loose power on occasion, especially if you forget to fill the tank. If you forget to fill the tank and get harmed, that's not saying much about you.

I understand our first endurance test is likely going to be 24 hours of lemons in the near-ish future.

I took some measurements, I seem to recall it was between 80% and 85%, but that was an off the cuff spot check. I didn't bother to write it down. Some day I want to do these tests in a more formal documented fashion, with better calibrated equipment. You are correct that my DSOquad has calibration issues, but it's also a 72MHz scope, so it sees fast things, just not creditably accurately. I also have an analog tek, and I have access to many electronic tools via work, including a small LCD desktop I forget how many hundred of MHz Tek, and many spectrum analyzer tools. When we get solid enough to justify running this through calibrated tools I can do it, for now I'm using the less calibrated stuff to get it honed in.

About blowing an upstream fuse, I tend to agree and disagree. Using a choke could help prevent blowing the fuse, as well a series resistor could help. The fuse shown is a bit miss-leading, it's more of a place holder. It could be a resistor or inductor. In could also be a kind of fuse-able link. I put it there with the theory it would be ironed out at some point. Ultimately I don't know exactly how much current the PCB traces can handle, so I don't know how small I want this fuse-able link to be. I expect long term it will be a coil that will fail at a lower current than the PCB traces, such that if you fail catastrphically, you can repair the ECU rather then replace the ECU. I generally expect you'll fuse at the source, but I also understand we have very little control of the field installations and will at least not toast the PCB. If you do that to any other ECU I've seen, you can expect to replace the ECU, not repair the ECU.

About general attitude, I prefer constructive criticism, with a generally friendly feel.

About allowed and not allowed modes of failures, you claim you are an electrical engineer who has develop automotive products, can you specify what AEC Q100 standard specify what is an allowed failure modes and what is not? I have limited access to these documents. I wonder if you have access to them, or to equivalent's of them.
Welcome to the friendlier side of internet crazy :)
Gone_AWOL
Posts: 7
Joined: Mon Mar 23, 2015 12:15 pm

Re: Power supply - kb1gtt

Post by Gone_AWOL »

I thought your reply was well constructed and I was starting to type up a decent response until you asked me to access a freely available set documents which I for one have never used, I have used journals discussing similar European standards but have ever really found the time to sit down and read through them all? Maybe you have more spare time than me....

You seem to have gotten your feathers a little ruffled and I'm sorry about that. But sometimes when someone with a little experience tries to offer a little help its perhaps better to listen for a while before passing it off as rubbish. I don't for one moment think your simple or the things you are designing can't work but I can also look over your schematics and tell that some of it is pure guess work.

Any way, good luck
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

The Journal is where EEA / EU directives are freely published, which is then typically attached to an IEC, ISO, or other such standard. Following the attached standard is a good way to ensure you have complied with the Directive. Directives are the equivalent to European laws and like all laws have various levels of enforcement. We all know the strongly enforced ones like ROhS and EMC. The Journal is free, the standards have a publishing house fee attached to them.

AEC Q100 is mostly an american thing as AEC was formed in 1993 by Chrysler, Ford Motor, Delco Electronics, and has nothing to do with journal directive thing. AEC Q100 has free stuff and paid for stuff. What I hear in your response is that you don't have access to the paid for stuff, as well you haven't read the free stuff.

If you want to make constructive criticisms and help make the next spins stronger, I'm all ears. If you want to sit back and simply use it, or do nothing with it, that's also fine with me.
Welcome to the friendlier side of internet crazy :)
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

About the fuse used in the Frankenso PCB, the long term plan has been to use something like this http://www.digikey.com/product-detail/en/ERX-1SJR51/P0.51W-1BK-ND/35637?WT.z_cid=ref_octopart_dkc_buynow&site=us which is technically a resistor, which would fail if you over current the power supply acting like a fuse. It would be intend to fail before PCB traces burnt up. It also has some uH's and ohms which would help choke RF. To use such a device requires extensive testing which I have not gotten around to doing, which means I don't know if the above device would work or not. It's probably close, but probably needs some adjustments before a final component can be selected. Any how, for now it at least has a fuse such that you don't burn the PCB traces.
Welcome to the friendlier side of internet crazy :)
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: My observations on Frankenso 0.4

Post by Rhinoman »

I'll start with the PSU:

Image

ISO16750-2 has two specs for load dump, pulse 5b which (from memory) is 45Vpk up to 450ms or pulse 5a which is 113V for up to 400ms. The source impedance is specified as 0.5 to 4 Ohms. The pulse 5a is an exponential rise and fall from the nominal voltage, ie 12V + 101V, pulse 5b is supposed to represent a load dump on a vehicle with a clamped alternator so its the same waveform but clamped at 45V.
In the existing design the front end components are a 20V FET and two 20V Zeners, during a load dump the voltage across the FET would be in the region of 113V - 25V which it isn't going to like. The max current draw is going to be around 80A through a 0.5 Ohm source impedance which is likely to let out the smoke.
The conventional way to deal with this is to use a reasonable sized TVS around 27-36V on the front end with a reasonable sized 50V cap to slew the rise time a little. Reverse voltage protection relies on the TVS conducting in the reverse direction and blowing the main fuse; this is usually the simplest and cheapest option.
Internal fuses are not accepted by the vehicle manufacturers because they don't want anyone opening the ECU and they aren't usually required.
Most ECUs now use a switcher but the ones that I have been involved with switch at around 7.5V and then follow that with a 5V LDO regulator to remove a lot of the switching noise and ripple and an additional advantage would be that the 7.5V could be taken off via an LC filter to power the op-amps.

To test load dump I've used a modified 2kw audio amplifier driven by an arbitrary waveform generator.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

Great feed back, and thanks. Don't worry so much about the feeling of being critical, I generally look for content before emotion. What doesn't kill it will only make it stronger.

As a quick note on the history of Frankenso and Frankenstein boards. We originally developed several small boards which we eventually smashed together to make the Frankenstein board. AKA it was our baby made from various bits and pieces, as well it often plays nice with replacing sections. Then Frankenso was the same thing as Frankenstein but for a Denso based system. This power supply is one of the sub circuits used on these other Frank series boards.

I was not aware of ISO16750-2. I just added it to the wiki. http://rusefi.com/wiki/index.php?title=Manual:Hardware

I have found a PDF copy of the 2006 spec here http://static.ednchina.com/mcu/2009/11/6/2f9e7f31-3753-49a5-b3cc-e9b25fb072a3.pdf which has been attached. Hmmm, that seems to have an IHS copyright note on it, so this link may need to go away. This copy from 2003 doesn't have that copyright note. http://i01.yizimg.com/upload/175936/200793211156599229307.pdf I didn't find the 100v-ish pulse specs in this standard. There are similar specs in 7637-2. Last I recall 7637-2 specified the surge pulse, but didn't specify how often, or for how long it had to sustain. However I'm also working off random bits found on the interwebs, so I might not have the full spec.

Also I found this http://www.vishay.com/docs/49748/49748.pdf which has lots of great scope traces and information that I find interesting.

I agree the TVS diodes are undersized, and should be changed for larger ones. They are thru hole components and larger ones should be easy to install, I just haven't gotten around to finding the ones should be used. I haven't figured out which ones as I didn't have a good spec for what kinds of surging I should expect. As well there should be an upstream RF snubber which effects how much energy these clamping diodes would see. What's in there now was based on easy to obtain low cost china parts which would likely "work" for a large single surge, but would not survive sustained surges happening every ?? seconds. I don't have proper facilities to test it, so it has been a step in the right direction, but is probably a weak design. It's better than nothing, but it also really isn't 100% correct.

Do you have a suggested schematic or parts list for the audio amplifier circuit? It would be handy if I had some kind of test fixture to do better testing. There are several ripple rejection signals I would like to test.

I also agree it should have some RF choking that helps keep the fast transients off the PCB. I was hoping to use a thru hole resistor, as a fuse / RF choke, but have done a bunch of testing and found that this is not likely to work. With my DSOquad, I did a sweep of several different wire wound resistors and found that under 100kHz they just don't have the RF blocking inductance required to choke off the RF. The program for the DSOquad is linked here http://essentialscrap.com/dsoquad/freq.html I've been looking at replacing F1 with something like this https://octopart.com/elc-18b470l-panasonic-392391 I'd like to find an inductor that will burn up before some down stream short burns up a PCB trace or something like that.

About the on-board fuse. We expect that there will be an upstream fuse that's smaller and will blow before this fuse blows. I agree that under these surge conditions it should not blow the fuse. However the design now would blow the fuse under several 12V surge conditions. This is better than blowing the MCU or burning a trace on the PCB, but it's also not as good as I would like it to be. We also don't have the quality control systems in place like an OEM. This fuse is partly designed to protect the board when someone doesn't provide proper fusing up steam. Basically if the board was going to go up in flames any how, it would be nice if those flames happened in a place that was easily replaced. Keep in mind that we do not have control over random peoples install practices, while an OEM can ensure that things like a proper up stream fuse has been installed.

Take note there is this file for frankenso https://sourceforge.net/p/rusefi/code/HEAD/tree/trunk/hardware/frankenso/known_issues.txt which list pretty much every item that someone has commented to me. There are some things that haven't been addressed, and many that have been addressed. If you see something you think should be addressed feel free to post a suggested addition to that list. I work on this stuff in 10 minute windows of time, I use that list to remind me what to look at when I get those short windows where I can work on it. Right now the RF choke and fuse blowing issue are triggered by this entry.

Code: Select all

69)                   Change F1 to a wire wound resistor which will also be the weak link and act like a fuse before the PCB breaks, while also snubbing RF
Well that's my 10 minutes for this morning. Welcome along and feel free to comment and make suggestions.
Attachments
2f9e7f31-3753-49a5-b3cc-e9b25fb072a3.pdf
(333.42 KiB) Downloaded 1143 times
Welcome to the friendlier side of internet crazy :)
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

I'm started looking at the surge with QUCS. I'm trying to find a solution that will work with out blowing the fuse. So far it either generates 10+ watts of heat or blows the upstream fuse. These 0.4S make the RF snubbers pretty much non effective. This PDF https://www.maximintegrated.com/en/app-notes/index.mvp/id/4240 pretty much say's you need active clamping to meet these specs. It also separates between high energy surge and low energy surge. AKA relay is a low energy surge, wonky alternator circuit that generates excessive voltage which would be a large energy surge. It notes that the clamping diodes will blow the fuse on a large energy surge. I'd like to find specs for a low energy surge.

https://sourceforge.net/p/daecu/code/HEAD/tree/Hardware/trunk/simulations/12V_Power_Surge/
Attachments
12V_surge.PNG
12V_surge.PNG (50.79 KiB) Viewed 23981 times
Welcome to the friendlier side of internet crazy :)
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

Hmmm, what about using a high side MOSFET, that opens when the voltage goes higher than desired, or switches in a large resistor to snub the voltage seen by the regulator.
Welcome to the friendlier side of internet crazy :)
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

Looks like there are many active clamp typologies out there. On Frankenso, I'm a bit tight on space, and have kind of backed myself into a corner. Rumble groan moan. I've ready many articles about how this happens.

Any how, it seems a depletion mode N channel MOSFET is among the smallest and simplest to implement. However a bit pricey as it exceeds the regulator cost by about 3X and these kinds of MOSFET's tend to go obsolete on a regular-ish basis. So it has a high probably of needing to find an equiv part in the next couple of years. Any how, it's among the lowest cost options, so I think the below is the way to go. In our case we aren't using the linear, and I plan to be clamping to a higher voltage, but this provides the basic concept.
N-MOSFET_Depletion_Clamp.PNG
N-MOSFET_Depletion_Clamp.PNG (95.68 KiB) Viewed 23813 times
Source of that graphic found here
http://ww1.microchip.com/downloads/en/AppNotes/AN-D66.pdf

These MOSFET's could be suitable, but cost about $6 which is kind of blah pricing, but better than blowing the fuse when you hit a surge. These are greater than 150V rated, greater than 5A continuous conduction, N-channel depletion mode MOSFET's.
http://www.digikey.com/product-detail/en/IXTA6N50D2/IXTA6N50D2-ND/2183277
http://www.digikey.com/product-detail/en/IXTP6N50D2/IXTP6N50D2-ND/2183261

Perhaps worth nothing, that most datasheets don't specify enhanced mode vs depletion mode in the searchable text. Enhanced mode is most common, so that's what you'll typically get. The datasheets typically tell you, but they commonly do it graphically. See "MOSFET dep" on this wiki page. It's kind of a pain as you can't specify to google that you want the graphic with a solid line and arrow in the middle, as opposed to dashed line and arrow in the middle. Also these graphics aren't very consistent either. As the datahsheets on the above noted depletion mode MOSFET's show the graphic that wikipedia notes as enhanced mode. It's probably a typo / wrong graphic on the datasheet. Point being that finding a depletion mode is a kind of a pain.

https://en.wikipedia.org/wiki/MOSFET#Circuit_symbols
Welcome to the friendlier side of internet crazy :)
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

This PDF notes several chips with various current capabilities. http://www.ixyspower.com/images/literature/500V-1000V_Depletion_Mode_D2tm.pdf as well it notes that N-channel depletion mode MOSFET topology is good for automotive applications. I see the 0.8A device is under $2 and the 6A device is about $6. I also found this https://octopart.com/cpc3703ctr-ixys-22614848 which is under $1 for 350mA.

Page 8 of this PDF provides some math for how to select the MOSFET http://www.ixysic.com/home/pdfs.nsf/www/AN-500.pdf/$file/AN-500.pdf

I think I'm going to plan for the 5A to 6A device, but also add the smaller 350mA package, such that someone can choose low current for lower $, but I think the primary plan should be for the higher current as we offer the 5V for powering stuff on the CANbus connector. That 5V can potentially need higher current.

Unless someone comments, I'm going to plan for these two parts http://datasheet.octopart.com/CPC3703CTR-IXYS-datasheet-24914314.pdf or http://ixdev.ixys.com/DataSheet/DS100177B(IXTA-TP-TH6N50D2).pdf
Welcome to the friendlier side of internet crazy :)
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

This is what I'm currently thinking will prevent the fuse blowing when you have a sustained 100V surge voltage on the 14V power lines. I still have to do some checks, like making sure the gate voltage is OK as the drain and source get pulled away from the GND / 14V voltages. But this should be pretty close to a functional design. Q1002 is a depletion mode (Normally closed) N channel MOSFET. D1002 would need to change to a 15.5V TVS, as the MOSFET has a max 4.5V gate voltage.

Hmmm, I probably should add current limiting resistor like R1001. Any how, this is a start.
Attachments
N-MOSFET_Kicad_Depletion_Clamp.PNG
N-MOSFET_Kicad_Depletion_Clamp.PNG (20.62 KiB) Viewed 23791 times
Welcome to the friendlier side of internet crazy :)
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: Power supply - kb1gtt

Post by Rhinoman »

ISO 7637-2 is obsolete and was replaced by ISO 16750-2 which was updated with the tests from 7637, the ISO specs are all subject to stringent copyright conditions but there are copies available on the net. I think that you need a version from 2010 onwards but the Vishay document is a good reference.
The 100V pulse comes from the load dump pulse 5A:

Image

The exact values that are needed are usually specified by the vehicle manufacturer because they are mostly dependent on the alternator used. For a generic ECU you would need to take the worst case values, i.e. 0.5R, 87V and 400ms.

From memory Ua is 12V because the test is intended to replicate a jump start with the jump leads removed with the battery still flat so the peak voltage, worst case, would be 12+87 = 99V.
The energy that needs to be dissipated is equivalent to the area under the curve so the higher the clamping voltage the lower the energy. The LM2596 is a 40V device so you would need something like an SMBJ24A which has a 'maximum' datasheet clamping voltage of 38.9V, which is similar to the device specified in the Vishay document. I should have a simulation that will calculate the energy. The filter caps on the input to the switcher would need to be 50V and they should really be part of an LC filter to the switcher as well to reduce the switching noise appearing on the supply.

Usually the system fuse would be a 10a or 15A device, you really need to specify the type as their characteristics do vary. The fuse is primarily to protect the wiring only, not any modules which should have their own protection circuitry. You need to look at the time-current characteristics as well as the temperature de-rating curve to determine how long it will take the fuse to blow - its not the current that blows the fuse but the heat/power dissipation. The specs for an ATO blade fuse are given here:

http://www.littelfuse.com/~/media/automotive/datasheets/fuses/passenger-car-and-commercial-vehicle/blade-fuses/littelfuse_ato_blade_fuses.pdf

With a 0.5 Ohm source impedance then the maximum current will be approximately 100 - 9/0.5 = 120A, in reality the clamping time is going to be maybe 200ms, 120A for 200ms is 24A but you only get 120A for a very short duration so the real average will be a fair bit less than that; I will see if I can find my simulation to get a more accurate figure.
If you want to avoid the fuse blowing during a reverse battery connection, which isn't usually a requirement then you can use a bi-directional TVS and have the reverse blocking transistor after the clamping circuit. However, if the worst consequence of a reverse battery connection is a blown fuse then most mechanics would be very relieved.
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: Power supply - kb1gtt

Post by Rhinoman »

The amplifier was a commercial amp made by Crown and it is old and very heavy!
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

Do you have thoughts about the active clamping with a n-channel depletion mode MOSFET? I like this as it can sustain a 150V continuous surge indefinitely. It may cost a couple pennies more than the having a TVS clamp that is tuned to not blow the fuse, but we also have low qty so it's not really a huge pile of $. As well it doesn't clamp the voltage but steps it down to a safe level. Hmmm, looks like the above graphic is a bit out of date. I now have a bias pull up resistor on a 15V zener such that the Q1002 will clamp at 18V. I have some QUCS pictures and updated schematic to share this evening.

I'd also like to find a better p-mosfet. The one we have is only there because it was what the china assembler had on hand. I'd like to find a P-MOSFET that's pin compatible, 5A friendly, low Rds, alternative that's more like 40V or more capable. I don't like having the active clamp set to 18V. I feel it's to close to normal operation.

I agree when selecting a fuse you need to look at the datasheet, especially the I2T specs. These surges events often fatigue the fuse and cause nuisance trips when you exceed the I2T specs. If you size it correctly, they can last for a very long time, but often people don't look at the I2T ratings.
Welcome to the friendlier side of internet crazy :)
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

This is the current schematic and simulation. I'm almost tempted to remove the original TVS diode(s), but might as well leave it there for some extra protection. It shows that with a 100V pulse, the regulator only ever see's 18V to 19V. It also shows that the limiting factor will be thermal, as the MOSFET would have to absorb a peak of 11 watts under normal ECU loading, and if you are running 5A on the 5V, the MOSFET would need to absorb a peak of 400W. The specs I've found indicate a surge once a minute for 10 minutes. With the DPAK, this should have a low enough thermal resistance to the heat sink to prevent over heating. However if your alternator or something goes continuously wonky, it would potentially hit a thermal limit as some point. Either way, it appears we have a solution that would prevent the blowing the fuse upon a load dump.
Attachments
N-MOSFET_Depletion_Clamp2-2.PNG
N-MOSFET_Depletion_Clamp2-2.PNG (51.12 KiB) Viewed 23732 times
N-MOSFET_Kicad_Depletion_Clamp2.PNG
N-MOSFET_Kicad_Depletion_Clamp2.PNG (16.09 KiB) Viewed 23732 times
N-MOSFET_Depletion_Clamp2.PNG
N-MOSFET_Depletion_Clamp2.PNG (50.34 KiB) Viewed 23732 times
Welcome to the friendlier side of internet crazy :)
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Power supply - kb1gtt

Post by AndreyB »

This is all magic, it's amazing that the magic is moving forward :)
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

Updated schematic and layout posted which includes the active surge suppression protection. This should handle multiple surges up to 150V. The key limitation will be how hot it can get. That's something I won't know until it's Rth is measured.
Welcome to the friendlier side of internet crazy :)
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: Power supply - kb1gtt

Post by Rhinoman »

kb1gtt wrote:The specs I've found indicate a surge once a minute for 10 minutes.
That's the minimum requirement, most manufacturers spec that but the last ECU that I did was 100 repetitions - in reality the power dissipation stabilises long before you get to the end of that test.
Active clamping should work but at that cost it would never make it into a production ECU. A lot of the information you will find on line is not really targeted at engine management, there are a lot of other modules that drive stuff like air-con and power windows have a very low current draw on the 5V.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

How I wish I had the resources to put into designing this with a non-active design. To properly do this with a non active TVS diode design, you need to specify the upstream fuse, then test your design against that fuse. I don't have the test equipment, budget, or time resources to dedicate to spinning a board, then testing it until it's likely destruction. I wish I did have those resources and time, but life takes priority over the hobby.

In our case we have 16 engines, and I believe we expect to be low qty for the foreseeable future. The 5A friendly clamping MOSFET costs about $6, and the 300mA clamping MOSFET costs about $0.80 in qty 1. A TVS diode would be around $0.60. I agree this is pricey, especially if thinking qty, and the active design would likely be changed if an order were pursued to make some kind of significant qty. Until qty's are significant, the cash outlay is very small.

I look at it like this, if I can pay $6 more on a system that costs hundreds, and it means I can guarantee that I don't pop a fuse when the head light blows, I'd be willing to pay that extra couple bucks. If someone is concerned and doesn't expect the 5A, they can save about $5 and use the smaller MOSFET. If I had the resources and time, I'd be all for testing a non active design and honing it down until it is proven to work, but with the lack of resources I have to increase the costs a bit, making sure it will work with less testing.

The active design is limited by the heat sinks thermal characteristics, which are currently unknown. It is very likely that with a proper heat sink this can sustain a continuous 100V spike. At this point I am very confident it will easily survive 100 repetitions at 1 minute spacing's. However until I can test the thermal resistance, that's difficult to know for certain.

Have you seen the updated R0.5? See page 9 of the updated PDF found here https://sourceforge.net/p/rusefi/code/HEAD/tree/trunk/hardware/frankenso/frankenso_schematic.pdf?format=raw
Welcome to the friendlier side of internet crazy :)
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: Power supply - kb1gtt

Post by Rhinoman »

I haven't had any time recently to look at this, I have started assembling my PCB though. You are only going to get a load dump with a battery disconnect, it won't happen through something trivial like a headlight bulb blowing, its almost always caused when a jump start is carried out and the leads are removed with the battery still flat, at that point the alternator is under full load and it takes a period of time for the regulator to compensate for the reduced load. 'll have a look through my files later and see if I have a load dump model. Do you need 5A? its a lot for a 5V supply, other than the micro and a few low current sensors there tends not to be a lot on it. I would have thought that 1A would be more than adequate for internal supplies with a 250mA tracking regulator for external 5V power. The tracking regulator gives short circuit protection and prevents the internal supply from being pulled down in the event of an external short. There isn't much that you can do to calculate thermal characteristics, really you need to create a PCB with the footprint on it and then put a fixed current through the device and measure the temperature rise.
Have you modelled the battery current? you will need some higher frequency decoupling on the input to reduce conducted emissions from the switcher, usually with a switcher you would have an LC pre-filter, I would fit a couple of ceramic caps at least. I may look at that later, I have some 'real work' to do first.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

I have only done some basic testing, with basic equipment on PCB's that were in the scratch and dent category. I posted about it here http://rusefi.com/forum/viewtopic.php?f=4&t=569&start=168

At some point I should probably connect my hameg spectrum analyzer, but haven't gotten around to doing that yet. The energy above 150kHz on the 12V side is not measurable via my DSO quad, which means it's below about 5mV. Then according to the chart found here http://www.dipolnet.com/conversion_table_-_dbuv_to_uv-mv_bib04.htm 5mV is 74dbuV, so we are somewhere below 74dbuV. I found the below graphic, which shows that some were below 74dbuV is in the realm of OK conducted emissions. I'm not sure how well we are doing, but we should be close to acceptable EMC limits.
73803-fig-4.gif
73803-fig-4.gif (43.67 KiB) Viewed 23473 times
Graphic originally found here http://electronicdesign.com/energy/understanding-emi-noise-power-system-design

The 5A thing is partly because we can over kill it for reasonably low $, and partly because we don't know what people might connect to the CAN 5V connector. See P401 on page 4 of the frankenso schematic.

That real work thing. Puts food in the mouth but keeps getting in the way of fun work. I've also been plagued with the real work issue.
Welcome to the friendlier side of internet crazy :)
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: Power supply - kb1gtt

Post by Rhinoman »

I've never had any luck trying to do this sort of test with a scope, usually they use FFT which isn't really suitable, the spectrum analyser will be much more useful, unfortunately its not something that I personally own. The automotive tests are ISO11452 and CISPR 25 which mandate the use of a LISN to reproduce the automotive environment, that will put an impedance in series with the supply which will affect the results, the also specify the sampling rates for different frequency bands; in my experience you would not pass with that circuit. I have a number of jobs to complete in the next few days, hopefully next week I will be able to contribute something more positive.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

If you can tell me the LISN impedance I might be able to do the test. I personally have this spectrum analyzer http://www.testequipmentdepot.com/hameg/spectrumanalyzers/hm5012and5014.htm as well I have access to other spectrum analyzers and such at work.

I agree a FFT on a dirt cheap scope is not the proper way to do this test. My concerns with EMC and this circuit aren't under it's normal operation modes, my concerns would be at the point where the MOSFET starts to clamp the voltage, it's a high gain device and it might cause some noise there. AKA noise might happen during a surge event, and EMC technically doesn't allow out of band noise under any conditions. I don't know if it would generate some noise or not, but it could. When it's not clamping, it's not doing anything, so it wouldn't have any real issues there. I'm fairly confident it would pass EMC during normal operation, but with out doing some tests I don't really know what it would do.
Welcome to the friendlier side of internet crazy :)
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: Power supply - kb1gtt

Post by Rhinoman »

I don't see any high-frequency decoupling on the 12V supply, it looks like the 12V only goes to the switcher.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: Power supply - kb1gtt

Post by kb1gtt »

Correct there is no high frequency decoupling at the 12V power supply. The switcher has a switching frequency in the kHz range. I followed the MFG's suggested caps and suggested ESR's. The high frequency stuff has decoupling caps at the sources like MCU's other such chips. The DSO Quad goes up to 72MHz and sees less than 5mV of high frequency ripple. 5mV is the minimum the Quad can see. What ever it has, if any, is below what the quad can see.
Welcome to the friendlier side of internet crazy :)
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: Power supply - kb1gtt

Post by Rhinoman »

I'm concerned that you will get a lot of common mode noise because of the amount of current switching on the ground side. The manufacturers recommendations are only a guide, they aren't application specific. Are you measuring in a vehicle with the engine running? have you measured the voltage drop between the ECU ground and the vehicle body?
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: Power supply - kb1gtt

Post by Rhinoman »

There is an application note from National Semiconductor that discusses input filters for switched mode regulators, its dated 2010 but there was an earlier version that I referred to for a switcher that I had in an automotive design.

http://www.ti.com/lit/an/snva538/snva538.pdf

I did discuss this with Michele Sclocchi at the time, it was probably around 2008, and I was supplied with the Mathcad files.
Post Reply