Hi there anyone/everyone...
ISSUE IN BRIEF
'HT spark causes ATMEGA 328P pu to crash"
The project as stated is a midi controlled pyrophone or flaming pipe organ (see tancs pyrophone on youtube). Currently this system uses a pre bought midi - 32 outputs decoder board that drives relays that operate valves and turns on a 555 oscillator to drive a mosfet to drive a 12v automotive ignition coil to produce the spark.
The next phase is to make more tubes (24 in total). with this many tubes the wiring becomes unmanagable (240 pairs of wires over 10m) so i want each tube to have its own decoder and battery thus reducing the wiring to a simple short midi cable between each tube.
I have designed an ATMEGA 328 circuit (arduino derived) that listens for NOTE ON/OFF and PROGRAM midi messages and when it hears its note it executes a sequence of valves and sparks based on the current program number. this enables the machine to have different voices on different midi programs much as a standard midi synth.
The issue is the spark causes the decoder to crash
When the spark circuit is not connected it works fine receiving and passing midi data, recognises program change and throws relays fine.
the system flows thus....
midi in
6n137 opto isolator
74hct14 hex inverter (for midi thru)
atmega 328 ext osc
uln 2803 darlington array for output
relay
osc
mosfet
coil
plug
any hints/ help gratefully received
thanks
tanc
ISSUE IN BRIEF
'HT spark causes ATMEGA 328P pu to crash"
The project as stated is a midi controlled pyrophone or flaming pipe organ (see tancs pyrophone on youtube). Currently this system uses a pre bought midi - 32 outputs decoder board that drives relays that operate valves and turns on a 555 oscillator to drive a mosfet to drive a 12v automotive ignition coil to produce the spark.
The next phase is to make more tubes (24 in total). with this many tubes the wiring becomes unmanagable (240 pairs of wires over 10m) so i want each tube to have its own decoder and battery thus reducing the wiring to a simple short midi cable between each tube.
I have designed an ATMEGA 328 circuit (arduino derived) that listens for NOTE ON/OFF and PROGRAM midi messages and when it hears its note it executes a sequence of valves and sparks based on the current program number. this enables the machine to have different voices on different midi programs much as a standard midi synth.
The issue is the spark causes the decoder to crash
When the spark circuit is not connected it works fine receiving and passing midi data, recognises program change and throws relays fine.
the system flows thus....
midi in
6n137 opto isolator
74hct14 hex inverter (for midi thru)
atmega 328 ext osc
uln 2803 darlington array for output
relay
osc
mosfet
coil
plug
any hints/ help gratefully received
thanks
tanc