pigpio icon indicating copy to clipboard operation
pigpio copied to clipboard

How to create a wave chain on two gpio simultaneously and with different frequencies

Open mahdigh782 opened this issue 2 years ago • 2 comments

Hello I try to run two stepper motor drivers at the same time. Since synchronicity is important to me, I tried to run two wave chains at the same time, but when the second chain starts, the first chain stops. Is there a way to solve my problem? Or is there a library that produces the exact number of pulses and frequencies? I also checked and found that the pwm software generated by the pigpiod is accurate but can not control the number of pulses. I also used the callback function but it does not respond at high frequencies. Thank you

mahdigh782 avatar May 31 '22 07:05 mahdigh782

Is there a way to solve my problem?

Yes, very likely. If you still have a need and you could not find a solution from searching past issues, then let me know and I will try to help you.

guymcswain avatar Jul 24 '22 21:07 guymcswain

Yes, very likely. If you still have a need and you could not find a solution from searching past issues, then let me know and I will try to help you.

Yes, I haven't set up the two stepper motor drives yet. Just note that stepper motors operate at different frequencies and with different number of pulses. Thanks

mahdigh782 avatar Aug 15 '22 13:08 mahdigh782