Why don't you write mysensors library for ESP8266 similar to the nRF one ?
-
The ESP might be new new cool kid on the block. But it isn't exactly suitable for low power operation.
That's why we still clinging on the more low power radios like NRF24 and FR69.
But you can use ESP8266 as as a sensor node (fully integrated with your favourite controller) if you download the development branch of the MySensor library which allows sensors attached to to the gateway itself.
-
The ESP might be new new cool kid on the block. But it isn't exactly suitable for low power operation.
That's why we still clinging on the more low power radios like NRF24 and FR69.
But you can use ESP8266 as as a sensor node (fully integrated with your favourite controller) if you download the development branch of the MySensor library which allows sensors attached to to the gateway itself.
@hek Thanks hek. I have already updated my arduino IDE and succeeded in falshing the ESP today, so still testing its stability compared to the ethernet sheild. Will try the ESP gateway soon.
I am not a pro in saving power techniques for devices, but I googled now and found out this link from espressif (http://bbs.espressif.com/viewtopic.php?t=133) and the deep sleep mode is 10uA. On the other side, referring to this topic (http://forum.mysensors.org/topic/1069/power-consumption-nrf24l01) , the nRF consumes 50 uA. In the same post, one of the replies stated that "The NRF draws ~900nA when powered down, and ~15mA when awake/sending."
Am I missing something here ? Thank you.
-
Sleep modes with the esp had some problems (at least about 2 months ago). Also I think in sleep mode the esp looses its wlan connection. Reconnecting to the WLAN takes much longer than the nrf needs for its network. Also messages are bigger I guess.
-
Sleep modes with the esp had some problems (at least about 2 months ago). Also I think in sleep mode the esp looses its wlan connection. Reconnecting to the WLAN takes much longer than the nrf needs for its network. Also messages are bigger I guess.
@LastSamurai You are right. According to the mentioned link from espressif, in Deep Sleep mode the Wlan connection is stopped. And yes the reconnection again could take seconds.
-
For non-battery applications, if you have good Wi-Fi coverage, then the ESP8266 is hard to beat and can function as an all-in-one. It's the wireless device that the official Arduino should have evolved into but never officially did.
-
For non-battery applications, if you have good Wi-Fi coverage, then the ESP8266 is hard to beat and can function as an all-in-one. It's the wireless device that the official Arduino should have evolved into but never officially did.
@NeverDie Good point indeed. I am still testing the ESP for a full day now by sending a UDP request every 15 mins and replying back, but actually after some hours I find no response. Don't really know where the problem comes from and still debugging. I used Arduino WifiUDP example. I did some changes to handle reconnecting if the connection was lost, and to auto reset after a number of failed retries. But it happened that I get no replies from the ESP and that's what I am still to investigating. Kind of off-topic :D
-
I was about to ask the same question - why there's no possibility of using NodeMCU ESP8266 with MySensors in official way, as it's the simple way to deploy sensor network in home :-) for most users.
I'd like to cover my 2nd location with sensor network, can't decide either to order nodemcu's or go with Arduino.
The worst part for me is that there's no clear instruction how to flash nano's with custom firmware, so they can be updated via OTA. -
I found the following info which is looking promising
ESP made easy -
I
m still wondering, why there is no possibility to make nodes (only!) with ESP 8266 instead of an arduino and the wellknown radios. You must only connect the voltage and the sensor(s) and you have finished! The are very cheap and can be flashed by IDE. Other projects do consider this facts, here it gives only some experimental stuff. It is for my opinion much easyer than soldering this radios. Dont understand! -
Use the ESP Gateway sketch.
Remove the NRF-radio define. Present your sensors and start sending data like in any other example.Can you elaborate on this a bit more? I have a "standard" mysensors setup with various nrf24-based nodes and a serial gw.
How can I add an esp8266 node to this setup? I understand that I need to use the sketch and present the sensors as usual.
But how the existing serial gw is going to "hear" the ESP node?
Or I need an Ethernet GW to be able to add esp node? -
How to add another (esp) gateway depends on the controller you're using. It will not join your current serial gateway.
-
Got it, thx. Just to clarify: if I want eg 5 x esp8266 nodes, do I need to add them as 5 gateways, or I add one as a a gateway and other 4 connect to it?