πŸ€–Have you ever tried Chat.M5Stack.com before asking??😎

Subcategories

  • You can discuss ESPHome related issues here, share your yaml and projects.

    21 Topics
    34 Posts
    D
    Hey! I’m currently having an issue with my stick s3 which arrived literally a couple days ago. When plugged into power, it makes a sound similar to that of a clock ticking while the green LED flashes/blinks. Sometimes it’s a high pitched squeak. When plugged into my computer, it isn’t showing up on the m5burner or any other web based tools. It was working perfectly fine previously however. When unplugged the device does nothing. I’ve tried entering the flash firmware mode by pressing and holding the power button while plugging in but no luck. Also tried pressing the button twice in hopes that the blinking stops, but nope Was using Bruce firmware Thank you!
  • Squareline Studio and LVGL Discussion

    6 Topics
    19 Posts
    S
    @δΏΊγŒγ‚¬γƒ³γƒ€γƒ γ  said in LVGL performance problem: I applied LVGL on stickc-plus2,with TFT_eSPI's st7789v2 driver.But the refreshing rate is very low (while doing "load screen anim").I know stickc had good performance on drawing screen (by watching the video of M5stick T-Lite Thermal tutorial). And the LVGL also has a good performance through Dial-ESP32-S3 and Din-Meter demonstration video. So what is the reason of such low performance. Cound it be the TFT_eSPI library? I’ve seen similar issues on the StickC-Plus2. It could be due to TFT_eSPI settings, try increasing the SPI frequency or enabling DMA. Also, check your LVGL buffer config; full buffering helps with performance.
  • Discuss all things UIFlow here. Bugs, Improvements, Guides etc...

    1k Topics
    4k Posts
    C
    Im trying to run uiflow, but getting api error. im trying to login but credentials are failing. reset pw takes me to M5. what do i do?
  • M5Stack is programmable with the Arduino IDE. Here you can troubleshoot your issues and share Arduino code and libraries

    468 Topics
    2k Posts
    B
    This is the closest I got on a code which provides some sort of acceleration/deaceleration on jumping btw positions. I wonder if is there an official way to achieve this smoothly. Thanks #include "unit_rolleri2c.hpp" #include <M5Unified.h> /* Going to random position every 1 second - trying to move with ease in/out, but very artificial/jittery - not smooth. */ UnitRollerI2C RollerI2C; const int32_t UNITS_PER_DEGREE = 100; const int32_t POSITION_TOLERANCE = 150; // ~1.5Β° arrival threshold const uint32_t MOVE_DURATION_MS = 3000; // total time per move (ms) β€” tune 1000–5000 const uint32_t STEP_MS = 40; // trajectory update interval (ms) const uint32_t PAUSE_MS = 1000; // pause at target before next move int32_t basePosition = 0; // ── Ease-in / ease-out using a sine curve ────────────────────────────────── // t=0.0 β†’ 0.0 | t=0.5 β†’ 0.5 | t=1.0 β†’ 1.0 // Accelerates from rest, decelerates to rest β€” smooth S-curve. float easeInOut(float t) { return (1.0f - cosf(t * PI)) / 2.0f; } // Drives from startUnits β†’ targetUnits over MOVE_DURATION_MS with ease in/out. // Returns true when the motor confirms arrival within tolerance. bool easedMoveTo(int32_t startUnits, int32_t targetUnits) { uint32_t moveStart = millis(); while (true) { uint32_t elapsed = millis() - moveStart; float t = min((float)elapsed / (float)MOVE_DURATION_MS, 1.0f); // Compute eased intermediate setpoint float eased = easeInOut(t); int32_t intermediate = startUnits + (int32_t)((targetUnits - startUnits) * eased); RollerI2C.setPos(intermediate); // Once we've sent the final setpoint, check arrival if (t >= 1.0f) { int32_t actual = RollerI2C.getPosReadback(); if (abs(targetUnits - actual) <= POSITION_TOLERANCE) { return true; // βœ… arrived } // Give a small extra window for the PID to settle if (elapsed > MOVE_DURATION_MS + 1000) { return false; // ⏱️ timed out even after easing finished } } delay(STEP_MS); } } int32_t degreesToUnits(float deg) { return (int32_t)(deg * UNITS_PER_DEGREE); } float unitsToDegrees(int32_t u) { return u / (float)UNITS_PER_DEGREE; } void setup() { M5.begin(); Serial.begin(115200); delay(500); randomSeed(analogRead(0)); bool found = RollerI2C.begin(&Wire, 0x64, 2, 1, 400000); if (!found) { Serial.println("❌ Roller485 NOT found on I2C! Check wiring."); while (true) delay(1000); } Serial.println("βœ… Roller485 found!"); Serial.print("Vin (x0.01V): "); Serial.println(RollerI2C.getVin()); Serial.print("ErrorCode: "); Serial.println(RollerI2C.getErrorCode()); RollerI2C.setOutput(0); RollerI2C.setMode(ROLLER_MODE_POSITION); RollerI2C.setPosMaxCurrent(80000); RollerI2C.setOutput(1); delay(100); basePosition = RollerI2C.getPosReadback(); Serial.print("Base position (raw): "); Serial.println(basePosition); Serial.println("Ready. Starting eased random position loop...\n"); delay(500); } int32_t currentTarget = 0; // tracks last target so we ease FROM it void loop() { // Random angle offset from base: -180Β° to +180Β° float targetDegrees = random(-180, 181); int32_t targetUnits = basePosition + degreesToUnits(targetDegrees); int32_t fromUnits = RollerI2C.getPosReadback(); // start from actual current pos Serial.print("➑️ "); Serial.print(unitsToDegrees(fromUnits - basePosition), 1); Serial.print("Β° β†’ "); Serial.print(targetDegrees, 1); Serial.println("Β° (easing...)"); bool arrived = easedMoveTo(fromUnits, targetUnits); float actualDeg = unitsToDegrees(RollerI2C.getPosReadback() - basePosition); if (arrived) { Serial.print("βœ… Arrived at "); } else { Serial.print("⏱️ Stopped at "); } Serial.print(actualDeg, 1); Serial.println("Β°"); Serial.print(" ErrorCode: "); Serial.println(RollerI2C.getErrorCode()); Serial.println(); delay(PAUSE_MS); // pause 1 second at target }
  • Discuss all things Micropython here. Get help, Recommend Libraries, Report Bugs and Improvements

    218 Topics
    898 Posts
    J
    @pabou try using uiflow to generate the code, then peek copy from there.
  • For discussion and assistance with M5EZ.

    13 Topics
    62 Posts
    J
    using the mentioned changes hello_world example did compile and got uploaded to my core2. However , nothing is shown on screen, screen remains black.
  • Discuss all things related to ESP - IDF, Espressifs IoT Development Framework

    29 Topics
    101 Posts
    felmueF
    Hello @daniyyel ah, ok. So the correct documentation is here. Have a look at the code examples in Quick Start Guide to see how the M5IOE1 needs to be programmed to turn on power etc. The function is called SIM7028_EN() and first turns on power then resets the modem. Thanks Felix
  • UiFlow 2.0 related issues discussion.

    365 Topics
    2k Posts
    O
    Good afternoon from Russia. Sorry for my English. I'm writing through a translator. I have your LTE modem, the NB-IoT2. And it's been sitting idle for almost a year. I wanted to use the NB-IoT2 with a STAM PLC to control a relay. But YOU still don't have proper documentation. Or an example of how it works. Between the modem and the phone. Will the documentation ever be completed?
  • M5Stack Software 32 Bit or 64 Bit?

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • cant download m5burner

    5
    0 Votes
    5 Posts
    11k Views
    H
    @mati Thanks alot. Finally burnt the new beta version.
  • M5Burner on Linux?

    2
    0 Votes
    2 Posts
    6k Views
    OyczEO
    hmm in download you have https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/M5Burner_Linux.zip
  • Visual Studio Code (VS Code) reboots my M5Stack with any action

    2
    0 Votes
    2 Posts
    6k Views
    T
    To whoever faces same problem - I found solution for win10. Problem is, UIFlow offline installs wrong/incorrect drivers, but as they are signed by Microsoft, Windows treats them as correct ones. UIFlow works fine, but VS won't connect to M5Stack properly. Boot into safe mode, plug in M5Stack and find COM (Silicon labs) device. Right click and remove it, what is important, press checkbox with "Remove associated with device drivers" which appears only in safe mode for me. Now disconnect USB, download latest drivers from M5stack.com and install them normally. This solved issue for me
  • How to use Back Buffer for drawing ?

    8
    0 Votes
    8 Posts
    17k Views
    lukasmaximusL
    Hi @Thrasher, did you take a look at those libraries? you still didn't mention what it is that you want to do. There is also the framebuf library that may help, search framebuf.py on github
  • Does M5Stack support event-driven programming?

    5
    0 Votes
    5 Posts
    7k Views
    T
    @jerry_fuyi I suggest you to add some random logic blocks and then see it in python code - will be much easier to understand mechanics. Ofcourse, coding hardware is useless without event triggers most of time
  • M5stick-c - Hat ENV no Grove with UIflow Blocky.

    3
    0 Votes
    3 Posts
    5k Views
    ajb2k3A
    @davidiot I have done this recently in testing for another member. I will post up a picture of my code tonight when I get back to the office
  • Suggestions on why M5Stack Fire MPU9250 doesn't always work...

    4
    0 Votes
    4 Posts
    8k Views
    Y
    Can show an example?
  • Last beta-version UIFlow can't be downloaded

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • M5StickC AXP I2C

    3
    1 Votes
    3 Posts
    10k Views
    O
    Hi, you can find the datasheet here. It is in Chinese but Google translate does a pretty decent job so we can understand almost everything. You can also have a look a register 36h where you can modify long/short press times. Be careful, this button is used to power-on/off the device
  • M5StickC Button B

    2
    0 Votes
    2 Posts
    5k Views
    ajb2k3A
    How are you enabling it?
  • Connecting M5CAM to WiFi in STA mode

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • IoT M5Cam Project - problems porting code

    4
    0 Votes
    4 Posts
    8k Views
    M
    Guess what? I hit another wall. It seems the camera is giving trouble, despite me configuring the pins as here: [image: 68747470733a2f2f6d35737461636b2e6f73732d636e2d7368656e7a68656e2e616c6979756e63732e636f6d2f696d6167652f6d352d646f63735f7461626c652f63616d6572615f636f6d70617269736f6e2f43616d65726150696e436f6d70617269736f6e5f656e2e706e67] E (218) camera: Camera probe failed with error 0x20001 ESP_ERROR_CHECK failed: esp_err_t 0x20001 (ERROR) at 0x4008a228 0x4008a228: _esp_error_check_failed at /home/marta/esp/esp-idf/components/esp32/panic.c:721 file: "/home/marta/Arduino/esp32-cam-ai-thinker/examples/google_storage/main/main.c" line 195 func: app_main expression: esp_camera_init(&camera_config) config XCLK_FREQ int "XCLK Frequency" default "20000000" help The XCLK Frequency in Herz. menu "Pin Configuration" config D0 int "D0" default "32" config D1 int "D1" default "35" config D2 int "D2" default "34" config D3 int "D3" default "5" config D4 int "D4" default "39" config D5 int "D5" default "18" config D6 int "D6" default "36" config D7 int "D7" default "19" config XCLK int "XCLK" default "27" config PCLK int "PCLK" default "21" config VSYNC int "VSYNC" default "25" config HREF int "HREF" default "26" config SDA int "SDA" default "4" config SCL int "SCL" default "13" config RESET int "RESET" default "15" endmenu
  • M5 burner not working on Macos X

    40
    0 Votes
    40 Posts
    188k Views
    L
    @ajb2k3 Thank you, very helpful information!
  • Dual-Boot for M5Stack - possible?

    uiflow arduino ide bootloader dual-boot
    1
    0 Votes
    1 Posts
    7k Views
    No one has replied
  • M5GO Starter Kit not connecting to Wifi

    3
    1 Votes
    3 Posts
    6k Views
    m5-docsM
    @robertwray Does your device connect flow.m5stack.com successfully?
  • [Solved]My M5Go can't connect to flow.m5stack.com

    5
    0 Votes
    5 Posts
    9k Views
    m5-docsM
    Server hangs
  • M5Stack Offline Mode UI

    Moved
    11
    1 Votes
    11 Posts
    33k Views
    m5-docsM
    @yurikleb Thank you! I already heard of little lvgl. But May be a long time later about adding it.
  • m5ez for micropython 1/?

    Moved
    3
    0 Votes
    3 Posts
    8k Views
    lukasmaximusL
    nice work, looking forward to try it out when it's ready