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

Categories

  • Firmware updates, Hardware Revisions, New Product info can be found here.

    75 Topics
    830 Posts
    M
    @AshleyW When I try to use this invite the Discord app on my phone crashes, when I try on a browser Discord says "Unable to accept this invite." Anyone else having an issue?
  • M5Stack Events

    8 Topics
    32 Posts
    C
    @crami25 I’ve been looking at the 4Relay Module with UIFlow as well. The main thing I’m trying to figure out is how the four relay channels are exposed in UIFlow and whether they can be controlled independently. It would also be useful to know if there are any limitations when switching multiple relays at the same time.
  • Wish for a feature that doesn't exist yet? this is the place to ask for it. we will collect all the requirements and enquiry's and who knows ... sometime wish might come true!

    229 Topics
    690 Posts
    S
    Hey there, I want to use M5burner to flash to the device (before publishing) so I can debug it and iterate. Did you take away that function? Can you create function so we can test on device before we publish? Thanks
  • Forum rules - Announcements - General chit chat (ESP-32, ESP-8266, IoT, Raspberry Pi etc...)

    983 Topics
    3k Posts
    R
    Hello everyone, I just got a CardPuter ADV and I love it, but cannot make it read a 16gb Verbatim microSD (it's a microSDHC card formatted with FAT32 that works fine on PC). Can you recommend some microSD cards that are known to be compatible with CardPuter? Thanks! A.
  • Core and Modules info.

    4k Topics
    14k Posts
    K
    Hello, I've been using CoreS3 from very recently, and I really enjoy the easyness :-). I am currently trying to develop a 3 step motor module that is capable of accelerating / decelerating each step motor (independantly). And I am facing an issue that I cannot solve with provided modules under UIFlow2. Let me paste my code : import gc, time import M5 from M5 import * from module import StepMotorDriverModule stepmotor = None current_speed = 500 max_speed = 900 min_speed = 400 b_increase = True b_direction = True def setup(): global stepmotor M5.begin() gc.collect() print("free RAM after boot:", gc.mem_free()) # ONE object only — it internally manages X, Y, Z stepmotor = StepMotorDriverModule( address=0x27, step_pin=(18, 6, 13), # STEP: X, Y, Z dir_pin=(17, 7, 0), # DIR : X, Y, Z ) gc.collect() print("free RAM after driver init:", gc.mem_free()) stepmotor.set_motor_state(StepMotorDriverModule.MOTOR_STATE_ENABLE) # global enable stepmotor.set_microstep(StepMotorDriverModule.STEP_FULL) # global microstep # Per-axis config (every call needs a motor_id) stepmotor.set_motor_direction(StepMotorDriverModule.MOTOR_X, 1) stepmotor.set_motor_pwm_freq(StepMotorDriverModule.MOTOR_X, 700) stepmotor.set_motor_direction(StepMotorDriverModule.MOTOR_Y, 0) stepmotor.set_motor_pwm_freq(StepMotorDriverModule.MOTOR_Y, 700) stepmotor.set_motor_direction(StepMotorDriverModule.MOTOR_Z, 1) stepmotor.set_motor_pwm_freq(StepMotorDriverModule.MOTOR_Z, 700) # Start all three together — do this once here, NOT repeatedly in loop() stepmotor.motor_control(StepMotorDriverModule.MOTOR_X, 0) stepmotor.motor_control(StepMotorDriverModule.MOTOR_Y, 0) stepmotor.motor_control(StepMotorDriverModule.MOTOR_Z, 1) def vary_motor_speed () : global current_speed global max_speed global min_speed global b_increase if current_speed <= max_speed and b_increase == True: current_speed += 10 else : b_increase = False current_speed -= 10 if current_speed < min_speed: b_increase = True current_speed = min_speed print(current_speed) stepmotor.set_motor_pwm_freq(StepMotorDriverModule.MOTOR_Z, current_speed) #stepmotor.set_motor_pwm_freq(StepMotorDriverModule.MOTOR_X, current_speed) def vary_motor_direction () : global b_direction if b_direction == True: b_direction = False stepmotor.set_motor_direction(StepMotorDriverModule.MOTOR_X, 1) stepmotor.set_motor_direction(StepMotorDriverModule.MOTOR_Y, 0) stepmotor.set_motor_direction(StepMotorDriverModule.MOTOR_Z, 1) else : b_direction = True stepmotor.set_motor_direction(StepMotorDriverModule.MOTOR_X, 0) stepmotor.set_motor_direction(StepMotorDriverModule.MOTOR_Y, 1) stepmotor.set_motor_direction(StepMotorDriverModule.MOTOR_Z, 0) def loop(): global stepmotor M5.update() vary_motor_speed () #vary_motor_direction () time.sleep_ms(200) if __name__ == "__main__": try: setup() while True: loop() except (Exception, KeyboardInterrupt) as e: from utility import print_error_msg print_error_msg(e) It is highly based on what can be found on the different forums and code samples. But I would like to add the acceleration phase and deceleration phase. When I run the code as is, I have 2 motors running constant speed and one runing accelerating and decelerating. And it works :-). But as soon as I uncomment the second stepmotor.set_motor_pwm_freq in function vary_motor_speed function, the CoreS3 hangs with an error that is : File "module/step_motor_driver.py", line 196, in set_motor_pwm_freq RuntimeError: out of PWM timers:4 Rebooting / Hard reset leads to same behavior. Would anybody encountered this ? What is a solution ? I can elaborate if needed, but for now, I cannot see a solution. Thanks for your time, reading and help. Regards. EDIT : I have found a working solution that is uninitialize the PWM each time the frequency is updated. It works. But in the Blockly approach of UIFlow2, the deinit function does not exists. Would be amazing to have unitary blocks to deinit the PWM and initialize them uniquely :-).
  • Projects Sharing.

    520 Topics
    2k Posts
    kariagepompadourK
    KariPom Web is now available! 🐰🌐 No M5Stack hardware needed — just try it in your browser! 🙏🎶 It reacts to audio from your browser in real time — speech makes KariPom lip-sync, while music brings the visualizers and lighting effects to life. Please try it with some music! That’s when KariPom really comes alive. 🎶 GitHub: https://github.com/kariagepompadour/KariPom-Web
  • This is the place to discuss driver issues, M5 burner troubleshooting, and development of software compatible with M5Stack

    3k Topics
    10k Posts
    D
    @DidiDidi129 said: 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! Did you resolve the problem? I have the same issue :(
  • 273 Topics
    592 Posts
    S
    M5Stack S3 已完成烧录小智语音助手,显示屏显示联网成功,待命状态,但是设备无反应。查看串口监测状态,日志中反复出现的 Display: System time is not set, tm_year: 70。