WeMos D1 mini and NRF24
-
Hello,
Maybe I have a stupid question but I did not find proper information on this forum or internet.
Currently I use serial gateway (Uno + NRF24 connected via USB, MyController) for connection of sensors. So sensors are arduinos (uno, mini, ...) with sensor and NRF24.
And now my stupid question. Can I connect WeMos D1 mini directly to my gateway (without NRF24)? Both items works on 2.4GHz.
Thank you for your reply
-
@qobouky If I got you right, you question whether it is possible to receive the signals sent from your nRF24-Nodes via the wireless transceiver of an ESP8266.
The short answer is no.
Both may use 2.4GHz as a physical transport layer, but the encondeing/decoding of the information is done completely different. You may compare that to two humans speaking, but one chinese and the other english - they may hear the other one producing sound, but will not be able to understand the message.
-
Thank you very much for great explanation!!!
But is there a way how to connect ESP8266 to Controller. In MySensors are available just ethernet or serial gateway with NRF. Of course I can connect ESP to NRF and then use serial gateway but then there is no difference if I use ESP or nano.
My idea is that I want to use wireless network for sensors. One of my sensor should be LCD/TFT with touch so I wanted to prevent to use NRF (it occuy SPI)
https://forum.mysensors.org/topic/9276/home-automation-tft-touch-display
-
@qobouky First: using more than one SPI device on one MCU is possible - this requires just some more preparation e.g. in before() in case of using the same SPI interface (initialising other SPI devices prior to nRF will be addressed through the MySensors libs in presentaion() and setup()).
If you plan to use a LCD screen, you may need a more powerfull MCU like the ESP or an STM32 (th later offering also more hardware SPI interfaces). There are some examples available you may use as a reference:
https://www.mysensors.org/build/dollhouse#tv-node
https://www.mysensors.org/build/scene_controller
-
@qobouky you can build an esp8266 ethernet gateway (or mqtt if you prefer that), without connecting a nrf24 radio. Just comment out "#define MY_RADIO_NRF24" in the example. Then present sensors and send data as you would on a normal node.
Add the gateway in your controller in the same way you would configure any other gateway.In essence, you will have a tiny MySensors network consisting of just the MySensors gateway with locally attached sensors.
-
See https://github.com/mfalkvidd/Arduino-MySensors-ESP8266-RFM69-Gateway/blob/master/Arduino-MySensors-ESP8266-RFM69-Gateway.ino for an example where I send data for locally attached sensors (this gateway has a rfm69 chip though).
-
@qobouky
Use something like ESPeasy for connection your ESP2866 into controller.