How can I get data from a load cell connected with Arduino Uno board and a HX711 Amplifier in Simulink?
7 次查看(过去 30 天)
显示 更早的评论
I have an Arduino Board connected to a Hx711 amplifier and to a Load Cell, how can i get the data from the arduino board? I'm not sure about which block to use to get the signal from the board and how to convert it. I guess it should be the -serial receiver- block, but i?m not sure about the parameters. Thx for the help.
2 个评论
回答(1 个)
Ameer Hamza
2018-5-3
The easiest way to communicate your Arduino from MATLAB is to use MATLAB support package for Arduino. You can directly control and read digital and analog pins from MATLAB command window.
A more advanced approach is to write your own code for Arduino and print the values of required signals to Arduino's serial port. Keep the Arduino connected to your PC and use serial() in MATLAB to read data over serial port.
另请参阅
类别
在 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!