I encountered a problem with the Arduino, some components that I connected worked fine until I put a 20kv igniter generator to create a spark to ignite the gas and at the moment the spark occurs the whole system starts to malfunction. The Arduino recognizes it, for example, if I have pressed the button and a certain process starts, the lights on the relay turn off and on in an irregular manner. Do you have any ideas on how to fix this?
some of the problems are the long cables and the connection of the gnd source to the arduino and the components which is necessary
- Always show us a good schematic of your proposed circuit.
Show us good images of your ‘actual’ wiring.
Give links to components.
Everything associated with the Arduino must be shielded, mounted inside in a grounded metal container. Use optocouplers to exchange signals with external devices.
In addition to what @jremington said, route the cabling for the igniter as far from the arduino as you can get it. I had a similar problem with a propane igniter causing resets on a non-arduino controller.
Keep wires bundled together.
Prevent ground loops.
Of course you already have caps everywhere from plus to gnd....
Maybe decrease pullup resistor values (especislly the built in pullups are quite large...). More designed for low energy use than for reliable data transfer in noisy environments).
Thank you very much for the answer, I found another more practical solution, I used a resistance wire which is heated with a voltage of 12 volts, and I ignited the gas.
Not sure what you're igniting, but a small lightbulb, with the glass bulb crushed with a vice is a good gas igniter. A halogen bulb has a more solid fillament.
Leo..