Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Trouble controlling Neopixels with mysensors library installed.

Trouble controlling Neopixels with mysensors library installed.

Scheduled Pinned Locked Moved Troubleshooting
neopixel
5 Posts 4 Posters 2.2k Views 3 Watching
  • 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.
  • D Offline
    D Offline
    destos
    wrote on last edited by
    #1

    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

    hekH 1 Reply Last reply
    0
    • D destos

      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

      hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by hek
      #2

      @destos

      Looks like you send temp every second. What happens if you increase this a bit?

      D 1 Reply Last reply
      0
      • hekH hek

        @destos

        Looks like you send temp every second. What happens if you increase this a bit?

        D Offline
        D Offline
        destos
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • ShinyS Offline
          ShinyS Offline
          Shiny
          Hardware Contributor
          wrote on last edited by
          #4

          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.

          YveauxY 1 Reply Last reply
          0
          • ShinyS Shiny

            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.

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #5

            @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.

            http://yveaux.blogspot.nl

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            23

            Online

            11.7k

            Users

            11.2k

            Topics

            113.0k

            Posts


            Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular