💬 Advanced Gateway Options
-
Got the LEDs working now, after some issues relating to the weird GPIO mapping on the NodeMCU.
However, they are always on, and only blink off when receiving or transmitting. Is this intended? Can it be inverted (so they are off normally but only on when there is activity).
Also, under what circumstances will the ERR led blink?
-
@maghac said in 💬 Advanced Gateway Options:
However, they are always on, and only blink off when receiving or transmitting. Is this intended? Can it be inverted (so they are off normally but only on when there is activity).
You should be able to use#define MY_WITH_LEDS_BLINKING_INVERSEBut because of the weird wiring on esp8266 based boards it's always a hit or miss, some LEDs should be inversed, some other not. You may have to play with pull-ups or pull-downs resistors on some pins.
-
Hello Builders,
i am building a arduino 2560 node and i would like to activate radio blinking LED.
I have tested to insert lines regarding Blinking for pins 4,5,6 but there is a issue :
0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
3 MCO:BGN:BFR
203 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
208 !MCO:SLP:REP
1 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
5 MCO:BGN:BFR
205 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
209 !MCO:SLP:REP
0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
4 MCO:BGN:BFR
204 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
209 !MCO:SLP:REP
1 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
5 MCO:BGN:BFR
204 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
209 !MCO:SLP:REP
0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
4 MCO:BGN:BFR
204 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
209 !MCO:SLP:REP
1 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
5 MCO:BGN:BFR
204 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
209 !MCO:SLP:REP
0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
4 MCO:BGN:BFR
204 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
209 !MCO:SLP:REPRadio don't want initialized and probably the 2560 pinout don't work for blinking with pins 4,5,6.
Are there a specific pinout for 2560 for radio blinking ?
-
For an RFM69HW, is anything other than '#define MY_RADIO_RFM69' required to make use of the higher tx power?
@tomtastic yes. define MY_IS_RFM69HW.
References:
https://github.com/mysensors/MySensors/blob/726a20dad9696ed86408106061a9e0be31995b5c/MyConfig.h#L800https://www.mysensors.org/build/connect_radio (Scroll down to Configuring MySensors for RFM69)
-
@tomtastic yes. define MY_IS_RFM69HW.
References:
https://github.com/mysensors/MySensors/blob/726a20dad9696ed86408106061a9e0be31995b5c/MyConfig.h#L800https://www.mysensors.org/build/connect_radio (Scroll down to Configuring MySensors for RFM69)
@mfalkvidd Thats great, many thanks!
Still much to learn and finding important snippets of information here and there.I feel like both the options 'MY_RFM69_FREQUENCY RF69_433MHZ' and 'MY_IS_RFM69HW' should probably be mentioned in the SensebenderGatewaySerial.ino configuration file example lines.
-
Got the LEDs working now, after some issues relating to the weird GPIO mapping on the NodeMCU.
However, they are always on, and only blink off when receiving or transmitting. Is this intended? Can it be inverted (so they are off normally but only on when there is activity).
Also, under what circumstances will the ERR led blink?
@maghac What pins are you using for the LEDs? I have been investigating the GPIO vs PIN layout for the NodeMCU now for several hours. And I am still not shore which I shall use.
I have found complete maps for the GPIO and thought I had it all figured out. But then I saw in the example code for the gateway (GatewayESP8266.ino) the following:/* * Inclusion mode button: * - Connect GPIO5 via switch to GND ('inclusion switch') */ .... // Digital pin used for inclusion mode button //#define MY_INCLUSION_MODE_BUTTON_PIN 3But on NodeMCU GPIO5 is PIN D1 and not D3 (which is GPIO0)
So please... Anyone... What pins on the NodeMCU is usable for connecting radio traffic LEDs, and how do I name them in the code?
-
@maghac What pins are you using for the LEDs? I have been investigating the GPIO vs PIN layout for the NodeMCU now for several hours. And I am still not shore which I shall use.
I have found complete maps for the GPIO and thought I had it all figured out. But then I saw in the example code for the gateway (GatewayESP8266.ino) the following:/* * Inclusion mode button: * - Connect GPIO5 via switch to GND ('inclusion switch') */ .... // Digital pin used for inclusion mode button //#define MY_INCLUSION_MODE_BUTTON_PIN 3But on NodeMCU GPIO5 is PIN D1 and not D3 (which is GPIO0)
So please... Anyone... What pins on the NodeMCU is usable for connecting radio traffic LEDs, and how do I name them in the code?
@Strixx Sorry, I don't remember and I have since then stopped using the LEDs. Couldn't get the inverse feature to work and I realized having LED indicators were not all that useful anyway in the end. If the gateway works, I will see it on MQTT traffic anyway.
-
@Strixx Sorry, I don't remember and I have since then stopped using the LEDs. Couldn't get the inverse feature to work and I realized having LED indicators were not all that useful anyway in the end. If the gateway works, I will see it on MQTT traffic anyway.
-
So what is the finial solution to using the Led's on a ESP 8266-E gateway are they of any use if using a Vera Controller?
I have used them when I had a working Ethernet gateway but I am wanting to use an Esp 8266-E gateway now . What pins do one use on ESP device
Thanks for the help -
So what is the finial solution to using the Led's on a ESP 8266-E gateway are they of any use if using a Vera Controller?
I have used them when I had a working Ethernet gateway but I am wanting to use an Esp 8266-E gateway now . What pins do one use on ESP device
Thanks for the help@mntlvr I am using D1, D9 and D10. And it works perfectly on NodeMCU 0.9. Without the need of "MY_WITH_LEDS_BLINKING_INVERSE".
Here is the code:
// Set blinking period (in milliseconds) #define MY_DEFAULT_LED_BLINK_PERIOD 300 // Flash leds on rx/tx/err // Led pins used if blinking feature is enabled above // Internal onboard LED is PIN 16 #define MY_DEFAULT_ERR_LED_PIN D10 // Error led pin (Red) #define MY_DEFAULT_RX_LED_PIN D9 // Receive led pin (Yellow) #define MY_DEFAULT_TX_LED_PIN D1 // Transmit led pin (Green) -
So what is the finial solution to using the Led's on a ESP 8266-E gateway are they of any use if using a Vera Controller?
I have used them when I had a working Ethernet gateway but I am wanting to use an Esp 8266-E gateway now . What pins do one use on ESP device
Thanks for the help@mntlvr said in 💬 Advanced Gateway Options:
So what is the finial solution to using the Led's on a ESP 8266-E gateway are they of any use if using a Vera Controller?
I have had a lot of help with the leds. I have noticed that you get a lot of errors (in some positions it is impossible to communicate with the nodes at all) if not the radio is positioned to close to the ESP. It seems to me that the radio on the NodeMCU interferes with the NRF24L01+PA+LNA that i am using on my gateway. I found I thread on this forum about it but can't find it again.
So thanks to the leds I have been able to build a box where i have no transmission errors due to interference.
-
Thanks Strixx
I am using D4 D5 D9 D10
and as soon as I can get the unit to work with either of my Vera's I will know if mine works. It seems sinceI have gone over to the newest Library none of the gateways I build works.@mntlvr said in 💬 Advanced Gateway Options:
Thanks Strixx
I am using D4 D5 D9 D10
and as soon as I can get the unit to work with either of my Vera's I will know if mine works. It seems sinceI have gone over to the newest Library none of the gateways I build works.Don't know what radio you are using, but for the NRF24L01+ D5 is used for the radio.
And D4 is not possible to use for LED. It can not be high or low on boot. That has some special purpose.
The only pins available for LED is the ones I use. D1, D9 and D10.
I use D4 for inclusion button. That works as long as I don't press the button at startup of gateway. Then it will not start.
-
Yes on the 8266-E devkit V3 ,D1 is GPIO 5, D9 is the GPIO 03 (RX) and D10 is GPIO 01 (TX) D5 is GPIO 14 so I am using GPIO 05 and 01 and 03 and 02 . So I guess I am not clear as to what you use GPIO pins or lettered pins on 8266. On V3 of the 8266-E the builtin LED is on GPIO 2 which is D4 so when I tried your hookup All I got was Builtin LED on 100% and exception errors and would not boot
I will wait for your reply and thanks this may help if I am on the same page as you