another BME280 problem: No values returned

Hello

So I have a few bme280 modules, which once I managed to get working as they should in certain projects, they have been brilliant. Needed a few more, turned up and try to check their I2C addresses, as I would. Granted it’s been a while since I did this and it’s for a new project but I can not find their address, nor return any values.

One of the sensors works now. After trying a nodemcu, nano and then an Uno, the latter worked. But the second one does not.

I just uploaded this test sketch;

/***************************************************************************
  This is a library for the BME280 humidity, temperature & pressure sensor

  Designed specifically to work with the Adafruit BME280 Breakout
  ----> http://www.adafruit.com/products/2650

  These sensors use I2C or SPI to communicate, 2 or 4 pins are required
  to interface. The device's I2C address is either 0x76 or 0x77.

  Adafruit invests time and resources providing this open source code,
  please support Adafruit andopen-source hardware by purchasing products
  from Adafruit!

  Written by Limor Fried & Kevin Townsend for Adafruit Industries.
  BSD license, all text above must be included in any redistribution
  See the LICENSE file for details.
 ***************************************************************************/

#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>

#define BME_SCK 13
#define BME_MISO 12
#define BME_MOSI 11
#define BME_CS 10

#define SEALEVELPRESSURE_HPA (1013.25)

Adafruit_BME280 bme; // I2C
//Adafruit_BME280 bme(BME_CS); // hardware SPI
//Adafruit_BME280 bme(BME_CS, BME_MOSI, BME_MISO, BME_SCK); // software SPI

unsigned long delayTime;

void setup() {
    Serial.begin(9600);
    while(!Serial);    // time to get serial running
    Serial.println(F("BME280 test"));

    unsigned status;
    
    // default settings
    // (you can also pass in a Wire library object like &Wire2)
    status = bme.begin();  
    if (!status) {
        Serial.println("Could not find a valid BME280 sensor, check wiring, address, sensor ID!");
        Serial.print("SensorID was: 0x"); Serial.println(bme.sensorID(),16);
        Serial.print("        ID of 0xFF probably means a bad address, a BMP 180 or BMP 085\n");
        Serial.print("   ID of 0x56-0x58 represents a BMP 280,\n");
        Serial.print("        ID of 0x60 represents a BME 280.\n");
        Serial.print("        ID of 0x61 represents a BME 680.\n");
        while (1);
    }
    
    Serial.println("-- Default Test --");
    delayTime = 1000;

    Serial.println();
}


void loop() { 
    printValues();
    delay(delayTime);
}


void printValues() {
    Serial.print("Temperature = ");
    Serial.print(bme.readTemperature());
    Serial.println(" *C");

    Serial.print("Pressure = ");

    Serial.print(bme.readPressure() / 100.0F);
    Serial.println(" hPa");

    Serial.print("Approx. Altitude = ");
    Serial.print(bme.readAltitude(SEALEVELPRESSURE_HPA));
    Serial.println(" m");

    Serial.print("Humidity = ");
    Serial.print(bme.readHumidity());
    Serial.println(" %");

    Serial.println();
}

The only thing in the terminal displayed is

00:08:10.980 -> BME280 test

Can not figure out if this is a duff chip. I tried other sketches but with no success. Any ideas please?

You failed to post a wiring diagram. The description of the problem let me think that the wiring is incorrect.

Are you really wiring the chip directly. Excuse me but I doubt that. So please post a link to the board you're using as the components on it are relevant.

Hi. Thanks for the reply.

Turns out I had a duff module and the Arduino was not getting a response from the sensor. Swapped it out for a a module I already use and it worked. Ordered two bme280 sensors at the same time. One worked and one didnt

exiledyorkie:
Hi. Thanks for the reply.

Turns out I had a duff module and the Arduino was not getting a response from the sensor. Swapped it out for a a module I already use and it worked. Ordered two bme280 sensors at the same time. One worked and one didnt

any update on this ?
i got 2 modules and facing same with both

i2c scanner can't find any sensor nor SPI is working

How do you know whether his modules are the same as yours?

How does anyone else know which modules either of you are using?

Don