05-03-2021 11:59 PM
Hi all,
This is my first time using LabVIEW thus I am still continuously learning so I apologise in advance if the problem is a very simple or I missed a basic step.
My Hardware (links to gear included in hyperlink):
1.) myRio-1900
2.) 500g Straight Bar Strain Gauge
3.) Load Cell Amplifier - HX711
Connections:
My strain gauge is connected colour-wise to my load cell amplifier and the load cell amplifier is connected to myRio.
Load Cell amplifier to myRio connections:
VCC is connected to MXP-A Pin 1
VDD is connected to MXP-B Pin 1
DAT is connected to MXP-A Pin 34
CLK is connected to MXP-A Pin 32
GND is connected to MXP-A Pin 30 (DGND)
How It Works:
I am using the HX711 load cell amplifier to amplify my 500g strain gauge signal. The HX711 uses a two-wire interface (Clock and Data) for communication but unfortunately it has not implemented a complete two-wire interface protocol. When data is ready to be sent by the HX711 it pulls the DAT pin low to indicate that data is ready to be transmitted. You then have to apply 25 clock pulses on the CLK pin and data is shifted out from the DAT pin on bit at a time with the MSB bit first.
I am trying to implement this on myRio and have created the Vi attached to get data from the HX711. Unfortunately, I seem to not get any data from it and I am pretty sure that I have done something wrong in the Vi. Every time I run the Vi, it doesn't seem to detect when DAT goes low or if it does it doesn't reset after one complete loop and all my readings show I get zero as data from DAT pin
Could you please aid me in getting data off the HX711? (Please ask me questions so I can help you in understanding my problem so you can help me :D)
Solved! Go to Solution.
05-24-2021 04:45 AM
I manage to sort this issue out is anyone was interested. Found out that the HX711 has some clock issues and does not play nice interfacing with myRio. So i managed a work around where I use Arduino Uno to get the data off the HX711 and then transfer the data to myRio via the USB serial connection for processing.