Trouble with SK6812 LED Strip and M5Stack CoreS3 using PORT A
-
-
Hello Felix,
Thank you for your response. I apologize for any confusion. I tried using GPIO2 and GPIO1 for the Neopixel_PIN, but the LED strip still doesn't light up. I just misunderstood what I was posting about PINs.
Are there any possible problems or trial points?Thanks for your assistance,
Iketaki -
Hello @iketaki
did you check if there actually is 5 V present on PortA with a multimeter?
Thanks
Felix -
Thanks @felmue ,
I managed to light up the LED once. The issue seemed to be with the power supply, as you suggested. Thank you.
Here's what I did:
- I didn’t have a multimeter, so I couldn’t directly check the 5V.
- I rechecked the CoreS3 documentation and found details on its power management: https://docs.m5stack.com/en/core/CoreS3
- Connected CoreS3 to my PC, re-burned UserDemo using M5Burner, and confirmed power output from the PORT.
- I re-burned my program and the LED lit up.
Additionally:
- Unplugging the USB cable while the LED was on turned it off. Reconnecting didn't light it up again.
- Disconnecting and reconnecting the LED cable while powered lit it up. However, after unplugging the LED cable, rebooting the M5Stack, and then reconnecting the LED cable, the LED didn't light up.
I think I need more code related to power management.
-
Hello @iketaki
here is what I found: The 5 V / BUS_OUT / Groove port is not powered properly. (It might be if you run UIFlow firmware before your own code, but fails after unplugging / reconnecting USB - like you've noticed as well.)
Anyhow, I've created a pull-request which adds some power helper functions.
Copying my modifications to your local copy of the M5CoreS3 library and adding
set_BOOST_BUS_OUT_EN(true)
into yoursetup()
should fix the issue.Thanks
Felix -
Hello @felmue
Your PR worked in my environment.
I have added code as follows.
M5.begin(); M5.Axp.set_BOOST_BUS_OUT_EN(true);
Thank you!
-
Hello @iketaki
you are welcome - I am glad to hear it worked for you. And thank you for letting me know.
Thanks
Felix -
I have the same setup and I can't get it to work at all.
There's no neopixel stuff in UIFlow2 and the CoreS3 doesn't work with UIFlow. Is it really just a power problem? If I connect a better 5v supply will it work? How can I get these to work? They don't seem compatible. -
Hello @nefasto
have you tried the RGB blocks in UIFlow2? You can find them under Hardware.
An example can be found in the UIFlow2 Project Zone: M5CoreS3_RGBUnit_PortA_UIFlow2.1.8
Thanks
Felix -
@nefasto which end of the cable did you plug into the port?
IN or OUT?