Author Topic: Question about arduino polyphonic MIDI interrupter  (Read 3292 times)

Offline bozidar

  • High Voltage Enthusiast
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Question about arduino polyphonic MIDI interrupter
« on: November 26, 2020, 01:09:32 PM »
Hello,
I wrote the code for arduino based polyphonic MIDI interrupter, for my DRSSTC, that can play 2 notes. But I don’t know if the pulses can overlap or be close to each other (like the pulses in the picture)?
Is it safe to run the coil with this pulses?

Offline TMaxElectronics

  • High Voltage Engineer
  • ****
  • Posts: 297
  • Karma: +23/-0
    • View Profile
    • My random (and very empty) electronics blog
Re: Question about arduino polyphonic MIDI interrupter
« Reply #1 on: November 26, 2020, 01:22:02 PM »
Not necessarily. The issue is that some drivers (all recent-ish UDs afaik) use a fixed frequency start oscillator (or at least "kick" the bridge to start it), meaning that they will switch regardless of what the feedback reads.
This doesn't matter if the primary circuit has no current flowing in it, as the first few cycles will have a low enough current that the hard switching isn't going to kill the IGBTs. But if you have two pulses very close to each other there might still be significant current flowing in the primary circuit, resulting in hard switching and some sharp thermal transients in the Transistors, which they may or may not survive.

I recommend implementing an off-time after every pulse, so the current in the bridge has time to decrease. I don't know how you have coded your pulse generator, so I can't tell you how best to do this in you case. But in my interrupter I turn off the interrupts of the timers creating the pulses, and re-enable them with a different timer after the off-time has elapsed.

Offline Max

  • High Voltage Engineer
  • ****
  • Posts: 236
  • Karma: +28/-1
  • "With the first link, the chain is forged. [...]"
    • View Profile
    • My Youtube Channel
Re: Question about arduino polyphonic MIDI interrupter
« Reply #2 on: November 26, 2020, 02:42:34 PM »
Polyphonic interrupters are really getting popular these days...

While I completely agree with TMaxElectronics, there's an important point to consider: AFAIK the quite popular Onetesla MIDI interrupter as well as loneoceans MIDI interrupter do not implement any protection for this case. And those have been used by many people without major issues.

This brings me to the interesting question if anyone ever scoped his primary current during MIDI playback to see if he can actually find hardswitching events.


Kind regards,
Max

Offline bozidar

  • High Voltage Enthusiast
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: Question about arduino polyphonic MIDI interrupter
« Reply #3 on: November 26, 2020, 07:20:41 PM »
I'm using almost identical Loneoceans UD2.7, just with through hole components. In place of optic fiber receiver I'm using arduino nano with optocoupler . Arduino mega sends MIDI messages via bluetooth to an arduino nano (which I use as an interupter).
This setup works perfectly when I play only one note :)

This is a SimpleTesla interrupter that plays MIDI with multiple notes (6, if I understood correctly-   1:40 - 2:30 min)

And this is mine playing 2 notes  ;D

I guess Onetesla MIDI interrupter works the same way, right?
Can  someone post some scope pics of Onetesla output when playing 2 notes MIDI files?

Maybe the OCD will not allow the current to rise too much when the two pulses are close to each other, so could I just reduce on time?

Offline davekni

  • Executive Board Member
  • *******
  • Posts: 2744
  • Karma: +129/-1
  • Physicist, engineer (electronic), and hobbiest
    • View Profile
Re: Question about arduino polyphonic MIDI interrupter
« Reply #4 on: November 26, 2020, 07:28:57 PM »
UD2.7 could make a single hard off-to-on transition if started during ring-down from a previous enable pulse.  That may not be enough to cause problems.  Still nice to avoid.

Last year I purchased a MIDI interrupter kit from Eastern Voltage Research.  I don't know who's design they use.  They said it wasn't their own.  It had a minimum pulse spacing (~200us if I recall correctly) that appeared to be more an artifact of coarse timer intervals in code rather than an intentional feature.  It also claimed to handle 4 notes, but output garbage if more than 2 were played simultaneously.  I've since replaced it with my own design.
David Knierim

Offline Max

  • High Voltage Engineer
  • ****
  • Posts: 236
  • Karma: +28/-1
  • "With the first link, the chain is forged. [...]"
    • View Profile
    • My Youtube Channel
Re: Question about arduino polyphonic MIDI interrupter
« Reply #5 on: November 27, 2020, 01:45:04 PM »
In my tests with Syntherrupter I noticed that the min offtime has a surprisingly high impact on the audio quality. I remember that 100us minimum offtime sounded noticeably worse than 30us. Shouldn’t be a surprise that the impact is even bigger with more simultaneous notes. That was however with speakers. Well possible that it is less audible with a tesla coil.

Kind regards,
Max

Offline davekni

  • Executive Board Member
  • *******
  • Posts: 2744
  • Karma: +129/-1
  • Physicist, engineer (electronic), and hobbiest
    • View Profile
Re: Question about arduino polyphonic MIDI interrupter
« Reply #6 on: November 27, 2020, 07:45:58 PM »
I noticed the same result using a speaker:  Sound quality is much better without limits on gaps or pulse widths.  However, at least for my DRSSTC, sound output isn't linear with pulse width.  It wouldn't be linear with short spacing either, although I avoid close spacing.  SSTCs are likely much more linear.

So, at least for my low-impedance DRSSTC, distortion happens either way.  I experimented with algorithms for spacing and combining pulses and pre-distorting pulse widths to undo the coil's roughly square function of pulse width to sound output.  Did improve sound, but it's not yet where I'm really happy with the result.
David Knierim

Offline bozidar

  • High Voltage Enthusiast
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: Question about arduino polyphonic MIDI interrupter
« Reply #7 on: December 01, 2020, 11:11:50 AM »
Thanks for the answers.
I added off time to the code and I don't think the sound quality is much distorted so maybe I'll try it on DRSSC . ???



Offline TMaxElectronics

  • High Voltage Engineer
  • ****
  • Posts: 297
  • Karma: +23/-0
    • View Profile
    • My random (and very empty) electronics blog
Re: Question about arduino polyphonic MIDI interrupter
« Reply #8 on: December 01, 2020, 11:55:01 AM »
How have you implemented it and how long did you set your holdoff time?

Offline bozidar

  • High Voltage Enthusiast
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: Question about arduino polyphonic MIDI interrupter
« Reply #9 on: December 01, 2020, 03:02:51 PM »
After each pulse I just added delay function  ;D
Holdoff time is 45 us.

Offline TMaxElectronics

  • High Voltage Engineer
  • ****
  • Posts: 297
  • Karma: +23/-0
    • View Profile
    • My random (and very empty) electronics blog
Re: Question about arduino polyphonic MIDI interrupter
« Reply #10 on: December 01, 2020, 04:22:10 PM »
So how do you trigger the pulses? If you use interrupts I'd recommend changing it to work differently as you always want to minimize the time spent in interrupts, especially since you might shift the other pulses back which can add quite a bit of noise to the signal ;)
I have a default setting of 30us which only slightly reduces the sound quality.

Offline bozidar

  • High Voltage Enthusiast
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: Question about arduino polyphonic MIDI interrupter
« Reply #11 on: December 01, 2020, 04:58:29 PM »
I use timer 1 for one note and timer 2 for the other note. For now the signal has no noise.
 If you want I can post my code  :)

Offline bozidar

  • High Voltage Enthusiast
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: Question about arduino polyphonic MIDI interrupter
« Reply #12 on: December 05, 2020, 09:41:14 PM »
Here is the code (which I know is not perfect)  ;D
And here are a few videos  :)

« Last Edit: December 05, 2020, 09:45:24 PM by bozidar »

High Voltage Forum

Re: Question about arduino polyphonic MIDI interrupter
« Reply #12 on: December 05, 2020, 09:41:14 PM »

 


* Recent Topics and Posts

post Re: Big Coil Build Log
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
Today at 05:47:34 AM
post Re: capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
davekni
Today at 04:45:07 AM
post Re: capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
MRMILSTAR
Today at 04:18:27 AM
post Push Pull VTTC
[Vacuum Tube Tesla Coils (VTTC)]
janno288
Today at 01:10:08 AM
post Re: capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
Alberto
March 27, 2024, 10:54:52 PM
post Re: CM400 Induction Heater
[Electronic Circuits]
markus
March 27, 2024, 11:53:42 AM
post Re: OCD Triggering Early + Low Output
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
March 27, 2024, 05:14:36 AM
post Re: Is the UD2.7C under voltage lock out basically worthless?
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
March 27, 2024, 04:47:48 AM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
March 27, 2024, 04:41:59 AM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
March 27, 2024, 12:04:34 AM
post Re: Super flat QCW simulation (does this look reasonable?)
[Dual Resonant Solid State Tesla coils (DRSSTC)]
toooldforthis
March 26, 2024, 11:08:14 PM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
March 26, 2024, 11:07:20 PM
post Re: Is the UD2.7C under voltage lock out basically worthless?
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
March 26, 2024, 10:46:29 PM
post OCD Triggering Early + Low Output
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Saattvik24
March 26, 2024, 09:03:43 PM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
March 26, 2024, 08:46:59 PM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
March 26, 2024, 05:02:18 PM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
March 26, 2024, 03:16:03 PM
post Re: CM400 Induction Heater
[Electronic Circuits]
Anders Mikkelsen
March 26, 2024, 01:41:49 PM
post Re: Benjamin's DRSSTC 2 in progress
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
March 26, 2024, 04:48:22 AM
post Re: Re-chargeable 1.5 volt lithium ion AAA batteries
[General Chat]
MRMILSTAR
March 26, 2024, 04:16:37 AM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
March 26, 2024, 04:16:24 AM
post Re: Smoke Screen Machine Protect 950 XP - Teardown of a Smoke Cannon!
[Electronic Circuits]
davekni
March 26, 2024, 04:13:02 AM
post Re: CM400 Induction Heater
[Electronic Circuits]
davekni
March 26, 2024, 04:00:43 AM
post Re: Re-chargeable 1.5 volt lithium ion AAA batteries
[General Chat]
davekni
March 26, 2024, 03:19:18 AM
post Re: Benjamin's DRSSTC 2 in progress
[Dual Resonant Solid State Tesla coils (DRSSTC)]
thedoc298
March 26, 2024, 01:50:42 AM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
March 25, 2024, 08:05:02 PM
post Re: Smoke Screen Machine Protect 950 XP - Teardown of a Smoke Cannon!
[Electronic Circuits]
Mads Barnkob
March 25, 2024, 07:41:29 PM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
March 25, 2024, 06:45:46 PM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
March 25, 2024, 05:44:25 PM
post Re: CM400 Induction Heater
[Electronic Circuits]
Anders Mikkelsen
March 25, 2024, 04:47:17 PM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
March 25, 2024, 04:27:22 PM
post Re-chargeable 1.5 volt lithium ion AAA batteries
[General Chat]
MRMILSTAR
March 25, 2024, 03:57:34 PM
post Re: CM400 Induction Heater
[Electronic Circuits]
markus
March 25, 2024, 02:06:41 PM
post Re: Odd MOSFET Driver Behavior
[Solid State Tesla Coils (SSTC)]
KrisPringle
March 25, 2024, 04:43:25 AM
post Re: Odd MOSFET Driver Behavior
[Solid State Tesla Coils (SSTC)]
davekni
March 25, 2024, 02:39:40 AM
post Re: Odd MOSFET Driver Behavior
[Solid State Tesla Coils (SSTC)]
KrisPringle
March 25, 2024, 12:47:09 AM
post Re: capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
Alberto
March 24, 2024, 07:36:32 PM
post Re: My completed 14-stage Cockroft-Walton voltage multiplier
[Voltage Multipliers]
Alberto
March 24, 2024, 07:27:24 PM
post Re: capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
MRMILSTAR
March 24, 2024, 04:25:23 AM
post Re: capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
Alberto
March 23, 2024, 10:47:35 PM
post Re: capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
MRMILSTAR
March 23, 2024, 09:30:21 PM
post Re: capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
Alberto
March 23, 2024, 04:34:31 PM
post Re: capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
MRMILSTAR
March 23, 2024, 03:04:25 PM
post Re: capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
Alberto
March 23, 2024, 01:38:34 PM
post Re: capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
MRMILSTAR
March 23, 2024, 04:20:03 AM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General Chat]
davekni
March 23, 2024, 12:54:30 AM
post Re: Smoke Screen Machine Protect 950 XP - Teardown of a Smoke Cannon!
[Electronic Circuits]
davekni
March 23, 2024, 12:05:57 AM
post capacitor and diodes. Voltage values for a CW
[Voltage Multipliers]
Alberto
March 22, 2024, 11:45:03 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General Chat]
OmGigaTron
March 22, 2024, 11:30:09 PM
post Smoke Screen Machine Protect 950 XP - Teardown of a Smoke Cannon!
[Electronic Circuits]
Mads Barnkob
March 22, 2024, 10:20:35 PM
post Re: Where's all this voltage coming from?
[Spark Gap Tesla Coils (SGTC)]
Benbmw
March 22, 2024, 09:21:13 PM
post Re: What actually kills MOSFETs?
[Beginners]
AstRii
March 22, 2024, 03:37:11 PM
post What actually kills MOSFETs?
[Beginners]
FPS
March 22, 2024, 05:09:20 AM
post Re: Benjamin's DRSSTC 2 in progress
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
March 22, 2024, 03:57:54 AM
post Re: Benjamin's DRSSTC 2 in progress
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
March 22, 2024, 02:59:25 AM
post Re: Benjamin's DRSSTC 2 in progress
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
March 21, 2024, 06:31:42 PM
post Re: 2x Panasonic Inverter Microwaves - what to salvage, dangers?
[General Chat]
rikkitikkitavi
March 21, 2024, 03:08:01 PM
post Re: [WTS] IGBT, Ferrite, Capacitors, Tools, PSU, Industrial components and parts
[Sell / Buy / Trade]
Mads Barnkob
March 21, 2024, 01:37:32 PM
post Re: Difference between these transformers
[Transformer (Ferrite Core)]
Alberto
March 21, 2024, 11:42:07 AM
post Re: Phase Lead Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
March 21, 2024, 04:09:14 AM
post Re: Benjamin's DRSSTC 2 in progress
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
March 21, 2024, 02:15:31 AM
post My Homemade Structural Analysis X-Ray Machine
[X-ray]
Luca c.
March 21, 2024, 01:35:40 AM
post Re: Phase Lead Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Saattvik24
March 20, 2024, 10:40:00 PM
post Re: Difference between these transformers
[Transformer (Ferrite Core)]
Mads Barnkob
March 20, 2024, 08:03:41 PM
post Re: 2x Panasonic Inverter Microwaves - what to salvage, dangers?
[General Chat]
Mads Barnkob
March 20, 2024, 07:51:57 PM
post Re: Benjamin's DRSSTC 2 in progress
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
March 20, 2024, 10:39:47 AM
post Re: Phase Lead Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
March 20, 2024, 04:09:59 AM
post Re: 160mm DRSSTC II project | Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
March 20, 2024, 01:13:23 AM
post Re: Phase Lead Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Keybored
March 20, 2024, 12:45:16 AM
post Re: Benjamin's DRSSTC 2 in progress
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
March 20, 2024, 12:30:30 AM
post Re: Benjamin's DRSSTC 2 in progress
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
March 19, 2024, 11:12:24 PM
post Re: 160mm DRSSTC II project | Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Late
March 19, 2024, 09:47:49 PM
post Re: 160mm DRSSTC II project | Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Late
March 19, 2024, 09:44:19 PM
post Phase Lead Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Saattvik24
March 19, 2024, 06:52:09 PM
post Re: 160mm DRSSTC II project | Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
March 19, 2024, 05:02:44 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General Chat]
Mads Barnkob
March 19, 2024, 05:01:41 PM
post Re: Benjamin's DRSSTC 2 in progress
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
March 19, 2024, 04:31:02 PM
post Re: 160mm DRSSTC II project | Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
March 19, 2024, 03:59:54 PM
post Re: Benjamin's DRSSTC 2 in progress
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
March 19, 2024, 06:41:39 AM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General Chat]
davekni
March 19, 2024, 04:05:49 AM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General Chat]
OmGigaTron
March 18, 2024, 09:08:35 PM
post Re: Can I Trust This Super Cheap Site?
[General Chat]
2020-Man
March 18, 2024, 09:07:35 PM
post Re: Can I Trust This Super Cheap Site?
[General Chat]
Twospoons
March 18, 2024, 08:57:06 PM
post Re: Can I Trust This Super Cheap Site?
[General Chat]
MRMILSTAR
March 18, 2024, 03:51:33 PM
post Re: 160mm DRSSTC II project | Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Late
March 18, 2024, 02:59:46 PM
post Re: 160mm DRSSTC II project | Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Late
March 18, 2024, 02:33:25 PM
post Can I Trust This Super Cheap Site?
[General Chat]
2020-Man
March 18, 2024, 11:02:12 AM
post Re: Where's all this voltage coming from?
[Spark Gap Tesla Coils (SGTC)]
Twospoons
March 18, 2024, 02:36:11 AM
post Re: Best forum for vacuum tube amplifiers?
[General Chat]
Mads Barnkob
March 17, 2024, 07:42:55 PM
post Re: 2x Panasonic Inverter Microwaves - what to salvage, dangers?
[General Chat]
Michelle_
March 17, 2024, 04:15:14 PM
post Re: 2x Panasonic Inverter Microwaves - what to salvage, dangers?
[General Chat]
Michelle_
March 17, 2024, 05:05:04 AM
post Re: Where's all this voltage coming from?
[Spark Gap Tesla Coils (SGTC)]
davekni
March 17, 2024, 04:50:51 AM
post Re: 2x Panasonic Inverter Microwaves - what to salvage, dangers?
[General Chat]
Twospoons
March 17, 2024, 04:45:17 AM
post 2x Panasonic Inverter Microwaves - what to salvage, dangers?
[General Chat]
Michelle_
March 17, 2024, 04:17:51 AM
post Where's all this voltage coming from?
[Spark Gap Tesla Coils (SGTC)]
Terry
March 17, 2024, 01:29:32 AM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
March 17, 2024, 12:33:06 AM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Keybored
March 16, 2024, 08:46:20 PM
post Re: Bleeder resistor for MMC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Hydron
March 16, 2024, 08:39:24 PM
post Re: DRSSTC Questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Hydron
March 16, 2024, 08:21:44 PM
post Best forum for vacuum tube amplifiers?
[General Chat]
yourboi
March 16, 2024, 08:20:13 PM

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 
SimplePortal 2.3.6 © 2008-2014, SimplePortal