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. Nodemcu + RFM69. Level converter needed?

Nodemcu + RFM69. Level converter needed?

Scheduled Pinned Locked Moved Troubleshooting
18 Posts 5 Posters 5.6k Views 4 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.
  • G Offline
    G Offline
    gmccarthy
    wrote on last edited by gmccarthy
    #1

    After many months of struggling with the poor range of NRF24L01+ (And having tried all the tricks) I'm not trying my luck with the RFM69 radio. (RFM69CW - 868Mhz)

    When connecting the rfm69 to the nodemcu (For the ESP8266 gateway), is a 5v to 3.3v logic level converted required?

    For the projects listed it says you need one when connecting it to the Arduino but wasn't sure about the Nodemcu.

    Also can someone confirm the wiring - its not 100% clear.

    Is this correct?

    Nodemcu ---> RFM69
    D2 ---> N/C
    D8 ---> NSS
    D5 ---> SCK
    D7 ---> MOSI
    D6 ---> MISO
    N/C ---> D100

    And of course GND and VCC (3.3v)

    mfalkviddM 1 Reply Last reply
    0
    • G gmccarthy

      After many months of struggling with the poor range of NRF24L01+ (And having tried all the tricks) I'm not trying my luck with the RFM69 radio. (RFM69CW - 868Mhz)

      When connecting the rfm69 to the nodemcu (For the ESP8266 gateway), is a 5v to 3.3v logic level converted required?

      For the projects listed it says you need one when connecting it to the Arduino but wasn't sure about the Nodemcu.

      Also can someone confirm the wiring - its not 100% clear.

      Is this correct?

      Nodemcu ---> RFM69
      D2 ---> N/C
      D8 ---> NSS
      D5 ---> SCK
      D7 ---> MOSI
      D6 ---> MISO
      N/C ---> D100

      And of course GND and VCC (3.3v)

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

      @gmccarthy I don't know about the connections, but the nodemcu is 3.3V so there is no need for a level converter.

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

        Thanks - I can only think my connections are wrong then. Can't get any comms going on the rfm69.

        1 Reply Last reply
        0
        • korttomaK Offline
          korttomaK Offline
          korttoma
          Hero Member
          wrote on last edited by
          #4

          You allso need to connect the DI00 for the RFM69.

          • Tomas
          G 1 Reply Last reply
          0
          • korttomaK korttoma

            You allso need to connect the DI00 for the RFM69.

            G Offline
            G Offline
            gmccarthy
            wrote on last edited by
            #5

            @korttoma That probably explains why I can't get it working. Do you know what pin it needs to connect to on the nodemcu?

            On this link the DI00 is gray (https://www.mysensors.org/build/connect_radio) but here it doesnt show where to connect it (https://www.mysensors.org/build/esp8266_gateway)

            1 Reply Last reply
            0
            • E Offline
              E Offline
              emc2
              Hardware Contributor
              wrote on last edited by
              #6

              Did you try @chrille wiring:
              https://forum.mysensors.org/topic/3061/solved-esp8266-gateway-with-rfm69-wdt-issues/4

              exemple here:
              https://github.com/janchrillesen/arduino-stuff/blob/master/GatewayESP8266-RFM69.ino

              G 1 Reply Last reply
              0
              • korttomaK Offline
                korttomaK Offline
                korttoma
                Hero Member
                wrote on last edited by
                #7

                I do not know about the nodemcu but I connected IRQ (DI00 of RFM69) to GPIO4 on my ESP-07 and added the following line to the sketch:

                #define MY_RF69_IRQ_PIN 4
                
                • Tomas
                1 Reply Last reply
                0
                • E emc2

                  Did you try @chrille wiring:
                  https://forum.mysensors.org/topic/3061/solved-esp8266-gateway-with-rfm69-wdt-issues/4

                  exemple here:
                  https://github.com/janchrillesen/arduino-stuff/blob/master/GatewayESP8266-RFM69.ino

                  G Offline
                  G Offline
                  gmccarthy
                  wrote on last edited by
                  #8

                  @emc2 Thanks for the link.

                  I've connected up the missing pin and believe the wiring is all correct. Double checked the wiring on the arduino mini as well to the rfm69 (Via logic converter)

                  Still can't get it to communicate using DallasTemperatureSensor-RFM69.ino

                  Starting sensor (RRNNA-, 2.0.0)
                  TSM:INIT
                  TSM:RADIO:OK
                  TSP:ASSIGNID:OK (ID=5)
                  TSM:FPAR
                  TSP:MSG:SEND 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                  TSM:FPAR
                  TSP:MSG:SEND 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                  TSM:FPAR
                  TSP:MSG:SEND 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                  TSM:FPAR
                  TSP:MSG:SEND 5-5-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                  !TSM:FPAR:FAIL
                  !TSM:FAILURE
                  TSM:PDT
                  
                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    emc2
                    Hardware Contributor
                    wrote on last edited by
                    #9

                    And you set up the pins radio type in your gateway sketch too right?

                    // Enables and select radio type (if attached)
                    #define MY_RADIO_RFM69
                    #define MY_RFM69_FREQUENCY   RF69_868MHZ
                    #define MY_RF69_IRQ_PIN 4
                    #define MY_RF69_SPI_CS 15
                    
                    G 1 Reply Last reply
                    0
                    • E emc2

                      And you set up the pins radio type in your gateway sketch too right?

                      // Enables and select radio type (if attached)
                      #define MY_RADIO_RFM69
                      #define MY_RFM69_FREQUENCY   RF69_868MHZ
                      #define MY_RF69_IRQ_PIN 4
                      #define MY_RF69_SPI_CS 15
                      
                      G Offline
                      G Offline
                      gmccarthy
                      wrote on last edited by
                      #10

                      @emc2 Yes

                      1 Reply Last reply
                      0
                      • E Offline
                        E Offline
                        emc2
                        Hardware Contributor
                        wrote on last edited by
                        #11

                        I guess you would need to give the logs for the gateway too, to see if you have a radio fail somewhere.

                        G 1 Reply Last reply
                        0
                        • E emc2

                          I guess you would need to give the logs for the gateway too, to see if you have a radio fail somewhere.

                          G Offline
                          G Offline
                          gmccarthy
                          wrote on last edited by gmccarthy
                          #12

                          @emc2 This is all I see on the gateway:

                          0;255;3;0;9;Starting gateway (RRNGE-, 2.0.0)
                          0;255;3;0;9;TSM:INIT
                          0;255;3;0;9;TSM:RADIO:OK
                          0;255;3;0;9;TSM:GW MODE
                          0;255;3;0;9;TSM:READY
                          scandone
                          state: 0 -> 2 (b0)
                          state: 2 -> 3 (0)
                          state: 3 -> 5 (10)
                          add 0
                          aid 6
                          cnt 
                          f r0, scandone
                          
                          connected with homenet, channel 1
                          dhcp client start...
                          ..............ip:192.168.1.100,mask:255.255.255.0,gw:192.168.1.1
                          .IP: 192.168.1.100
                          0;255;3;0;9;No registration required
                          0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
                          pm open,type:2 0
                          0;255;3;0;9;TSP:SANCHK:OK
                          0;255;3;0;9;TSP:SANCHK:OK
                          
                          1 Reply Last reply
                          0
                          • E Offline
                            E Offline
                            emc2
                            Hardware Contributor
                            wrote on last edited by
                            #13

                            It seems good on the gateway to me, no radio error at least.
                            Past that no idea.

                            G 1 Reply Last reply
                            0
                            • E emc2

                              It seems good on the gateway to me, no radio error at least.
                              Past that no idea.

                              G Offline
                              G Offline
                              gmccarthy
                              wrote on last edited by
                              #14

                              @emc2 Thanks. Will keep digging but I"m almost out of idea as well. :(

                              1 Reply Last reply
                              0
                              • E Offline
                                E Offline
                                emc2
                                Hardware Contributor
                                wrote on last edited by
                                #15

                                @gmccarthy maybe an interesting read:
                                https://forum.mysensors.org/topic/4889/esp8266-rfm69-gateway/5

                                G 1 Reply Last reply
                                0
                                • korttomaK Offline
                                  korttomaK Offline
                                  korttoma
                                  Hero Member
                                  wrote on last edited by
                                  #16

                                  On the arduino mini I think you should connect the DI00 (IRQ) to pin 2 like you see on this page

                                  For some CPU types the IRQ pin is hard coded and can not be re-assigned.

                                  • Tomas
                                  1 Reply Last reply
                                  0
                                  • TON RIJNAARDT Offline
                                    TON RIJNAARDT Offline
                                    TON RIJNAARD
                                    wrote on last edited by
                                    #17

                                    @gmccarthy i have insert this line in the gateway then was it working for me

                                    #define MY_RFM69_PA_LEVEL RF69_PA_LOW

                                    1 Reply Last reply
                                    0
                                    • E emc2

                                      @gmccarthy maybe an interesting read:
                                      https://forum.mysensors.org/topic/4889/esp8266-rfm69-gateway/5

                                      G Offline
                                      G Offline
                                      gmccarthy
                                      wrote on last edited by gmccarthy
                                      #18

                                      @emc2 Interesting read.

                                      @korttoma I've connected up IRQ line. Still no luck,

                                      @TON-RIJNAARD Have tried that now as well. No luck.

                                      Tried going back to basics and now have 2 x Arduino pros with RFM69 - both loaded with pingpong script.

                                      Don't know where I'm going wrong but I can't even start the script - entering 1 or T does nothing. (I"ve used the script before with the NRF radio and it works)

                                      Have also tried the latest dev version.

                                      Just keep getting this on both arduinos:

                                      0 MCO:BGN:INIT NODE,CP=RRNNA--,VER=2.0.1-beta
                                      4 TSM:INIT
                                      1 MCO:BGN:INIT NODE,CP=RRNNA--,VER=2.0.1-beta
                                      5 TSM:INIT
                                      7 TSM:INIT:TSP OK
                                      8 TSM:FPAR
                                      138 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                                      2145 !TSM:FPAR:NO REPLY
                                      2147 TSM:FPAR
                                      2277 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                                      4284 !TSM:FPAR:NO REPLY
                                      4286 TSM:FPAR
                                      4416 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                                      6423 !TSM:FPAR:NO REPLY
                                      6425 TSM:FPAR
                                      6555 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                                      8562 !TSM:FPAR:FAIL
                                      8563 TSM:FAIL:CNT=1
                                      8565 TSM:FAIL:PDT
                                      
                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      16

                                      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