Author Topic: Simple Arduino MIDI Interrupter  (Read 403 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: 402
  • 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: Highway to DRSSTC
[Dual Resonant Solid State Tesla coils]
Laci
December 17, 2017, 10:48:35 PM
post Re: Hacking the IKEA 2000 Watt induction stove (5 parts)
[Electronic circuits]
chjarup
December 17, 2017, 09:11:49 PM
post Re: SSTC (Not) Working Correctly
[Solid state Tesla coils]
Mads Barnkob
December 17, 2017, 09:34:08 AM
post Re: SSTC (Not) Working Correctly
[Solid state Tesla coils]
Laci
December 16, 2017, 09:46:34 PM
post Re: SSTC (Not) Working Correctly
[Solid state Tesla coils]
Mads Barnkob
December 16, 2017, 09:41:46 PM
post Re: SSTC (Not) Working Correctly
[Solid state Tesla coils]
Laci
December 16, 2017, 09:33:09 PM
post Re: WTS [DK]: NWL W00238 Capacitor 815 KVAR 1200 VAC 680 Ampere @ 10 kHz
[Sell / Buy / Trade]
Max
December 16, 2017, 09:24:41 PM
post Re: new problem
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 16, 2017, 07:13:34 PM
post Re: new problem
[Dual Resonant Solid State Tesla coils]
Garyf
December 16, 2017, 06:28:58 PM
post Re: SSTC (Not) Working Correctly
[Solid state Tesla coils]
Mads Barnkob
December 16, 2017, 04:23:23 PM
post Re: WTS [DK]: NWL W00238 Capacitor 815 KVAR 1200 VAC 680 Ampere @ 10 kHz
[Sell / Buy / Trade]
Mads Barnkob
December 16, 2017, 03:34:14 PM
post Re: My first drsstc
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 16, 2017, 03:14:21 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
December 15, 2017, 05:52:37 PM
post Re: Steve Ward's Universal Driver 1.3: using IFD95 fibre optic receiver
[Dual Resonant Solid State Tesla coils]
Hydron
December 15, 2017, 11:28:43 AM
post Re: WTS [DK]: NWL W00238 Capacitor 815 KVAR 1200 VAC 680 Ampere @ 10 kHz
[Sell / Buy / Trade]
Max
December 15, 2017, 07:46:42 AM
post Re: Steve Ward's Universal Driver 1.3: using IFD95 fibre optic receiver
[Dual Resonant Solid State Tesla coils]
matt0852
December 14, 2017, 03:20:44 PM
post Re: Steve Ward's Universal Driver 1.3: using IFD95 fibre optic receiver
[Dual Resonant Solid State Tesla coils]
matt0852
December 14, 2017, 03:06:07 PM
post Re: My first drsstc
[Dual Resonant Solid State Tesla coils]
oneKone
December 14, 2017, 01:04:04 PM
post Re: Steve Ward's Universal Driver 1.3: using IFD95 fibre optic receiver
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 14, 2017, 09:10:16 AM
post Re: Hacking the IKEA 2000 Watt induction stove (5 parts)
[Electronic circuits]
chjarup
December 14, 2017, 06:53:35 AM
post Re: new problem
[Dual Resonant Solid State Tesla coils]
Garyf
December 14, 2017, 06:23:00 AM
post Re: Steve Ward's Universal Driver 1.3: using IFD95 fibre optic receiver
[Dual Resonant Solid State Tesla coils]
matt0852
December 13, 2017, 11:42:27 PM
post Re: new problem
[Dual Resonant Solid State Tesla coils]
Max
December 13, 2017, 04:16:45 PM
post Re: Steve Ward's Universal Driver 1.3: using IFD95 fibre optic receiver
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 13, 2017, 08:41:17 AM
post Re: Steve Ward's Universal Driver 1.3: using IFD95 fibre optic receiver
[Dual Resonant Solid State Tesla coils]
matt0852
December 13, 2017, 03:35:30 AM
post Re: Highway to DRSSTC
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 12, 2017, 09:36:30 PM
post Re: Highway to DRSSTC
[Dual Resonant Solid State Tesla coils]
Laci
December 12, 2017, 08:49:16 PM
post Re: Steve Ward's Universal Driver 1.3: using IFD95 fibre optic receiver
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 12, 2017, 07:39:45 PM
post Re: DRSSTC: IGBT selection
[Dual Resonant Solid State Tesla coils]
matt0852
December 12, 2017, 04:09:13 PM
post Steve Ward's Universal Driver 1.3: using IFD95 fibre optic receiver
[Dual Resonant Solid State Tesla coils]
matt0852
December 12, 2017, 04:07:25 PM
post Re: First DRSSTC: PCB Critique needed!
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 12, 2017, 11:21:12 AM
post Re: First DRSSTC: PCB Critique needed!
[Dual Resonant Solid State Tesla coils]
matt0852
December 12, 2017, 10:11:22 AM
post Re: DRSSTC: IGBT selection
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 12, 2017, 09:35:46 AM
post DRSSTC: IGBT selection
[Dual Resonant Solid State Tesla coils]
matt0852
December 12, 2017, 03:43:27 AM
post Re: First DRSSTC: PCB Critique needed!
[Dual Resonant Solid State Tesla coils]
matt0852
December 11, 2017, 11:52:40 PM
post Re: new problem
[Dual Resonant Solid State Tesla coils]
Garyf
December 11, 2017, 11:27:15 PM
post Re: new problem
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 11, 2017, 09:05:14 PM
post new problem
[Dual Resonant Solid State Tesla coils]
Garyf
December 11, 2017, 08:51:12 PM
post Re: First DRSSTC: PCB Critique needed!
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 11, 2017, 07:14:11 PM
post induction heating/Blacksmithing
[Electronic circuits]
petespaco
December 11, 2017, 04:30:06 PM
post Re: First DRSSTC: PCB Critique needed!
[Dual Resonant Solid State Tesla coils]
matt0852
December 11, 2017, 02:49:10 PM
post Re: First DRSSTC: PCB Critique needed!
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
December 11, 2017, 02:10:54 PM
post Re: Hacking the IKEA 2000 Watt induction stove (5 parts)
[Electronic circuits]
Mads Barnkob
December 11, 2017, 01:08:29 PM
post Re: FPS1000HD how-to, information and work flow collection
[High speed filming]
Mads Barnkob
December 10, 2017, 08:32:12 PM
post FPS1000HD how-to, information and work flow collection
[High speed filming]
Mads Barnkob
December 10, 2017, 08:31:47 PM
post First DRSSTC: PCB Critique needed!
[Dual Resonant Solid State Tesla coils]
matt0852
December 10, 2017, 03:43:19 PM
post Re: Hacking the IKEA 2000 Watt induction stove (5 parts)
[Electronic circuits]
chjarup
December 10, 2017, 10:49:22 AM
post Re: Highway to DRSSTC
[Dual Resonant Solid State Tesla coils]
Laci
December 09, 2017, 06:37:09 PM
post Re: What kind of oscilloscope to buy?
[Electronic circuits]
Hydron
December 09, 2017, 03:58:31 PM
post Re: What kind of oscilloscope to buy?
[Electronic circuits]
futurist
December 09, 2017, 03:35:22 PM