fermedicius
Mon, 18 Dec 2023 14:07:51 +0000
Mbed OS

How to Control the Speed and Direction for Alternat Current Servo Motor in STM 32 nucleo F746ZG.

I have Inovance SV660P Series Servo Drive and Servo Motor .
how i will Control the Speed and Direction in PWM Signal.

                            #include "mbed.h"
                            PwmOut Pwm_pins(PC_8)
                            int main()
                            {
                                while(1)
                                {
                                Pwm_Pins.period_ms(0.005);//5 micro Seconds for ,200KHZ Frequency;
                                Pwm_Pins.plusewidth_ms(2.5);// ton ,50%of Duty cycle
                                Pwm_Pins.write(0.5);
                                }
                            }

11 posts - 3 participants