nettigo / namf

Nettigo Air Monitor Firmware
GNU General Public License v3.0
33 stars 19 forks source link

No measurements from BME280 sensor #64

Open piotrek-k opened 1 year ago

piotrek-k commented 1 year ago

I'm having trouble getting BME280 sensor to work. I don't receive any measurements, it also doesn't seem to be detected by microcontroller.

I've got NAM KIT BME 0.3.3 STD. Firmware: NAMF-2020-44

I've done a few checks to see if wiring is set up correctly. What I've checked so far:

Also:

How "measurments" page looks like right now: image

Sensor statuses: image

Also, logs from "/debug" page: logs.txt

netmaniac commented 1 year ago

Hello, If You connect only HECA or only BME there is anything on I2C bus (/status page)? Also - have You correctly soldered I2C cables for BME/HECA? Are wires in correct order (BME: https://docs.nettigo.pl/en/nam/033/nam-bme280-033 HECA:https://docs.nettigo.pl/en/nam/033/nam-heca-033)

piotrek-k commented 1 year ago

I've just re-soldiered BME, but still doesn't work. I'm considering testing it separately on a contact plate with another microcontroller...

Connecting only HECA or only BME doesn't change anything on status page. Must be something either with I2C bus or with Wemos itself. Is there an easy way to test whether all Wemos pins are operational?

piotrek-k commented 1 year ago

Hello,

Small update: I've just mounted all sensors on contact plate and connected them with wires with Wemos and everything seem to be working correctly (I'm able to log in to web server and receive measurements from all sensors). So at this point I'm pretty sure there is a problem with PCB and sensors are fine.

I've kept experimenting, re-soldering some parts and at some point web server ceased to start up entirely when connected to PCB. That was happening sometimes previously, but I've ignored it since switching off and on again entire circuit usually solved that issue. Now it doesn't help, but when I launch Wemos separately, using USB port, server correctly starts up and sensors are working.

So, to sum up, the current state is: