Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. regres
    R
    • Continue chat with regres
    • Start new chat with regres
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    regres

    @regres

    0
    Reputation
    4
    Posts
    1266
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    regres Follow

    Posts made by regres

    • RE: ATOM Lite and ENV.II

      Hi @felmue

      Thank you for the advice, the Wire.begin(26, 32) is what I was missing.
      I tired M5.begin(true, false, true) before but, by itself, it didn't make any difference.

      Looks like explicitly specifying I2C pins is the way to go.

      Again, thank you
      regres

      posted in Atom
      R
      regres
    • ATOM Lite and ENV.II

      Hello,

      I'm trying to get the working with ENV.II unit using modified sample code from https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Unit/ENVII/Arduino/ENVII/ENVII.ino but I keep getting the "Could not find a valid BMP280 sensor, check wiring!" error.

      I've got the ENV.II working with M5Stack Core, but can't figure out the ATOM Lite.

      The code is as follows:

      #include "M5Atom.h"
      #include <Wire.h>
      #include "Adafruit_Sensor.h"
      #include <Adafruit_BMP280.h>
      #include "SHT3X.h"
      SHT3X sht30;
      Adafruit_BMP280 bme;
      
      float tmp = 0.0;
      float hum = 0.0;
      float pressure = 0.0;
      
      void setup()
      {
        M5.begin(true, true, true);
        Wire.begin();
        Serial.println(F("ENV Unit(SHT30 and BMP280) test..."));
        while (!bme.begin(0x76))
        {
          Serial.println("Could not find a valid BMP280 sensor, check wiring!");
        }
      }
      
      void loop() {
        pressure = bme.readPressure();
        if(sht30.get()==0){
          tmp = sht30.cTemp;
          hum = sht30.humidity;
        }
        Serial.printf("Temperature: %2.2f*C  Humidity: %0.2f%%  Pressure: %0.2fPa\r\n", tmp, hum, pressure);
      
        delay(100);
      
      }
      

      Any suggestions would be appreciated,
      Thank you

      posted in Atom
      R
      regres
    • RE: Unable to add board in Arduino IDE

      Hello,

      I have uninstalled the previous setup, deleted all files and redeployed everything using guide at https://github.com/m5stack/M5Stack/blob/master/docs/arduino-ide/windows.md
      This time I can properly see the M5Stack-Core-ESP32 board on the list.

      Thank you for the help.

      Is there any way we can request an update of the http://www.m5stack.com/assets/docs/index.html to avoid confusion in the future?

      posted in FAQS
      R
      regres
    • Unable to add board in Arduino IDE

      Hello,

      I'm trying to add the M5Stack board following info in http://www.m5stack.com/assets/docs/index.html without any success.
      The article states to "Enter http://www.m5stack.com/download/package_m5stack_index.json into Additional Board Manager URLs field", however the json file doesn't seem to be valid.

      I have the Arduino IDE working fine with Adafruit boards so there should be no issue with the IDE itself.

      How can I add the board?

      posted in FAQS
      R
      regres