Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Zero_PD
#42096 I'm sorry to bring back an old topic, but I have a question.

I am trying to figure out how to turn this raw data from the HX711 into pounds. I understand I'm getting raw, signed data from the HX711. I've been pouring through the arduino library from bodge trying to figure out what is done. The raw data is flipped and then 1 added to it. This confuses me because I thought with 2's complement you'd only do this if the number was negative, but bodge seems to do this every time he measures the data.

It's been a long day and I'm quite confused. Can anyone sketch out a rough guideline of how I would get from raw data to a number in pounds? I'd be grateful.