Community
cancel
Showing results for 
Search instead for 
Did you mean: 
BSess
New Contributor I
1,179 Views

Load Cell Hx711

Has anyone been able to make the Hx711 work?

The below discussion on this subject in non conclusive.

The http://iotdk.intel.com/docs/master/upm/node/classes/hx711.html HX711 link says it was tested on gen 2 , but does not say if the test was successful nor does it provide instruction or working example on how to get the code. to work in the Galileo/arduino development environment.

Thanks

7 Replies
Pablo_M_Intel
Employee
204 Views

Hi Bsessa,

If you are looking for implementation examples, there are some sample codes that you can check following this link https://software.intel.com/en-us/iot/hardware/sensors/hx711-analog-to-digital-converter https://software.intel.com/en-us/iot/hardware/sensors/hx711-analog-to-digital-converter. However, given that the sample codes are written in C++ and Javascript respectively, you will have to upload them directly to the board and compile them from there (or you can try to modify the code so that you can use them with the Arduino IDE). You can also get the source code from here https://github.com/intel-iot-devkit/upm/tree/master/src/hx711 https://github.com/intel-iot-devkit/upm/tree/master/src/hx711.

Regards,

PabloM_Intel

BSess
New Contributor I
204 Views

Thanks Pablo,

I have seen both of the links you provided prior to asking the question. If you are sure the device will work on a Galileo Gen2 , is it possible to direct me to links or tutorials on how to upload the example code directly to the board and compile? And instructions on how to get this or similar code to work on Galileo using the Android IDE?

Thanks Again

Brian

Pablo_M_Intel
Employee
204 Views

Hi Bsessa,

There's no specific tutorials on how to use the HX711 on the Galileo, but if you look at the Sparkfun website you can find some useful information about how to use the device. In their case they use a RedBoard, but you can look at the board datasheet and modify the pins so that it works with your Galileo board. Looking at the code, it seems that it can work without many changes needed (I guess that by "Android IDE" you're referring to the Arduino IDE).

https://learn.sparkfun.com/tutorials/getting-started-with-load-cells?_ga=1.61363244.1837874404.14314... Getting Started with Load Cells - learn.sparkfun.com

https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide Load Cell Amplifier HX711 Breakout Hookup Guide - learn.sparkfun.com

Regards,

PabloM_Intel

BSess
New Contributor I
204 Views

Thanks,

I saw those tutorials dome time back and yes I meant Arduino IDE.

I am concerned about the communication wiht the HX711 because of the slow Galileo IO.and lack of library comparability Galileo has with Aduino code.

therefore I see an Arduino tutorial for a Galileo as a big time waster and crap shoot.

If I understand the HX711 correctly it is not providing an analog signal where I would have no code compatibility issues..

Is there a tutorial or example code for Galileo gen2 for a device that works the same as the HX711 communication works?

Thanks,

Brian

Pablo_M_Intel
Employee
204 Views

Hi Bsessa,

According to the HX711 source code https://github.com/bogde/HX711/blob/master/HX711.h https://github.com/bogde/HX711/blob/master/HX711.h, it appears to be a One Wire connection (WProgram.h). Unfortunately, as I told you before, I didn't find any example using this sensor and the Galileo board, but I found a tutorial about this specific connection using a humidity sensor http://bigdinotech.com/tutorials/galileo-tutorials/using-1-wire-device-with-intel-galileo/ http://bigdinotech.com/tutorials/galileo-tutorials/using-1-wire-device-with-intel-galileo/. I hope you find some of this information useful.

Regards,

PabloM_Intel

BSess
New Contributor I
204 Views

Thanks I already tried that tutorial and the results were very unreliable. 1-wire and Galileo are just a bad combination due to the slow I/O. I also know all 1-wire devices are not the same. But you were helpful in convincing me not to waste time trying.

skhan46
Beginner
204 Views

Hi, I just checked through the specifications of the Hx711 and the two AM 16/32 multiplexers; it appears that they both need a signal input – not power input – of over 5V and they are compatible with each other. For the load cells, normally they would need an amplifier because their output is always really small –in millivolts- so the solution might be that you need to amplify their outputs. Tacuna systems offer multi-channel amplifiers, check them out here: https://tacunasystems.com/product-category/amplifiers-conditioners/

Reply