Group Details Private

Global Moderators

Forum wide moderators

 

Member List

  • RE: M5 How-to (general tips and guide)

    Hey @liemph replied to your comment on youtube. If that didn't resolve your issue, let us know more about your issue, whether you have been able to flash the uiflow firmware successfully etc. feel free to post your other questions here

    posted in General
  • RE: M5stack PM2.5 Particle Sensor

    Hi @LastCaress the fan should definitely move, it's pretty quiet but if you've looked into the fan on the side and its not moving at all there's definitely a problem, please contact sales@m5stack.com as for the usb port not being accesible thats because the stand wasn't designed specifically for the pm2.5 module it was designed for the btc ticker, but someone thought it would be a good idea to throw it in together with the pm2.5

    posted in General
  • RE: Help make friends M5Stack with EZ-Builder !!!

    Hey @Totatot like the idea, are you from Synthiam or know anyone from the company you could introduce us to?

    posted in PROJECTS
  • RE: Rotate UI object

    @brett do you want to rotate the whole display or simply some of the graphic elements? As @ajb2k3 stated the rotation option is available for the text label, but elements such as the rectangle or triangle graphic elements are not rotatable due to the module they are based on not supporting this feature.

    posted in UIFlow
  • RE: USB module not listed in uiflow

    Hi cncninja, currently the USB module hasn't been added as there are no micropython drivers for it. You can use the USB module with Arduino, there are a few examples and code on our docs page https://docs.m5stack.com/#/en/module/usb let me know if you get stuck

    posted in Modules
  • RE: ToF works from UI, not when using ampy

    Hi @hkubota try running it from the micropython plugin in vscode. Video tutorial on how to get setup here https://www.youtube.com/watch?v=Y9pOWgsNgKk&t=73s

    posted in Bug Report
  • RE: UIFlow Firmware, ToF unit and ampy

    The video @ajb2k3 was referring to is here https://www.youtube.com/watch?v=Y9pOWgsNgKk&t=73s hope it helps

    posted in UIFlow
  • RE: Battery level

    Theres a pretty nice comprehensive blog post on the battery and output of the stick c but in japanese https://lang-ship.com/blog/?p=523. He posts his arduino code though on how to read different information about the battery. I tested and it works pretty well.

    #include <M5StickC.h>
     
    void setup() {
      // put your setup code here, to run once:
      M5.begin();
      M5.Lcd.fillScreen(BLACK);
       
      M5.Axp.EnableCoulombcounter();
    }
    double vbat = 0.0;
    int discharge,charge;
    double temp = 0.0;
    double bat_p = 0.0;
    double bat_p2 = 0.0;
     
    void loop() {
      M5.Lcd.fillScreen(BLACK);
      vbat      = M5.Axp.GetVbatData() * 1.1 / 1000;
      charge    = M5.Axp.GetIchargeData() / 2;
      discharge = M5.Axp.GetIdischargeData() / 2;
      temp      =  -144.7 + M5.Axp.GetTempData() * 0.1;
      bat_p     =  M5.Axp.GetPowerbatData() * 1.1 * 0.5 /1000;
       
      M5.Lcd.setCursor(0, 0, 1);
      M5.Lcd.printf("vbat:%.3fV\r\n",vbat);
      M5.Lcd.printf("icharge:%dmA\r\n",charge);
      M5.Lcd.printf("idischg:%dmA\r\n",discharge);
      M5.Lcd.printf("temp:%.1fC\r\n",temp);
      M5.Lcd.printf("pbat:%.3fmW\r\n",bat_p);
      M5.Lcd.printf("CoIn :%d\r\n",M5.Axp.GetCoulombchargeData());
      M5.Lcd.printf("CoOut:%d\r\n",M5.Axp.GetCoulombdischargeData());
      M5.Lcd.printf("CoD:%.2fmAh\r\n",M5.Axp.GetCoulombData());
      M5.Lcd.printf("Vin:%.3fmV\r\n",M5.Axp.GetVinData() * 1.7);
      M5.Lcd.printf("Iin:%.3fmA\r\n",M5.Axp.GetIinData() * 0.625);
      M5.Lcd.printf("VBin:%.3fmV\r\n",GetVBinData() * 1.7);
      M5.Lcd.printf("IBin:%.3fmA\r\n",GetIBinData() * 0.375);
      M5.Lcd.printf("VAPS:%.3f\r\n", GetVapsData()*1.4/1000);
      delay(1000);
    }
     
    uint16_t GetVBinData(void){
     
        uint16_t vin = 0;
     
        Wire1.beginTransmission(0x34);
        Wire1.write(0x5a);
        Wire1.endTransmission();
        Wire1.requestFrom(0x34, 1);
        uint8_t buf = Wire1.read();
     
        Wire1.beginTransmission(0x34);
        Wire1.write(0x5b);
        Wire1.endTransmission();
        Wire1.requestFrom(0x34, 1);
        uint8_t buf2 = Wire1.read();
     
        vin = ((buf << 4) + buf2); // V
        return vin;
     
    }
     
    uint16_t GetIBinData(void){
     
        uint16_t iin = 0;
     
        Wire1.beginTransmission(0x34);
        Wire1.write(0x5c);
        Wire1.endTransmission();
        Wire1.requestFrom(0x34, 1);
        uint8_t buf = Wire1.read();
     
        Wire1.beginTransmission(0x34);
        Wire1.write(0x5d);
        Wire1.endTransmission();
        Wire1.requestFrom(0x34, 1);
        uint8_t buf2 = Wire1.read();
     
        iin = ((buf << 4) + buf2); // V
        return iin;
     
    }
     
    uint16_t GetVapsData(void){
     
        uint16_t vaps = 0;
        Wire1.beginTransmission(0x34);
        Wire1.write(0x7E);
        Wire1.endTransmission();
        Wire1.requestFrom(0x34, 1);
        uint8_t buf = Wire1.read();
     
        Wire1.beginTransmission(0x34);
        Wire1.write(0x7F);
        Wire1.endTransmission();
        Wire1.requestFrom(0x34, 1);
        uint8_t buf2 = Wire1.read();
         
        vaps = ((uint16_t)(buf << 4) + buf2);
        return vaps;
     
    }
    posted in M5 Stick/StickC
  • RE: Adding external libraries via uiflow

    As far as I know the Uiflow Micropython source is not available yet. Some others have posted guides on how to flash alternative micropython builds with other libraries https://www.hackster.io/andreas-motzek/execute-logo-on-m5stack-esp32-basic-with-micropython-3713fd
    You could try creating your own spiffs image to include the libraries you need
    https://github.com/igrr/mkspiffs although I haven't tried this yet and not sure if you have to add anything extra to make the uiflow firmware recognize the spiffs partition

    posted in UIFlow
  • RE: Arduino on linux with m5Stack

    thanks @mweider and sorry you had to struggle so much. I've had a linux setup tutorial for uiflow I made a while ago which wasn't complete sitting around on my desktop for a while, some things are a little out of date on it but I'll try to get it up at some point for the sake of others.

    I wanted to check with you whether you had to add the device to the dialout group with this command:

    sudo usermod -a -G dialout $USER

    I was told it was necessary, didn't work for me. Even though I had installed the drivers
    and run this command, I still had to chmod the /dev/tty directory before I could connect to the device over serial. Perhaps we could set up a seperate forum board specifically for linux users. What do you think?

    posted in Arduino