You are not logged in.
I would like to set up a PID control algorithm where;
if the input voltage (0-5V) to pin A10 of the arduino is below the setpoint,
then PIDU block calculates an appropriate output voltage (0-5V) to pin (ex DO5_PWM).
I have worked through the REX examples for both the RPi and the REXduino but have not seen anything quite like this. Any help would be appreciated.
-Nick
Offline
Find the example attached. The LIN blocks scale the signals to 0-100% range, change it to 0-5 if you prefer.
As a side note, the PIDU block calculates appropriate output even if the input is above setpoint. Why do you want to implement the IF condition?
REXduino_master.stl
X_UNO_PIDloop_task.mdl
X_UNO_PIDloop_exec.mdl
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline