I want to read LoadCell data using matlab simulink using hx711. How can I help you await your help?

38 views (last 30 days)
I want to read LoadCell data using matlab simulink using hx711. How can I help you await your help?
  4 Comments

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 5 Jan 2018
Scanning through https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide it appears to me that you could hook up any two GPIO pins and communicate with the arudino to read from those, but that you might want the code libraries they link to there in order to do things like calibrate.
When dealing with the arduino, you need to consider several different potential configurations:
  1. arudino runs some kind of monitor program that just accepts instructions about which pins to read and write and executes on behalf of MATLAB. This would use calls such as readDigitalPin
  2. you write some arduino C code that talks to the serial port (or some other port) to communicate with MATLAB (or some other system) and takes appropriate actions that might be more extensive. For example the arduino might be programmed to monitor strain and not send back any information until the strain exceeds a certain level (possibly together with some "I'm still alive" messages)
  3. you use Simulink to generate a model that you deploy to arduino for standalone execution, possibly with no host at all
  4. you write code in MATLAB and use MATLAB Coder to convert it to C to be compiled and loaded on the arduino. This approach has the advantage of being able to call upon any existing Arduino library, but has the disadvantage that MATLAB Coder does not know anything special about Aduino, so you have to specially mark each arduino routine as being "external".

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!