Nodemcu + RFM69. Level converter needed?
-
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 ---> D100And of course GND and VCC (3.3v)
-
You allso need to connect the DI00 for the RFM69.
-
@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)
-
-
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 -
@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 -
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 -
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 -
I guess you would need to give the logs for the gateway too, to see if you have a radio fail somewhere.
-
I guess you would need to give the logs for the gateway too, to see if you have a radio fail somewhere.
@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 -
It seems good on the gateway to me, no radio error at least.
Past that no idea. -
@gmccarthy maybe an interesting read:
https://forum.mysensors.org/topic/4889/esp8266-rfm69-gateway/5 -
@gmccarthy i have insert this line in the gateway then was it working for me
#define MY_RFM69_PA_LEVEL RF69_PA_LOW
-
@gmccarthy maybe an interesting read:
https://forum.mysensors.org/topic/4889/esp8266-rfm69-gateway/5@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