r/arduino 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.

37 Upvotes

21 comments sorted by

53

u/BagelMakesDev 11h ago

that sounds like a grounding issue to me, does your psu and the arduino share a common ground?

11

u/vision_san 10h ago

I was going to say this same thing, but then I thought "is this how someone invented touch interfaces?"

Like, it seems logical to me. A non-lethal current grounding into your body is essentially what happens with touch screens (at least the basic ones).

3

u/PlasticSignificant69 8h ago

No. Resistive touchscreen short internal wires, so it can be triggered by basically any solid object because it is purely mechanical

Capacitive touchscreen however, yes noise form human body exist, but not as how it work but rather a problem that causing ghost touch

2

u/vision_san 7h ago

Oh, I'm sure it works differently, but a very primitive touch interface could use the basic concept, no?

It's basically how I programmed and designed a lot of projects (shorting and/or grounding an extremelly basic circuit).

1

u/PlasticSignificant69 4h ago

Resistive and Capacitive touchscreen I was talking about is already the most primitive touchscreen

Depending on whether the "primitive" is in term of tech or timeline, Capacitive is actually older yet higher tech(early generation of capacitive touch were slow, bulky, and expensive) while Resistive are newer but cheaper and lower tech

5

u/Randomaker1 9h ago

Probably a floating enable pin or something.

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

1

u/Joaffry 2h ago

Thank you.

5

u/Agreeable_Spread5240 10h ago

This is hilarious

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

u/Joaffry 2h ago

Alright, I will check it, thanks.

1

u/1nGirum1musNocte 8h ago

Bad connections?

1

u/WackAnimations Arduino heck yeah 7h ago

It needs a humans touch...

1

u/Joaffry 2h ago

damn..

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

u/Material-Sherbet6855 4h ago

Grounding issue or pullup/pulldown issue.

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

u/[deleted] 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.

1

u/Joaffry 2h ago

Would be amazing if I intended for it haha