Interesting ESP8266 WiFi Module Topic is solved
Moderators: leecollings, remb0
Interesting ESP8266 WiFi Module
Just saw this https://nurdspace.nl/ESP8266 module. Looks interesting and very cheap. Ordered a set to experiment with it.
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Interesting WiFi Module
Have you already done anything interesting with it?
I found this page: http://harizanov.com/2014/11/esp8266-po ... r-reading/
I am now using a relay connected to the GPIO pins of my Raspberry to control my thermostat: http://domoticz.com/forum/viewtopic.php?f=4&t=4447
But someone said this module could also do that (with GPIO pins). I think that is a great example of the power of such a module
Also handy to create your own smart bulbs or something
I found this page: http://harizanov.com/2014/11/esp8266-po ... r-reading/
I am now using a relay connected to the GPIO pins of my Raspberry to control my thermostat: http://domoticz.com/forum/viewtopic.php?f=4&t=4447
But someone said this module could also do that (with GPIO pins). I think that is a great example of the power of such a module

Also handy to create your own smart bulbs or something

Last edited by ThinkPad on Tuesday 23 December 2014 21:26, edited 1 time in total.
I am not active on this forum anymore.
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Interesting WiFi Module
Looks great.....
For all my rooms @ home..
A very cheap sensor..
I hope.......
For all my rooms @ home..
A very cheap sensor..
I hope.......
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Re: Interesting WiFi Module
Just received two to experiment with. The chip itself also has GPIO/SPI/SDIO/I2C pins for other use. It's factory loaded with modem like (AT commands) software, but you can load your own software on the chip, if you want, using the SDK.Derik wrote:Looks great.....
For all my rooms @ home..
A very cheap sensor..
I hope.......
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Interesting WiFi Module
Some project with the ESP8266 i find quite interesting for domotica purposes is this one: http://gizmosnack.blogspot.nl/2014/10/p ... -hack.html
That way you can make your own cheap version of Plugwise. Awesome
That way you can make your own cheap version of Plugwise. Awesome

I am not active on this forum anymore.
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Interesting WiFi Module
I am to stupid for that..





Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Interesting WiFi Module
Some other ideas that i thought of:
ESP8266 with LDR photo resistance module
I have one of these modules, and with the trimpot you can configure the light intensity level where it should trigger. If it is light it returns a high signal (5V or 3V3, depending on supply voltage), when under set level it is low (0V).
Combined with an ESP8266 and a small phone charger, this could be a cheap way to create a dusk/dawn sensor
ESP8266 with DS18B20 & DHT22
Use the ESP8266 with an DS18B20 temperature sensor and DHT22 humidity sensor to create a cheap sensor for measuring temperature & humidity in a room.
ESP8266 to read P1 port of Smart Meter
Use the ESP8266 to read the P1 port of your smart meter. Should not be too hard, as the ESP8266 is designed as a serial-to-wifi module, and the P1 port of a smart meter is in fact a simple serial port (9600 / 115200 baud, sometimes inverted data).
Could be very nice for people that don't have their Domoticz setup in their meter cabinet.
ESP8266 to tell status of device to Domoticz
A lot of devices have USB port that is powered when the device is on. For example my TV. Unfortunately it isn't a smart TV, so i can't ping it. But if i would power the ESP8266 from the USB port, i can ping the ESP8266 and see if the TV is on.
I thought i would just share them with you. Maybe i will start working at some of these ideas, but that will be later this year, i am very busy this month.
ESP8266 with LDR photo resistance module
I have one of these modules, and with the trimpot you can configure the light intensity level where it should trigger. If it is light it returns a high signal (5V or 3V3, depending on supply voltage), when under set level it is low (0V).
Combined with an ESP8266 and a small phone charger, this could be a cheap way to create a dusk/dawn sensor
ESP8266 with DS18B20 & DHT22
Use the ESP8266 with an DS18B20 temperature sensor and DHT22 humidity sensor to create a cheap sensor for measuring temperature & humidity in a room.
ESP8266 to read P1 port of Smart Meter
Use the ESP8266 to read the P1 port of your smart meter. Should not be too hard, as the ESP8266 is designed as a serial-to-wifi module, and the P1 port of a smart meter is in fact a simple serial port (9600 / 115200 baud, sometimes inverted data).
Could be very nice for people that don't have their Domoticz setup in their meter cabinet.
ESP8266 to tell status of device to Domoticz
A lot of devices have USB port that is powered when the device is on. For example my TV. Unfortunately it isn't a smart TV, so i can't ping it. But if i would power the ESP8266 from the USB port, i can ping the ESP8266 and see if the TV is on.
I thought i would just share them with you. Maybe i will start working at some of these ideas, but that will be later this year, i am very busy this month.
I am not active on this forum anymore.
Re: Interesting WiFi Module
Thanks for sharing. I myself was thinking of a mains plug measuring power (via ACS712 hal effect sensor and external I2C ADC), switching on/off the attached device (relais) and have the ability to connect an external temp/hum sensor (DHT22). Therefore I need more GPIO pins like the ESP8266-07/12, the ESP8266-01 has only two and one is used to get into UART bootloader mode.ThinkPad wrote:I thought i would just share them with you. Maybe i will start working at some of these ideas, but that will be later this year, i am very busy this month.
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Interesting WiFi Module
Have you seen this link: http://gizmosnack.blogspot.nl/2014/10/p ... -hack.html (also posted a few messages ago higher above).
He tapped into a cheap power meter and is reading the power usage with an Arduino. Shouldn't be too hard to convert that to an ESP8266 solution. Add a relay to switch the load, and the temperature & humidity sensor.
He tapped into a cheap power meter and is reading the power usage with an Arduino. Shouldn't be too hard to convert that to an ESP8266 solution. Add a relay to switch the load, and the temperature & humidity sensor.
I am not active on this forum anymore.
Re: Interesting WiFi Module
I have seen that, but I want to make a single PCB wich fits into a standard enclosure and use a standard 5V/1A power supply. I don't want to connect my logic directly to the mains which is done frequently in 'cheap' solutions. The article also warns you about that frequently. This will make it a little bit more expensive, but better save that sorry!!!ThinkPad wrote:Have you seen this link: http://gizmosnack.blogspot.nl/2014/10/p ... -hack.html (also posted a few messages ago higher above)
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Interesting WiFi Module
But what does it matter if all data is transfered over WiFi, so there is no physical contact with the electronics? And if you have everything inside a good enclosure? Danger is minimalised then..
But your approach sounds interesting, keep us updated pelase
But your approach sounds interesting, keep us updated pelase

I am not active on this forum anymore.
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Interesting WiFi Module
I found this tutorial: http://www.instructables.com/id/ESP8266 ... /?ALLSTEPS
WiFi temperature logger with DS18B20 and Arduino Pro Mini. Sketch seems to be quite easy, as far as i can see it calls an URL of ThingSpeak (using GET) and puts the temperature in the URL (&field1=).
Shouldn't be too hard to get it to call a domoticz JSON URL to update a virtual sensor... Or store it in MySQL. I use the same approach for the Arduino that was logging my central heater for a long time: http://thinkpad.tweakblogs.net/blog/110 ... highcharts (i now have the DS18B20 directly connected to the Pi).
Edit: Yup, storing temperature in Domoticz is very easy:
Source: http://www.domoticz.com/wiki/Domoticz_A ... emperature
So put that URL in the sketch, and you would be done
Gonna try this when i have some spare time. I have all the required components lying around somewhere.
Maybe it is also possible with a DS18B20 connected directly to the ESP8266, without using an Arduino. But i don't know, and the Arduino route is the easiest for me, as i have worked with it before, and have zero experience with programming the ESP8266.
Shouldn't be too hard to create a dusk/dawn sensor also, you could use 90% of the Arduino sketch, together with a cheap LDR module.
WiFi temperature logger with DS18B20 and Arduino Pro Mini. Sketch seems to be quite easy, as far as i can see it calls an URL of ThingSpeak (using GET) and puts the temperature in the URL (&field1=).
Shouldn't be too hard to get it to call a domoticz JSON URL to update a virtual sensor... Or store it in MySQL. I use the same approach for the Arduino that was logging my central heater for a long time: http://thinkpad.tweakblogs.net/blog/110 ... highcharts (i now have the DS18B20 directly connected to the Pi).
Edit: Yup, storing temperature in Domoticz is very easy:
Code: Select all
/json.htm?type=command¶m=udevice&idx=IDX&nvalue=0&svalue=TEMP
So put that URL in the sketch, and you would be done

Maybe it is also possible with a DS18B20 connected directly to the ESP8266, without using an Arduino. But i don't know, and the Arduino route is the easiest for me, as i have worked with it before, and have zero experience with programming the ESP8266.
Shouldn't be too hard to create a dusk/dawn sensor also, you could use 90% of the Arduino sketch, together with a cheap LDR module.
I am not active on this forum anymore.
-
- Posts: 158
- Joined: Saturday 11 January 2014 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: NL
- Contact:
Re: Interesting WiFi Module
Yes very interesting modules! (ordered some)
Why make use of an Arduino AND ESP8266?
Run a script at your Domoticz machine to get the values through HTTP API.
http://harizanov.com/2014/12/wifi-iot-3 ... g-esp8266/
Why make use of an Arduino AND ESP8266?
Run a script at your Domoticz machine to get the values through HTTP API.
http://harizanov.com/2014/12/wifi-iot-3 ... g-esp8266/
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Interesting WiFi Module
Real cool, but that MQTT seems a bit too technical for me to understand at this moment 

I am not active on this forum anymore.
-
- Posts: 158
- Joined: Saturday 11 January 2014 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: NL
- Contact:
Re: Interesting WiFi Module
Don't need MQTT necessarely. (Maybe in future when it is natively supported by Domoticz)
The HTTP API exposes the status of the relays and sensors as JSON string
http://IP/ds18b20.cgi returns { “temperature”: ” 55.0″}
http://IP/dht22.cgi returns { “temperature”: ” 24.4″, “humidity”: “44.5” }
http://IP/gpio.cgi returns the state of the relays { “gpio12″: “0”,”gpio13″: “0”,”gpio14″: “0”}
Relays are switched on/off using a HTTP GET with query string: http://IP/gpio.cgi?gpio12=1&gpio13=0&gpio14=0
Last edited by Raspberry Piet on Thursday 08 January 2015 17:51, edited 1 time in total.
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Interesting WiFi Module
Ah, that's perfect
Now just wait for his code to become available 


I am not active on this forum anymore.
-
- Posts: 158
- Joined: Saturday 11 January 2014 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: NL
- Contact:
Re: Interesting WiFi Module
Isn't it already? (haven't read all yet) Hope it will before my ordered modules arrive.
There is also a nice PCB layout!
There is also a nice PCB layout!
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Interesting WiFi Module
But this code is available: http://harizanov.com/2014/11/esp8266-po ... r-reading/Once I get all this working the way I imagine it, I will make the board design files and source code available on Github, and will offer a limited number of pre-built boards in my shop. You want one, trust me..
With that code, controlling GPIO and reading temp & humidity is already possible. I am going to try that now

I am not active on this forum anymore.
-
- Posts: 158
- Joined: Saturday 11 January 2014 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: NL
- Contact:
Re: Interesting WiFi Module
It's the URL you already posted yourself!
Pull values from the ESP8266 is nice but would be nicer to choose between push/pull in a web gui.
Maybe that is already possible? Keep us informed!

Pull values from the ESP8266 is nice but would be nicer to choose between push/pull in a web gui.
Maybe that is already possible? Keep us informed!
-
- Posts: 1355
- Joined: Friday 29 August 2014 11:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Ermelo
- Contact:
Re: Interesting WiFi Module
I just ordered 3 of those ESPs and a couple of DHT-22 temp/humid sensors. Would be a very cheap way to have all kind of sensors around the house.
Very interesting indeed...
Very interesting indeed...
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Who is online
Users browsing this forum: Google [Bot] and 1 guest