opendata-stuttgart / sensors-software

sourcecode for reading sensor data
571 stars 307 forks source link

DNMS T4.0+NodeMCU1.4 either DNMS or SPS30 values #843

Open box99h opened 3 years ago

box99h commented 3 years ago

Hello,

I'm encountering an issue using my DNMS T4.0+NodeMCU1.4 PCB. The PCB is connected to a DNMS, a SPS30 and a BME280. While the BME280 is working fine I only get values either for the SPS30 or the DNMS. If the SPS30 is connected the DNMS is not showing any values, while with a disconnected SPS30 the DNMS becomes alive. What is especially strange is that I had onetime all sensors in operation. All sensors worked after I've changed my USB power adapter from 5W to 10W. So I assumed it might be linked to some undervoltage situation. But after a reboot the 10W is also not working with all sensors and I'm stuck in the either or situation.

I already had a similar situation with my other same config PCB at another spot where I've experienced this behavior once. But in this case a reboot solved the situation. Nevertheless the DNMS also has some hiccups on this PCB as well.

Any ideas are highly appreciated.

pjgueno commented 3 years ago

It should basically be a problem with the power supply. I am not used to the 5W / 10W can you give me the value in mA/A ? If I remember well P = U x I so I = 220 / 10. Do you use a 22 A power supply ? It seems ti be quite high...

box99h commented 3 years ago

I've actually tried three different power adapters (5V/2.1A, 5V/2.4A, 5V/1A). Meanwhile if assembled a complete new DNMS T4. Beside the Teensy 4.0 everything changes and same behavior.

pjgueno commented 3 years ago

As both the SPS30 and rhe DNMS use the I2C, there is maybe an issue with the pins. Can you double check the connections. In the @hbitter version it works however. Do you use one of the PCB he developped ?

box99h commented 3 years ago

It's the PCB out of @hbitter GitHub. Actually the board is working in the same configuration (beside some DNMS hiccups with extrem high LAmax readings) at another spot.

I will check all pins once again, but I'm pretty sure everything is correct. At the moment I'm running DNMS and SPS30 on two different ESP. Not perfect but it works for the moment.

hbitter commented 3 years ago

Hi box99h,

do you spreak about a configuration like the one on the picture? pic1

Could you check the serial debug output from the NodeMCU at restart (like the following picture) when all sensors are connected to the board? pic2

As you can see it is running for me with all the connected sensors DNMS, SPS30 and BME280 pic3

Could you send me a screenshot of the actual values as well including the information about WiFi signal an quality (last two lines on that page).

Also a screenshot of the device status, please. pic4

A question, what values where shown for LAmax when you speak about DNMS hiccups?

Regards,

Helmut P.S. you can send me the information as PM to helmut.bitter (at) t-online.de

linuxlurak commented 3 years ago

(should I open antoher issue?) I remarked "hiccups" too.

Check this sensor: https://api-rrd.madavi.de/grafana/d/BYsfp-xGz/dnms?orgId=1&var-chipID=esp8266-586719 Sorry, wrong info: This is work in progress, some cool people are working hard on it, they are setting up grafana, I guess.

~~Sometimes it gets extreme values: image~~

linuxlurak commented 3 years ago

Here is another Sensor. This one has three "hiccups" with value 825. Link to the sensor: https://api-rrd.madavi.de/grafana/d/Fk6mw1WGz/wifi-signal?orgId=1&var-chipID=esp8266-7876127

Data saved locally on my own grafana server looks like this: image

There are other issues... BME280 does not deliver any data in a range that makes sense... WIFI connection seems to be of bad qualität. But I guess this is not connecte (or is it?).

box99h commented 3 years ago

So far everything points to the bad wifi connection. I had my station for about one week in-house in proximity to the Access Point and the hiccups were gone. Right after putting the station back outdoor (with bad wifi signal) the hiccups were back.

As far as I understood the problem is caused by the ESP which is jamming the Teensy sometimes in bad wifi environments. Helmut and his teams are aware of this issue and are checking how to resolve.

After weighing up all the pros and cons I will change my station to the Airrohr V1.4 to increase distance between ESP and Teensy.

linuxlurak commented 3 years ago

Thanks for the info. Do you have a link to an issue by any chance?

hbitter commented 3 years ago

Two different things are addressed:

Franz4596 commented 3 years ago
  1. @ pjgueno commented on 5 Dec 2020 "It should basically be a problem with the power supply. I am not used to the 5W / 10W can you give me the value in mA/A ? If I remember well P = U x I so I = 220 / 10. Do you use a 22 A power supply ? It seems ti be quite high..." -> right calculation is: I=P/U =10W/22V=45mA or 10W/5V=2A (not 22A) -> use of USB 5V / 2A suppy is recommended (5V/500mA may not work)

  2. issue BME280: sometimes the chinese BME280 hang up to -150°C, software reboot usuall not helps, you need a power off/on. If this not solve the fault the BME280 has be replaced. Probably a protectiv farnish helps.

  3. Maybe the stored DNMS dataset at madavi.de and sensor.community are different?

  4. DNMS T4.0+NodeMCU-V1.5 PCB has DNMS-SPS30 fault issue sometimes too, DNMS T4.0+NodeMCU-V1.4 sometimes work in my surrounding. See esp8266-14726029: DNMS-T4.0+NodeMCU-V1.4, SPS30, SHT31