first i try to explain the outlines of my project before i go deeper into my problem.
- Its a project for my company (R&D)
- a small industrial robot will get a stepper motor (NEMA 24 or 34) onto his arm
- the Steppermotor will be connected to a Stepper Driver who shall be controlled over an Arduino Board
- the robot shall tell the Arduino ( Model not actually specified) when he wants to turn the Motor and if he has to turn Anglewise (like for gears) or full turns (around 300 rpm until robot say stop)
- because of the Anglewise turn, i need a proper resolution ( Microstepping) for good results in accuracy
- the part on the Motor that have to worked on will just continously turn or be stepped a specific angle until its ready (example 20 x 18 degrees).
The outlines of my programm are finish, just need to polish the programming and add functions. Until now i couldnt really test everything in reality with a robot and everything wired together, so until now everything is just theoretically.
Im robotprogrammer and quiet new to arduino programming.
So now about my problem:
After reading back and forth (at google and Arduino.cc) about PWM and possible librarys that i could use, i ran into problems between my desired specs and what the librarys and buildin PWM can do.
For the Anglewise turn i would need a microstepping with around 1600 to 3200. So for 300 rpm (5 rps) i would need minimum 5x1600= 8000 hz for the PWM.
Also i need a solution at which i can just use one signalcable from Arduino to Stepper Drivers PUL+.
The simple Stepper library is for Controlling 2 or 4 Wire Steppers
The AccelStepper library seems to be the same
The Timer1 or Timer3 Option seems interesting but i don't understand what i read about it.
Do someone has an idea what i could use or a completely different solution? Or give me a better shortcut about Timer library?
Thanks for reading and help
P.S. i hope my english was not too bad