Arduino Hx711 Weight Scale Interface 1 0 Software
Jul 27, 2015 Also the ADC on the arduino is 10 bit which provides a maximum of 2^10 ie. 1024 readings compared to HX711 which is 24 bit ADC and easy to interface. HX711 Datasheet. The Hx711 uses SPI interface to communiacate to the Arduino. (Refer Data sheet for more info) More info on DfRobots. Connecting to Arduino. Connection is pretty simple. The load cell I have has a sensitivity of 1.966 mV/V at 50kg. This is then amplified to 0.2555 V/V. This is then 0.511 of the Hx711 half scale output of 0.5 V/V. The digital output is therefore 0.511 x 800000 in hexadecimal. This will be 4286579 in decimal for 50 kg. The sensitivity is then 85731 per kg.
Hi guys, I found the HX711 and was curious if it could work for one of my projects which currently uses other ADC. This 24 BIT ADC has 2 differential inputs for 2 load cells. In the end I need 4 load cells so that means the use of 2 x HX711. All the code I found is only refering to measuring one load cell on the A- and A+ input instead of two. The output for communication is fed to the A0 and A1 analog inputs. Now would it be possible to have two of the HX711 connected to an UNO and read all the load cells to a serial print function.
The data needs to be ported to a PC by USB. So the second HX711 connected to A2 and A3. Would the hx711.h libary need to be adapted or can I change the libaries name for example hx711-1 and hx711-2 and both use in the same sketch? Any tips or trick if this could work would be appriciated. Shutochnie nominacije i medali kollegam na 23 fevralya. NY, I studied the datasheet. Table 3 and figure 2 are conflicting where table 3 is correct and figure 2 contains channel B at 64 gain which should be channel A 64 gain.
Understand now that pulses 25,26,27 determen which data is send out from the HX711 and which gain should be used. But my knowledge at this moment fails to see how I can read the data to the MCU othe rthen the sample codes. I have no clue if the current available.h and.cpp files are designed to get also the B channel data. In all samples only one value is displayed Serial.print(scale.getGram(), 1); Serial.println(' g'); or do I understand wrong?
Yep I found that Lib this afternoon too. Still do not fully understand it all but I ordered two of these babies and when they are in I first gonna check with this lib if I can get it to work on A channel and then see if the B channel can be trapped too into a println function to get the data over to the PC. It looks like all only use the A channel to be captured or am I missing something then? Then comes the trick to read four channels. One channel at the time.for now. All the hardwork will be done like tarre and zeroing in the PC. I only need the raw data (milivolts).
Maybe at a later stage I will see if I can adapt with Blue Tooth and an Android app to get the data the same way as on the PC by USB. First I have to understand what goes on. I have not looked at the library, but it sounds to me like it needs modifying to allow you the option of which IO lines you want to use for each HX711 object. That way you only need one set of library files and when it gets initialized, for example, for the first hx711 you assign it A0 & A1, then for the second kx711 object you assign it A2 & A3 (similar to the OneWire library or most other libraries that can use any IO). You may also need to add the ability to request data from channel B. Take note that chB has a fixed gain of 32 and chA can be either 128(default) or 64. Your weight calculations will have to be adjusted for that.