Trouble controlling Neopixels with mysensors library installed.
-
I have a little night light project I'm working on that uses a pro mini, of which I had a working prototype running with the Neopixels sans MySensor.h. Today I added the NRF transceiver and libraries + configured the sketch for my sensors. Looking at the serial terminal of my gateway I see that data is coming in from the night light sensors. However the Neopixels no longer start up right away and when they do show, do not update rapidly like before. Eventually they stop working all together.
Did I run out of memory for managing the state of my Neopixels or is there something else going on where MySensors would be blocking the loop?
github library of my current code:
https://github.com/destos/night_light
-
Looks like you send temp every second. What happens if you increase this a bit?
-
@hek When I increase it there is still the same lack of neopixel activity between messages. I put some debugger print statements around my interval functions, and it looks like calling gw.send isn't asynchronous and halts the execution until the message is sent preventing anything else from updating. Including the Neopixels and my brightness tweening.
Thanks again for your help and project.
-
did you ever get this working? I have the same with neopixels, using either the adafruit library or the fastled library. As soon as i include the mysensors library the leds no longer change.
-
@Shiny I use Ws2812 all over the place in the MySensors Dollhouse setup: https://www.mysensors.org/build/dollhouse
Maybe you can get some hints from there.
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 19 Mar 2025, 21:00 • bocalexandru 21 Mar 2025, 12:05 -
Ghost Child
Troubleshooting • 15 Mar 2025, 07:44 • FcNanoLed 18 Mar 2025, 18:36 -
Getting system time from the controller
Troubleshooting • 27 Feb 2025, 01:39 • dpcons 3 Mar 2025, 01:00 -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58