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. General Discussion
  3. What does the LED blinking (pin 13) mean?

What does the LED blinking (pin 13) mean?

Scheduled Pinned Locked Moved General Discussion
7 Posts 4 Posters 6.1k Views 5 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.
  • E Offline
    E Offline
    Erik Forsberg
    wrote on last edited by
    #1

    I've managed to put together a couple of mysensors with arduino pro mini. I notice that when they startup, they do some blinking with the built-in LED (the one connected to pin 13).

    I tried to find where in the code this happens, but failed. Is there an explanation to this blinking, i.e. any patterns that indicate success or failure connecting to network, etc?

    1 Reply Last reply
    0
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      The radio is connected to pin 13 (see http://www.mysensors.org/build/connect_radio)
      According to the Arduino SPI page:
      SCK (Serial Clock) - The clock pulses which synchronize data transmission generated by the master.

      So the led is lit whenever the Arduino is talking to the radio.

      1 Reply Last reply
      1
      • G Offline
        G Offline
        georgep56
        wrote on last edited by
        #3

        I've built 2 sensors so far, one a relay actuator using an arduino pro mini and the other with temperature and humidity sensor using an Arduino Nano. On the nano the Pin13 LED just flickers occasionally (I guess when the radio transmits) but on the Pro Mini the LED is permanently on, with just an odd visible flicker occasionally.
        Both nodes work fine, so I'm intrigued as to why the LEDs should behave differently?

        1 Reply Last reply
        0
        • mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          The only reason I can think of is if you enabled MY_WITH_LEDS_BLINKING_INVERSE when you compiled the sketch for the pro mini. But that's probably not something you'd do by mistake :)
          https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/MyConfig.h#L136

          1 Reply Last reply
          0
          • T Offline
            T Offline
            TimO
            Hero Member
            wrote on last edited by
            #5

            I'd guess that the radio on the relay node is activated all the time, the radio is not brought to sleep.

            I suppose the temp / humidity node on the other side sleeps most of the time so the radio is in sleep mode and needs no clock.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              georgep56
              wrote on last edited by
              #6

              @mfalkvidd These are not extra LEDs added to monitor tx/rx/err (which is what I believe that the MY_WITH_LEDS... compiler directive controls), this is the inbuilt pin13 LED on the arduino board. I do wonder why the library has been written to use this pin as in a battery powered configuration any extra LED current will impact on battery life.
              @TimO I agree - the actuator has to listen all the time for incoming messages, whereas the sensor can (and does) sleep for most of the time.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                georgep56
                wrote on last edited by
                #7

                @TimO To confirm this I just 'rebuilt' my actuator node as the example humidity sensor (swapped a few links on my breadboard) and now the Pin13 LED behaves just like the other sensor node, mostly off with just a tiny flicker on each transmit.

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


                12

                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