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.
Synchronize red pitaya with arduino
- redpitaya
- Site Admin
- Posts: 776
- Joined: Wed Mar 26, 2014 7:04 pm
Re: Synchronize red pitaya with arduino
Perhaps by using UART, SPI, or I2C communication as an intermediate for sending commands.
Do not forget to connect the "Ext. common mode GND" to the Arduino GND pin.
Do not forget to connect the "Ext. common mode GND" to the Arduino GND pin.
-
- Posts: 83
- Joined: Fri Jan 09, 2015 6:07 pm
- Location: Babenhausen/Germany
Re: Synchronize red pitaya with arduino
Hello,
as far as I know, even the Arduino Uno itself can provide six PWM channels.
Best regards
Dieter
as far as I know, even the Arduino Uno itself can provide six PWM channels.
Best regards
Dieter
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 1 guest