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 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 Offline
              hekH Offline
              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
                                • E Offline
                                  E Offline
                                  ewgor
                                  wrote on last edited by
                                  #21

                                  OMG! so you say i cannot make this work without having this radio network ?
                                  this is so wrong, normally you should take it step by step as for example first to make a network only between a pc or a RPI and an Arduino and some sensors, actuators and later if needed to expand this network adding another arduino or so, i don't understand anymore.
                                  i all tutorials i saw, they were testing only with an Arduino on connected to a PC!

                                  I saw another post here about the EthernetGateway and they were speaking about changing some no of MISO, MOSI and SCK pins in the RF24_config.h file. I did this, but no result :(((
                                  I don't understand anymore ...

                                  M 1 Reply Last reply
                                  0
                                  • E ewgor

                                    OMG! so you say i cannot make this work without having this radio network ?
                                    this is so wrong, normally you should take it step by step as for example first to make a network only between a pc or a RPI and an Arduino and some sensors, actuators and later if needed to expand this network adding another arduino or so, i don't understand anymore.
                                    i all tutorials i saw, they were testing only with an Arduino on connected to a PC!

                                    I saw another post here about the EthernetGateway and they were speaking about changing some no of MISO, MOSI and SCK pins in the RF24_config.h file. I did this, but no result :(((
                                    I don't understand anymore ...

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

                                    @ewgor said:

                                    OMG! so you say i cannot make this work without having this radio network ?
                                    this is so wrong, normally you should take it step by step as for example first to make a network only between a pc or a RPI and an Arduino and some sensors, actuators and later if needed to expand this network adding another arduino or so, i don't understand anymore.
                                    i all tutorials i saw, they were testing only with an Arduino on connected to a PC!

                                    I saw another post here about the EthernetGateway and they were speaking about changing some no of MISO, MOSI and SCK pins in the RF24_config.h file. I did this, but no result :(((
                                    I don't understand anymore ...

                                    respectfully you will need to do some more reading.
                                    the radios are very cheap and fairly easy to install. you don't need an entire network of them to get started, you will need to build a gateway (arduino and radio) and then build a sensor (with radio) and that is it to get started.

                                    E 1 Reply Last reply
                                    0
                                    • M mvader

                                      @ewgor said:

                                      OMG! so you say i cannot make this work without having this radio network ?
                                      this is so wrong, normally you should take it step by step as for example first to make a network only between a pc or a RPI and an Arduino and some sensors, actuators and later if needed to expand this network adding another arduino or so, i don't understand anymore.
                                      i all tutorials i saw, they were testing only with an Arduino on connected to a PC!

                                      I saw another post here about the EthernetGateway and they were speaking about changing some no of MISO, MOSI and SCK pins in the RF24_config.h file. I did this, but no result :(((
                                      I don't understand anymore ...

                                      respectfully you will need to do some more reading.
                                      the radios are very cheap and fairly easy to install. you don't need an entire network of them to get started, you will need to build a gateway (arduino and radio) and then build a sensor (with radio) and that is it to get started.

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

                                      @mvader respectfully i read a lot of articles and a lot of post on this site and not only ... i just didn't understand that in order to make a serial link between Arduino board and my PC using Mysensors and SerialGateway i need to use this radio whatever device, the price is not why i'm concern, the principle of this solution is.
                                      Is there any other way to make a connection through serial between Arduino and Openhab server without using the radio module? i mean really, i don't understand (generally speaking) why to use a radio module if you don't need it at this point! i can connect any sensor directly to Arduino
                                      I have an 433 Mhz RF link kit, may i use this to make it work? if not, i need to choose other way.
                                      Using the Ethernet Gateway do i still need the radio module?

                                      My last chance it seems to be than a Mqtt connection ...

                                      1 Reply Last reply
                                      0
                                      • tbowmoT Offline
                                        tbowmoT Offline
                                        tbowmo
                                        Admin
                                        wrote on last edited by
                                        #24

                                        @ewgor

                                        right on the frontpage of the mysensors page
                                        --- quote ---
                                        This is where all the fun happens!

                                        Learn how to create your own low cost wireless sensors and connect them to the world.
                                        --- end of quote ---

                                        This implies that you need a wireless radio network. Not to communicate with the arduino that you connect to the computer. But to speak with all your homebuild sensors on the sensor network that mysensors is all about. For this we use NRF24L01+ radio modules, together with arduino platform.

                                        So (a suggestion) head over to the mysensors.org page, and read the stuff there to get a better understanding about what this project is about.

                                        E 1 Reply Last reply
                                        0
                                        • tbowmoT tbowmo

                                          @ewgor

                                          right on the frontpage of the mysensors page
                                          --- quote ---
                                          This is where all the fun happens!

                                          Learn how to create your own low cost wireless sensors and connect them to the world.
                                          --- end of quote ---

                                          This implies that you need a wireless radio network. Not to communicate with the arduino that you connect to the computer. But to speak with all your homebuild sensors on the sensor network that mysensors is all about. For this we use NRF24L01+ radio modules, together with arduino platform.

                                          So (a suggestion) head over to the mysensors.org page, and read the stuff there to get a better understanding about what this project is about.

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

                                          @tbowmo i did understand about the principle of Mysensors. I posted already on some other topic here, i'm waiting for a couple of nRF24L01 in a few days (hopefully tomorrow i'll receive them) and i'll start testing.
                                          Thanks for your answer!

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


                                          11

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 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