Search found 11 matches

by mnvk52
Sun Jan 10, 2021 5:41 pm
Forum: Drivers for External Components
Topic: Driver for SCD30 CO2 Sensor
Replies: 2
Views: 324

Re: Driver for SCD30 CO2 Sensor

I encountered an issue. I have modified the example and added a print of the values import time from machine import I2C, Pin from scd30 import SCD30 i2cbus = I2C(1) i2c = I2C(scl=Pin(22), sda=Pin(21), freq=10000) scd30 = SCD30(i2c, 0x61) while True: # Wait for sensor data to be ready to read (by def...
by mnvk52
Sun Jan 10, 2021 12:32 pm
Forum: Drivers for External Components
Topic: Driver for SCD30 CO2 Sensor
Replies: 2
Views: 324

Re: Driver for SCD30 CO2 Sensor

I found a solution

Code: Select all

i2c = I2C(scl=Pin(22), sda=Pin(21), freq=10000)
Thanks for reading :)
by mnvk52
Sun Jan 10, 2021 12:26 pm
Forum: Drivers for External Components
Topic: Driver for SCD30 CO2 Sensor
Replies: 2
Views: 324

Driver for SCD30 CO2 Sensor

Hey, I want to read a SCD30 CO2 Sensor with an ESP32. I found this driver: https://github.com/agners/micropython-scd30 Trying the example: import time from machine import I2C, Pin from scd30 import SCD30 i2cbus = I2C(1) scd30 = SCD30(i2c, 0x61) while True: # Wait for sensor data to be ready to read ...
by mnvk52
Tue Sep 15, 2020 10:08 am
Forum: Drivers for External Components
Topic: Adafruit MicroPython TSL2561 Library
Replies: 4
Views: 929

Re: Adafruit MicroPython TSL2561 Library

especially for lux values wich could be upper than 40000 lux with a tsl2561 I usually don't put the sensor into direct sunlight. In my garden the value doesn't exceed 40 lx on sunny summer days - without direct sunlight. But shouldn't the value be between 10.000 and 25.000? http://stjarnhimlen.se/c...
by mnvk52
Sun Sep 06, 2020 12:39 pm
Forum: ESP32 boards
Topic: ADC only possible with Pins 32 - 39?
Replies: 2
Views: 383

ADC only possible with Pins 32 - 39?

Hi, the manual says On the ESP32, ADC functionality is available on Pins 32, 33, 34, 35, 36, 37, 38, and 39. https://micropython-docs-esp32.readthedocs.io/en/esp32_doc/esp32/quickref.html#adc-analog-to-digital-conversion My device has more pins available for ADC: https://joy-it.net/files/files/Produ...
by mnvk52
Sun Sep 06, 2020 11:37 am
Forum: Drivers for External Components
Topic: Adafruit MicroPython TSL2561 Library
Replies: 4
Views: 929

Adafruit MicroPython TSL2561 Library

Hi, I have an TSL2561 connected to an ESP32 with this library: https://github.com/adafruit/micropython-adafruit-tsl2561 Documentation: https://micropython-tsl2561.readthedocs.io/en/latest/index.html I don't understand the output of the TSL2561 sensor. For example: import tsl2561 from machine import ...
by mnvk52
Sun Sep 06, 2020 9:40 am
Forum: Drivers for External Components
Topic: micropython-adafruit-tsl2561: OSError: [Errno 19] ENODEV
Replies: 8
Views: 1248

Re: micropython-adafruit-tsl2561: OSError: [Errno 19] ENODEV

I just saw that micropython-adafruit-tsl2561 library is not supported anymore. Now there is a circuitpython driver: https://github.com/adafruit/Adafruit_CircuitPython_TSL2561 Would you recommend to use that one instead? I'm using a https://joy-it.net/en/products/SBC-NodeMCU-ESP32 I can't find a circ...
by mnvk52
Sun Sep 06, 2020 8:37 am
Forum: Drivers for External Components
Topic: micropython-adafruit-tsl2561: OSError: [Errno 19] ENODEV
Replies: 8
Views: 1248

Re: micropython-adafruit-tsl2561: OSError: [Errno 19] ENODEV

Thank you :)

Code: Select all

%Run sensor_tls2561.py
164.9236
by mnvk52
Sun Sep 06, 2020 8:17 am
Forum: Drivers for External Components
Topic: micropython-adafruit-tsl2561: OSError: [Errno 19] ENODEV
Replies: 8
Views: 1248

Re: micropython-adafruit-tsl2561: OSError: [Errno 19] ENODEV

Now I have a new error message

Code: Select all

%Run sensor_tls2561.py
Traceback (most recent call last):
  File "/home/sensor_tls2561.py", line 4, in <module>
TypeError: unexpected keyword argument 'i2c_address'