Main Site Documentation

High speed serial comunication with HX711


#1

I need to comunicate with chip HX711, i have to make a comunication like image attached.
Some ideas, that’s because times shorter than 1 ms are not possibile with thread sleep.

Tks

About the NETMF & Gadgeteer category


#2

that looks like SPI data. Yep, no question, SPI


#3

Any reason for very high speed? I’ve used the HX711 for a set of scales for a gas bottle and poll it around once per second and get very good resolution out of it. I can read to 1 gram with a 20kg load cell.


#4

You have right, I’ve tried to increase time for reading ad it works very good.
Increasing read per second sometimes get a wrong result because some bits is transferred to another string.
I’m using all 1ms sleep.
So actually no problem for that.


#5

Are you using hardware SPI for that? You should be able to read that very quickly.

Not understanding this, if you are using SPI to read, bits should “not get transferred to another string”

You should be able to read incredibly fast using SPI, millions of bits per second.

If you try to handle the clock in software… not so much.