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. Development
  3. First node: nothing work

First node: nothing work

Scheduled Pinned Locked Moved Development
16 Posts 6 Posters 5.4k Views 2 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi everybody;

    This is my first post, and my first attempt to build some mysensors gateway and temperature node.

    First of all, this is what I use:

    • arduino nano
    • NRF24L01 with antenna
    • 1.4 library

    I have successfully created the serial usb gateway. When I start it, I can see on the debug output that the controller is online and ready to receive some date.

    Unfortunately, the sensor never works. I have the "feeling" he can't correctly initialize: nothing on the debug output. The "bad" seems to be : gw.begin(). I follow the source code and it seems he can't send the first broadcast message and it seems to "wait" indefinitely.
    To give more information, I can successfully load and start the controller sketch on the second device: so it seems not broken. I can successfully read a temperature from a one wire device. But, even the first exemple from mysensors.org don't work. What is really wired too is I can upload a new sketch to this arduino: the serial ouput seems always "full": I can only upload it when the arduino start.

    Do you have some idea please ?

    1 Reply Last reply
    0
    • hekH Online
      hekH Online
      hek
      Admin
      wrote on last edited by
      #2

      What does the debug output say in the Serial Monitor of the sensor?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Nothing....

        1 Reply Last reply
        0
        • hekH Online
          hekH Online
          hek
          Admin
          wrote on last edited by
          #4

          What baudrate did you set?

          http://www.mysensors.org/build/debug

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            115200

            It seems to work nicely using gateway sketchup with correctly debug information...

            1 Reply Last reply
            0
            • hekH Online
              hekH Online
              hek
              Admin
              wrote on last edited by
              #6

              Weird, try switching power supply/usb cable. You should get some output even if radio init fails.

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                I already try that without success.

                Using same cable with same arduino works like a charm for the gateway.

                1 Reply Last reply
                0
                • rvendrameR Offline
                  rvendrameR Offline
                  rvendrame
                  Hero Member
                  wrote on last edited by
                  #8

                  Do you get any output on serial monitor on node side?

                  Home Assistant / Vera Plus UI7
                  ESP8266 GW + mySensors 2.3.2
                  Alexa / Google Home

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #9

                    No, nothing.

                    1 Reply Last reply
                    0
                    • msamy.earthM Offline
                      msamy.earthM Offline
                      msamy.earth
                      wrote on last edited by
                      #10

                      Try to clear the EEPROM first, then re-upload your sketch.

                      1 Reply Last reply
                      0
                      • ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #11

                        I have already clear the EEPROM many times. No changes.

                        I have activate the DEBUG mode on the RF24_config.h file:

                          #define FAILURE_HANDLING
                          #define SERIAL_DEBUG
                        

                        I can now see some debug informations:

                        send: 255-255-255-255 s=255,c=3,
                        

                        And nothing more. Some kind of "failed broadcast" ?
                        Maybe, the gateway seems to never respond to this first broadcast; the gateway never receive it anyway.

                        1 Reply Last reply
                        0
                        • hekH Online
                          hekH Online
                          hek
                          Admin
                          wrote on last edited by
                          #12

                          Looks like it is dying in the middle of serial log output.

                          What happens if you try the same sketch on the working "serial-gateway"-Arduino you were talking about in the first post? You might have some faulty hardware there..

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            kalle
                            wrote on last edited by
                            #13

                            Is the NRF24 connected to externel 3.3V power or to the 3.3V from the Nano? The NRF24 antenna version has a higher power consumption as the version without antenna.

                            1 Reply Last reply
                            0
                            • ? Offline
                              ? Offline
                              A Former User
                              wrote on last edited by
                              #14

                              Same thing append if I try the serial sketch on the working "serial-gateway". If I try the gateway sktech on the "bad" arduino, the gateway seems to start.

                              The NRF24 is connected to the 3.3V out from the Arduino nano. I will try to use and external power supply; or maybe, I will buy the NRF24 without antena. Thanks for that suggestion.

                              1 Reply Last reply
                              0
                              • H Offline
                                H Offline
                                Harrdy
                                wrote on last edited by Harrdy
                                #15
                                • The NRF24 antenna version is:
                                  -- working current in transmit mode is 115mA
                                  -- working current in receiver mode is 45mA

                                For the NRF24 non antenna version i did'nt find any details of power consum. (only 1uA on Power down mode)

                                Arduino Nano:

                                • The total current from all the IO pins together is 200 mA max.
                                • The 3.3V output is capable of supplying 150 mA.
                                  -- Note - Any power drawn from the 3.3V rail has to go through the 5V rail. Therefore, if you have a 100 mA device on the 3.3V output, you need to also count it against the 5V total current.

                                The 5V output is much powerful on the Arduino nano. U can try to use a 5V to 3.3V stepdown regulator like AMS1117

                                1 Reply Last reply
                                0
                                • K Offline
                                  K Offline
                                  kalle
                                  wrote on last edited by
                                  #16

                                  Here are the specifications from the NRF24 without antenna

                                  http://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRF24L01#Specification

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


                                  15

                                  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