import RPi.GPIO as GPIO
from hx711 import HX711


GPIO.setmode(GPIO.BCM)
hx_loadcell_1 = HX711(dout_pin = 5,pd_sck_pin = 4) #(dout_pin, pd_sck_pin)
hx_loadcell_2 = HX711(dout_pin = 10,pd_sck_pin = 9) #(dout_pin, pd_sck_pin)
hx_loadcell_3 = HX711(dout_pin = 15,pd_sck_pin = 14) #(dout_pin, pd_sck_pin)

hx_loadcell_1.zero()
hx_loadcell_2.zero()
hx_loadcell_3.zero()

while True:
    reading_1 = hx_loadcell_1.get_data_mean()
    reading_2 = hx_loadcell_2.get_data_mean()
    reading_3 = hx_loadcell_2.get_data_mean()
    print(reading_1, reading_2, reading 3)

## This is up until 07 First Run - Reading Data from the Load Cell with Python on Raspberry Pi

## Next Steps
# We have to calibrate the load cell to get an actual weight value
# Since we are using 3 load cells, the max percent full for each would be 33% of the 
# total, therefore if the max fill = 40 lbs (as estimated) then percent fill for each load
# cell would be % = (reading / (1/3 max fill)) * 100
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT