Digital CDI for large engines

Hardware inside and outside of the ECU
Post Reply
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Digital CDI for large engines

Post by AndreyB »

With cars we usually use https://en.wikipedia.org/wiki/Inductive_discharge_ignition while smaller and larger engines like to use https://en.wikipedia.org/wiki/Capacitor_discharge_ignition

How do those *digital* capacitor discharge ignition systems control spark energy and even spark duration? For instance how do you produce either 150mJ or 300nJ spark?
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: CDI

Post by kb1gtt »

On small engines I think spark duration and energy are mostly fixed. Components are selected and the trigger signal is also fixed. However I understand that you can get a certain level of control. With CDI you basically charge a cap, then you quickly discharge the cap through a step up transformer. If you charge the cap up to something like 8V, you'll get less energy when you dispatch that energy through the transformer and gap. If you charge the cap up to 12v, you get more energy.

I think the coil on plug setups found in cars are typically CDI. CDI has less inertia in the system which allows for faster and probably hotter spark potential. Spark energy in a coil will likely be lower heat for a longer duration.

I would think parameters for CDI duration and energy would primarily involve gap, transformer step up ratio, cap uF value and capacitor charge voltage. With some searching I'd bet an equation could be found or made which correlates those parameters.
Welcome to the friendlier side of internet crazy :)
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

https://ww1.microchip.com/downloads/en/Appnotes/00001980C.pdf

shows software-controlled DC-DC
image.png
image.png (138.48 KiB) Viewed 52715 times
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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

https://www.omnicalculator.com/physics/capacitor-energy

E = ½ × C × V²
image.png
image.png (12.68 KiB) Viewed 52712 times
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: Digital CDI for large engines

Post by kb1gtt »

The cap and transformer are going to prevent some level of energy from converting into spark energy. Keep in mind the stored energy is a max available energy.

Hmmm. That pic circuit look very similar to the direct injection driver boost circuit.
Welcome to the friendlier side of internet crazy :)
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

Altronic 69694G Flange Ignition Coil 850 grams of magic
image.png
image.png (10.76 KiB) Viewed 51854 times
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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

Well, so far I've failed twice. First fail is lame, second fail is epic!

Both scenarios same ECW-FG80685JA 6.8 uF 800 VDC capacitor. Both scenarios using 100Ohm 1W unknown voltage resistor(s)

First fail $8 diode-based High Voltage DC-DC Boost Converter. Small board https://rusefi.com/forum/viewtopic.php?t=286 probably BTS2140 might be fake.

Here I got spark! Problem: only one spark every 15 seconds. This (weak?) converted takes 15 seconds to reach 380v on the capacitor. I assume weak boost converter is the problem here?
image.png
image.png (244.37 KiB) Viewed 51795 times
chrome_6R3zbCDxRJ.png
chrome_6R3zbCDxRJ.png (319.21 KiB) Viewed 51795 times
Attachments
WhatsApp Image 2023-08-25 at 16.47.32.jpg
WhatsApp Image 2023-08-25 at 16.47.32.jpg (134.06 KiB) Viewed 51795 times
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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

Second fail is so much cooler!

Here I've used $12 High-Voltage Power Supply Module https://www.amazon.com/dp/B01MYLWHZW

As arrived module output was 80v, things were peaceful. I've started cranking pot to increase voltage...

First it has burned one resistor, then it has burned two resistors in series! Note the heat shrink has failed to keep the magic smoke inside. I did not even have a chance to attempt sparking.
WhatsApp Image 2023-08-27 at 17.04.35.jpg
WhatsApp Image 2023-08-27 at 17.04.35.jpg (206.87 KiB) Viewed 51792 times
WhatsApp Image 2023-08-27 at 17.04.04.jpg
WhatsApp Image 2023-08-27 at 17.04.04.jpg (212.78 KiB) Viewed 51792 times
WhatsApp Image 2023-08-27 at 17.19.50.jpg
WhatsApp Image 2023-08-27 at 17.19.50.jpg (253.7 KiB) Viewed 51792 times
Attachments
WhatsApp Image 2023-08-27 at 17.21.34.jpg
WhatsApp Image 2023-08-27 at 17.21.34.jpg (215.77 KiB) Viewed 51792 times
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: Digital CDI for large engines

Post by kb1gtt »

I recall a QUCS or ltsoice simulation somewhere. Perhaps this would be worth attempting to simulate it.
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: Digital CDI for large engines

Post by kb1gtt »

This might have some useful information.

https://www.homemade-circuits.com/?s=cdi
Welcome to the friendlier side of internet crazy :)
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

I know what's going on, I am burning/shorting IGBTs!

I've replaced unknown/old/fake BTS2140 with a legit ISL9V3040 and everything seems to start working at 220VDC. Once I've cranked voltage up I got a single unscheduled spark on the "spark plug" and then yet another resistor went in flames.

Power supply claims 390V so I should not be exceeding the 400V limit of ISL9V3040. There is also "SCIS Energy = 300 mJ at TJ = 25°C" am I exceeding that?
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: Digital CDI for large engines

Post by kb1gtt »

Scope traces? It's hard to guess when we have little data. If you scope it out, then make sure you using 10X scale or make sure you have a probe capable of 400+V. Often a 10X probe can handle around 400V. So beware and keep an eye on the voltage capability if you try to use a scope.

I might guess you have some kind of kick back, which is exceeding the voltage. I sounds like you are hitting the Over Voltage Protection (OVP) decently hard, which probably heats up the driver chip. I suspect it then eventually causes a thermal shutdown, or breaks the OVP circuit. Once OVP is broken, then I expect you get additional damage, as the kickback voltage moves upstream breaks other components.
Welcome to the friendlier side of internet crazy :)
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

Trying to run 69694G coil using STGB10NC60HDT4 600V IGBT

Happy 200v
IGBT shorts out after few pulses at 260v :( When smoke was released it was 0.1ms pulses with 30ms gap.


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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

kb1gtt wrote:
Tue Aug 29, 2023 9:16 am
I might guess you have some kind of kick back, which is exceeding the voltage.
Here's what the scope says
WhatsApp Image 2023-09-08 at 21.11.16.jpg
WhatsApp Image 2023-09-08 at 21.11.16.jpg (220.38 KiB) Viewed 51352 times
WhatsApp Image 2023-09-08 at 21.13.37.jpg
WhatsApp Image 2023-09-08 at 21.13.37.jpg (206.96 KiB) Viewed 51352 times
WhatsApp Image 2023-09-08 at 21.14.08.jpg
WhatsApp Image 2023-09-08 at 21.14.08.jpg (280.2 KiB) Viewed 51352 times
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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

PS:
WhatsApp Image 2023-09-08 at 21.40.36.jpg
WhatsApp Image 2023-09-08 at 21.40.36.jpg (223.94 KiB) Viewed 51344 times
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: Digital CDI for large engines

Post by kb1gtt »

Hmmm 700+ v spikes. That's likely your problem. Were was that trace measuring?
Welcome to the friendlier side of internet crazy :)
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

Poking between IGBT and cap.

Now with 1N4007 which did not make any difference with negative voltage?
WhatsApp Image 2023-09-08 at 22.30.16.jpg
WhatsApp Image 2023-09-08 at 22.30.16.jpg (270.73 KiB) Viewed 51331 times
WhatsApp Image 2023-09-08 at 22.33.04.jpg
WhatsApp Image 2023-09-08 at 22.33.04.jpg (235.51 KiB) Viewed 51331 times
WhatsApp Image 2023-09-08 at 22.01.28.jpg
WhatsApp Image 2023-09-08 at 22.01.28.jpg (11.8 KiB) Viewed 51331 times
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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

Just ordered 1.5KE400CA TVS Diode to be continued.
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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

AndreyB wrote:
Sat Sep 09, 2023 3:11 am
Just ordered 1.5KE400CA TVS Diode to be continued.
Well, something has changed but there is still the spike.
WhatsApp Image 2023-09-14 at 16.43.44.jpg
WhatsApp Image 2023-09-14 at 16.43.44.jpg (200.25 KiB) Viewed 50451 times
WhatsApp Image 2023-09-14 at 16.44.00.jpg
WhatsApp Image 2023-09-14 at 16.44.00.jpg (208.38 KiB) Viewed 50451 times
WhatsApp Image 2023-09-14 at 16.44.34.jpg
WhatsApp Image 2023-09-14 at 16.44.34.jpg (221.48 KiB) Viewed 50451 times
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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

Went up to 230v. IGBT has only lasted a few funded pulses :(
WhatsApp Image 2023-09-14 at 17.47.23.jpg
WhatsApp Image 2023-09-14 at 17.47.23.jpg (225.87 KiB) Viewed 50434 times
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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

moved 1N4007 to be parallel with TVS diode - that gives me lowest Vpp
image.png
image.png (7.34 KiB) Viewed 50236 times
WhatsApp Image 2023-09-15 at 16.55.15.jpg
WhatsApp Image 2023-09-15 at 16.55.15.jpg (70.94 KiB) Viewed 50236 times
WhatsApp Image 2023-09-15 at 16.55.28.jpg
WhatsApp Image 2023-09-15 at 16.55.28.jpg (150.87 KiB) Viewed 50236 times
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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

150v
ambient 25C
igbt 33C
resistor 50C

this has survived count 500 multiple times
WhatsApp Image 2023-09-15 at 17.10.27.jpg
WhatsApp Image 2023-09-15 at 17.10.27.jpg (8.77 KiB) Viewed 50235 times
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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

went 200v, attempted count 50 series and magic smoke was released pretty quickly :(
WhatsApp Image 2023-09-15 at 17.13.27.jpg
WhatsApp Image 2023-09-15 at 17.13.27.jpg (122.21 KiB) Viewed 50235 times
WhatsApp Image 2023-09-15 at 17.14.20.jpg
WhatsApp Image 2023-09-15 at 17.14.20.jpg (9.76 KiB) Viewed 50235 times
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
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Digital CDI for large engines

Post by AndreyB »

Some cool Ignition Coil Primary Voltage content



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
Post Reply