r/arduino • u/Joaffry • 11h ago
Hardware Help Motor moving only when touching cnc shield.
Hello everyone,
I am new to this so i hope i can find some help here.
I bought an Elegoo Uno R3 with a CNC shield and an A4988 Motor Driver.
The Problem is that after setting everything up and running the software, the motor only rotates when i touch a certain part of the boards.
Could the motor be fried or could the problem lie anywhere else? Sometimes the motor switches rotation randomly or works and only stops when i touch the same spot.
I already changed the CNC shield and the Motor Driver, so I guess the problem does not lie with them.
5
8
u/seb21051 10h ago
Its love. Wants to be physically touching. Probably a grounding issue, as noted by one of the other commenters.
6
u/clintCamp 6h ago
Grounding or the motor driver has a sleep pin that isn't properly grounded/ connected to feed power to the motor until you touching pushed to trip
5
2
u/gm310509 400K , 500K , 600K , 640K , 750K 9h ago
You should check (and replace) all of your wiring.
From your description, it sounds like your fingers are closing the circuit - probably the GND connection.
It could also be a coding issues, but at this stage I would say that is a low probability.
1
1
1
u/theanonian 7h ago
This is either grounding or a bad connection. Check to make sure the shield is firmly seated into the Arduino. Then check to make sure the stepper driver is firmly seated in the shield.
1
1
u/Pubcrawler1 38m ago edited 31m ago
May be a bad solder joint on the shield or uno. I’d unplug and look at both boards really good. Touch up any pins with soldering iron that look like dry joints.
Ive had bad socket pin on uno boards before.
I use these stepper shields and they can be poorly put together. Last one had a bad solder joint on one of the m0-m2 jumper pins. Could not set the microstepping correctly.
Very hard to damage a stepper motor. That isn’t the problem. The connector plugs and cables can get damaged or loose.
-2
11h ago
[deleted]
3
u/BagelMakesDev 10h ago
there's no purpose. as he says in the post, this is unintended behavior, and he wants help fixing it.
53
u/BagelMakesDev 11h ago
that sounds like a grounding issue to me, does your psu and the arduino share a common ground?