Author Topic: Simple Arduino MIDI Interrupter  (Read 312 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 »

Online Mads Barnkob

  • Administrator
  • High Voltage Engineer
  • *****
  • Posts: 359
  • 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: Beetle in a Geißler tube
[Science, research and news in other fields than electronics]
futurist
Today at 03:59:26 PM
post Refreshment of rechargeable batteries?
[Electronic circuits]
Physikfan
Today at 01:30:41 PM
post Re: oneTesla MIDI interrupter issue
[Dual Resonant Solid State Tesla coils]
futurist
Today at 12:54:35 AM
post Re: oneTesla MIDI interrupter issue
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
November 18, 2017, 05:27:50 PM
post Re: Check the Mbit rates of different providers?
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Mads Barnkob
November 18, 2017, 05:24:52 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Mads Barnkob
November 18, 2017, 05:23:18 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
November 18, 2017, 02:58:03 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
futurist
November 18, 2017, 12:50:22 PM
post Check the Mbit rates of different providers?
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Physikfan
November 18, 2017, 12:47:35 PM
post Re: oneTesla MIDI interrupter issue
[Dual Resonant Solid State Tesla coils]
futurist
November 18, 2017, 12:30:17 PM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
futurist
November 18, 2017, 12:21:34 PM
post Re: oneTesla MIDI interrupter issue
[Dual Resonant Solid State Tesla coils]
oneKone
November 18, 2017, 05:44:41 AM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
November 17, 2017, 09:48:22 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
November 17, 2017, 09:40:13 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
November 17, 2017, 09:37:27 PM
post Re: oneTesla MIDI interrupter issue
[Dual Resonant Solid State Tesla coils]
Garyf
November 17, 2017, 07:43:27 PM
post Re: oneTesla MIDI interrupter issue
[Dual Resonant Solid State Tesla coils]
Garyf
November 17, 2017, 05:10:50 PM
post Re: oneTesla MIDI interrupter issue
[Dual Resonant Solid State Tesla coils]
futurist
November 17, 2017, 03:49:39 PM
post Re: oneTesla MIDI interrupter issue
[Dual Resonant Solid State Tesla coils]
Garyf
November 17, 2017, 03:16:42 PM
post Re: oneTesla MIDI interrupter issue
[Dual Resonant Solid State Tesla coils]
futurist
November 17, 2017, 01:31:51 PM
post Re: looking for advice
[Dual Resonant Solid State Tesla coils]
Garyf
November 17, 2017, 05:13:22 AM
post Re: oneTesla MIDI interrupter issue
[Dual Resonant Solid State Tesla coils]
Garyf
November 17, 2017, 04:52:08 AM
post oneTesla MIDI interrupter issue
[Dual Resonant Solid State Tesla coils]
futurist
November 16, 2017, 07:48:06 PM
post Re: looking for advice
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
November 16, 2017, 07:27:38 PM
post Re: looking for advice
[Dual Resonant Solid State Tesla coils]
Garyf
November 16, 2017, 04:27:23 PM
post Re: looking for advice
[Dual Resonant Solid State Tesla coils]
Hydron
November 15, 2017, 11:10:53 PM
post Re: Antique Tesla coil with tubes
[Vacuum tube Tesla coils]
Mads Barnkob
November 15, 2017, 08:24:43 PM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
Mads Barnkob
November 15, 2017, 08:03:21 PM
post Re: looking for advice
[Dual Resonant Solid State Tesla coils]
Garyf
November 15, 2017, 06:31:17 PM
post Re: looking for advice
[Dual Resonant Solid State Tesla coils]
Hydron
November 15, 2017, 01:31:53 PM
post Re: Antique Tesla coil with tubes
[Vacuum tube Tesla coils]
Physikfan
November 15, 2017, 12:47:54 PM
post Re: looking for advice
[Dual Resonant Solid State Tesla coils]
Garyf
November 14, 2017, 10:53:55 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
November 14, 2017, 09:55:14 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Mads Barnkob
November 14, 2017, 09:17:02 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
November 14, 2017, 09:02:10 PM
post Re: looking for advice
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
November 14, 2017, 08:52:44 PM
post Re: looking for advice
[Dual Resonant Solid State Tesla coils]
Garyf
November 14, 2017, 06:13:37 PM
post Re: looking for advice
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
November 14, 2017, 04:43:35 PM
post MOVED: looking for advice
[Solid state Tesla coils]
Mads Barnkob
November 14, 2017, 04:32:01 PM
post looking for advice
[Dual Resonant Solid State Tesla coils]
Garyf
November 14, 2017, 04:04:19 PM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
oneKone
November 14, 2017, 09:26:27 AM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
November 13, 2017, 10:14:03 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
November 13, 2017, 10:07:52 PM
post Re: Beetle in a Geißler tube
[Science, research and news in other fields than electronics]
Physikfan
November 12, 2017, 04:31:28 PM
post Antique Tesla coil with tubes
[Vacuum tube Tesla coils]
Physikfan
November 12, 2017, 01:59:28 PM
post Re: Beetle in a Geißler tube
[Science, research and news in other fields than electronics]
Physikfan
November 11, 2017, 07:52:55 PM
post Re: My 160 (?)mm sstc
[Solid state Tesla coils]
Mads Barnkob
November 11, 2017, 01:44:49 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Mads Barnkob
November 11, 2017, 01:28:43 PM
post Re: SSTC Not Working Correctly
[Solid state Tesla coils]
Laci
November 10, 2017, 10:36:54 PM
post Re: Beetle in a Geißler tube
[Science, research and news in other fields than electronics]
Physikfan
November 10, 2017, 08:05:47 AM