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. First Sensor project, Steep learning curve.

First Sensor project, Steep learning curve.

Scheduled Pinned Locked Moved General Discussion
15 Posts 3 Posters 3.1k 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.
  • lozzer65L lozzer65

    Hi All, this is my first post, so before I start I would just like to say thank you to the mysensors team. Once I get this working I am sure it will be a great system.
    I have built a wifi gateway as per instructions, which works with HA and a local sensor, but not with a radio node. Radio node sends but gets no reply from gateway. Is there an easy way to test the NRF24LO1+ transceivers. Thanks Laurie

    mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by mfalkvidd
    #2

    @lozzer65 welcome!

    https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help has information on common problems and how to read the debug log to figure out what is happening (troubleshooting without debug log is almost impossible for anyone). Best is probably to start there.

    You can also use the pingpong sketch to eliminate risk for sketch errors.

    1 Reply Last reply
    0
    • lozzer65L Offline
      lozzer65L Offline
      lozzer65
      wrote on last edited by
      #3

      Thanks for the reply. I have been through the fault finding. added capacitors forst 4.7s then changed for 22's. Put Transceivers on seperate supply. Still no change. Now trying pingpong but will not compile on nanoV3 or nodemcu 0.9. both error on #include <MySensor.h> What am I missing here

      mfalkviddM 1 Reply Last reply
      0
      • lozzer65L lozzer65

        Thanks for the reply. I have been through the fault finding. added capacitors forst 4.7s then changed for 22's. Put Transceivers on seperate supply. Still no change. Now trying pingpong but will not compile on nanoV3 or nodemcu 0.9. both error on #include <MySensor.h> What am I missing here

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by mfalkvidd
        #4

        @lozzer65 the include should be MySensors.h Do you have any idea why the s is missing in your sketch? It is present in the sketch I linked.

        It would help a lot of you could post the debug logs for your gateway and node.

        1 Reply Last reply
        0
        • lozzer65L Offline
          lozzer65L Offline
          lozzer65
          wrote on last edited by
          #5

          0_1483628888879_Compile error.txt

          Not sure what happened there. Anyway installed on Nano V3 ok, but on nodemcu 0.9 would not compile with this call of overloaded 'set(long unsigned int)' is ambiguous. I have attached full compile error report generated

          mfalkviddM 1 Reply Last reply
          0
          • lozzer65L lozzer65

            0_1483628888879_Compile error.txt

            Not sure what happened there. Anyway installed on Nano V3 ok, but on nodemcu 0.9 would not compile with this call of overloaded 'set(long unsigned int)' is ambiguous. I have attached full compile error report generated

            mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by
            #6

            @lozzer65 seems like no-one has tested the pingpong sketch on esp8266 with MySensors 2.1. It might be some work to get that sketch in proper condition u fortunately.

            The "ambigous" error should be solved by changing

            response.set( millis() );
            

            to

            response.set((uint32_t) millis() );
            

            The eeprom error I am a bit unsure about. Maybe it is easier to start with the debug output of the node and the gateway with the sketches you used for your first post.

            1 Reply Last reply
            0
            • lozzer65L Offline
              lozzer65L Offline
              lozzer65
              wrote on last edited by
              #7

              Thanks again. . I want to go right back to basics here. I need to prove the hardware.
              Can someone confirm the connections to a Nano V3 board and also to a Nodemcu 0.9. Having researched this it looks like different libraries have different pinouts. Not sure which one mysensors use. Also I have 22 microF caps. Is this right on the supply.

              mfalkviddM 1 Reply Last reply
              0
              • lozzer65L lozzer65

                Thanks again. . I want to go right back to basics here. I need to prove the hardware.
                Can someone confirm the connections to a Nano V3 board and also to a Nodemcu 0.9. Having researched this it looks like different libraries have different pinouts. Not sure which one mysensors use. Also I have 22 microF caps. Is this right on the supply.

                mfalkviddM Offline
                mfalkviddM Offline
                mfalkvidd
                Mod
                wrote on last edited by
                #8

                @lozzer65 the wiring recommended by MySensors can be found at https://www.mysensors.org/build/connect_radio for Nano and https://www.mysensors.org/build/esp8266_gateway for Nocemcu/esp8266.

                4.7-100uF cap as close to the radio as possible is what most people use. There is no consensus on what size if "optimal".

                mfalkviddM 1 Reply Last reply
                0
                • mfalkviddM mfalkvidd

                  @lozzer65 the wiring recommended by MySensors can be found at https://www.mysensors.org/build/connect_radio for Nano and https://www.mysensors.org/build/esp8266_gateway for Nocemcu/esp8266.

                  4.7-100uF cap as close to the radio as possible is what most people use. There is no consensus on what size if "optimal".

                  mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by
                  #9

                  I loaded up the pingpong skech on my computer. I think you need to change

                  eeprom_write_byte((uint8_t*)EEPROM_NODE_ID_ADDRESS, (byte)nodeID);
                  

                  to

                  hwWriteConfig(EEPROM_NODE_ID_ADDRESS, (byte)nodeID);
                  

                  You are very welcome to try this and report back. If the change is correct, I'll submit a pull request to update the example.

                  1 Reply Last reply
                  0
                  • lozzer65L Offline
                    lozzer65L Offline
                    lozzer65
                    wrote on last edited by
                    #10

                    Hi mfalkvidd I really appreciate your time with this. Really strange whats happening here. I have loaded blink in both nano and Nodemcu. Both work. Modifications above compile and upload, but when looking at serial it looks like old sketches running. NodeMCU shows connection to my wifi for example. IDE says it loaded. Very frustrating.

                    1 Reply Last reply
                    0
                    • lozzer65L Offline
                      lozzer65L Offline
                      lozzer65
                      wrote on last edited by
                      #11

                      Ok I have proven radios work, but not on the NodeMCU. I have put all gateway code back in and sensor code. I have attached as much information as I can. Anyone that can help would be much appreciated. Please see read me first file for extra details. I have run out of ideas, after 7 days of trying to resolve. Thanks to anyone's help6_1483727101339_serial sent from sensor.txt 5_1483727101339_serial from nodemcu 0.9.txt 4_1483727101339_sensor sketch nano V3.txt 3_1483727101338_PLEASE READ FIRST.txt 2_1483727101338_Nodemcu 0.9 eps8266 sketch.txt 1_1483727101338_mysensors_json in home assistant.txt 0_1483727101337_Home assistant log.txt

                      1 Reply Last reply
                      0
                      • lozzer65L Offline
                        lozzer65L Offline
                        lozzer65
                        wrote on last edited by
                        #12

                        Finally bottomed out the issues on this. Radios purchased from ebay were sub standard quality. Purchased some that had the proper IC and components on the board. Plugged in and worked straight away. Thank you for all your assistance.

                        Regards
                        Laurie

                        mfalkviddM H 2 Replies Last reply
                        2
                        • lozzer65L lozzer65

                          Finally bottomed out the issues on this. Radios purchased from ebay were sub standard quality. Purchased some that had the proper IC and components on the board. Plugged in and worked straight away. Thank you for all your assistance.

                          Regards
                          Laurie

                          mfalkviddM Offline
                          mfalkviddM Offline
                          mfalkvidd
                          Mod
                          wrote on last edited by
                          #13

                          @lozzer65 great work, thanks for reporting back

                          1 Reply Last reply
                          0
                          • lozzer65L lozzer65

                            Finally bottomed out the issues on this. Radios purchased from ebay were sub standard quality. Purchased some that had the proper IC and components on the board. Plugged in and worked straight away. Thank you for all your assistance.

                            Regards
                            Laurie

                            H Offline
                            H Offline
                            HarryDutch
                            wrote on last edited by
                            #14

                            @lozzer65 I'm very curious where you bought the radio with the proper IC and components!

                            1 Reply Last reply
                            0
                            • lozzer65L Offline
                              lozzer65L Offline
                              lozzer65
                              wrote on last edited by
                              #15

                              Purchased from Amazon

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