Navigation

    M5Stack Community

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

    teastain

    @teastain

    Retired Industrial Robotics interface designer, bon vivant, raconteur, maker.

    38
    Reputation
    162
    Posts
    1929
    Profile views
    3
    Followers
    1
    Following
    Joined Last Online
    Location Canada

    teastain Follow

    Posts made by teastain

    • ENVIII causes Core Basic to crash and restart continuously.

      Arduino IDE 2.2.1
      ESP32 board def. ver. 2.0.13
      M5Stack board def. ver. 2.0.7
      M5Stack library ver 0.4.5
      M5_ENV ver. 0.0.8
      All recently updated.
      Sketch is the example from the Github repository:
      Unit_ENVIII_M5Core.ino
      When I comment out this:

      /*
          if (sht30.get() == 0) {  // Obtain the data of shT30.  获取sht30的数据
              tmp = sht30.cTemp;   // Store the temperature obtained from shT30.
                                   // 将sht30获取到的温度存储
              hum = sht30.humidity;  // Store the humidity obtained from the SHT30.
                                     // 将sht30获取到的湿度存储
          } else {
              tmp = 0, hum = 0;
          }
          */
      

      it does not crash, but of course it does not display the temperature!
      So...it points to the "sht30.get()" function.

      When I replace it with inline code:
      (and declare this: unsigned int data[6];)
      Wire.beginTransmission(0x44); //0x44 for M5Stack ENV (0x45 is DFRobot)
      Wire.write(0x2C); //show all the "wheels and gears"
      Wire.write(0x06);
      Wire.endTransmission();
      delay(50);
      Wire.requestFrom(0x44, 6);
      data[0] = Wire.read();
      data[1] = Wire.read();
      data[2] = Wire.read();
      data[3] = Wire.read();
      data[4] = Wire.read();
      data[5] = Wire.read();
      tmp = ((((data[0] * 256.0) + data[1]) * 175) / 65535.0) - 45;
      hum = ((((data[3] * 256.0) + data[4]) * 100) / 65535.0);

      The sensor works!

      posted in General
      teastain
    • RE: M5Stack Basic V2.7: can't install library M5Stack

      @maze2904 OK, well now I think I understand.
      This is tricky...you may have a directory in your computer called:
      /Users/yourname/Library/Arduino15/packages/m5stack/hardware
      This is mine on a iMac...PC probably the same.
      Go to the m5stack folder and investigate the next level folders, such as ESP32 and the like.
      You may have to burn down (delete the whole structure of files!) the m5stack folder from "/Users/yourname/Library/Arduino15/packages/"
      and re-install the packages by letting the Arduino IDE see that the files are missing.
      You should consider first deleting your json link to the board defs:
      0_1694749977585_Arduino prefs.png
      To be sure that you have burnt the stack back down to
      "/Users/yourname/Library/Arduino15/packages/" and delete all files and folders from, and including:" m5stack > hardware > esp32>2.0.7" and any extraneous folders beyond m5stack. (Whew!)
      Hopefully the Arduino IDE board defs and libraries update function will restore all the dependancies, without any conflicts.
      M5Stack over on the AtomS3 GitHub repository advised me to do this and it worked(!) for a problem with my new AtomS3.
      -Terry

      posted in Cores
      teastain
    • RE: M5Stack Basic V2.7: can't install library M5Stack

      @maze2904
      Is this Arduino IDE 2.x.x?
      I am running
      Arduino IDE 2.2.1
      M5Stack library 0.4.5
      M5Stack board definition 2.0.7
      And I can program my Core Metal with no problems.
      Just did a comprehensive mod to my sketch, It compiles just fine!
      Hope my info helps.
      -Terry

      posted in Cores
      teastain
    • RE: StickC Plus + PaHUB + 3 Ultrasonic I2C units

      @felmue Hi Felix, where can I find more information on I2C slaves?
      I could never get Master/Slave to work on ESP32.
      A snippet of sample code would be REALY(!) nice.
      Thanks. -Terry

      posted in Units
      teastain
    • RE: Stamp-S3 randomly starts drawing 500mA.

      @bram The EN is the Reset input and is pulled up normally, and brought down to reset the ESP.
      While it does seem odd that it is 5V, mine does the same thing!
      My (ahem) LilyGO T-Display S3 Reset pin is at 3.3, which makes more sense.
      -Terry

      posted in Modules
      teastain
    • RE: Incorrect measurements with ENV III HAT on M5StickC+

      @teflon121 If you are measuring temperature in an environment where the temperature is stable such as at my desk(!) you can, for sure, just add an "offset". Just measure the ambient with a known and trusted thermometer and add or subtract this to the raw measurement.
      If the device is going to be subjected to a wide range of temps, then you need to see if offset is satisfactory over that range.
      If not...the second half of calibration is "span" which is accomplished by multiply or dividing the raw measurement. This gets fiddly and can be enjoyable like tuning a carburetor!
      display = raw * span + offset, or depending on characteristics of the sensor, display = (raw + offset) * span
      Span is usually a very low number like 1.2 or 0.98
      -Terry

      posted in Arduino
      teastain
    • RE: Connecting M5stack to PCB with header and GPIO capacity.

      @haavardmk In My Opinion the brilliant M5Stack Core series were meant for stand-alone use and could be mounted on a DIN rail, and many other types.

      But...they DO sell this set of 10 M-BUS connectors!
      https://shop.m5stack.com/collections/m5-accessories/products/2-15-pin-header-socket-for-13-2-module-10pcs
      As you know the M-BUS breaks out I2C, SPI and GPIO, two power voltages and grounds !
      Core Basic:
      0_1692990246751_Screenshot 2023-08-25 at 3.03.52 PM.png
      Again IMHO I feel the lack of pins that many many Arduino, ESP32, M5Stack hobbyists anguish over can be overcome with I2C and ESP_NOW!
      -Terry

      posted in PROJECTS
      teastain
    • RE: unable to connect to CO2L unit

      @mtylerjr It likely works in Arduino IDE.

      posted in Units
      teastain
    • RE: Connecting M5stack to PCB with header and GPIO capacity.

      @mtylerjr The Core Basic has 15 GPIO peripherally arranged in the battery base, as well as generous grounds and voltage options.

      0_1692905810450_Screenshot 2023-08-24 at 3.36.31 PM.png

      posted in PROJECTS
      teastain