Arduino Uno programing help

Can anyone perhaps help me with my code
im using a nema 23 with a Dq542ma driver
This is what it needs to do
Push button start
motor must rotate 10 rotations clockwise
Delay 30 sec
motor must rotate 10 rotations anticlockswise
end operation

@mornayvdberg welcome to the forum.

Sorry to tell you though we don't write code for you, we only (mainly) help you with code you have already written.

You might want to look at this How to get the best out of this forum before you proceed any further.
This tells you how to ask a question here and how to do things like posting code and images.

Is this for a class assignment?

That is insufficient all it tells us is the size of the mounting flange and nothing about the motor itself.

It is a good idea to post a link to this device as it is not a very common driver.

3 Likes

I can't see your code.

**That sounds like an interesting and a relative simple project that could be a lot of fun! However, please keep in mind that we are not a free design or code-writing service.

We’re more than happy to help with your design or code, but we need you to make an initial attempt. Please design and write your code, then post it along with an explanation of what’s not working properly. There is also a for hire section if you want to pay for it.**

  1. Show Your Work First: Before asking for assistance, make an attempt to design or write the code yourself. Share your work along with details about what isn’t working.
  2. Provide Clear Documentation: Since we can’t see your project, share an annotated schematic (best) or a clear drawing of your setup. Pictures are welcome, but avoid using Fritzing diagrams as they are wiring diagrams, not schematics, and are not ideal for troubleshooting.
  3. Include Technical Details: If there is specific hardware involved, include links to technical information. There are often many versions of similar components, so precise details are essential.
  4. Reference Resources: For additional help, check out useful links and tutorials: Useful Links on Arduino Forum.