Hx710b
Hi
Hx710b is connected to Arduino Nano. The clock from Nano controls the work of Hx710b. Hx710b has data out pin. When Hx710b is set to read data, it is saved bit by bit to a string. However, in this application, due to narrow reading scale, MSB byte is read only, middle byte is filled with zeroes and LSB bate is not added at all. The 16-bit string is converted to decimal. Decimal value is converted to float and divided by 256. After that value is converted back to integer and showed on screen. The scale of reading Hx710 is from minus127 to plus 127.
Nano D3 to sensor CLK pin
Nano D4-read data from sensor
Note: search on www: Two compliment 24 bit handling
27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01
\---------------------/ \---------------------/ \---------------------/ \------------------/
bits 24-31 (8 bits) bits 16-23 (8 bits) bits 8-15 (8 bits) bits 0-7 (8 bits)
Nano converts the binary to decimal
Please have a look at the programming platform Flowcode ver. 10
It is free for Arduino Nano.
https://www.flowcode.co.uk/