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

Offline Atomfusion

  • High Voltage Enthusiast
  • *
  • Posts: 5
  • Karma: +0/-0
    • 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 Expert
  • *****
  • Posts: 1140
  • Karma: +17/-0
  • 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
  • Karma: +0/-0
    • 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
  • Karma: +0/-0
    • 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
  • Karma: +0/-0
    • 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?

Online Laci

  • High Voltage Engineer
  • ****
  • Posts: 213
  • Karma: +6/-0
    • 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.
http://onetesla.com/downloads
« Last Edit: April 14, 2019, 10:34:53 PM by Laci »

High Voltage Forum

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

 


* Recent Topics and Posts

post Re: How to measure voltage output of AC flyback transformer
[Transformer (ferrite core)]
klugesmith
Today at 07:27:49 AM
post Re: DRSSTC with litz-wire primary and 40 x TO247 IGBT H-Bridge
[Dual Resonant Solid State Tesla coils]
T3sl4co1l
Today at 07:10:39 AM
post Re: How to measure voltage output of AC flyback transformer
[Transformer (ferrite core)]
MRMILSTAR
Today at 05:43:57 AM
post Re: so far video
[Spark gap Tesla coils]
davekni
Today at 05:40:27 AM
post Re: Drsstc 4 (new direction)
[Dual Resonant Solid State Tesla coils]
davekni
Today at 05:23:48 AM
post Re: Drsstc 4 (new direction)
[Dual Resonant Solid State Tesla coils]
oneKone
Today at 04:37:49 AM
post Re: How to measure voltage output of AC flyback transformer
[Transformer (ferrite core)]
davekni
Today at 03:47:03 AM
post Re: How to measure voltage output of AC flyback transformer
[Transformer (ferrite core)]
klugesmith
October 13, 2019, 11:05:25 PM
post Re: How to measure voltage output of AC flyback transformer
[Transformer (ferrite core)]
davekni
October 13, 2019, 09:29:25 PM
post Re: How to measure voltage output of AC flyback transformer
[Transformer (ferrite core)]
MRMILSTAR
October 13, 2019, 04:43:47 PM
post Re: My first DRSSTC on bricks
[Dual Resonant Solid State Tesla coils]
davekni
October 13, 2019, 07:04:20 AM
post Re: How to measure voltage output of AC flyback transformer
[Transformer (ferrite core)]
davekni
October 13, 2019, 07:00:57 AM
post Re: DRSSTC with litz-wire primary and 40 x TO247 IGBT H-Bridge
[Dual Resonant Solid State Tesla coils]
davekni
October 13, 2019, 06:36:13 AM
post Re: DRSSTC with litz-wire primary and 40 x TO247 IGBT H-Bridge
[Dual Resonant Solid State Tesla coils]
Weston
October 13, 2019, 12:41:07 AM
post Re: My first DRSSTC on bricks
[Dual Resonant Solid State Tesla coils]
Hydron
October 13, 2019, 12:17:39 AM
post Re: My first DRSSTC on bricks
[Dual Resonant Solid State Tesla coils]
Laci
October 12, 2019, 11:21:39 PM
post How to measure voltage output of AC flyback transformer
[Transformer (ferrite core)]
MRMILSTAR
October 12, 2019, 08:37:36 PM
post Re: DRSSTC with litz-wire primary and 40 x TO247 IGBT H-Bridge
[Dual Resonant Solid State Tesla coils]
davekni
October 12, 2019, 06:57:55 PM
post Re: so far video
[Spark gap Tesla coils]
thedoc298
October 12, 2019, 05:28:01 PM
post Re: 220ac to 440dc 5a boost convertor
[Voltage Multipliers]
rustedone
October 12, 2019, 04:58:28 PM
post Re: My first DRSSTC on bricks
[Dual Resonant Solid State Tesla coils]
Netzpfuscher
October 12, 2019, 03:53:12 PM
post Re: My first DRSSTC on bricks
[Dual Resonant Solid State Tesla coils]
Laci
October 12, 2019, 02:12:59 PM
post Re: 220ac to 440dc 5a boost convertor
[Voltage Multipliers]
rustedone
October 12, 2019, 10:43:48 AM
post Re: DRSSTC with litz-wire primary and 40 x TO247 IGBT H-Bridge
[Dual Resonant Solid State Tesla coils]
ScottE
October 12, 2019, 07:38:47 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
davekni
October 12, 2019, 06:16:12 AM
post Re: DRSSTC with litz-wire primary and 40 x TO247 IGBT H-Bridge
[Dual Resonant Solid State Tesla coils]
davekni
October 12, 2019, 05:52:51 AM
post Re: so far video
[Spark gap Tesla coils]
MRMILSTAR
October 12, 2019, 05:13:28 AM
post Re: Problems with my first DRSSTC
[Dual Resonant Solid State Tesla coils]
davekni
October 12, 2019, 04:41:19 AM
post Re: so far video
[Spark gap Tesla coils]
thedoc298
October 12, 2019, 02:58:19 AM
post Re: so far video
[Spark gap Tesla coils]
thedoc298
October 12, 2019, 02:56:17 AM
post Re: so far video
[Spark gap Tesla coils]
MRMILSTAR
October 12, 2019, 02:38:43 AM
post so far video
[Spark gap Tesla coils]
thedoc298
October 12, 2019, 12:26:44 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
T3sl4co1l
October 11, 2019, 11:33:19 PM
post Re: My first DRSSTC on bricks
[Dual Resonant Solid State Tesla coils]
Netzpfuscher
October 11, 2019, 11:17:17 PM
post Re: DRSSTC with litz-wire primary and 40 x TO247 IGBT H-Bridge
[Dual Resonant Solid State Tesla coils]
Hydron
October 11, 2019, 10:06:32 PM
post Re: My first DRSSTC on bricks
[Dual Resonant Solid State Tesla coils]
Laci
October 11, 2019, 09:03:38 PM
post Re: 220ac to 440dc 5a boost convertor
[Voltage Multipliers]
rustedone
October 11, 2019, 07:32:57 PM
post Re: 220ac to 440dc 5a boost convertor
[Voltage Multipliers]
rustedone
October 11, 2019, 07:22:56 PM
post Re: My terry filter
[Spark gap Tesla coils]
thedoc298
October 11, 2019, 06:54:59 PM
post Re: Problems with my first DRSSTC
[Dual Resonant Solid State Tesla coils]
bozidar
October 11, 2019, 11:34:59 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
kamelryttarn
October 11, 2019, 08:51:11 AM
post Re: Problems with my first DRSSTC
[Dual Resonant Solid State Tesla coils]
davekni
October 11, 2019, 06:19:09 AM
post Re: My terry filter
[Spark gap Tesla coils]
MRMILSTAR
October 11, 2019, 05:13:51 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
davekni
October 11, 2019, 04:45:55 AM
post Re: Large Ferrite Core with IGBT-Brick Driver
[Transformer (ferrite core)]
Patrick
October 11, 2019, 03:27:36 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
T3sl4co1l
October 11, 2019, 02:07:09 AM
post My terry filter
[Spark gap Tesla coils]
thedoc298
October 11, 2019, 01:37:11 AM
post Re: safty gap resisitor
[Spark gap Tesla coils]
thedoc298
October 11, 2019, 01:09:18 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
October 10, 2019, 08:58:36 PM
post Re: Problems with my first DRSSTC
[Dual Resonant Solid State Tesla coils]
bozidar
October 10, 2019, 08:42:21 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