Trying to create a spark with arduino

Hello, I'm new to this forum and to arduino programming and hardware so please excuse me if I am unaware of a few customs and courtesies. I'm trying to make an arduino-controlled miniature potato gun, where I have a high voltage source with stripped wires create a spark on command to ignite hairspray contained in a plastic bottle to shoot a q-tip.

I have access to diodes and transistors, and I'm trying to wire it so that when I press a button, for example, it causes the transistor to close the switch and allow the electricity from the high voltage source to flow and create a spark. How would I wire this up?

Thank you

Where does the Arduino come into play here? Will it be wireless ignition via Bluetooth or WiFi controlled?

All you need is an ignitor from any propane or gas grill.

You can also use a glow plug (with battery pack) from a hobby grade gas RC car.

Would that be a flaming Q-tip? Have you thought of using compressed air?

I want this to be adaptable so that I can use various sensor inputs be the trigger that set off the spark. Getting it started by figuring out how to make a button fire it is just proof of concept.

I want to use an arduino for this because I eventually don't want to have to fire it by hand, I'm thinking of using a pixycam that can detect an object, like a brightly colored piece of construction paper, and fire at it.

The hairspray might singe the q-tip, but not badly. I'd rather not create a pneumatic system, and figure out how to get an arduino to release the compressed air on command.

First solve the spark issue, by one of my suggestions above, then once you have that working then you can move on to make it wireless.

The Arduino (Uno R4 or a WiFi/bluetooth module and any Arduino of your choice) and a relay will solve that.

If a mechanical relay is too loud, then you also have optocouplers or more preferably a solid state relay.

Like a motion sensor or distance sensor?

Do you know that you need approx. 1000 V to start a 1 mm spark in air?
Do you understand that may be dangerous?

Not necessarily, it would be no more dangerous than getting a static shock from a door knob on a cold day or dragging your feet (with socks) on a carpet...

Now if you went with say a neon sign transformer (don't btw), then yeah, that may do some damage.

Put 2 wires in contact with 5V flowing through and pull them apart. There will be a tiny spark. With 12V you will see the spark.

Run current through fine steel wool, it will burn.
Bend a weak spot in a wire and run current through that, the thinner the wire the faster it gets red hot at lower voltage.

1 Like

Denial of the danger is the real danger.
Good luck and stay safe!

1 Like

I've used a 9 volt battery and two wires and by connecting the wires to the positive and negative ends of the battery and touching them together, I've managed to get a tiny spark. What I want to do is to fix these two wires in place and set the spark off on command using an arduino to open and close the switch, the switch being a transistor. I'm just not sure how to wire the transistor and code it to get this done.

I'm not too concerned about that at the moment, I'm just trying to control the spark to go off when I want it to with the arduino.

The wires need to be at approx. 10 micrometer...
After the spark you will see that the gap has grown or is welded together.

1 Like

you can find cheap BBQ spark generators

https://fr.aliexpress.com/item/1005005258088952.html

or for the kitchen
https://fr.aliexpress.com/item/1005003713027910.html

be safe....

Shorting positive and negative isn't good for the 9V battery, this will wear it out very quickly.

You can probably use the transformer in a fly zapper to create the spark. It is HIGH voltage and will hurt if you touch it, so... be safe.

Also if you get this to work, then it will be easy to integrate this with an Arduino later.

Amazon Fly Zapper

I am. Please answer the question.

1 Like

If you can find an old disposable camera with a Zenon strobe flash, those use a high voltage.

Or, you might look for a circuit for a "shock toy". (We don't discuss that too much here because it can be dangerous, especially if someone has an undiagnosed heart condition, etc.)

Or an electrical BBQ lighter that uses a battery. The cheap Piezoelectric spark generators are triggered by mechanical force.

A high voltage spark is normally generated with an inductor. That's how the coil in your car creates a spark for the spark plug.

A simplified explanation is that inductors (coils) "resist changes in current". If you are familiar with Ohm's Law, "resistance is the resistance to current flow". With more voltage or less resistance you get more current.

When current flows through a coil, a magnetic field builds-up. When you first connect a DC source, a small amount of current flows as the field builds-up and then it levels-off and after the magnetic field stabilizes the current is only limited by the resistance of the wire. (This happens very quickly.)

If you suddenly disconnect power, the magnetic field collapses turning the coil into a generator. Its "trying" to keep the same current flowing but with infinite resistance (no connection). Theoretically takes infinite voltage to push current through infinite resistance, and in the real world you et high voltage, and usually a spark.

...Since relays are activated with an electromagnet, you you can get the same high-voltage "flyback" or "kickback" when power is removed. So most relay drivers have a "flyback diode" to "short-out" the current at a low voltage so you don't fry the driver transistor with thousands of volts. When the inductor becomes a generator, the current flows in the same direction but the voltage is reversed so the 'reversed" diode doesn't affect normal operation and only kicks-in with the kickback voltage.

The Arduino output, via a MOSFET will cause an air valve solenoid to open.
How simpler can you get?

Using a sparking device could cause an electromagnetic pulse to be radiated and cause your controller to lock up or fail.

Although compressed air can also be dangerous, hair spray propellant gas would be more.

The compressed air will be contained in a cylinder behind a valve.
Your hair spray propellant will be in a bottle, will you seal the end of the bottle to prevent gas leaking out before firing?
How will the Q-Tip get out?
How will you load and reload the gas?

Tom.. :grinning: :+1: :coffee: :australia: