Da es mit dem BME280 so toll geklappt hat, hab ich mal versucht 2 HX711 gleichzeitig zu betreiben.
hat auch bis zu einem gewissen Maße geklappt. So wie es aussieht ließt er beide HX711 aus, schafft aber nicht den 2. HX711 auf ‘scale.1’ zu Mapen.
26.8398 [terkin.sensor.core ] INFO : Starting all busses [{'pin_scl': 'P10', 'number': 0, 'enabled':
True, 'family': 'i2c', 'pin_sda': 'P9'}, {'enabled': True, 'pin_data': 'P11', 'number': 0, 'family': 'onewire'}]
26.9011 [terkin.sensor.core ] INFO : Found 2 I2C devices: [118, 119].
26.9197 [terkin.sensor.core ] INFO : Registering bus "i2c:0"
28.5114 [terkin.sensor.core ] INFO : Found 0 OneWire (DS18x20) devices: [].
28.5317 [terkin.sensor.core ] INFO : Registering bus "onewire:0"
28.5460 [terkin.datalogger ] INFO : Registering system sensors
28.5910 [hiveeyes.datalogger ] INFO : Registering Hiveeyes sensors
28.6210 [hiveeyes.datalogger ] INFO : Setting up HX711 sensor with key scale-1 described as "Waage 1"
29.4135 [hiveeyes.sensor_hx711 ] INFO : Selected HX711 hardware driver "heisenberg"
29.4432 [hiveeyes.sensor_hx711 ] INFO : Initializing HX711 sensor with pin_dout=P23, pin_pdsck=P3, gain=128, scale=4.424242, offset=-73000
29.4646 [hiveeyes.datalogger ] INFO : Setting up HX711 sensor with key scale-2 described as "Waage 2"
29.4841 [hiveeyes.sensor_hx711 ] INFO : Selected HX711 hardware driver "heisenberg"
29.5118 [hiveeyes.sensor_hx711 ] INFO : Initializing HX711 sensor with pin_dout=P22, pin_pdsck=P21, gain=128, scale=4.424242, offset=-73000
29.5353 [hiveeyes.datalogger ] INFO : Setting up DS18B20 sensor with key ds18b20-1 described as "Wabengasse 1"
29.5554 [hiveeyes.datalogger ] INFO : Skipping DS18B20 sensor ds18b20-1
29.5753 [hiveeyes.datalogger ] INFO : Setting up BME280 sensor with key bme280-1 described as "Temperatur und Feuchte außen"
29.5906 [terkin.sensor.core ] INFO : Trying to find bus by name "i2c:0"
29.6056 [terkin.sensor.core ] INFO : Found bus by name "i2c:0": <I2CBus object at 3f9af3e0>
29.6343 [hiveeyes.datalogger ] INFO : Setting up BME280 sensor with key bme280-2 described as "Temperatur und Feuchte innen"
29.6513 [terkin.sensor.core ] INFO : Trying to find bus by name "i2c:0"
29.6663 [terkin.sensor.core ] INFO : Found bus by name "i2c:0": <I2CBus object at 3f9af3e0>
29.6933 [terkin.sensor.core ] INFO : Sending power_on to sensor HX711Sensor
29.7082 [hiveeyes.sensor_hx711 ] INFO : Powering up HX711
29.7226 [hx711 ] INFO : HX711 power up
29.7415 [terkin.sensor.core ] INFO : Sending power_on to sensor HX711Sensor
29.7576 [hiveeyes.sensor_hx711 ] INFO : Powering up HX711
29.7722 [hx711 ] INFO : HX711 power up
29.7869 [terkin.datalogger ] INFO : --- loop ---
29.8031 [terkin.datalogger ] INFO : Reading 9 sensor ports
29.8181 [terkin.datalogger ] INFO : Reading sensor port "SystemMemoryFree"
29.8988 [terkin.datalogger ] INFO : Reading sensor port "SystemTemperature"
29.9683 [terkin.datalogger ] INFO : Reading sensor port "SystemBatteryLevel"
30.1006 [terkin.datalogger ] INFO : Reading sensor port "SystemUptime"
30.1169 [terkin.datalogger ] INFO : Reading sensor port "SystemWiFiMetrics"
30.1392 [terkin.datalogger ] INFO : Reading sensor port "HX711Sensor"
30.1553 [hx711 ] INFO : HX711 power up
30.1702 [hx711 ] INFO : Initialization started
30.1847 [hx711 ] INFO : Initialization succeeded
30.2444 [terkin.datalogger ] INFO : Reading sensor port "HX711Sensor"
30.2617 [hx711 ] INFO : HX711 power up
30.2763 [hx711 ] INFO : Initialization started
30.2908 [hx711 ] INFO : Initialization succeeded
30.3509 [terkin.datalogger ] INFO : Reading sensor port "BME280Sensor"
30.4554 [terkin.datalogger ] INFO : Reading sensor port "BME280Sensor"
30.7881 [terkin.datalogger ] INFO : Sensor data:
humidity.0x76.i2c:0: 57.59
humidity.0x77.i2c:0: 54.52
pressure.0x76.i2c:0: 1012.34
pressure.0x77.i2c:0: 1013.45
scale.0.kg: 16500.0
scale.0.offset: -73000
scale.0.raw: 0.0
scale.0.scale: 4.424242
system.memfree: 2123232
system.runtime: 16
system.temperature: 43.21738
system.time: 34
system.uptime: 2926.344
system.voltage: 2.2524
system.wifi.bandwidth: 2
system.wifi.channel: 11
system.wifi.country: DE
system.wifi.max_tx_power: 78
system.wifi.rssi: -65
temperature.0x76.i2c:0: 25.91
temperature.0x77.i2c:0: 26.76
weight.0: 16500.0
Settings:
{
'key': 'scale-1',
'name': 'scale1',
'description': 'Waage 1',
'type': 'HX711',
'enabled': True,
'address': 0x00,
'pin_dout': 'P23',
'pin_pdsck': 'P3',
'scale': 4.424242,
'offset': -73000,
},
{
'key': 'scale-2',
'name': 'scale2',
'description': 'Waage 2',
'type': 'HX711',
'enabled': True,
'address': 0x00,
'pin_dout': 'P22',
'pin_pdsck': 'P21',
'scale': 4.424242,
'offset': -73000,
},