Hello everyone,
1st post here cause i'm running out of solutions for my project...
ps: Not native, so there may be fault here, sorry for this, and I might have confusion for some term (ex: ground = earth ground or arduino ground ?), sorry to ask you to be "accurate" as you can.
ps 2 : I'm a computer science master student, so I have "some" bases in programming, electronics (butttt long time I havn't done electronic stuff, so I'm a bit rusty, even for fundamental knowledge).
Since 6 months, I'm building a CNC Plasma cutter controlled by an arduino UNO R3 and a CNC Shield.
I'm using GRBL inside the arduino to controll the motor with CNCJS to have an user-friendly software.
The CNC consist of :
- 2 stepper motors on X
- 1 stepper motor on Y
- 1 stepper motor on Z
- Arduino UNO R3
- CNC Shield V3.0
- 5 V relay optoisolated (if Am**n doesn't say bs)
- Shielded cable
- Faraday cage (where all electronic components are)
- 4 * Nema 23 stepper motor
( - Stamos 125CNC plasma cutter if anyone is interested
- THC proma SD controlling the height of the torch when cutting
)
For all the moving parts, I have 0 problem. All is working nicely and smoothly. No problem to wire it.
I tricked to have a homing on my floating head, but there will be a problem in a close future, but that's not the problem in this thread.
My problem is :
The user manual is a bit confusing: Stamos 125 CNC User manual pdf
Just giving this so you have all the information I have.
My plasma has a connection for the torch (the 10 in the 125 CNC page of the user manual), where it's connected to... the manual torch.
I want to replace it by a relay (cf the picture) controlled by the arduino, so I will be able to control the fire of the torch. My wiring is in the attachments.
When the plasma is off, everything work well. I can control the relay. But when the plasma is on, 1/10 it's starting correctly, but most of the time, it's crashing the arduino (litteraly, in the bash of CNCJS, lot of errors pop) and it's blocking the relay. I have to restart the arduino by disconnecting the power source of it (USB or a 5V "converter", I don't know exactly the term, see attachment).
With a multimeter, when I'm triggering the torch with the relay, I can see a huge voltage for less than 0.5sec, very brief (maybe it's coming from the arc start of the plasma, I don't know).
May be I have to wire a flyback diode ? I don't know and like I said, I'm running out of solution and don't know where the problem is coming from...
I would be gratefully if you can help, and if you have questions, ask me, I will try my best to answer.
Thanks.