Go Down

Topic: Need help (Read 204 times) previous topic - next topic

BOOM90

Hi guys, i have a project and i need your help.

Items:
1 x nema 17 stepper motor
3 x limit switch
1 x dsservo rds3218
5v power supply
12v power supply
A4988 stepper driver
Arduino Uno

I want to program the 2 limit switch
1. When first limit switch is pressed, the stepper motor needs to rotate 30 steps (clockwise) then servo rotates 75 degrees and -75 degrees to back to initial then stepper rotates 100 steps (clockwise) and servo again 75 degrees and -75 degrees to back to initial. After that, stepper needs to rotate to hit limit switch to go to homing position.

2. Same thing as above just the number of steps will vary. I can easily change it if i get the steps above.

Please let me know if extra info is required.  Thanks

GaryP

You should show your progress so far, and how much you are paying.

Cheers,
Kari
The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

BOOM90

I know how to wire everything. Its only the programming part that i would like to get.

lastchancename

#3
Jan 11, 2020, 01:35 pm Last Edit: Jan 11, 2020, 01:35 pm by lastchancename
So show how it's wired, then someone can quote you... maybe $0
Posting your existing code (in code tags) also gets a better response.
Experienced responders have a nose for laziness, (they were beginners once)... Sure, there are trolls, chest-beaters, and pretenders - but the help you'll get here is about as good as it gets - if you try to help youself!.

Go Up