🤖Have you ever tried Chat.M5Stack.com before asking??😎

Subcategories

  • 547 Topics
    2k Posts
    G
    Is there any secret in how to unscrew the screws on the orange connector for the wires that go to the load cell? I have tried several screwdrivers and nothing seems to move them. I am afraid of stripping the head. Any suggestions?
  • When you meet problems using M5Stack, we help you solve it.

    200 Topics
    989 Posts
    robskiR
    @johnericsutton hard to believe that unit is designed in such way to report value only when measured source is above 0...
  • 504 Topics
    2k Posts
    C
    In case anyone else comes across this post, it appears that the wires coming out of the DinMeter PortB are reversed to the label, at least on my unit. G1 is the yellow wire, and G2 is the white one. It works as expected to do a digital read on the pins for a button push.
  • 1k Topics
    6k Posts
    ShawnHymelS
    @felmue That helps a lot, thank you!
  • 55 Topics
    203 Posts
    J
    I have been able to get a program to work that uses the M5EchoBase library but no luck using the unified library. For example the simple program below doesn't work. #include <M5Unified.h> void setup() { // 1. Initialize M5Unified delay(1000); // Delay for a moment to allow the system to stabilize. auto cfg = M5.config(); cfg.serial_baudrate = 115200; M5.begin(cfg); // 2. Configure the Speaker for the Atomic Audio Base (ES8311) // We access the speaker configuration directly via M5.Speaker.config() auto spk_cfg = M5.Speaker.config(); // Set pins for Atomic Audio Base (ES8311) spk_cfg.pin_bck = 8; // BCLK spk_cfg.pin_ws = 6; // LRCK (WS) spk_cfg.pin_data_out = 5; // DAC (DOUT) spk_cfg.i2s_port = I2S_NUM_0; // Configure for external codec (not internal DAC) spk_cfg.use_dac = false; spk_cfg.sample_rate = 44100; // Apply the configuration M5.Speaker.config(spk_cfg); // 3. Start the speaker M5.Speaker.begin(); // 4. Set volume (0-255) M5.Speaker.setVolume(128); } void loop() { M5.update(); // Play a 1000 Hz tone for 1000 milliseconds (1 second) M5.Speaker.tone(1000, 1000); // Wait for the tone to finish delay(1000); // Small delay before next loop delay(1000); } Is there no way to set up the ES8311 codec without using M5EchoBase? strangely if I run the program below then load the above program the tone works? But I can't stick the M5.Speaker.tone(1000, 1000); command in the program below and have it work. Does anyone know how to play a tone using only the Unified library from an AtomS3R into a Atomic Audio Base (ES8311 codec)? #include <M5Unified.h> #include <M5EchoBase.h> #if defined(CONFIG_IDF_TARGET_ESP32S3) #define RECORD_SIZE (1024 * 400) #elif defined(CONFIG_IDF_TARGET_ESP32) #define RECORD_SIZE (1024 * 400) #endif #if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)) M5EchoBase echobase; #else M5EchoBase echobase(I2S_NUM_0); #endif static uint8_t *buffer = nullptr; // Pointer to hold the audio buffer. void setup() { delay(1000); // Delay for a moment to allow the system to stabilize. auto cfg = M5.config(); cfg.serial_baudrate = 115200; M5.begin(cfg); // Initialize the EchoBase with ATOMS3 pinmap. #if defined(CONFIG_IDF_TARGET_ESP32S3) if (!echobase.init(44100 /*Sample Rate*/, 38 /*I2C SDA*/, 39 /*I2C SCL*/, 7 /*I2S DIN*/, 6 /*I2S WS*/, 5 /*I2S DOUT*/, 8 /*I2S BCK*/, Wire) != 0) { Serial.println("Failed to initialize EchoBase!"); while (true) { delay(1000); } } #elif defined(CONFIG_IDF_TARGET_ESP32) // Initialize the EchoBase with ATOM pinmap. if (!echobase.init(44100 /*Sample Rate*/, 25 /*I2C SDA*/, 21 /*I2C SCL*/, 23 /*I2S DIN*/, 19 /*I2S WS*/, 22 /*I2S DOUT*/, 33 /*I2S BCK*/, Wire) != 0) { Serial.println("Failed to initialize EchoBase!"); while (true) { delay(1000); } } #endif echobase.setSpeakerVolume(80); // Set speaker volume to 70%. echobase.setMicGain(ES8311_MIC_GAIN_0DB); // Set microphone gain to 0dB. buffer = (uint8_t *)malloc(RECORD_SIZE); // Allocate memory for the record buffer. // Check if memory allocation was successful. if (buffer == nullptr) { // If memory allocation fails, enter an infinite loop. while (true) { Serial.println("Failed to allocate memory :("); delay(1000); } } Serial.println("EchoBase ready, start recording and playing!"); // M5.Speaker.tone(2000, 2000); // delay(2000); } void loop() { Serial.println("Start recording..."); // Recording echobase.setMute(false); echobase.record(buffer, RECORD_SIZE); // Record audio into buffer. delay(100); Serial.println("Start playing..."); // Playing echobase.setMute(false); delay(10); echobase.play(buffer, RECORD_SIZE); // Play audio from buffer. //M5.Speaker.playRaw(buffer, RECORD_SIZE, 44100, false, 1, 0); delay(100); }
  • For topics on the M5Stack Atom.

    257 Topics
    845 Posts
    kurikoK
    @wwhite https://docs.m5stack.com/en/guide/realtime/openai/atomic_echo_base
  • what's the Pin for M5dial BtnA

    7
    0 Votes
    7 Posts
    5k Views
    C
    @codeblue This diagram on page two. Here a cutout with my annotation: [image: 1713164860351-5bc0376f-2c72-442e-832b-9149e4348239-image.png]
  • M5 BugC2 default software functions

    2
    0 Votes
    2 Posts
    2k Views
    teastainT
    @俺がガンダムだ You are probably just seeing the Product Demo and test firmware. Almost all M5Stack products are 'ready to be programmed' but do very little outside the box. Use UIFlow or Arduino IDE to add functions of your own choice and your own design. https://docs.m5stack.com/en/app/BUGC2 https://github.com/m5stack/M5Hat-BugC
  • M5Stack ESP32-S3 with PSRAM ?

    2
    0 Votes
    2 Posts
    3k Views
    L
    @luckylinux you may look for generic esp32-s3-devkitc-1
  • New M5 Cardputer Displays only Several Colored Lines at Top of Screen

    2
    0 Votes
    2 Posts
    2k Views
    ajb2k3A
    Have you tried erasing the firmware and returning the firmware with M5Burner?
  • M5Stack RS485 Base and Unit

    2
    0 Votes
    2 Posts
    2k Views
    felmueF
    Hello @luckylinux correct, the Atomic RS485 Base is not isolated. See schematic here. Compared to Isolated RS485 Unit which uses the CA-IS3082W IC - schematic here. Thanks Felix
  • Oh dear. Cardputer2 coming

    4
    1
    1 Votes
    4 Posts
    4k Views
    ajb2k3A
    There is also people in the discord cardputer community looking into adding a second bigger screen.
  • M5 CoreS3 power drain issue.

    cores3
    6
    0 Votes
    6 Posts
    6k Views
    L
    I recall the last action before I started to have the issue and I now suspect it was my particular scenario of charging the din base battery that might have damaged one or more of the power distribution mosfets. I shall describe the scenario here as a caution for fellow core s3 owners. firmware installed: uiflow 2.0.1 external device connected: M5Stack GPS/BDS unit connected to port c at the din base. charger used: wall charger with multiple usb c and a ports. one of the usb c port was used. sequence of event: a gps related uiflow program was running and the battery dropped low connected the wall charger to the core s3 with a usb c to c cable to charge the battery inside the din base after some time switched off the core s3 by holding the power button while the charging is still going on core s3 felt very warm to the touch but I did not think too much of it. charging was completed after the red indicator turned off I suspected that in sequence 4 one or more mosfets were overheated and damaged.
  • M5Dial power plug

    2
    0 Votes
    2 Posts
    2k Views
    teastainT
    @eicke Search this community website for: Dial connector And see the M5Stack Dial document page here: https://docs.m5stack.com/en/core/M5Dial [image: 1711040449978-1709937244466-screenshot-2024-03-08-at-5.33.53-pm.png] https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/products/core/M5Dial/DB2EK-2.54-2P-GN-S 2.54mm 2Pin Green.pdf Also I just realized that the actual 2 pin part number is in the URL of the datasheet! DB2EK-2.54-2P-GN-S \o/
  • Problem download SW with CoreS3

    2
    0 Votes
    2 Posts
    2k Views
    ajb2k3A
    @alex1 not without more information ?
  • M5paper: disable boot logo/menu

    m5paper uiflow
    2
    0 Votes
    2 Posts
    4k Views
    H
    Sorry for digging this old post....but... I have the same Issue. My application should update the display "as smooth as possible" that means the short flickering for a full refresh is ok (takes less than 1 second) but not the whole startup flickering-clearing-UIFlowLogo-flickering-nothinguntilmydatagetready-flickering thing. My solution is now a wait instead of sleep which draws the battery too fast. Any idea how to do that in UIFlow?
  • M5Paper doesn't work without been connected to the ligth

    2
    0 Votes
    2 Posts
    1k Views
    ajb2k3A
    Have you charged it for several hours?
  • Hall effect Unit SKU:U084 programming

    2
    0 Votes
    2 Posts
    2k Views
    H
    Here you find the information about this module: https://docs.m5stack.com/en/unit/hall According to the schematic it contains three A3144 Hall-sensors and a 74HC08 AND-Logic. The datasheet of the A3144 tells me that it has an open-collector output and the schematic that they are pulled up to 3.3V by resistors. So the function is: as long as all three sensors are not in a magnetic field that is higher than the level for switching (see datasheet), the AND gate output is HIGH. If one or more of the sensors are triggered by magnetic field, the output goes LOW. There is nothing to configure or program inside the module. The decission if the module fits to your project is up to you. By the way, if you plan to use a Arduino compatible controller it might be an option to use one that is based on ESP32. The controller already contains a Hall-Sensor. Just that you know: M5Stack does not make a mystery about the inside of their modules. You always find a schematic and all the datasheets that tells you everything about the hardware and its function. It is a big benefit if you learn to read and understand this informattion.
  • Stamp Pico connected to ESP32 Downloader on Mac M1 Pro, nothing happens

    8
    0 Votes
    8 Posts
    5k Views
    ajb2k3A
    @teastain When I started I had a 2012 MBP (still have it sat on the floor) but had to buy a 2022 M1 iMac for M5Stack writing . The device came recommended but I wouldn't be surprised if it was the stupid TB port.
  • Cardputer and drawJpgFile

    3
    0 Votes
    3 Posts
    3k Views
    W
    Hi, I created an issue in the M5GFX repository. Big kudos to @lovyan03 for providing a very fast answer and solution. For me the solution for an M5Stack CoreS3 is to add an include for <SD.h> #include <SD.h> #include <M5CoreS3.h> See M5GFX issue #79 Error: cannot declare variable 'file' to be of abstract type 'lgfx::v1::DataWrapperTfs::SDFS' for reference.
  • M5StackCore 2 V1.1 powerup automatically for connecting to a battery.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • An Augmented T-Lite Thermal Camera

    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • 360 Servo motor in fire

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Process of controlling the suction pump on myCobot280 in Python

    2
    2
    1 Votes
    2 Posts
    4k Views
    J
    When using "myCobot 280 Pi - 2023", the voltage adapter is 12V, not 8.4V. Also, I purchased on Amazon and the power connections where screwed in reverse. Is there anywhere I can find better specifications on this pump?
  • M5Piano Help please

    3
    0 Votes
    3 Posts
    2k Views
    ajb2k3A
    @flypeek No knowing anything about the arduino I just get errors.
  • coreink UIflow UI element show() API broken

    1
    2
    0 Votes
    1 Posts
    1k Views
    No one has replied