Hello Arduino family, I have been working on part of the ventilator project which requires making the motor shaft move back and forth at a particular angle. For example, if I set the angle at 30 degrees then the motor shaft should go to 30 degrees and move back to 0 degrees. The motor I am using is in this link PG188 Gearmotor with 0.5 in. Hex Output - AndyMark, Inc. Together with it, I am using solo 30A Roboclaw to read encoder pulse and control the motor. The Roboclaw I am using can be found at this link Roboclaw Solo 30A, 34VDC Motor Controller
My progress so far:
- I am able to motor move back and forth using delay();
- I am able to get speed and encoder pulse from the motor;
Any help given will be appreciated.