Author Topic: Simple Arduino MIDI Interrupter  (Read 183 times)

Offline Atomfusion

  • High Voltage Enthusiast
  • *
  • Posts: 5
    • View Profile
Simple Arduino MIDI Interrupter
« on: July 25, 2017, 01:34:09 AM »
Using miditones and an Arduino I have developed a special Tesla Coil version.
There are 2 Versions.
Arduino Uno Version that can be used for up to 4-5 songs that just play
Arduino Mega Version with Adafruit MP3 SD Shield and Adafruit RGB LCD shield that can load songs directly from an SD Card and show them on the LCD screen
Read PlayTune info.txt for more info also the code is documented

To Use this code
Put the files in libraries into the libraries folder in arduino 1.8.3
then open up TC_UNO

Output is on pins 5 and 6 connect through 1n4148 Diodes

If you have the RGBShield uncommend line 9 #define RGBShield
Then check line 21 #define ARDUINO_UNO change to ARDUINO_MEGA if using mega
Last adjust lines 959 960 961
TESLA_DC 15
TESLA_MU 300
TESLA_SU 400

To what works best for your coil, you can also change them when you call the song directly
This allows you to tune each individual song

Last you can take any Midi file and convert it to bytestream using miditones in command prompt
miditones -t2 "Name of Midifile"


Try it out let me know what you think
Arduino Uno Version * TC Interrupter UNO.zip

Arduino MEGA Version * TC Interrupter MEGA SD.zip

« Last Edit: July 25, 2017, 02:28:00 AM by Atomfusion »

Offline Mads Barnkob

  • Administrator
  • High Voltage Engineer
  • *****
  • Posts: 319
  • Denmark
    • View Profile
    • Kaizer Power Electronics
Re: Simple Arduino MIDI Interrupter
« Reply #1 on: July 25, 2017, 07:33:27 PM »
Great project and thank you for sharing it all.

I never used a Arduino and therefore I am a little vary on all those shields etc.

Could you supply a small schematic to show how you connect the Arduino outputs through diodes to the Tesla coil itself, or through opto isolation or what solution you chose?

You wrote you used the 25$ RGB LCD shield, but I guess the cheaper 20$ LCD shield could be used aswell? https://www.adafruit.com/product/772

Did you use the 30$ MP3 SD shield because you had it at hand? Could the 14$ Datalogger shield be used instead? https://www.adafruit.com/product/1141

So you have to compile all songs into the loadfile and then write it to the uC? It is not completely clear to me if you just put the songs separately on the SD card or how its dimensioned? You write that the MEGA can only handle 20-25 songs, so its all really just in the uC? I am little confused on how this works since a SD card would hold "insert eternal sign here" MIDI files.

Despite it being a little labor demanding job, to add new files, great audio interrupter for around 50$

http://www.kaizerpowerelectronics.dk - Tesla coils, high voltage, pulse power, audio and general electronics

Offline Atomfusion

  • High Voltage Enthusiast
  • *
  • Posts: 5
    • View Profile
Re: Simple Arduino MIDI Interrupter
« Reply #2 on: July 25, 2017, 09:14:47 PM »
I will get some more images and a schematic for how the Arduino is connected (but basically its just a diode OR gate)
Its not opto isolated as I wanted this to be simple (but can be)
The cheaper $20 one should work great, I did use the MP3 because i had it but the $14 dollar shield should work, but the Code will need changed, you need to change the 2 lines with SD.begin(4); to SD.begin(10); (I dont have one to test at this time)

I did not make this part as clear, there are two different code setups,
In the first one the TC interrupter UNO the songs are stored in the uC, This program can run as an interrupter with nothing more then just the UNO 32k  or MEGA 256k memory.

The Second one requires the 2 Shields and a MEGA, but you can play songs directly from the SD card, so then you can add/delete songs quickly. I have it limited to 254 songs at the moment but it could be increased.

Offline Velotech

  • High Voltage Enthusiast
  • *
  • Posts: 1
    • View Profile
Re: Simple Arduino MIDI Interrupter
« Reply #3 on: September 26, 2017, 05:34:07 AM »
Your web site has a lot of information that I want. It is very necessary for me.

High Voltage Forum

Re: Simple Arduino MIDI Interrupter
« Reply #3 on: September 26, 2017, 05:34:07 AM »

 


* Recent Topics and Posts

post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Mads Barnkob
Today at 09:22:56 AM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
October 18, 2017, 09:26:42 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
October 18, 2017, 08:14:54 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Mads Barnkob
October 18, 2017, 08:00:24 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Uspring
October 18, 2017, 10:46:42 AM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Mads Barnkob
October 18, 2017, 10:07:11 AM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
October 16, 2017, 09:34:16 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Uspring
October 16, 2017, 01:28:56 PM
post Re: Counter Poise Grounding for Tesla Coils
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
October 16, 2017, 09:32:08 AM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Mads Barnkob
October 14, 2017, 07:32:17 AM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
October 13, 2017, 04:46:25 PM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
oneKone
October 12, 2017, 04:01:42 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Uspring
October 12, 2017, 12:26:00 PM
post Re: Counter Poise Grounding for Tesla Coils
[Dual Resonant Solid State Tesla coils]
UweD
October 12, 2017, 12:16:06 PM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
Hydron
October 12, 2017, 10:00:33 AM
post Re: Webinar(Oct 24, 2017 15:00CEST): Laminated busbars – how to optimize your design
[Beginners]
T3sl4co1l
October 11, 2017, 10:39:05 PM
post Re: Webinar(Oct 24, 2017 15:00CEST): Laminated busbars – how to optimize your design
[Beginners]
Hydron
October 11, 2017, 11:26:43 AM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Mads Barnkob
October 11, 2017, 10:03:36 AM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
October 10, 2017, 09:37:50 PM
post Re: Webinar(Oct 24, 2017 15:00CEST): Laminated busbars – how to optimize your design
[Beginners]
Mads Barnkob
October 10, 2017, 12:42:05 PM
post Re: Webinar(Oct 24, 2017 15:00CEST): Laminated busbars – how to optimize your design
[Beginners]
Hydron
October 10, 2017, 10:45:45 AM
post Re: Smartphone scientific oriented games: list your best!
[General chatting]
Mads Barnkob
October 09, 2017, 09:40:02 AM
post Re: Counter Poise Grounding for Tesla Coils
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
October 09, 2017, 09:08:36 AM
post Re: AliExpress/ Chinese drsstc drivers
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
October 09, 2017, 09:07:22 AM
post Re: AliExpress/ Chinese drsstc drivers
[Dual Resonant Solid State Tesla coils]
CCX191
October 08, 2017, 06:45:56 AM
post Re: Smartphone scientific oriented games: list your best!
[General chatting]
futurist
October 07, 2017, 01:15:32 PM
post Re: AliExpress/ Chinese drsstc drivers
[Dual Resonant Solid State Tesla coils]
futurist
October 07, 2017, 01:08:48 PM
post AliExpress/ Chinese drsstc drivers
[Dual Resonant Solid State Tesla coils]
oneKone
October 07, 2017, 02:10:18 AM
post Smartphone scientific oriented games: list your best!
[General chatting]
Mads Barnkob
October 06, 2017, 02:59:00 PM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
Mads Barnkob
October 06, 2017, 02:49:17 PM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
oneKone
October 06, 2017, 01:32:41 PM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
Mads Barnkob
October 06, 2017, 08:57:35 AM
post Re: subcooledheatpump YouTube channel
[General chatting]
Mads Barnkob
October 06, 2017, 08:26:14 AM
post Re: Kaizer Power Electronics, website, youtube
[Hobby sites]
Mads Barnkob
October 06, 2017, 08:21:53 AM
post Re: Attempting the Kaizer sstc II
[Solid state Tesla coils]
oneKone
October 06, 2017, 01:54:02 AM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
oneKone
October 06, 2017, 01:45:34 AM
post subcooledheatpump YouTube channel
[General chatting]
oneKone
October 05, 2017, 02:15:30 PM
post Re: Kaizer Power Electronics, website, youtube
[Hobby sites]
oneKone
October 05, 2017, 02:11:46 PM
post Webinar(Oct 24, 2017 15:00CEST): Laminated busbars – how to optimize your design
[Beginners]
Mads Barnkob
October 05, 2017, 10:49:22 AM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
Mads Barnkob
October 04, 2017, 08:44:41 AM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
oneKone
October 04, 2017, 08:03:10 AM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
Mads Barnkob
October 03, 2017, 11:15:20 AM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
oneKone
October 03, 2017, 12:58:10 AM
post Re: Very high voltage, series connected, electrolytic capacitor bank
[Capacitor banks]
Mads Barnkob
October 01, 2017, 06:21:52 PM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
oneKone
October 01, 2017, 05:40:49 AM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
September 30, 2017, 02:02:42 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Mads Barnkob
September 30, 2017, 11:56:12 AM
post Re: Sony Xperia ZX Premium (960FPS / 720p / 5 seconds)
[Smart phones]
Mads Barnkob
September 30, 2017, 11:53:32 AM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
CCX191
September 30, 2017, 05:34:00 AM
post Re: Attempting the Kaizer sstc II
[Solid state Tesla coils]
CCX191
September 30, 2017, 04:45:46 AM