Simple emitter with ESP8266?

Everything about esp8266 and more.

Moderator: leecollings

Post Reply
sebitop
Posts: 69
Joined: Sunday 08 June 2014 20:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Toulouse France
Contact:

Simple emitter with ESP8266?

Post by sebitop »

Dear All

I found the ESP8266 promising and after having 20 tabs opened in chrome i'm still struggling to find a simple way to make and emitter with the ESP8266

for which use ? example : when I open my gate I would like it so send a signal to domoticz and to send another one when closed (just a simple contact 1 or 0)

why ? : I have today some DI.O modules but when I was a power failure at home or if I cut the power to do something, when I start it back the DI.O power socket switch to learning mode receiving ramdoms signals from my DI.O emitters. to avoid that I would like to use a different protocol (and morerealiable as I have a big WIFI antenna on my roof)

anyone as an idea to do so ? (or another idea without the ESP ?)

thanks !!

seb
domoticz on Raspberry Pi + RFXcom LAN moded + wifi
Blyss / DI.O / homemade / ESP / wemos
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Simple emitter with ESP8266?

Post by freijn »

Go for an EasyEsp

https://www.letscontrolit.com/wiki/index.php/ESPEasy

Make it an SwitchInput and voila..

Using it now for a few months for Temp and Pir sensor and love it!
sebitop
Posts: 69
Joined: Sunday 08 June 2014 20:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Toulouse France
Contact:

Re: Simple emitter with ESP8266?

Post by sebitop »

Thanks Freijn

I read this site and am I correct to say that I could generate mutiple signal using one single for example wemos d1 mini by adressing each gpio separately ?

this is really interesting !
domoticz on Raspberry Pi + RFXcom LAN moded + wifi
Blyss / DI.O / homemade / ESP / wemos
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Simple emitter with ESP8266?

Post by jvdz »

Yes you can have multiple devices supported by a wemos d1 mini by configuring them and using the GPIO ports available.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

Re: Simple emitter with ESP8266?

Post by randytsuch »

You can also add port expanders if you need more GPIO's.

I'm using I2C port expanders on a couple ESP easy projects.
sebitop
Posts: 69
Joined: Sunday 08 June 2014 20:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Toulouse France
Contact:

Re: Simple emitter with ESP8266?

Post by sebitop »

the only thing is how to power it ?

I read it's a 3.3v operating card so again the need to put a regulator before...

should be so easy with 5v...
domoticz on Raspberry Pi + RFXcom LAN moded + wifi
Blyss / DI.O / homemade / ESP / wemos
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Simple emitter with ESP8266?

Post by freijn »

if you go for :

NodeMCU development board for ESP-12E from ESP8266/esp 12E Lua

https://www.aliexpress.com/store/produc ... 01146.html

Its a little bit bigger but you feed it with 5 volts and a mini usb :-)

or use

https://www.aliexpress.com/item/5PCS-5V ... -LDO-800MA
sebitop
Posts: 69
Joined: Sunday 08 June 2014 20:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Toulouse France
Contact:

Re: Simple emitter with ESP8266?

Post by sebitop »

thanks,

but i have a doubt, I think the Wemos D1 mini is 5v powerable ;) if you plug a mini usb or a 5v voltage on the 5v pin I think the card manage to regul the voltage to 3.3 for the ESP

am i correct ?
domoticz on Raspberry Pi + RFXcom LAN moded + wifi
Blyss / DI.O / homemade / ESP / wemos
zak45
Posts: 953
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Simple emitter with ESP8266?

Post by zak45 »

Wemos mini or Nodemcu have a mini usb, so 5 V as input, no problem.
You just need to make sure that you never have more than 3.3 V on GPIO.
Have just begin to "play" with and must say that with espeasy firmware, you have so much possibility... and integration with Domoticz... could not be easiest!!!
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

Re: Simple emitter with ESP8266?

Post by randytsuch »

I have a Wemos mini d1 and mini d1 pro running from 5V.
I use little USB plugs. I did have some problems when I tried to power with the micro usb jack, and then use the 5V to power a relay card too.

So I cut up a USB cable, and hardwired/soldered the 5V directly, and no problems after that.
sebitop
Posts: 69
Joined: Sunday 08 June 2014 20:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Toulouse France
Contact:

Re: Simple emitter with ESP8266?

Post by sebitop »

I will try this

I found some regulator to decrease voltage from max 24v to 5v wich could perfectly fit the wemos

thanks for your help !!!!!
domoticz on Raspberry Pi + RFXcom LAN moded + wifi
Blyss / DI.O / homemade / ESP / wemos
mjdb
Posts: 71
Joined: Thursday 12 January 2017 13:38
Target OS: Raspberry Pi / ODroid
Domoticz version: all beta
Location: NL - Pijnacker
Contact:

Re: Simple emitter with ESP8266?

Post by mjdb »

You ask after power-supply.

I have several ESP8266 devices, most of them Wemos D1.

I power them with a Hi-Link PCB Voeding (5 Euro).

See: https://www.tinytronics.nl/shop/nl/voed ... a-hlk-pm01

I use these power supplies (or their 1 Amp version) also for Arduino, Raspberry Pi etc.

For an example with ESp8266 and switch-detecting see

https://www.domoticz.com/forum/viewtopi ... 38&t=18756
- - - - - - - - - - -
2 x Domoticz on Raspberry Pi; 2 x RFXtrx433; Aeotec Z-Stick
KlikAanKlikUit ICS-2000 as Relay
Aeotec MultiSensors 6; Danfoss Z Thermostats 014G0013; Kaku Switches, Z-wave Switches
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest