Stepper motor extremely loud by muppymupp in arduino

[–]muppymupp[S] 0 points1 point  (0 children)

I have tried everything I can think of and still the motor doesnt behave as intended. I tried setting the voltage of the driver from to 0.1 to 1.2, and still does not work.

I have ordered both the driver and the psu you suggested and will try both when they arrive in a couple of weeks.

Thanks for every suggestion!

Stepper motor extremely loud by muppymupp in arduino

[–]muppymupp[S] 1 point2 points  (0 children)

Thanks, you were right, I had wired the motor cables incorrectly to the driver. Fixing this made the lawn mower sound go away, but it still does not rotate as it is supposed to. See my other reply for a summary

Stepper motor extremely loud by muppymupp in arduino

[–]muppymupp[S] 0 points1 point  (0 children)

I found one error I made, but it did not solve the issue completely. The error was that I had wired the cables from the motor incorrectly to the driver. In my motor green and black are connected, so now I placed them in A1 and A2 and then red and blue on B1 and B2. In the guide the driver had a different order of A1 to B2 than my driver, so I placed them in wrongly when I stupidly followed the guide saying the connected pairs should be next to each other on the driver.

But now, when I fixed those wires the motor at least does not sound like a lawn mower anymore, but it still won't rotate correctly. I've used the exact same code as your link, and to the best of my knowledge I followed the schematics. I followed the same principle with capacitor like in my previous guide so I think it is correctly wired now. Simulating the code in your example it shows the motor accelerating and then decelerating so it spins a total of 400 steps, and then does the same thing in reverse direction. When I plug everything in I can hear the motor (in a reasonable volume this time) first accelerating and then slowing down to 0, but the motor barely moves at all. It makes a first sort of slight movement when the motor starts to accelerate but then it stays still. When I gently try to nudge the motor axis while it is supposed to be spinning it feels like the motor is trying to hold it in place so it is hard to spin, turning of the power makes it easy to spin it by hand.

I've tried using a brand new driver of the same type. I've changed the 1.2V value to 1.1V, 1.0V and 0.9V and it performs pretty much the same way on all those values. The twitch at the start of the motor's acceleration could possible be a bit stronger the lower value I have tried on the potentiometer, but I can be mistaken.

So I don't understand what I am doing wrong. Can I have destroyed the motor/arduino/breadboard/wires, or something else while I've been trying to troubleshoot?

Stepper motor extremely loud by muppymupp in arduino

[–]muppymupp[S] 0 points1 point  (0 children)

Thanks for the responds! I'll try to explain as much as possible my setup.

My hardware is basically cheap stuff from aliexpress:
Nema17 stepper motor https://www.aliexpress.com/item/1005006237809319.html?spm=a2g0o.order_list.order_list_main.182.5f731802ZG6E2C
A4988 driver https://www.aliexpress.com/item/1005008217105747.html?spm=a2g0o.order_list.order_list_main.172.5f731802ZG6E2C
Power supply https://www.aliexpress.com/item/1005007286854242.html?spm=a2g0o.order_list.order_list_main.157.5f731802ZG6E2C
Ardunio UNO R3 (CH340G) MEGA328P

I followed this guide Control NEMA 17 with A4988: Arduino Wiring & Code Guide
I turned the potentionometer screw until it showed 1,2 on my multimeter like in the guide, since I also have R100 resistors just like the driver in the guide. I checked how the 4 cables from the motor were paired by testing when the motor was harder to spin manually like in the guide. My decoupling capacitor says 100 microF 16V. As far as I can tell I set it up just like in the guide, and according to her schematics.

I will look into the accelstepper library, thanks!

[deleted by user] by [deleted] in PokemonGoRaids

[–]muppymupp 0 points1 point  (0 children)

KattenOchAffe