🤖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
    RunaqueR
    Additional finding: Secondary firmware bug — boot sequence crash on cold boot (MEPC: 0x00000006) While investigating the sta.scan() crash, I discovered a second distinct firmware bug affecting the Tab5 in UIFlow2 v2.4.4. Description: On every cold boot, the device crashes during UIFlow2's initialization sequence before any user code runs. The device automatically reboots and boots successfully on the second attempt. Crash signature: Guru Meditation Error: Core 1 panic'ed (Instruction access fault). Exception was unhandled. MEPC : 0x00000006 MCAUSE : 0x00000001 MTVAL : 0x00000006 Key observation: The stack contains 0x7474696c (ASCII: "litt") pointing to a crash inside UIFlow2's LittlevGL/LVGL initialization sequence — not in user code. Reproducibility: 100% reproducible on cold boot Device always self-recovers on automatic reboot Completely independent of user code — happens before any user application starts This is a separate bug from issue #94 (sta.scan() at MEPC: 0x4ff13582). Both bugs share the same root environment (UIFlow2 v2.4.4 on Tab5) but occur at different stages and involve different subsystems.
  • 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.

    364 Topics
    2k Posts
    N
    @lishi 我CoreS3+GPSv2.1,一样的,只要loop里更新label就会闪退重启。不止是GPS,用LoRaWAN-EU868也会这样。老哥有找到原因吗?
  • VSCode extension error: "Saving code, don't close the window."

    2
    0 Votes
    2 Posts
    3k Views
    T
    I'm sorry, but it started to save edited filed back to /flash normally despite the fact that the warning remained. Could you advise me how to copy files back from /flash to PC without switching to "app mode" and disconnecting VSCode?
  • m5burner gotcha

    6
    1
    0 Votes
    6 Posts
    11k Views
    world101W
    Beta version (v2.0.0 for Mac) looks nice. Thanks @m5stack.
  • m5burner error ImportError: No module named serial.tools.list_ports

    10
    0 Votes
    10 Posts
    19k Views
    ajb2k3A
    Opps, yes, Python need to be installed as super user (su) in order to work properly.
  • sketch to mount M5Stack sd like a card reader do

    12
    0 Votes
    12 Posts
    20k Views
    C
    @crami25 M5Stack_AP_SD_Uploader
  • Experiencing Multiple Firmware Issues

    8
    0 Votes
    8 Posts
    16k Views
    lukasmaximusL
    see my suggestion in your other post, last time i tested I could use vscode with m5stack plugin to transfer files to the atom on linux os. Be aware it must be in usb mode, this video explains how to get into USB mode https://www.youtube.com/watch?v=4dr5Y5ssQTk
  • M5Atom Linking Problem

    3
    0 Votes
    3 Posts
    7k Views
    E
    @Grey good to see that I'm not the only one having that issue. For now I switched to just using Micropython which works fine. Still it would be nice to also be able to deploy C programs to the Atom.
  • M5Atom Pixel Tool

    7
    1
    0 Votes
    7 Posts
    15k Views
    sysdl132S
    The yellow bar means: This threat has been removed and no further action is required. [image: 1582783835633-31a2efff-ff86-4813-b700-210414a3d561-image-resized.png] You can exit your antivirus when you are downloading.
  • WebServer and running code parallel

    3
    0 Votes
    3 Posts
    7k Views
    M5StickFreaklerM
    look also here: http://community.m5stack.com/topic/1722/tiny-webserver-crashes-after-some-hours
  • Power management issue M5GO & USB host

    5
    0 Votes
    5 Posts
    10k Views
    m5stackM
    When you stack USB modules, the current will change slightly, which may cause some effects. Also related to your configuration of IP5306
  • UIFlow-Desktop-IDE Linux

    2
    0 Votes
    2 Posts
    5k Views
    lukasmaximusL
    check out this video https://www.youtube.com/watch?v=ZZdTl0400uM most info should still be relevant. Come back here if you get stuck
  • Wish for a new subcategory ESP-IDF

    3
    0 Votes
    3 Posts
    6k Views
    S
    @lukasmaximus Thank you for the new subcategory. I will write an article next week.
  • m5Stack Fire. UIflow. Simple program

    8
    1
    0 Votes
    8 Posts
    17k Views
    OyczEO
    @almeribot said in m5Stack Fire. UIflow. Simple program: @m5stack Of course, I use USB Mode Hi there, in some case small debug session is req, please download the program and then close the Offline ueflow. connect the Fire to usb and check what you have on console after connecting via for example putty to Fire COM. In past in my case i was able to see the error, it was one variable missing. please show the console output here this will be a way to see what is wrong.
  • for(int i=0; i>=100; i++) {

    1
    0 Votes
    1 Posts
    5k Views
    No one has replied
  • Main screen

    2
    0 Votes
    2 Posts
    5k Views
    ajb2k3A
    you need to erase the gameboy firmware and reinstall the uiflow firmware using uiflow.
  • [Solved] M5 Burner Firmware Option Update

    69
    0 Votes
    69 Posts
    430k Views
    J
    @gachapo Thanks for persevering with this as I got my M5 to day and was getting confused lol. Without this link I would never have got it up and running so thanks for the link as that has kept me from throwing it out of the window.
  • 0 Votes
    2 Posts
    3k Views
    lukasmaximusL
    Have you tried connecting to a mobile phone hotspot? and does your wifi password contain spaces or any special characters?
  • M5Stack Capacitive TouchScreen

    13
    0 Votes
    13 Posts
    31k Views
    ajb2k3A
    @jroever said in M5Stack Capacitive TouchScreen: I am very tempted to buy this product - especially if it had a touch screen interface! But in case it doesn't - what is meant by "10x capacitive touch interface" which is clearly stated as one of the features on https://docs.m5stack.com/#/en/core/fire ?!? The esp32's pins can act as capacitive touch sensors however not much is know about this function. The M5Tough which features the capacitive touch screen may be out by the end of the month.
  • M5Stack Fire LCD Issues

    1
    0 Votes
    1 Posts
    5k Views
    No one has replied
  • Save current screen content to image file (SD card)...

    1
    0 Votes
    1 Posts
    5k Views
    No one has replied
  • M5burner on windows7 cannot flash

    28
    0 Votes
    28 Posts
    101k Views
    Ariane98A
    @ariane98 It works now, after some minor changes Thanx again