Troubleshooting

Using ENS160 with Raspberry Pi Pico 2040

userHead Kevin.Bucher 2022-12-13 04:43:21 214 Views1 Replies

Hi guys,

 

I'm trying to use the DFRobot ENS160 Airquality Sensor with a Raspberry Pi Pico 2040 (without WiFi) and have some troubles with installing modules. I'm using the following code: DFRobot_ENS160/DFRobot_ENS160.py at main · DFRobot/DFRobot_ENS160 · GitHub

 

As I'm trying to execute it from my main.py file there always are modules missing:

 

Traceback (most recent call last):
 File "<stdin>", line 4, in <module>
 File "DFRobot_ENS160.py", line 18, in <module>
 File "/lib/smbus2/__init__.py", line 23, in <module>
 File "/lib/smbus2/smbus2.py", line 25, in <module>
ImportError: no module named 'fcntl'

 

How do I have to proceed?

 

Thank you for helping in advance.

 

 

2023-01-30 15:07:18

Hi

 

Could you please follow the demo code from Wiki? Which can install the driver easily.

 

https://wiki.dfrobot.com/SKU_SEN0514_Gravity_ENS160_Air_Quality_Sensor

Hope it can help you

userHeadPic Tonny12138