You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- Does anything happen? Have you tried any of the stepper example programs, and do they work? How is your stepper connected? A diagram would be helpful. Is the power supply sufficient for this motor? Can you confirm the supply is working? There is a lot more you could provide in your question - or check for yourself and and provide that information - to help us help you.JRobert– JRobert2019-07-15 11:38:58 +00:00Commented Jul 15, 2019 at 11:38
- @JRobert so it's supposed to keep rotating at 180 degrees with breaks right, but it just rotates once and stops. I was wondering if the power supply would be a problem because right now it's connected to the Arduino. I'll get a power source tomorrow and try again. IN1,2,3,4 were connected to pins 9,11,10,6.Dan– Dan2019-07-15 12:04:51 +00:00Commented Jul 15, 2019 at 12:04
- @JRobert, I checked out another video and changed the pin configuration. Other details are updated in the question. If you need any other information then just let me know :)Dan– Dan2019-07-15 12:17:16 +00:00Commented Jul 15, 2019 at 12:17
- Most motors need more current than an Arduino pin can supply, so if the stepper driver doesn't power your motors through a separate supply, there is a good chance that is your problem. Arduino pin drivers are supposed to be limited to 20ma nominal, and 40ma absolute max. Trying to draw more than that will likely fail (the device will be under-powered), may damage the pin drivers (by over-heating), and may pull down the Arduino's own supply voltage enough to it to reset (typically cycling itself through startup/attempt to run/reset, ... etc. until you shut it off or something fails).JRobert– JRobert2019-07-15 16:22:34 +00:00Commented Jul 15, 2019 at 16:22
- Hey @JRobert!!! I finally got it working!! So what I did was connected the motor to a 5V 0.3A supply. And then I changed the number of steps per revolution to 2038 and used the code on Michael Schoeffler's website (mschoeffler.de/2017/09/23/…). And it finally works!! Thanks for all the help :)Dan– Dan2019-07-16 05:11:36 +00:00Commented Jul 16, 2019 at 5:11
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. arduino-uno), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you