Search found 13 matches

by mnvk52
Sun Nov 14, 2021 10:46 pm
Forum: ESP32 boards
Topic: Read SDS011 with ESP32
Replies: 3
Views: 1782

Re: Read SDS011 with ESP32

marcidy wrote:
Sun Nov 14, 2021 4:18 pm
use:

Code: Select all

uart = UART(1, baudrate=9600, rx=22, tx=21)  # I'm not sure which is rx and which is tx, make sure you double check this

Code: Select all

uart = UART(1, baudrate = 9600, rx = 16, tx = 17)
made it, thank you! :D
by mnvk52
Sun Nov 14, 2021 2:52 pm
Forum: ESP32 boards
Topic: Read SDS011 with ESP32
Replies: 3
Views: 1782

Read SDS011 with ESP32

Hi, I connected a SDS011 dust sensor to a NodeMCU ESP32 : SDS011 TX0 <-> ESP32 RX2 SDS011 RX0 <-> ESP32 TX2 and an external 5V power supply. Trying to read it with: https://github.com/alexmrqt/micropython-sds011 Running this https://github.com/alexmrqt/micropython-sds011/blob/master/examples/sds011_...
by mnvk52
Sun Jan 10, 2021 5:41 pm
Forum: Drivers for External Components
Topic: Driver for SCD30 CO2 Sensor
Replies: 10
Views: 74326

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: 10
Views: 74326

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: 10
Views: 74326

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: 4729

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: 2137

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: 4729

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: 7121

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: 7121

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

Thank you :)

Code: Select all

%Run sensor_tls2561.py
164.9236