Closed mikeshams closed 4 years ago
Hello Prof. Mike,
1) The issues I faced while interfacing motor to MCU are as follows;
2) Solutions to the above-mentioned problems faced during interfacing are as follows;
3) There was never a doubt about the type of communication protocol used as we use the PWM protocol to interface servo motor with beagle bone. But, there is a trick in coding which I later found that the delays I added in the Code does PWM when it is high. The delay (Low) added uses GPIO Pin 12 as digital communication and performs the code well for servo motor.
So, PWM is the backbone of the code with servo motor and is the internal function of the motor itself that is integrated in coding. The GPIO Pin 12 uses digital communication with PWM communication protocol depending on the delay that is high or low.
The following code block in my interfacing program is given below as reference;
pin_high(8,pin); // Making the servo connected pin high usleep(delay); // in this delay we are using PWM communication protocol pin_low(8,pin); // Making the servo connected pin low usleep(20000-delay); in this delay we are using digital communication protocol
Thank-you Professor for giving me a chance to express myself.
Shubham - 1) What issues did you face when interfacing the motor to the MCU? 2) How did you resolve them? 3) Did you use PWM communication or digital communication? please explain