Synchronize red pitaya with arduino
Posted: Thu Jun 01, 2023 5:19 pm
Hi, for a project I need to generate 3 PWM to control 3 motors, but the Red Pitaya can only generate 2, so I have decided to use an arduino as an intermediary only for this, however I don't know how to synchronize it with the red pitaya to control from those pwm.
My other option is to use the gpio to generate the pwm but I don't think it's as simple as doing this:
rp_DpinSetDirection(RP_DIO5_N, RP_OUT);
rp_GenReset();
rp_GenFreq(RP_DIO5_N, 20000.0);
rp_GenAmp(RP_DIO5_N, 1.0);
rp_GenWaveform(RP_DIO5_N, RP_WAVEFORM_PWM);
rp_GenOutEnable(RP_DIO5_N);
I have little experience in this but I hope you can help me and advise me, thank you.
My other option is to use the gpio to generate the pwm but I don't think it's as simple as doing this:
rp_DpinSetDirection(RP_DIO5_N, RP_OUT);
rp_GenReset();
rp_GenFreq(RP_DIO5_N, 20000.0);
rp_GenAmp(RP_DIO5_N, 1.0);
rp_GenWaveform(RP_DIO5_N, RP_WAVEFORM_PWM);
rp_GenOutEnable(RP_DIO5_N);
I have little experience in this but I hope you can help me and advise me, thank you.