ilboud
1
Trying to run the pimoroni-pico/micropython/examples/breakout_mics6814/demo.py with a pico on the breakout garden and getting the following error:
Traceback (most recent call last):
File “”, line 11, in
RuntimeError: BreakoutMICS6814: breakout not found when initialising
Tried other sensors (bme680 and ICP10125) and don’t have any issues with these.
Could it be a DoD sensor?
Is it detected by an i2c scan?
import machine
sda=machine.Pin(4) # Explorer 20 Breakout 4
scl=machine.Pin(5) # Explorer 21 Breakout 5
i2c=machine.I2C(0,sda=sda, scl=scl, freq=400000)
print('Scan i2c bus...')
devices = i2c.scan()
if len(devices) == 0:
print("No i2c device !")
else:
print('i2c devices found:',len(devices))
for device in devices:
print("Decimal address: ",device," | Hex address: ",hex(device))