How to get 80hz with HX711?

I am using this HX711 library and this board...

I lifted pin 15 and tied it to pin 16 to enable 80hz mode. I am just reading and incrementing a counter for 100 reads in a loop and it takes about 61ms per read. I printed the millis() inside teh HX711::read() function and it looks like all the time is spent waiting for is_ready(). I also changed is_ready() to use digitalReadFast() but it has no effect - about 61ms wait before each read.

Does anyone have sample code for 80hz reads verified?

From the datasheet, the settling time after power down or reset would be around 50ms. The read time for an 80hz signal would be around 12.5ms. So it makes sense that my HX711 is getting reset or powered down at every read. From that point, I have to wait 50ms for settling then 12.5ms for the next read - or around 62ms.

The datasheet also says that sending more than 27 clock pulses during one read period could confuse the serial communication. I wanted to make sure that my 2nd read was not starting before the first period was over, so I put in a delay(13) to make sure the 80hz read period was complete. I also tried 20ms or 40ms delays and the wait time until is_ready() was always about 62ms :frowning:

I just tried it on 5V instead of 3.3V and I'm getting 80hz! I also have an RGB background LCD plugged in to this UNO. Not sure what caused the problem but I am getting 80hz readings with the library and board above!

Hello!!I have the same problem with you!

How did you make it?!

So you just try soldering the pin15 to connect with 5v?than got 80hz?

Could you give me the code and picture?Please~~

Thanks a lot~~

Reading the datasheet shows that the RATE input is high for 80Hz, low for 10Hz...
Its always a good idea to read the datasheet!

MarkT: Thanks for your advice~

but I already read it, but I'm the new in Arduino, so... I can't understand datasheet very well

I've try soldering the pin15 and pin16, but it seems will be short, so... my main question actually is

how should I do on hardware?

thanks for your answer!

Sparkfun has a HX711 board with a "rate" jumper underneath.
See pictures here.

All you have to do is to cut through the very thin track between the two square solder fields with a sharp knife.

Soldering the two squares together restores the board to 10Hz.

If you have a different board, post clear pictures of both sides.
Leo..

I'm pretty sure on the board I have, I need to move the link circled, just above where the screen print says "10 Hz," onto the two solder pads immediately to the right, where the screen print says "80 Hz." [There is a trace on the reverse side of the board that runs from a via just between the right pad of the 80 Hz location and the left pad of the 10 Hz location, to a via vertically below, on the trace you can see to pin 15 of the IC].

If anyone has tips on performing this operation, much appreciated. Otherwise wish me luck. [I much prefer the idea of running a knife through a tiny metal bridge].

hx711(small).png

No need to cut anything on that board.

Just swipe off the 0-ohm resistor with a soldering iron (don't use any force),
and solder it onto the other two solder pads (hold it with tweezers).
Leo..

1 Like

Wawa:
No need to cut anything on that board.

Just swipe off the 0-ohm resistor with a soldering iron (don't use any force),
and solder it onto the other two solder pads (hold it with tweezers).
Leo..

Done. And it certainly enabled the 80 /s sample rate.

1 Like

I have a keyestudio hx711 (picture appended).

How would i be able to enable 80hz mode on this one? If at all possible.

https://wiki.keyestudio.com/Ks0087_keyestudio_DIY_Electronic_Scale
according to this wiki it should have the option for 80hz.

The hx711 module is connected to an arduino pro micro. Is it possible that shorting the J1 patch on the pro micro enables this? as it is used to run 5v as opposed to 3.3v.

hx711.jpg