Raspberry Pi Pico - RP2040

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bjornahh
 
Posts: 1
Joined: Mon Apr 18, 2022 2:36 am

Raspberry Pi Pico - RP2040

Post by bjornahh »

Hi. Have installed CircuitPython on a Xiao Pico (RP2040), should be compatible with Feather.

Have installed a Grove shield for this, attaching a DHT11 sensor, and the right libraries.

Still, am getting ": no module named 'smbus2'"

What am I missing here?

:-)

Adafruit CircuitPython 7.2.5 on 2022-04-06; Seeeduino XIAO RP2040 with rp2040
>>> %Run -c $EDITOR_CONTENT
Traceback (most recent call last):
File "<stdin>", line 5, in <module>
File "/lib/grove/grove_temperature_humidity_aht20.py", line 33, in <module>
File "/lib/grove/i2c.py", line 32, in <module>
ImportError: no module named 'smbus2'

User avatar
dastels
 
Posts: 15699
Joined: Tue Oct 20, 2015 3:22 pm

Re: Raspberry Pi Pico - RP2040

Post by dastels »

It would seem that the grove libraries aren't CircuitPython compatible.
Python library for Seeedstudio Grove Devices on embeded Linux platform, especially good on below platforms:

Coral Dev Board (Wiki)
NVIDIA Jetson Nano (Wiki)
Raspberry Pi (Wiki)
There is a CircuitPython library in the bundle for that sensor: adafruit_ahtx0.py. See https://learn.adafruit.com/adafruit-aht ... -3064498-8

Dave

User avatar
freddyboomboom
 
Posts: 267
Joined: Wed Feb 16, 2022 7:55 pm

Re: Raspberry Pi Pico - RP2040

Post by freddyboomboom »

Make sure you are using the Circuitpython uf2 file from Seeedstudio themselves. Circtuipython.org does not have a build of Circuitpython for that board.

The filename you should be using is "XIAO-RP2040-CircuitPython.uf2"

Using anything else could have unintended consequences.

Also, the Grove Shield is set up for the pinouts of the Raspberry Pi Pico board, and may not be compatible with the XIAO RP2040.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”