Skip to main content
added 356 characters in body
Source Link

today I connected the SDS011 to NodeMCU. I noticed that this only works when the sensor is connected to the voltage VU. If I connect the sensor to another pin for the voltage, it does not respond. Why is this so?

If I see it correctly, the reason must be that data is exchanged via RX and TX.

#include "SdsDustSensor.h"

int rxPin = 5; //d1
int txPin = 4; //d2
SdsDustSensor sds(rxPin, txPin);

void setup(){
  Serial.begin(9600);
  sds.begin();
  sds.setCustomWorkingPeriod(0);

}

void loop(){
PmResult pm = sds.readPm();
  if (pm.isOk()) {
     Serial.println(pm.pm25);
     Serial.println(pm.pm10);
  }

  delay(250);

}


today I connected the SDS011 to NodeMCU. I noticed that this only works when the sensor is connected to the voltage VU. If I connect the sensor to another pin for the voltage, it does not respond. Why is this so?

If I see it correctly, the reason must be that data is exchanged via RX and TX.

today I connected the SDS011 to NodeMCU. I noticed that this only works when the sensor is connected to the voltage VU. If I connect the sensor to another pin for the voltage, it does not respond. Why is this so?

If I see it correctly, the reason must be that data is exchanged via RX and TX.

#include "SdsDustSensor.h"

int rxPin = 5; //d1
int txPin = 4; //d2
SdsDustSensor sds(rxPin, txPin);

void setup(){
  Serial.begin(9600);
  sds.begin();
  sds.setCustomWorkingPeriod(0);

}

void loop(){
PmResult pm = sds.readPm();
  if (pm.isOk()) {
     Serial.println(pm.pm25);
     Serial.println(pm.pm10);
  }

  delay(250);

}


edited tags
Link
Juraj
  • 18.3k
  • 4
  • 32
  • 50
deleted 7 characters in body; edited title
Source Link
Juraj
  • 18.3k
  • 4
  • 32
  • 50

Esp 8266 NodeMCU and SDS011

today I connected the SDS011 (ESP8266to NodeMCU),. I noticed that this only works when the sensor is connected to the voltage VU. If I connect the sensor to another pin for the voltage, it does not respond. Why is this so?

If I see it correctly, the reason must be that data is exchanged via RX and TX.

Esp 8266 and SDS011

today I connected the SDS011 (ESP8266 NodeMCU), I noticed that this only works when the sensor is connected to the voltage VU. If I connect the sensor to another pin for the voltage, it does not respond. Why is this so?

If I see it correctly, the reason must be that data is exchanged via RX and TX.

NodeMCU and SDS011

today I connected the SDS011 to NodeMCU. I noticed that this only works when the sensor is connected to the voltage VU. If I connect the sensor to another pin for the voltage, it does not respond. Why is this so?

If I see it correctly, the reason must be that data is exchanged via RX and TX.

Source Link
Loading