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
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!
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].
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..
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.
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.