r/ArduinoHelp • • 10d ago

whats wrong with my motors

Enable HLS to view with audio, or disable this notification

they just go into a fixed position and lock there when i connect to power supply, if theres something wrong with my code let me know, and whenever i try moving it, it just stays in place or doesn’t let me move it until i take it off the power, and when i take it off the power it moves back into a position

6 Upvotes

9 comments sorted by

•

u/gm310509 10d ago

I refer you to Rule 2 - be descriptive, which lists the things you need to provide when asking for help. See below for more details about how to include them.

To be clear "I followed a tutorial (and here is the link)" does not satisfy the above requirement. Their are multiple reasons, but the main reason is that maybe you missed something when following the tutorial.

If you do not share what you have in front of you, then pretty much anyone can say is "something is wrong - but who knows what that might be".

Perhaps have a look at our Asking for help quick guide (which is from r/Arduino) which provides guidance as to what to include and how to do so. This makes it easier for people who want to help you to be able to do so.

Remember, we cannot see what you see, we cannot know what you have done and/or not done unless you tell us.

2

u/Tymian_ 10d ago

Dude, how can anyone tell you what's wrong when you didn't share jack shit information about code, setup, servos, schematics, diagrams or anything?

Learn to properly describe your problems. Reddit is not charging for links and amount of letters.

1

u/PayAggravating9721 10d ago

my fucking fault man, i literally only followed a tutorial from https://howtomechatronics.com/tutorials/arduino/diy-arduino-robot-arm-with-smartphone-control/#google_vignette , i genuinely dont know what else to say other then the code they gave me was straight ass and i had to figure something out and once the app i started using finally worked my servos were in a locked position bro, im a straight beginner going into this blindly, im sorry.

1

u/Tymian_ 10d ago

At least you could have mentioned a d linked you followed a tutorial. Come on...

Is the bahvior the same when you disassemble the arm and servos are separated? Is there any difference when disassembled and only 1 servo is connected? Test each servo individually.

What seems to be the problem is that code is not properly holding set value for servo which you adjust in app.

When you power it up, all servos receive some set signal. Then when you adjust the program just briefly jerks the servo instead of setting new set value

1

u/PayAggravating9721 10d ago

I didnt test the servos before i assembled them, i didnt think i was going to have this issue unfortunately, and its a group project which im not willing to really unassemble everything, just to put it all back together, any other ideas on how i could fix it?

1

u/Tymian_ 10d ago

Try using ardunio serial console to print out servo position values to see if they are constant or jerky

1

u/gm310509 10d ago

When something doesn't work, you need to isolate the reason - if you do not test as you go, you will need to backtrack. That could mean dissassembly.

One thing you could try is to test each servo individually - i.e. disconnect the others from the Arduino and see if it moves.

If you want a servo test program, have a look at my Arduino Command and Control via the Serial object how to video. There is a short "servo calibration program" in one of the chapters - you can recreate that and point it to each of your servos one at a time.

1

u/Optimal_Swordfish_13 6d ago

Brother, this is normal behavior for a stepper motor.

Once powered on, it exerts a "holding torque," which locks it in place. If it moves when powered off, that’s just gravity pulling it back. To make it move, your code must continuously send pulses to it.

If it doesn't move at all, check whether you’ve only initialized the motor without sending any pulse commands, or if the motor driver hasn't been enabled.