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. Ardunio n00b needs some help!

Ardunio n00b needs some help!

Scheduled Pinned Locked Moved Troubleshooting
29 Posts 9 Posters 8.7k 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.
  • M Offline
    M Offline
    mvader
    wrote on last edited by
    #1

    I am a network engineer and a pretty good scripter. so i'm fairly technically inclined.
    however I am new with Ardunio.
    I can solder, so i figured i would have a go at this project. but i can't seem to get off the ground
    I need a little push if someone wouldn't mind.

    I purchased.
    This Arduino uno r3 board
    http://www.ebay.com/itm/281548912985

    This Ardunio 5100 shield
    http://www.ebay.com/itm/121458024279

    And this Radio
    http://www.ebay.com/itm/121540572074

    I'm trying to just get the ethernet part of it working first.
    I have tried both codebender and the ardunio IDE
    The sketch verifies and it says it's uploads successfully.

    When i go to the device I hit reset on the enet shield and all the lights light up
    but i can not ping the device. the ardunio module vera also can not see it, but i'm obviously not surprised by that.

    The sketch i'm using is the example sketch at mysensors.org from the the enet gateway link.

    is there something I'm missing? have to change because of my board or shield?

    Thanks!
    Modify message

    E 1 Reply Last reply
    0
    • M mvader

      I am a network engineer and a pretty good scripter. so i'm fairly technically inclined.
      however I am new with Ardunio.
      I can solder, so i figured i would have a go at this project. but i can't seem to get off the ground
      I need a little push if someone wouldn't mind.

      I purchased.
      This Arduino uno r3 board
      http://www.ebay.com/itm/281548912985

      This Ardunio 5100 shield
      http://www.ebay.com/itm/121458024279

      And this Radio
      http://www.ebay.com/itm/121540572074

      I'm trying to just get the ethernet part of it working first.
      I have tried both codebender and the ardunio IDE
      The sketch verifies and it says it's uploads successfully.

      When i go to the device I hit reset on the enet shield and all the lights light up
      but i can not ping the device. the ardunio module vera also can not see it, but i'm obviously not surprised by that.

      The sketch i'm using is the example sketch at mysensors.org from the the enet gateway link.

      is there something I'm missing? have to change because of my board or shield?

      Thanks!
      Modify message

      E Offline
      E Offline
      ericvdb
      wrote on last edited by
      #2

      @mvader

      try moving the line

      gw.begin(RF24_PA_LEVEL_GW, RF24_CHANNEL, RF24_DATARATE, writeEthernet);
      

      between

      delay(1000);
      

      and

      server.begin();
      
      1 Reply Last reply
      0
      • M Offline
        M Offline
        mvader
        wrote on last edited by
        #3

        I will give that a try tonight when i get home.
        Thanks for the reply!!

        B 1 Reply Last reply
        0
        • M mvader

          I will give that a try tonight when i get home.
          Thanks for the reply!!

          B Offline
          B Offline
          boozz
          wrote on last edited by
          #4

          @mvader Could it be that the sketch freezes as you probably may not have used softspi?
          In the Ethernet sketch you'll find the info were to enable softspi.
          Both the radio and the ethernet shield are not able to share the hardware spi. Your ethernet shield keeps blinking. Try to monitor the gateway via serial. You should at least see the message that the gateway started.

          Succes!

          Boozz

          M 1 Reply Last reply
          0
          • B boozz

            @mvader Could it be that the sketch freezes as you probably may not have used softspi?
            In the Ethernet sketch you'll find the info were to enable softspi.
            Both the radio and the ethernet shield are not able to share the hardware spi. Your ethernet shield keeps blinking. Try to monitor the gateway via serial. You should at least see the message that the gateway started.

            Succes!

            Boozz

            M Offline
            M Offline
            mvader
            wrote on last edited by
            #5

            @boozz said:

            @mvader Could it be that the sketch freezes as you probably may not have used softspi?
            In the Ethernet sketch you'll find the info were to enable softspi.
            Both the radio and the ethernet shield are not able to share the hardware spi. Your ethernet shield keeps blinking. Try to monitor the gateway via serial. You should at least see the message that the gateway started.

            Succes!

            Boozz

            is that something (monitoring) I can do with the aurdunio ide software?
            or do i need something else? My board has a micro usb port and i do have the correct drivers installed in windows.
            Thanks

            B 1 Reply Last reply
            0
            • M mvader

              @boozz said:

              @mvader Could it be that the sketch freezes as you probably may not have used softspi?
              In the Ethernet sketch you'll find the info were to enable softspi.
              Both the radio and the ethernet shield are not able to share the hardware spi. Your ethernet shield keeps blinking. Try to monitor the gateway via serial. You should at least see the message that the gateway started.

              Succes!

              Boozz

              is that something (monitoring) I can do with the aurdunio ide software?
              or do i need something else? My board has a micro usb port and i do have the correct drivers installed in windows.
              Thanks

              B Offline
              B Offline
              boozz
              wrote on last edited by
              #6

              @mvader yes it's in the Arduino IDE. See right above for the button to open the serial monitor. Make sure you select the right baudrate once the monitor has opened. Should be 115.200 by default I believe.

              BR
              Boozz

              M 1 Reply Last reply
              0
              • B boozz

                @mvader yes it's in the Arduino IDE. See right above for the button to open the serial monitor. Make sure you select the right baudrate once the monitor has opened. Should be 115.200 by default I believe.

                BR
                Boozz

                M Offline
                M Offline
                mvader
                wrote on last edited by mvader
                #7

                @boozz said:

                @mvader yes it's in the Arduino IDE. See right above for the button to open the serial monitor. Make sure you select the right baudrate once the monitor has opened. Should be 115.200 by default I believe.

                BR
                Boozz

                the port speed seemed to do the trick, thanks for that.
                sadly, i keep getting the
                0;0;3;0;9;check wires message
                I've removed the radio and the ethernet shield, recompiled and re-uploaded many times.
                still get the same message. even with the just the uno.
                the power is coming from my laptop usb port, I verified i'm seeing 3.3 and 5v on the uno
                using both code bender and arduino ide software, i get no errors during compile or upload.
                I also did try to edit and enable the softspi include file.
                again recompile/re-up
                still the same 0;0;3;0;9;check wires

                any suggestions?

                thanks!

                edit: just to make sure my process and equipment worked.
                i uploaded the "simple web server" sketch and it did indeed work
                so the board and shield seem to be good. I'm just having a problem getting the gateway code to work with it.

                E S 2 Replies Last reply
                0
                • M mvader

                  @boozz said:

                  @mvader yes it's in the Arduino IDE. See right above for the button to open the serial monitor. Make sure you select the right baudrate once the monitor has opened. Should be 115.200 by default I believe.

                  BR
                  Boozz

                  the port speed seemed to do the trick, thanks for that.
                  sadly, i keep getting the
                  0;0;3;0;9;check wires message
                  I've removed the radio and the ethernet shield, recompiled and re-uploaded many times.
                  still get the same message. even with the just the uno.
                  the power is coming from my laptop usb port, I verified i'm seeing 3.3 and 5v on the uno
                  using both code bender and arduino ide software, i get no errors during compile or upload.
                  I also did try to edit and enable the softspi include file.
                  again recompile/re-up
                  still the same 0;0;3;0;9;check wires

                  any suggestions?

                  thanks!

                  edit: just to make sure my process and equipment worked.
                  i uploaded the "simple web server" sketch and it did indeed work
                  so the board and shield seem to be good. I'm just having a problem getting the gateway code to work with it.

                  E Offline
                  E Offline
                  ericvdb
                  wrote on last edited by
                  #8

                  @mvader
                  Did you enabled SOFTSPI in RF24_config.h?

                  S M 2 Replies Last reply
                  0
                  • E ericvdb

                    @mvader
                    Did you enabled SOFTSPI in RF24_config.h?

                    S Offline
                    S Offline
                    Squint
                    wrote on last edited by Squint
                    #9

                    @ericvdb If you enable SOFTSPI in the MySensors Library, does that also effect the Sensors or only the Gateway code? Is there anything different you would need to do for the Sensors?

                    hekH 1 Reply Last reply
                    0
                    • M mvader

                      @boozz said:

                      @mvader yes it's in the Arduino IDE. See right above for the button to open the serial monitor. Make sure you select the right baudrate once the monitor has opened. Should be 115.200 by default I believe.

                      BR
                      Boozz

                      the port speed seemed to do the trick, thanks for that.
                      sadly, i keep getting the
                      0;0;3;0;9;check wires message
                      I've removed the radio and the ethernet shield, recompiled and re-uploaded many times.
                      still get the same message. even with the just the uno.
                      the power is coming from my laptop usb port, I verified i'm seeing 3.3 and 5v on the uno
                      using both code bender and arduino ide software, i get no errors during compile or upload.
                      I also did try to edit and enable the softspi include file.
                      again recompile/re-up
                      still the same 0;0;3;0;9;check wires

                      any suggestions?

                      thanks!

                      edit: just to make sure my process and equipment worked.
                      i uploaded the "simple web server" sketch and it did indeed work
                      so the board and shield seem to be good. I'm just having a problem getting the gateway code to work with it.

                      S Offline
                      S Offline
                      Squint
                      wrote on last edited by
                      #10

                      @mvader said:

                      0;0;3;0;9;check wires

                      FYI: 0;0;3;0;9;check wires means that the wireless module cannot be initialized. When it starts up, it does a validation check, if that check fails, you will receive the "check wires" message.

                      This means you either have the module wired incorrectly or you need to enable SOFTSPI as @ericvdb mentions.

                      I just went through the exact same scenario and after about 2 days of tweaking, I finally got a "Started!" message.

                      Hang in there, you'll get it. :)

                      M 1 Reply Last reply
                      1
                      • S Squint

                        @ericvdb If you enable SOFTSPI in the MySensors Library, does that also effect the Sensors or only the Gateway code? Is there anything different you would need to do for the Sensors?

                        hekH Online
                        hekH Online
                        hek
                        Admin
                        wrote on last edited by
                        #11

                        @Squint said:

                        @ericvdb If you enable SOFTSPI in the MySensors Library, does that also effect the Sensors or only the Gateway code? Is there anything different you would need to do for the Sensors?

                        SOFTSPI is a way to emulate SPI interface on some of the other digital inputs. This is a last resort thing used when one module can't behave correctly on the inteface (normally several devices can co-exists).

                        It only affects the code you compile and upload (gateway in you case). You should change code back when gateway has been created unless you want to run SOFTSPI on your sensors as well.

                        1 Reply Last reply
                        0
                        • S Squint

                          @mvader said:

                          0;0;3;0;9;check wires

                          FYI: 0;0;3;0;9;check wires means that the wireless module cannot be initialized. When it starts up, it does a validation check, if that check fails, you will receive the "check wires" message.

                          This means you either have the module wired incorrectly or you need to enable SOFTSPI as @ericvdb mentions.

                          I just went through the exact same scenario and after about 2 days of tweaking, I finally got a "Started!" message.

                          Hang in there, you'll get it. :)

                          M Offline
                          M Offline
                          mvader
                          wrote on last edited by
                          #12

                          @Squint said:

                          @mvader said:

                          0;0;3;0;9;check wires

                          FYI: 0;0;3;0;9;check wires means that the wireless module cannot be initialized. When it starts up, it does a validation check, if that check fails, you will receive the "check wires" message.

                          This means you either have the module wired incorrectly or you need to enable SOFTSPI as @ericvdb mentions.

                          I just went through the exact same scenario and after about 2 days of tweaking, I finally got a "Started!" message.

                          Hang in there, you'll get it. :)

                          Very helpful. thank you for the info!!

                          1 Reply Last reply
                          0
                          • E ericvdb

                            @mvader
                            Did you enabled SOFTSPI in RF24_config.h?

                            M Offline
                            M Offline
                            mvader
                            wrote on last edited by
                            #13

                            @ericvdb said:

                            @mvader
                            Did you enabled SOFTSPI in RF24_config.h?

                            I did.

                            I'm assuming that the wireless card is just wired in wrong.
                            Do you happen to know what file the pins are defined in?

                            Appreciate all the responses and help.
                            Getting the simple web server up and running was a good feeling. at least i'm on the right path (& have working hardware). I can move forward with the gateway...

                            B 1 Reply Last reply
                            0
                            • M mvader

                              @ericvdb said:

                              @mvader
                              Did you enabled SOFTSPI in RF24_config.h?

                              I did.

                              I'm assuming that the wireless card is just wired in wrong.
                              Do you happen to know what file the pins are defined in?

                              Appreciate all the responses and help.
                              Getting the simple web server up and running was a good feeling. at least i'm on the right path (& have working hardware). I can move forward with the gateway...

                              B Offline
                              B Offline
                              boozz
                              wrote on last edited by
                              #14

                              @mvader :

                              By wireless card you mean the radio (nrf24l01+) i guess...

                              see here for the wiring.

                              BR,

                              Boozz

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mvader
                                wrote on last edited by
                                #15

                                Just wanted to report back.
                                I finally got the gateway working.
                                I had my wires backwards.
                                the screen shots show boards with white squares around each pin
                                but my board had no white on it what so ever.
                                so my guess at what was pin 1 (ground)
                                turned out to be wrong.
                                I had to view pics of the boards close up and then i realized my mistake.
                                so step 1 - make the gateway work - completed!

                                E 1 Reply Last reply
                                0
                                • M mvader

                                  Just wanted to report back.
                                  I finally got the gateway working.
                                  I had my wires backwards.
                                  the screen shots show boards with white squares around each pin
                                  but my board had no white on it what so ever.
                                  so my guess at what was pin 1 (ground)
                                  turned out to be wrong.
                                  I had to view pics of the boards close up and then i realized my mistake.
                                  so step 1 - make the gateway work - completed!

                                  E Offline
                                  E Offline
                                  ewgor
                                  wrote on last edited by
                                  #16

                                  @mvader can you please tell us how did u solved with this message 0;0;3;0;9;check wires? i get it when i try the SerialGateway on both Arduinos i have, Mega and Uno! What wires are wrong when only Arduino is connected to my laptop with the USB cable?
                                  Can you please explain more?
                                  Thanks!

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

                                    The "check wires" means that arduino can't communicate with nRF24L01+ radio.

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

                                    E 1 Reply Last reply
                                    0
                                    • E ewgor

                                      @mvader can you please tell us how did u solved with this message 0;0;3;0;9;check wires? i get it when i try the SerialGateway on both Arduinos i have, Mega and Uno! What wires are wrong when only Arduino is connected to my laptop with the USB cable?
                                      Can you please explain more?
                                      Thanks!

                                      M Offline
                                      M Offline
                                      mvader
                                      wrote on last edited by
                                      #18

                                      @ewgor said:

                                      @mvader can you please tell us how did u solved with this message 0;0;3;0;9;check wires? i get it when i try the SerialGateway on both Arduinos i have, Mega and Uno! What wires are wrong when only Arduino is connected to my laptop with the USB cable?
                                      Can you please explain more?
                                      Thanks!

                                      I had my wires backwards. (they were not hooked up correctly)
                                      I would suggest verify your soldering work is good and that that wires are in the correct spot. could be a bad / burned up board as well. try switching radios and or ardunios.

                                      1 Reply Last reply
                                      0
                                      • rvendrameR rvendrame

                                        The "check wires" means that arduino can't communicate with nRF24L01+ radio.

                                        E Offline
                                        E Offline
                                        ewgor
                                        wrote on last edited by
                                        #19

                                        @rvendrame i dont have any nRF24L01+ radio in my house, i just want to try this SerialGateway between my laptop and my Arduino! What wires to check, the USB cable? this is the only cable i have!
                                        Do i have to buy this device RF24L01 in order to see the SerialGateway working between my PC and Arduino?

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

                                          The mySensors runs on a radio mesh network:

                                          http://www.mysensors.org/about/components

                                          You need at least one gateway and one sensor/actuator node. Both with radios. You also need one controller (or computer) to process the messages.

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

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


                                          21

                                          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