im making a "friendly" device with a arc generator ignition coil and a relay just so arduino wont shut off for voltage spikes or some thing like that. Im not sure the cause of it shutting off. But is there any way to prevent this so i can finally get my "friendly" device to work?
Maybe, maybe not
Why would you want your Arduino to continue running when the internal registers and electronics have all been scrambled?
If you put your Arduino and a battery supply in a metal box with no holes or slots, then it will be protected from abuse!
I think we need a photo of a hand drawn wiring diagram plus ALL the code in code tags. If there are error message in the serial monitor, post all those in code tags as well.
i didnt use code for this.
well, heres the diagram (not image)
arduino 5V - relay VCC
arduino GND - relay GND
arduino GND - pushbutton leg
pushbutton leg - Relay IN
arduino GND - ignition coil negative leg (-)
relay COM - arduino 5V
relay NO (normally open) - ignition coil positive leg (+)
talking like my arduino is a living human im just trying to test if the ignition coil i bought online works
When you post a picture of a hand-drawn wiring diagram, someone will help.
Gil's Crispy Critter Rules for Processor Hardware:
- Rule #1: An Arduino is NOT a Power Supply!
- Rule #2: Never connect anything inductive (motors, speakers) directly to an Arduino!
- Rule #3: Avoid connecting or disconnecting wires while the power is on.
- Rule #4: Do not apply power to any pin unless you are certain of what you're doing.
- Rule #5: Do not exceed the maximum voltage ratings.
- Rule #6: Many Arduinos cannot power transmitters directly.
- Rule #7: Before powering your project, take a break and double-check the wiring.
LaryD’s Corollaries:
- Coro #1: When starting out, add a 220Ω resistor in series with both input and output pins to protect against shorts.
- Coro #2: Invest in a Digital Multi-Meter (DMM) to measure voltages, currents, and resistance.
Note: Violating these rules can turn your Arduinos into crispy critters. For optimal performance, keep your wires under 25 cm (10 inches).
Additional Tips:
- The L293 motor driver, though common, is inefficient as it can lose around 3V as heat when driving both legs of a motor. Consider using a motor driver with MOSFET outputs to reduce heat loss and conserve battery power.
- For more on powering Arduino boards, explore this guide: Powering Alternatives for Arduino Boards.
We always talk about computers as if they are living human beings because a living human being provided the logic for ALL it's operations and if there is a failure of some sort, the human being also produced the failure. ONLY once in my lifetime was that not true.
i am trying to, but i cant find a software i can use to make a diagram.
The software is at the end of your arm.
See post #4, #6, #10
this could help, i tried connecting an other power supply (1.5V battery) and it seemed to work
I will let you guess your way out of your problem, I do not play guessing games and without a schematic that is what I will be doing. Good Luck!
It works fine to reset the Arduino, because you have not properly shielded the Arduino from electromagnetic "abuse".
well, what exactly is electromagnetic abuse? i dont have much knowledge about arduino
If you have a circuit that restarts the Arduino , due to “spikes” , then is likely to damage the Arduino at some point
Arc generators are a serious problem for all electronics. Relays can be as well.
The circuit shown does not need an Arduino, just a 5V power supply. Use a phone charger.
ill update when i try the power source, thanks
This schematic should have been the very first thing to show. In fact, it represents the worst-case scenario for a logic circuit (not just Arduino, but any circuit). The logic power supply voltage (5V) should never be connected to external components that require high currents or large current spikes, especially if they are highly inductive or capacitive loads. So this is a complete violation of both Rule #1 and Rule #2 ![]()
In particular, an arc generator ignition coil is already something "critical" in itself (even if those two rules hadn't been violated), because it produces strong electromagnetic radiation. In fact, in the absence of the schematic, we initially thought it was a issue related to electromagnetic shielding (but it turned out to be much worse
).
Look up topics related to electromagnetic compatibility (EMI/EMS/EMC).
