analog output arduino simulink
9 次查看(过去 30 天)
显示 更早的评论
I would like to control the mass flow controllers of my experiment via an Arduino Mega and Simulink. However, while I can read and plot data very nicely using the function block Analog Read, there seems to be no function block for Analog Output. The digital output function is not suitable for my application, I need to set my equipment using analog input signals in the range of 0-5V. I would be very surprised if this was not possible in Simulink. I have installed the Arduino support packages.
Thank you for your help.
0 个评论
回答(1 个)
Emilie Delaherche
2016-2-17
Hello Robin,
Try the PWM (Pulse Width modulation) output block: http://www.mathworks.com/help/supportpkg/arduino/ug/pwm.html
PWM enables a digital output to provide a range of different power levels, similar to that of an analog output. The value you send to the block determines this power level.
Hope this help, Emilie
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!