🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Atom S3 Lite not working with PWM Kit

    Atom
    2
    5
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mchott
      last edited by mchott

      Hi there, I have an Atom Lite shipped with the PWM Kit and this is working well for a while. I use the Pin 22 for controlling the output and I use the UIFlow to program the device. Because of the missing support of BLE with UIFlow and the missing support for UIFlow2, I want to start the same thing with an Atom S3 Lite. It´s marked as compatible and I use the Pin 5 for controlling the output. BUT I can just use an single step flow to just init PWM with 50% duty cycle and it´s just flickering for short and nothing more.

      What did I wrong?

      If I use the same Atom S3 Lite with this software to directly control an FAN with PWM input, everything worked well.

      Btw .. I tested this on two different Atom S3 Lite and two different PWM Kit with the same behavior. But with an Atom S3 and the same flow, it worked fine.

      1 Reply Last reply Reply Quote 0
      • M
        mchott
        last edited by

        Just to make clear .. the following code is only working with the Atome S3 and NOT with the Atom S3 Lite. Both in combination with the PWM Kit.

        import os, sys, io
        import M5
        from M5 import *
        from hardware import *
        pwm5 = None
        def setup():
        global pwm5

        pwm5 = PWM(Pin(5), freq=20000, duty=512)

        M5.begin()
        def loop():
        global pwm5
        M5.update()
        if __ name__ == '__ main__':
        try:
        setup()
        while True:
        loop()
        except (Exception, KeyboardInterrupt) as e:
        try:
        from utility import print_error_msg
        print_error_msg(e)
        except ImportError:
        print("please update to latest firmware")

        1 Reply Last reply Reply Quote 0
        • M
          mchott
          last edited by

          I tried now several devices and something is special with this combination. Sometimes it´s working for several seconds and then there seems to be a power cycle and it´s starting again. But Atom S3 Lite + PWM Kit never works well for a while. Super frustrating .. nobody else with this behavior?

          1 Reply Last reply Reply Quote 0
          • M
            mchott
            last edited by mchott

            One more try .. I connected only the PWM pin 5 from the Atom with the PWM kit and powered the Atom via USB with no output. But from the layout it should be enough to have only the PWM signal?

            And one more thing. If I power the Atom S3 via an USB cable it´s working. Can this be an powering issue?

            If sombody want´s to test it .. https://uiflow2.m5stack.com/?pkey=c091fb79f13c4a1f956c407157c7e8fe .. Atom S3 Lite on PWM kit

            1 Reply Last reply Reply Quote 0
            • C
              chrismostoller
              last edited by

              In case someone else runs across this. I had a very similar issue with the Atom S3 Lite not working with the PWM Kit. There is a voltage select 0ohm resister link for the PWM driver. It's labeled 5v and 3v3 just above header pin 21. As shipped the 3v3 is bridged to the center pin. This powers the PWM driver chip off the 3.3v pin of the atomS3. This causes lockups and very intermittent wifi. I removed the resister and bridged 5v to the center pin. All issues went away and everything works normally.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post