Nano BLE 33 Sense and OpenMV MicroPython issues

Hi.

I have followed this guide to prepare the board for MicroPython, https://docs.arduino.cc/tutorials/nano-33-ble-sense/getting-started-omv
I can run the blinky python script and bluetooth scan script, but if try some of the sensor examples i get the error OSError: XX. Where XX seems to be some random number, that changes every time i restart the board or disconnect it.
So my question is, has anyone experienced this and possibly have a solution?

I get the same error on Windows 10 og MacOS Big Sur 11.6.2.

Simple python script i'm trying to run.

import time
from machine import Pin, I2C
from board import LED

from apds9960.const import *
from apds9960 import uAPDS9960 as APDS9960

led_red = LED(1)
led_green = LED(2)
led_blue = LED(3)
led_yellow = LED(4)

bus = I2C(1, sda=Pin(13), scl=Pin(14))
# Dont work from here
#apds = APDS9960(bus)

# apds.setProximityIntLowThreshold(50)

print("Proximity Sensor Test")
print("=====================")
# apds.enableProximitySensor()

while True:
    time.sleep_ms(250)
#   val = apds.readProximity()
#    print("proximity={}".format(val))

    led_blue.on()
    time.sleep_ms(250)
    led_blue.off()

    led_red.on()
    time.sleep_ms(250)
    led_red.off()

    led_green.on()
    time.sleep_ms(250)
    led_green.off()

    led_yellow.on()
    time.sleep_ms(250)
    led_yellow.off()

    time.sleep_ms(500)

Regards
Steffen

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.