Electronics > Microcontrollers
ARDUINO: EMF problems
TizianoHV:
I had a similar problem and it was just the cheap USB cable with bad shielding (i bought it as shielded but it was unshielded...). What USB cable are you using?
If that doesn't work you could try adding an USB isolator (a few $ on aliexpress).
Brexei:
mmmm, that is interesting...
My usb cable is a generic one... not something special. I have a few spare cables and i will test them for sure! :)
mtwieg:
Hard to be confident in any advice without clear description of how the whole system is connected (including signals and power, including earth grounding).
A good line filter dedicated to the vacuum motor definitely sounds reasonable (put the triac on the same side of the filter as the motor). Connect the motor chassis directly to the line filter's GND, and then connect the line filter GND to Earth GND (perhaps via a different connection point than your laptop).
Is the arduino controlling the vacuum motor at all? Does the triac controller board have a DC power supply?
Brexei:
Well, taking into account all your suggestions i removed the electronics and cut diode D1. Then replaced the power supply with a laptop psu (19v) and now the Arduino gets power only from the laptop through usb. I also replaced the usb cable with a better one (i think...). I put the laptop and the ramps PSUs in a line-filter. The vacuum motor is grounded and the ground goes through the cable to the mains plug.
Moreover, i changed the firmware. I now use grbl instead of Marlin. It seems more appropriate for CNCs and is more responsive.
I did a couple of tests with this new setup and there was no problem with the connection. I was "carving" a project in the air, while powering on the vacuum and changing the rpm of the motor up and down, but no disconnection this time! I tried switching the vacuum motor off and on, but no problem! It looks like there is some improvement with all these changes done.
I will test it more in the following days and report back. It was probably related either to the usb cable or to emi noise coming from the psu to RAMPS and then to Arduino. A voltage spike there might cause the Arduino to drop connection. But now power to the Arduino is fed through the laptop, so it is stable.
Navigation
[0] Message Index
[*] Previous page
Go to full version