Author Topic: Simple Arduino MIDI Interrupter  (Read 1186 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 Senior
  • *****
  • Posts: 646
  • 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.

Offline Osiedle

  • High Voltage Enthusiast
  • *
  • Posts: 1
    • View Profile
Re: Simple Arduino MIDI Interrupter
« Reply #4 on: March 08, 2018, 06:27:49 PM »
Hello. Could you please pot the schematics? Or maybe someone else can tell me how to connect my Arduino Uno to SSTC?

Offline Laci

  • High Voltage Experimenter
  • **
  • Posts: 94
    • View Profile
Re: Simple Arduino MIDI Interrupter
« Reply #5 on: March 10, 2018, 08:38:44 PM »
Check out the oneTesla SD card midi interrupter.It's easy to make it.
http://onetesla.com/downloads

High Voltage Forum

Re: Simple Arduino MIDI Interrupter
« Reply #5 on: March 10, 2018, 08:38:44 PM »

 


* Recent Topics and Posts

post Re: MMC configuration advice
[Dual Resonant Solid State Tesla coils]
zizzer
June 19, 2018, 06:45:59 PM
post Re: Next Gen DRSSTC
[Dual Resonant Solid State Tesla coils]
Netzpfuscher
June 19, 2018, 08:14:00 AM
post Re: CM200DU-24F woes
[Dual Resonant Solid State Tesla coils]
Usernametaken
June 19, 2018, 07:28:22 AM
post Re: Next Gen DRSSTC
[Dual Resonant Solid State Tesla coils]
profdc9
June 19, 2018, 03:19:15 AM
post Re: Next Gen DRSSTC
[Dual Resonant Solid State Tesla coils]
Hydron
June 18, 2018, 11:18:56 PM
post Re: Bach on sparks!
[Vacuum tube Tesla coils]
pentode
June 18, 2018, 11:03:47 PM
post Re: Next Gen DRSSTC
[Dual Resonant Solid State Tesla coils]
profdc9
June 18, 2018, 09:07:28 PM
post Re: The hobo's SSTC
[Solid state Tesla coils]
Mads Barnkob
June 18, 2018, 08:47:15 PM
post Re: Bach on sparks!
[Vacuum tube Tesla coils]
Mads Barnkob
June 18, 2018, 07:39:58 PM
post Re: The hobo's SSTC
[Solid state Tesla coils]
Hydron
June 18, 2018, 04:36:18 PM
post Re: Next Gen DRSSTC
[Dual Resonant Solid State Tesla coils]
Hydron
June 18, 2018, 04:27:14 PM
post The hobo's SSTC
[Solid state Tesla coils]
Spuriosity_
June 18, 2018, 04:17:13 PM
post Re: IGBT selection - TO-247 or minibrick?
[Dual Resonant Solid State Tesla coils]
Hydron
June 18, 2018, 04:07:44 PM
post Re: Bach on sparks!
[Vacuum tube Tesla coils]
pentode
June 18, 2018, 03:32:39 PM
post Re: MMC configuration advice
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
June 18, 2018, 02:02:50 PM
post Re: IGBT selection - TO-247 or minibrick?
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
June 18, 2018, 01:53:12 PM
post Re: Next Gen DRSSTC
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
June 18, 2018, 01:48:11 PM
post Re: Bach on sparks!
[Vacuum tube Tesla coils]
Mads Barnkob
June 18, 2018, 12:41:18 PM
post Re: Drsstc 3
[Dual Resonant Solid State Tesla coils]
Hydron
June 18, 2018, 12:31:42 PM
post Re: Glass and shellac
[Radio frequency]
Mads Barnkob
June 18, 2018, 12:13:42 PM
post Re: Next Gen DRSSTC
[Dual Resonant Solid State Tesla coils]
Hydron
June 18, 2018, 11:46:44 AM
post Re: Drsstc 3
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
June 18, 2018, 11:13:39 AM
post Re: Next Gen DRSSTC
[Dual Resonant Solid State Tesla coils]
Netzpfuscher
June 17, 2018, 08:35:38 PM
post Re: Bach on sparks!
[Vacuum tube Tesla coils]
pentode
June 17, 2018, 01:15:28 PM
post Re: IGBT selection - TO-247 or minibrick?
[Dual Resonant Solid State Tesla coils]
TDAF
June 17, 2018, 01:06:30 PM
post Re: Bach on sparks!
[Vacuum tube Tesla coils]
oneKone
June 17, 2018, 12:15:59 PM
post Bach on sparks!
[Vacuum tube Tesla coils]
pentode
June 17, 2018, 09:14:12 AM
post Re: IGBT selection - TO-247 or minibrick?
[Dual Resonant Solid State Tesla coils]
profdc9
June 17, 2018, 06:07:55 AM
post Re: IGBT selection - TO-247 or minibrick?
[Dual Resonant Solid State Tesla coils]
oneKone
June 17, 2018, 01:59:48 AM
post Glass and shellac
[Radio frequency]
gar3thling
June 17, 2018, 01:41:54 AM
post Re: MMC configuration advice
[Dual Resonant Solid State Tesla coils]
Hydron
June 16, 2018, 10:53:34 PM
post Re: IGBT selection - TO-247 or minibrick?
[Dual Resonant Solid State Tesla coils]
Hydron
June 16, 2018, 10:12:08 PM
post Cheap, small signal, through-hole P-channel MOSFETs?
[Electronic circuits]
profdc9
June 16, 2018, 07:29:31 PM
post Re: IGBT selection - TO-247 or minibrick?
[Dual Resonant Solid State Tesla coils]
TDAF
June 16, 2018, 06:28:20 PM
post IGBT selection - TO-247 or minibrick?
[Dual Resonant Solid State Tesla coils]
Spuriosity_
June 16, 2018, 06:20:26 PM
post Re: MMC configuration advice
[Dual Resonant Solid State Tesla coils]
zizzer
June 16, 2018, 04:49:44 PM
post Re: MMC configuration advice
[Dual Resonant Solid State Tesla coils]
Hydron
June 16, 2018, 03:38:06 PM
post MMC configuration advice
[Dual Resonant Solid State Tesla coils]
zizzer
June 16, 2018, 01:39:41 PM
post Re: New Tesla Coil songs
[Dual Resonant Solid State Tesla coils]
oneKone
June 16, 2018, 10:38:22 AM
post Re: Drsstc 3
[Dual Resonant Solid State Tesla coils]
oneKone
June 16, 2018, 09:45:09 AM
post New Tesla Coil songs
[Dual Resonant Solid State Tesla coils]
profdc9
June 16, 2018, 03:38:50 AM
post Re: Online Electronic Resources - A library of books, websites and online calculator
[Beginners]
the_anomaly
June 16, 2018, 02:07:39 AM
post Re: Best of the best Ebay sellers!
[Sell / Buy / Trade]
StaticBuildup
June 15, 2018, 01:24:19 PM
post Best of the best Ebay sellers!
[Sell / Buy / Trade]
Mads Barnkob
June 14, 2018, 08:57:49 AM
post Ericsson RBS 2216 900 MHz base station teardown (part 1 & 2)
[Radio frequency]
Mads Barnkob
June 13, 2018, 10:13:16 AM
post Re: Newbie on a learning curve
[Solid state Tesla coils]
Andy Kay
June 12, 2018, 06:21:14 PM
post Re: Newbie on a learning curve
[Solid state Tesla coils]
Mads Barnkob
June 12, 2018, 02:45:51 PM
post Re: Newbie on a learning curve
[Solid state Tesla coils]
Andy Kay
June 12, 2018, 01:48:13 PM
post Re: Replacing a HV Transformer
[Transformer (iron core)]
Mads Barnkob
June 12, 2018, 01:14:54 PM
post Re: Newbie on a learning curve
[Solid state Tesla coils]
Mads Barnkob
June 12, 2018, 10:00:24 AM