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 -
NODs stop responding, but ping works.
Troubleshooting • 8 Mar 2025, 19:47 • Marcin 8 Mar 2025, 19:47 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47 -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 13 days ago -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 22 days ago • bocalexandru 20 days ago