πŸ€–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
    My STAM PLS stopped working after updating from version 2.4.4 to version 2.4.5. I used M5Burner to revert the firmware back to 2.4.4. But the STAM LPC program didn't work. OSError 261
  • HTTP 1.1 support

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

    1
    0 Votes
    1 Posts
    69 Views
    No one has replied
  • Stepper Motor module M012 control using Raspberry Pi 4 and i2c

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [OSX Big Sur] Core2 Failed to write to target RAM (result was 01070000)

    3
    0 Votes
    3 Posts
    9k Views
    ajb2k3A
    This is an ongoing issue with OSX and it seams the only cure at present is to upgrade to OSX 10.16, something I'm not ready to do yet.
  • M5 Stamp Pico boot loop

    6
    0 Votes
    6 Posts
    7k Views
    ajb2k3A
    @myxiplx Glad you found the issue. I have noticed that the pico header pins get worn out quick when just using headers in and out of the PCB.
  • PlatformIO and FreeRTOS

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • USB driver for M5paper (CP2104) does not work on Windows 8.1

    3
    0 Votes
    3 Posts
    6k Views
    I
    After digging a bit more I found this page: https://www.cnx-software.com/2021/09/14/ch9102f-a-replacement-for-cp2104-usb-to-uart-bridge/ Looks like my M5paprer has CH9102F instead of CP2104 (as stated on the cover). Drivers for CH9102 from https://docs.m5stack.com/en/download site works well on my Windows 8.1. So topic can be closed.
  • PlatformIO and Tasmota

    2
    0 Votes
    2 Posts
    4k Views
    felmueF
    Hello @Slyke Tasmonizer did not work for me either. VSC/PlatformIO only worked with version 9.5.0. (Version 9.6.0 or master don't compile for me.) Here are the steps: Clone Tasmota: git clone https://github.com/arendst/Tasmota.git Checkout 9.5.0: git checkout pre-release-9.5.0 Rename sample file: mv platformio_override_sample.ini platformio_override.ini Open project in VSC/PlatformIO Modify platformio_override.ini: comment out: tasmota / uncomment: tasmota32-core2 Compile & Link & Download from within VSC/PlatformIO Note: there is nothing on the LCD screen at this point. I think the device is waiting to be configured. Serial output: 00:00:00.001 HDW: ESP32-D0WDQ6-V3 00:00:00.011 UFS: FlashFS mounted with 10292 kB free 00:00:00.031 CFG: Loaded from File, Count 5 00:00:00.036 QPC: Count 2 00:00:00.038 SPI: Hardware using GPIO18(CLK), GPIO23(MOSI) and GPIO38(MISO) 00:00:00.248 I2C: AXP192 found at 0x34 00:00:00.250 I2C: RTC found at 0x51 00:00:00.257 BRY: Berry initialized, RAM used=1760 00:00:00.261 BRY: no 'preinit.be' 00:00:00.837 I2C: FT5206 found at 0x38 00:00:00.837 DSP: ILI9341 00:00:01.409 Project tasmota Tasmota Version 9.5.0(core2)-1_0_6(2021-10-21T09:48:12) 00:00:01.409 UFILESYSTEM OK! 00:00:01.515 CR2: Set time from BM8563 to RTC (UTC) 2000-02-04T13:00:32, (DST) 1970-03-29T02:00:00, (STD) 1970-10-25T03:00:00 00:00:01.521 BRY: no 'autoexec.be' 00:00:01.818 WIF: WifiManager active for 3 minutes 13:00:33.537 HTP: Web server active on tasmota_C50340-0832 with IP address 192.168.4.1 13:00:39.532 QPC: Reset Thanks Felix
  • Com not showing M5stickC Plus

    2
    0 Votes
    2 Posts
    3k Views
    T
    Sorted faulty cable
  • SX1509 library needed.

    6
    0 Votes
    6 Posts
    10k Views
    A
    @meirmark the answer is both, just checked the library it use Wire.h so you only have to use the correct pins in the setup Calle.
  • Software choice for two BLE sensors

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • problems to star my m5stack core 2

    12
    0 Votes
    12 Posts
    17k Views
    M
    @ajb2k3 I just followed your steps and everything is the same ... i have OSX 10.13
  • M5Stack Core2 and Arduino 1.8.16

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • How to access JSON data from UnitV2 AI Camera?

    unitv2
    3
    1 Votes
    3 Posts
    8k Views
    AsmodevA
    SOLVED IT! Here, You can use this, hope it helps out! UNITV2 WEB RESULT RESPONSE
  • UNIT V2 RESULT PAGE WORKING!

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

    1
    0 Votes
    1 Posts
    20 Views
    No one has replied
  • Change I2C address of joystick module

    joystick i2c
    6
    0 Votes
    6 Posts
    6k Views
    ajb2k3A
    @felmue they are, its just that it takes a bit of comparison work to spot them. they appear as R17, R18 and R19.
  • File transfer to SD cards in UIFLow on the M5core2?

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • macOS Big Sur

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Arduino framework, MAX30100 and M5Stack Fire

    2
    0 Votes
    2 Posts
    3k Views
    felmueF
    Hello @Krzysiek There are two examples here. Both mention the following library. Thanks Felix