Closed mourazo closed 3 years ago
Hi, try to use different pins. GPIO35 is I/O.
Hi, try to use different pins. GPIO35 is I/O.
Hi, thanks for response, I tried with the defaults ports scl/sda 22/21 with the same results. Thanks.
Then please check connection. This sensor is nice, but is not easy to work with on breadboard. Next thing to do is to use examples from library and maybe 1MHz is too fast for it, try with 100-400kHz. In my case it was sequence to init it:
Wire.begin();
delay(1000);
scd30.initialize();
delay(100);
scd30.setAutoSelfCalibration(1);
scd30.setMeasurementInterval(5);
Thanks for your support, I have managed to make it work in the GPIO12 and GPIO14 but I need to make it work between the next pins: A0, GPIO35, GPIO34, GPIO39, GPIO33, GPIO26, GPIO25 or GPIO32 because I have one az-touch and this are the pins availables for connect to the board. All combinations that I try doesn't work, why? it is posible make it work in this pins? Thanks for all.
Now its working in the GPIO25 _EMAC_RXD0 and GPIO26_EMAC_RXD1. Thanks for your support
pins >33 are input only. https://github.com/espressif/arduino-esp32#esp32dev-board-pinmap
pins >33 are input only. https://github.com/espressif/arduino-esp32#esp32dev-board-pinmap
Thanks!
What you are trying to do?
I'm trying to read a scd30 sensor with a esp32 nodeMCU
Describe your system( Hardware, computer, O/S, core version, environment).
Esp32 nodeMCU programmed with ArduinoIDE and sensirion scd30 co2 sensor
Describe what is failing.
When I run the sketch in the board it doesn't work, the board doesn't do anything and the serial monitor is empty but the scd30 power supply it's on, I can see the infrared ligth. I run the same skecth in arduino without problems.
Show the shortest possible code that will duplicate the error.
The error is general, the board doesn't work.
Hardware:
Board: ESP32 nodeMCU IDE name: Arduino IDE Flash Frequency: 80Mhz PSRAM enabled: no Upload Speed: 115200 Computer OS: Windows 10
Sketch:
connections