Navigation

    M5Stack Community

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

    Best posts made by ckuehnel

    • RE: M5stack basic core battery power on issue (ip5306 strange power management)

      Here is a working code example:

      /*

      • Test of IP5306 functions
        */

      #include <M5Stack.h>

      void setup()
      {
      // initialize the M5Stack object
      M5.begin();
      Wire.begin(); // required to access IP5306
      M5.Lcd.fillScreen(BLACK);
      M5.Lcd.setCursor(0, 10);
      M5.Lcd.setTextColor(WHITE);
      M5.Lcd.setTextSize(2);
      M5.Lcd.printf("IP5306 Function Test\r\n");

      if(!M5.Power.canControl())
      {
      M5.Lcd.setTextColor(RED);
      M5.Lcd.printf("No communication with IP5306 chip");
      while(1);
      }
      }

      void loop()
      {
      M5.Lcd.fillRect(0,180,360,60,0);
      uint8_t bat = M5.Power.getBatteryLevel();
      M5.Lcd.setCursor(0,180);
      if (M5.Power.isCharging()) M5.Lcd.printf("Battery is charging\r\n");
      else M5.Lcd.printf("Battery is not charging\r\n");
      M5.Lcd.printf("Battery Level %d", bat);
      M5.Lcd.progressBar(0, 220, 360, 20, bat);
      delay(5000);
      }

      posted in Cores
      C
      ckuehnel
    • Measuring the Water Temperature

      Because I was not satisfied with the information about the water temperature of the Baltic Sea during a past vacation stay, I built a thermometer with M5Stack components and a remote temperature sensor and presented it in a blog post. With the remote DS18B20 temperature sensor, I measured the water temperature at a depth of one meter.

      Now the vacations are approaching again, and the message from the BSH still shows very cool water at the end of May.

      I have extended the presented thermometer to follow the water temperature changes and be immune from bigger surprises.
      Because of the slightly larger display, I replaced the M5StickC with an M5StickC+ and used an M5StickC 18650C to increase the battery capacity. In addition, the thermometer is much easier to handle.

      To have the readings available on my mobile phone, I use it as a mobile hotspot and send the readings from the M5StickC+ via WiFi to the mobile phone, which then sends the data to the Pushover server. From there, the data is then distributed to the selected end devices.

      This setup won't affect the water temperature, but I can record it in writing. And if it stays that cold, then I can document my heroism.

      The link to the original post in German is https://wordpress.com/post/ckblog2016.net/4227

      posted in PROJECTS
      C
      ckuehnel