New ESP gadget

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
TridentTD
New user
Posts: 5
Joined: 07 Apr 2016, 16:42

Re: New ESP gadget

#101 Post by TridentTD » 12 Apr 2016, 17:18

Sonoff with DHT11
can read Temperature & Humidity
to control Sonoff Relay.

sonoff_and_DHT11.png
sonoff_and_DHT11.png (29.71 KiB) Viewed 128164 times

User avatar
SuperToma
Normal user
Posts: 14
Joined: 08 Apr 2016, 08:33

Re: New ESP gadget

#102 Post by SuperToma » 13 Apr 2016, 12:25

Hi guys !

Thank you for your reply !
First of all there is my photo of the sonoff with 5 pins :)

But secondly : I can't fly my module with ESPEasy :(

- I use esptool
- I want to use this firmware : ESPEasy_R78_1024.bin

I got this error :

Connecting...
Erasing flash...

A fatal error occurred: Invalid head of packet

Any idea ?
Is there a way to put the module in firmware update mode ?

Regards
Attachments
20160413_093142.jpg
20160413_093142.jpg (107.67 KiB) Viewed 128127 times

morle
Normal user
Posts: 17
Joined: 30 Jan 2016, 08:50
Location: Germany

Re: New ESP gadget

#103 Post by morle » 13 Apr 2016, 14:12

Hi,
I have done it this way. In advance i created a R99 Release file with my IDE and flashed it as described here:
https://www.domoticz.com/forum/viewtopi ... 670#p78420
sonoff1.jpg
sonoff1.jpg (44.72 KiB) Viewed 128106 times

Regards
Hubert

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#104 Post by the cosmic gate » 14 Apr 2016, 20:34

SuperToma wrote:Hi guys !

Thank you for your reply !
First of all there is my photo of the sonoff with 5 pins :)

But secondly : I can't fly my module with ESPEasy :(

- I use esptool
- I want to use this firmware : ESPEasy_R78_1024.bin

I got this error :

Connecting...
Erasing flash...

A fatal error occurred: Invalid head of packet

Any idea ?
Is there a way to put the module in firmware update mode ?

Regards
I also have this 5pin sonoff device (arrived today) .
Try to flash it using the flashtool (R78) , but can't get it working.
I als changed the FTDI adapter, but

Code: Select all

trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed
Press any key to continue . . .
Already changed the RX/TX , tried : disconnect the 3.5V and pushed the button / start the flashtool filled in com port + 1024 + 78 pressed the button and press enter / disconnect the USB press the button start the tool put in de USB again and release the button --> but nothing happens.
What did i do wrong ?

also tried this way https://www.domoticz.com/forum/viewtopi ... 670#p78420
Last edited by the cosmic gate on 16 Apr 2016, 13:33, edited 1 time in total.

User avatar
SuperToma
Normal user
Posts: 14
Joined: 08 Apr 2016, 08:33

Re: New ESP gadget

#105 Post by SuperToma » 15 Apr 2016, 11:01

Hi guys !

@Cosmic Gate :
- I exactly have the same problem as you with this 5 pins module,
I tried with the Windows command line tool and with Linux python too but have the same result on each OS.

@Morie :
- do you have this new 5 pins Sonoff module or 4 pins ?
- For watching the wifi network ESP0 do we need to plug the module on 220v or 5v works also ?

Regards.

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: New ESP gadget

#106 Post by NietGiftig » 15 Apr 2016, 11:33

SuperToma wrote: - For watching the wifi network ESP0 do we need to plug the module on 220v or 5v works also ?
Works good with a decent 3.3 volt supply on the pins (not your interface 3.3 volt)

Take care of yourself (and your interface and your computer) and NEVER work on the device with 220 volt.

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#107 Post by the cosmic gate » 16 Apr 2016, 13:34

SuperToma wrote:Hi guys !

@Cosmic Gate :
- I exactly have the same problem as you with this 5 pins module,
I tried with the Windows command line tool and with Linux python too but have the same result on each OS.
.
Hope somebody can help us :)

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: New ESP gadget

#108 Post by costo » 16 Apr 2016, 15:38

I only have experience with the 4_pin sonoff, but from the documentation i cannot see any difference in the schematics of the 4_pin or 5_pin Sonoff module, (except for that one extra pin), so the procedure to flash it should be the same I think.

Disconnect power
connect your FTDI USB/Serial interface which is set to 3.3 volt.
then while the power is still disconnected push the black button on the sonoff and while keeping it pressed connect the FTDI to the USB port so the Sonoff gets powered.
This shoul force the ESP/Sonoff into flashmode.
Now you can program it with the Arduino IDE or a flash program.

edit:
advisable settings in the arduino IDE:
Board: generic ESP8266 module
Flash Mode: QIO
Flash Frequency: 40MHz
Upload using: Serial
CPU frequency: 80MHz
Flash Size: 1M (64k SPIFFS)
Reset method: ck
Upload speed: 115200

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#109 Post by the cosmic gate » 17 Apr 2016, 08:58

costo wrote:I only have experience with the 4_pin sonoff, but from the documentation i cannot see any difference in the schematics of the 4_pin or 5_pin Sonoff module, (except for that one extra pin), so the procedure to flash it should be the same I think.

Disconnect power
connect your FTDI USB/Serial interface which is set to 3.3 volt.
then while the power is still disconnected push the black button on the sonoff and while keeping it pressed connect the FTDI to the USB port so the Sonoff gets powered.
This shoul force the ESP/Sonoff into flashmode.
Now you can program it with the Arduino IDE or a flash program.

edit:
advisable settings in the arduino IDE:
Board: generic ESP8266 module
Flash Mode: QIO
Flash Frequency: 40MHz
Upload using: Serial
CPU frequency: 80MHz
Flash Size: 1M (64k SPIFFS)
Reset method: ck
Upload speed: 115200
Exactly did this several times, using the flash Tool / IDE , but without any result

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: New ESP gadget

#110 Post by costo » 17 Apr 2016, 12:47

the cosmic gate wrote:
Exactly did this several times, using the flash Tool / IDE , but without any result
You must get some messages when flashing with the IDE. No result would mean your USB is faulty.

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: New ESP gadget

#111 Post by kr0815 » 18 Apr 2016, 14:03

I ordered 2 of the new 5pin-Versions, flashed them both without any problems
I used a cheap 3.3V-Adapter, directly connected, incl. power supply
I connectected GND, RXD and TXD, then hold the button, plug 3.3V, release button

morle
Normal user
Posts: 17
Joined: 30 Jan 2016, 08:50
Location: Germany

Re: New ESP gadget

#112 Post by morle » 19 Apr 2016, 07:25

Hi,
I did the same, but after the next OTA update it makes my sonoff unusable.
It worked with R78 which i flashed with the flash tool and then with R99, but flashing R100 OTA makes it unusable.
Can't get it to work again.
My guess is because off this:
http://tech.scargill.net/even-more-sonoff/
Hubert

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#113 Post by the cosmic gate » 19 Apr 2016, 09:56

costo wrote:
the cosmic gate wrote:
Exactly did this several times, using the flash Tool / IDE , but without any result
You must get some messages when flashing with the IDE. No result would mean your USB is faulty.
Try this tonight
Could somebody tell me what way the LED would flicker ?
Getting this differnt way's : fast flickering / normal flickering / stable red
Last edited by the cosmic gate on 19 Apr 2016, 16:52, edited 1 time in total.

Allycat1972
Normal user
Posts: 25
Joined: 19 Apr 2016, 11:12

Re: New ESP gadget

#114 Post by Allycat1972 » 19 Apr 2016, 11:18

Hi everyone.

The work here is excellent and I've had a few of these devices for a while on their dedicated app. Can someone point me to the binaries of the latest 101 version so I can use the rules features. I've tried to build them myself but keep getting compile errors.

Thanks

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: New ESP gadget

#115 Post by costo » 19 Apr 2016, 18:51

morle wrote:Hi,
I did the same, but after the next OTA update it makes my sonoff unusable.
It worked with R78 which i flashed with the flash tool and then with R99, but flashing R100 OTA makes it unusable.
Can't get it to work again.
My guess is because off this:
http://tech.scargill.net/even-more-sonoff/
Hubert
I believe somewhere along the road of new updates the way ESPEasy writes and saves settings has changed.
The easyest way to solve this sort of problems is to erase the old settings.

1 remove power
2 connect RX with TX
3 reconnect power and wait one minute so the old settings can be erased.
4 reset or disconnect/reconnect power
5 most likely you have to connect now to the AP at 192.168.4.1 where you must choose the wifi network to connect to and fill in the password.
6 connect to the ESP now via the network to the given IP, or check your router to see what IP is given to the ESP.

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: New ESP gadget

#116 Post by costo » 19 Apr 2016, 19:01

the cosmic gate wrote: Could somebody tell me what way the LED would flicker ?
Getting this differnt way's : fast flickering / normal flickering / stable red
There is no rule what color when flickers, depends how the manufacturer connects , if any, leds to the chip.

Usually during upload/flashing one led (often a blue one) is flickering very fast which means uploading is busy.
The Sonoff does not have a led that signals a status but the USB/Serial converter shows fast flickering for a while (20-30 seconds) when uploading takes place.
When uploading failes the same led will flicker but just for a short while (1 second or so)

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#117 Post by the cosmic gate » 19 Apr 2016, 22:26

Allycat1972 wrote:Hi everyone.

The work here is excellent and I've had a few of these devices for a while on their dedicated app. Can someone point me to the binaries of the latest 101 version so I can use the rules features. I've tried to build them myself but keep getting compile errors.

Thanks
here you go http://www.filedropper.com/espeasycppgeneric

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#118 Post by the cosmic gate » 19 Apr 2016, 22:46

costo wrote:
the cosmic gate wrote: Could somebody tell me what way the LED would flicker ?
Getting this differnt way's : fast flickering / normal flickering / stable red
There is no rule what color when flickers, depends how the manufacturer connects , if any, leds to the chip.

Usually during upload/flashing one led (often a blue one) is flickering very fast which means uploading is busy.
The Sonoff does not have a led that signals a status but the USB/Serial converter shows fast flickering for a while (20-30 seconds) when uploading takes place.
When uploading failes the same led will flicker but just for a short while (1 second or so)
finally got it working ! U used the shorting solution : http://tech.scargill.net/more-sonoff/

is there anyone who can tell the GPIO for the LED on the sonoff ? (in the 103 software you can set the GPIO for WiFi , so would be nice when the LED on the sonoff can be used for it)

User avatar
SuperToma
Normal user
Posts: 14
Joined: 08 Apr 2016, 08:33

Re: New ESP gadget

#119 Post by SuperToma » 20 Apr 2016, 14:06

the cosmic gate wrote: finally got it working ! U used the shorting solution : http://tech.scargill.net/more-sonoff/
Hi Cosmic Gate,

Can you explain your method for flashing your 5 pins module.

You shorten the points with a cable and took it off before flashing ?
Which version of Esptool and ESPEasy have you used ?

Regards.

r_255
Normal user
Posts: 32
Joined: 20 Nov 2015, 20:42

Re: New ESP gadget

#120 Post by r_255 » 20 Apr 2016, 14:51

If i remember right the Green led should be at gpio 13
but its been 2 weeks ago since.

https://plus.google.com/+RobinFrantzen/ ... RcqFiEY7Nj

Allycat1972
Normal user
Posts: 25
Joined: 19 Apr 2016, 11:12

Re: New ESP gadget

#121 Post by Allycat1972 » 20 Apr 2016, 18:38

the cosmic gate wrote:
Allycat1972 wrote:Hi everyone.

The work here is excellent and I've had a few of these devices for a while on their dedicated app. Can someone point me to the binaries of the latest 101 version so I can use the rules features. I've tried to build them myself but keep getting compile errors.

Thanks
here you go http://www.filedropper.com/espeasycppgeneric
That's great thanks! Uploaded and working fine!!!!! Love the rules as I can operate locally now.

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#122 Post by the cosmic gate » 27 Apr 2016, 13:37

Okay got i runing with a DHT-22 on GPIO pin 14, what / how to get more GPIO's free ?
So i can use GPIO 3 for example

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#123 Post by the cosmic gate » 27 Apr 2016, 20:28

Allycat1972 wrote:
the cosmic gate wrote:
Allycat1972 wrote:Hi everyone.

The work here is excellent and I've had a few of these devices for a while on their dedicated app. Can someone point me to the binaries of the latest 101 version so I can use the rules features. I've tried to build them myself but keep getting compile errors.

Thanks
here you go http://www.filedropper.com/espeasycppgeneric
That's great thanks! Uploaded and working fine!!!!! Love the rules as I can operate locally now.
v105 : http://s000.tinyupload.com/?file_id=254 ... 7768552691 :D

Allycat1972
Normal user
Posts: 25
Joined: 19 Apr 2016, 11:12

Re: New ESP gadget

#124 Post by Allycat1972 » 28 Apr 2016, 17:43

the cosmic gate wrote:
Allycat1972 wrote:
the cosmic gate wrote:
here you go http://www.filedropper.com/espeasycppgeneric
That's great thanks! Uploaded and working fine!!!!! Love the rules as I can operate locally now.
v105 : http://s000.tinyupload.com/?file_id=254 ... 7768552691 :D
Sweeeeet! :D

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#125 Post by the cosmic gate » 30 Apr 2016, 09:30


NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: New ESP gadget

#126 Post by NietGiftig » 30 Apr 2016, 18:20

the cosmic gate wrote:One other nice ESP gadget ; http://www.electrodragon.com/w/ESP_Rela ... and_Wiring
Nice, 2 relays and more pins easy available.
For about the same amount of money as the Sonoff

grz3
Normal user
Posts: 36
Joined: 21 Feb 2016, 21:47

Re: New ESP gadget

#127 Post by grz3 » 30 Apr 2016, 21:54

NietGiftig wrote:
the cosmic gate wrote:One other nice ESP gadget ; http://www.electrodragon.com/w/ESP_Rela ... and_Wiring
Nice, 2 relays and more pins easy available.
For about the same amount of money as the Sonoff
bought these. but I flashed latest R105 to it, connected with FTDI 5V adapter to 5V pin and GND.. but in i2cscann it gives me errors :-(.. any help?

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: New ESP gadget

#128 Post by NietGiftig » 01 May 2016, 19:18

grz3 wrote: bought these. but I flashed latest R105 to it, connected with FTDI 5V adapter to 5V pin and GND.. but in i2cscann it gives me errors :-(.. any help?

There is a powersource on the board, I hope it is a decent one

After flashing remove the ftdi connection, and use the powersource on the board
The FTDI has not enough power to drive this board
But as always with 220v, If you are not sure what to do, do not work with it.
220 v can kill you

Tommy71
New user
Posts: 1
Joined: 30 Apr 2016, 10:42

Re: New ESP gadget

#129 Post by Tommy71 » 02 May 2016, 22:04

Hello,
I flashed my brand new Sonoff TH with the Build 78

I added two devices:

Switch input sonoff 1 GPIO-12
Level Control LED GPIO-13

How can I add the Button to switch the device?

And I got reboots:

Code: Select all

Subscribed to: /Home/#
WD   : Uptime 8 ConnectFailures 30 FreeMem 26232
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /Home/#
Delayed Reset 60
Delayed Reset 59
...

Delayed Reset 2
Delayed Reset 1

 ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
▒U
INIT : Booting Build nr:78
What means "WD : Uptime 8 ConnectFailures 30 FreeMem 26232" ?

Has anybody an hint for me?

Thomas

grz3
Normal user
Posts: 36
Joined: 21 Feb 2016, 21:47

Re: New ESP gadget

#130 Post by grz3 » 03 May 2016, 00:45

NietGiftig wrote:
grz3 wrote: bought these. but I flashed latest R105 to it, connected with FTDI 5V adapter to 5V pin and GND.. but in i2cscann it gives me errors :-(.. any help?

There is a powersource on the board, I hope it is a decent one

After flashing remove the ftdi connection, and use the powersource on the board
The FTDI has not enough power to drive this board
But as always with 220v, If you are not sure what to do, do not work with it.
220 v can kill you
Hello,
connected gadget to 220V, connected SI temp sensor on sda - pin 4, sdl pin5, 3v3 and gnd, and powered up. - still same problem on I2Cscann gives me errors:
Unknow error at address 0x1
Unknow error at address 0x2
Unknow error at address 0x3
.
.
.
Unknow error at address 0x7e
Unknow error at address 0x7f


strange, I disabled in advanced config in espeasy SErial port, and used PIN1 & 3 for I2c, and this is working... so there must be some problem with pins 4&5 on the board...

msev
Normal user
Posts: 33
Joined: 13 Feb 2016, 18:24

Re: New ESP gadget

#131 Post by msev » 09 May 2016, 12:00

Since the Sonoff is fairly small, Would you guys think it would be possible to stick it inside the case of those 433Mhz sockets, with their internals removed and replaced by the Sonoff. Maybe I would also unsolder the button from the Sonoff and fit it on the outside of the Socket's case so I could also have local on off control over the socket not just wifi control via the mobile phone.

User avatar
lucaberta
Normal user
Posts: 59
Joined: 09 May 2016, 11:26
Location: Lausanne, Switzerland
Contact:

Re: New ESP gadget

#132 Post by lucaberta » 09 May 2016, 16:14

msev wrote:Since the Sonoff is fairly small, Would you guys think it would be possible to stick it inside the case of those 433Mhz sockets, with their internals removed and replaced by the Sonoff. Maybe I would also unsolder the button from the Sonoff and fit it on the outside of the Socket's case so I could also have local on off control over the socket not just wifi control via the mobile phone.
it's been done already

Image

Check here:
http://tech.scargill.net/sonoff-to-mains-block/

Ciao, Luca

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: New ESP gadget

#133 Post by manjh » 21 May 2016, 10:26

I can see that this little gadget generates a lot of interest and creativity.
But what if I want to go back to basics? I want to use this device as a built-in on/off switch, controllable from Domoticz/RFLink.
Nothing else needs to be attached.

What do I need to do?
Guessing:
1. solder a 4-pin header onto the print
2. flash EasyESP

then?

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: New ESP gadget

#134 Post by manjh » 21 May 2016, 12:55

OK, I got through step 1 (soldered a 4-pin male header). And found out that the inner pin is vcc, outer pin is gnd.
The two pins in between must be TXD/RXD, not sure which is which.

I connected these four to a serial adapter to USB, but the unit comes up in Windows device manager with a warning triangle: device cannot start (code 10).
Also shows "A device which does not exist was specified" /
Tried to swap the TXD/RXD leads, no change.

What am I doing wrong?

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: New ESP gadget

#135 Post by costo » 21 May 2016, 18:56

manjh wrote:OK, I got through step 1 (soldered a 4-pin male header). And found out that the inner pin is vcc, outer pin is gnd.
The two pins in between must be TXD/RXD, not sure which is which.

I connected these four to a serial adapter to USB, but the unit comes up in Windows device manager with a warning triangle: device cannot start (code 10).
Also shows "A device which does not exist was specified" /
Tried to swap the TXD/RXD leads, no change.

What am I doing wrong?
If you own the sonoff without the 433MHz board then you must push the button before you connect it to the USB port , then you will enter the flash mode.

About your USB/Serial adapter not recognized by Windows:
You must first install the proper driver, depending on the USB/Serial chip that is on the adapter. The CP2102 will probably be recognized but if the CH340/341 chip is on the adapter you must use the install program for that chip. Windows/virusscanner will probably complain that the driver/program is not safe etc.... , you must ignore that. If you do not trust the driver you find on internet you can upload it first to a site that will scan the exe/zip file, a site like https://virusscan.jotti.org/

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: New ESP gadget

#136 Post by manjh » 22 May 2016, 14:02

OK, got it. As it turns out my usb/serial device contains a "fake" PL2303, which is detected and refused by the latest drivers.
Solution is to install an old version of the driver.
After I did that, flashing EasyESP into the device was very simple.

Installation into Domoticz was not as I expected: I was looking for a "relay" device in EasyESP, but no such thing is there.
I got it working by creating a dummy device in Domoticz, and send the on/off commands directly to the IP address of the device as "On/Off actions".
It works, but..... am I missing something? Is this the only way to control attached relays?

Anyway, I am quite happy with this Sonoff device. I consider it a cheap alternative to the KlikAanKlikUit switches, especially for lights that will allow this small box to be built in to the housing.
Now looking for a cheap source to order a few more.

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: New ESP gadget

#137 Post by costo » 23 May 2016, 01:05

manjh wrote: Installation into Domoticz was not as I expected: I was looking for a "relay" device in EasyESP, but no such thing is there.
I got it working by creating a dummy device in Domoticz, and send the on/off commands directly to the IP address of the device as "On/Off actions".
It works, but..... am I missing something? Is this the only way to control attached relays?
In principle ESPEasy is a system that collects data from sensors, sensors that have a dedicated plugin made for the device, and sends the collected data to a server like Domoticz.
You can manipulate outputs on the ESP by sending something like: <LOCAL-IP>/control?cmd=xxxxxxx .
For explanation of the commands see http://www.esp8266.nu/index.php/Main_Page under actuators/outputs.
With that you can control relais/led/servo. That's the way this works.

I control my sonoff in Domoticz as a dummy virtual sensor with these settings:
Image

In ESPEasy I made a task:
Device: Switch Input
Name: Pushbutton
idx/Var: 421
1st GPIO: GPIO-0
Pull-Up : yes
Switch type: Switch
Switch Button Type: Push Button Active Low
Send Boot State: yes
Send Date: yes

Anyway, I am quite happy with this Sonoff device. I consider it a cheap alternative to the KlikAanKlikUit switches, especially for lights that will allow this small box to be built in to the housing.
Now looking for a cheap source to order a few more.
Like you say, it works as a cheap and reliable alternative for 433MHz switches andyou can do more with this if you want.
The best source for Sonoff is http://www.Itead.cc , If you order 4 or 5 items you will have reasonable shippingcost and certainly no import duties as long as the orderamount is under ca. 25 euro/dollar

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: New ESP gadget

#138 Post by manjh » 23 May 2016, 16:24

OK. I found a source for $7, including shipping. So unless I want to order 5 units this is cheaper.

In Domoticz I was able to control the LED, and pick up on the pushbutton. So far so good.
Now for the next step: can I control the relay and the LED from the same device?
This would need me to put two commands in the on/off action field. How?

Allycat1972
Normal user
Posts: 25
Joined: 19 Apr 2016, 11:12

Re: New ESP gadget

#139 Post by Allycat1972 » 23 May 2016, 17:13

manjh wrote:OK. I found a source for $7, including shipping. So unless I want to order 5 units this is cheaper.

In Domoticz I was able to control the LED, and pick up on the pushbutton. So far so good.
Now for the next step: can I control the relay and the LED from the same device?
This would need me to put two commands in the on/off action field. How?
Not sure about Domoticz but you would normally use a rule to take action when the button is pushed. So: -

Domoticz item might just be the push button input. But there would be a rule to state 'when push button is pressed, switch the light on & switch the relay on'

Or EPSEasy v99 and above has it's own rules section which can do the same operation locally on the sonoff. (see page 9 of this post for examples)

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: New ESP gadget

#140 Post by manjh » 24 May 2016, 10:52

I used V78, so no rules in EasyESP I think.
For now I solved it in Domoticz, almost 100% correct (small problem synchronizing the state of the pushbutton between device and Domoticz)

Mikey
New user
Posts: 5
Joined: 24 May 2016, 23:01

Re: New ESP gadget

#141 Post by Mikey » 24 May 2016, 23:05

The Sonoff is a pretty nice little device, so far I have flashed mine with my own code from the Arduino IDE, and added a DHT22 sensor to it too. :)

Image
http://captain-slow.dk/2016/05/24/addin ... he-sonoff/

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#142 Post by the cosmic gate » 29 May 2016, 14:40

For the interesed people, the newest (107) compiled Bin file : http://s000.tinyupload.com/?file_id=044 ... 7797739379

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: New ESP gadget

#143 Post by NietGiftig » 29 May 2016, 21:51

the cosmic gate wrote:For the interesed people, the newest (107) compiled Bin file : http://s000.tinyupload.com/?file_id=044 ... 7797739379
I'm not sure if it works this way for everybody.
For what ESP is the binfile compiled , what kind of memory.
What memory split?

Hoffan72
New user
Posts: 3
Joined: 15 Apr 2016, 19:36

Re: New ESP gadget

#144 Post by Hoffan72 » 30 May 2016, 18:46

NietGiftig wrote:
the cosmic gate wrote:For the interesed people, the newest (107) compiled Bin file : http://s000.tinyupload.com/?file_id=044 ... 7797739379
I'm not sure if it works this way for everybody.
For what ESP is the binfile compiled , what kind of memory.
What memory split?

This is working good on NodeMCU

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#145 Post by the cosmic gate » 30 May 2016, 19:41

NietGiftig wrote:
the cosmic gate wrote:For the interesed people, the newest (107) compiled Bin file : http://s000.tinyupload.com/?file_id=044 ... 7797739379
I'm not sure if it works this way for everybody.
For what ESP is the binfile compiled , what kind of memory.
What memory split?
I flashes this on the sonoff (we are talking about in this topic)

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: New ESP gadget

#146 Post by NietGiftig » 30 May 2016, 23:04

the cosmic gate wrote: I flashes this on the sonoff (we are talking about in this topic)
Ah, oke.
Stupid me :oops:

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#147 Post by the cosmic gate » 05 Jun 2016, 15:35

Is there a way to setup something like master slave on espeasy ?
I am going to connect some extra esp12e using the 3v power pins to get more GPIO's and connect a display
Got some nice idea's for the salt water aquarium . Want to measure the temp , control some lights , use water level sensors , use a water pump (ATO) etc on one sonoff ;)

the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Re: New ESP gadget

#148 Post by the cosmic gate » 05 Jun 2016, 22:31

the cosmic gate wrote:Is there a way to setup something like master slave on espeasy ?
I am going to connect some extra esp12e using the 3v power pins to get more GPIO's and connect a display
Got some nice idea's for the salt water aquarium . Want to measure the temp , control some lights , use water level sensors , use a water pump (ATO) etc on one sonoff ;)
I read about the pro mini extender option, that would probably help me .
Is it possible with this option to drive a oled touch display/screen ?

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: New ESP gadget

#149 Post by manjh » 07 Jun 2016, 13:27

Just received the second Sonoff. This one has 5 holes for the serial header, not 4.

Modification and flashing was easy. But when I measured the V on the output, I noticed that even when the relay is switched off, there is still some 14 or 15V remaining.
Is this a problem, or should I ignore?

MonkeyTown
Normal user
Posts: 25
Joined: 08 May 2016, 02:29

Re: New ESP gadget

#150 Post by MonkeyTown » 27 Jun 2016, 22:15

Hi guys.

thanks for this thread, as it has been a great source of information.

I have one question though. Just received my new Sonoff and it is the 5 pin one.
Can anyone share the pinout for flashing? I have mu FTDI programmer set to 3.3V and presume that the square pin is 3.3V as in the 4 pin ver.

If anyone can point me in the right direction it would be greatly appreciated. Thanks in advance! Peter Scargill's blog has the 4 pin one only too...

Also, has anyone flashed ESP Easy onto the Slampher yet?
sonoff.jpg
sonoff.jpg (146 KiB) Viewed 126086 times

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests