New ESP gadget

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
Deennoo
Normal user
Posts: 158
Joined: 07 Sep 2015, 13:03

Re: New ESP gadget

#81 Post by Deennoo » 17 Mar 2016, 14:42

cherowley wrote: Over 40 days since I last unplugged it and no reboots :)
Just put 1 Sonoff with ESPEasy r78 on it, on a external Light, will see how many time this will stay on the same cycle.

Actualy there is my record :
Capture.JPG
Capture.JPG (40.35 KiB) Viewed 23435 times
This one of my first ESP8266 sp1, this module is use for Swiming pool Temp (ds18b20), and Water Pulse Counter (Itron Hall System), there is no condo :o , using various power supply because there is no 230v near this place (230v ->12 4A->3.3V)

Deennoo
Normal user
Posts: 158
Joined: 07 Sep 2015, 13:03

Re: New ESP gadget

#82 Post by Deennoo » 21 Mar 2016, 14:03

Back to this new ESP Gadget !

My first project with this, is to bring wifi to this :

Image

Goal is :

- Drive this light via is own on/off switch
- Drive this light via Sonoff relay
- Get Switch Statut


Drive the light via Sonoff relay is ok :

Code: Select all

http://<ESP IP address>/control?cmd=GPIO,<pin>,0

http://<ESP IP address>/control?cmd=GPIO,<pin>,1
Getting switch status is ok by using serial gpio.

Now, i need to drive the physical relay by the physical switch like the sonoff module do as original (without going to my home automation and come back to the light) some thing like a rules :

If switch gpio change to 1 and gpio 12 = 0 then gpio 12 = 1
if switch gpio change to 0 and gpio 12 = 1 then gpio 12 = 0
If switch gpio change to 1 and gpio 12 = 1 then gpio 12 = 0
If switch gpio change to 0 and gpio 12 = 0 then gpio 12 = 1

Did you have any tricks please ?

fluppie
Normal user
Posts: 88
Joined: 09 Oct 2015, 13:23

Re: New ESP gadget

#83 Post by fluppie » 22 Mar 2016, 20:48

I used the new R91 release with rules to control the Sonoff relay with the button and get feedback from the led:

Code: Select all

on SW_1#Switch do
  if [SW_1#Switch]=0
    gpio,12,0
    gpio,13,1
  else
    gpio,12,1
    gpio,13,0
  endif
endon
Attachments
Sonoff1.png
Sonoff1.png (29.97 KiB) Viewed 23262 times

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: New ESP gadget

#84 Post by costo » 23 Mar 2016, 00:33

Good news for those who do not like to have 220V near the ESP .

Itead has a newer SonOff switch for low voltage. https://www.itead.cc/sonoff-sv.html. It just needs an external voltage between 5-24 volt DC.
The good news is that more GPIO pins are easy available on this board. GPIO-4, GPIO-5 and GPIO-14 are connected to headers.
As was in the 230V version the relais is at GPIO-12 and a pushbutton on GPIO-0 for easy flashing.
The flash memory is 1Mbyte so perfect for OTA.
The price is the same as the high voltage version $4.85 ex shippingcost

This is a perfect device for ESPEasy

MacHack
Normal user
Posts: 1
Joined: 25 Mar 2016, 09:32

Re: New ESP gadget

#85 Post by MacHack » 25 Mar 2016, 09:46

Hi,

Sonoff together with Espeasy is a really great tool ! I bought 9 of them and installed them at home to control my heaters using the French "fil pilote" and Domoticz. I use R82 version for now, I plan on upgrading quite soon.
They work perfectly. I also installed on a few of them a ds18b20 temperature sensor. However, I haven't managed to make them work them using GPIO-1 or GPIO-3.
As a quick work around, I used GPIO 0 which already have a pull up.
To connect easily to GPIO-0, there is a quick fix using solder to expose GPIO-0 on the rf headers.
Have anyone of you managed to connect 1wire devices to GPIO1 or GPIO3 ?

Anyway, I plan on using another sonoff with espeasy to control my water heater and check my power consumption.
Attachments
sonoff.jpg
sonoff.jpg (15.93 KiB) Viewed 23134 times

Deennoo
Normal user
Posts: 158
Joined: 07 Sep 2015, 13:03

Re: New ESP gadget

#86 Post by Deennoo » 25 Mar 2016, 10:29

MacHack wrote:Hi,

Sonoff together with Espeasy is a really great tool ! I bought 9 of them and installed them at home to control my heaters using the French "fil pilote" and Domoticz. I use R82 version for now, I plan on upgrading quite soon.
They work perfectly. I also installed on a few of them a ds18b20 temperature sensor. However, I haven't managed to make them work them using GPIO-1 or GPIO-3.
As a quick work around, I used GPIO 0 which already have a pull up.
To connect easily to GPIO-0, there is a quick fix using solder to expose GPIO-0 on the rf headers.
Have anyone of you managed to connect 1wire devices to GPIO1 or GPIO3 ?

Anyway, I plan on using another sonoff with espeasy to control my water heater and check my power consumption.
I install ESPEASY mini r78 on it, this provid aviability to use GPIO 0 or GPIO 2.

On R91 there is option :

Use Serial Port :
Capture.JPG
Capture.JPG (82.77 KiB) Viewed 23125 times
Don't test yet if this allow the same as ESPeasy mini

Edit : Just test to unmark : Enable Serial Port, It Allow aviablility to use rx and tx as "normal" GPIO
Last edited by Deennoo on 25 Mar 2016, 14:32, edited 1 time in total.

Deennoo
Normal user
Posts: 158
Joined: 07 Sep 2015, 13:03

Re: New ESP gadget

#87 Post by Deennoo » 25 Mar 2016, 14:30

fluppie wrote:I used the new R91 release with rules to control the Sonoff relay with the button and get feedback from the led:

Code: Select all

on SW_1#Switch do
  if [SW_1#Switch]=0
    gpio,12,0
    gpio,13,1
  else
    gpio,12,1
    gpio,13,0
  endif
endon
Just Try it ! Perfect !! Thx you and thx R91 !

micha
Normal user
Posts: 3
Joined: 31 Mar 2016, 19:22

Re: New ESP gadget

#88 Post by micha » 31 Mar 2016, 19:44

Hi,

I tried a configuration for my Sonoff using a combination of Devices, Rules (R94) and an addition to the commands for ESP-Easy to get the following features:

press switch for less than 1 second: turn relais on
press switch for about 3 seconds: turn relais off
press switch for about 7-8 seconds: start access point of esp to recover from mis-configuration

Maybe this is helpful for anybody...
Rules:

Code: Select all

on sw1#Switch=0 do
  timerSet,1,1
endon
On Rules#Timer=1 do
  if [sw1#Switch]=0
    timerSet,2,2
  else
    gpio,12,1
  endif
endon
On Rules#Timer=2 do
  if [sw1#Switch]=0
    timerSet,3,5
  else
    gpio,12,0
  endif
endon
On Rules#Timer=3 do
    wifiap
endon
addition to file command.ino
(insert somewhere after other wifi commands, eg after line 242 "WifiDisconnect"...)

Code: Select all

// --> disconnect current Wifi and restart AP mode
   if (strcasecmp_P(Command, PSTR("WifiAP")) == 0)
  {
    success = true;
    WifiDisconnect();
    WifiAPMode(true);
    //ESP.reset();
  }
 // <-- 
 
Devices:
Devices_Sonoff.png
Devices_Sonoff.png (112.26 KiB) Viewed 22821 times

fluppie
Normal user
Posts: 88
Joined: 09 Oct 2015, 13:23

Re: New ESP gadget

#89 Post by fluppie » 01 Apr 2016, 13:08

I'm wondering why you configure an output as an input? Is there a specific reason to?

micha
Normal user
Posts: 3
Joined: 31 Mar 2016, 19:22

Re: New ESP gadget

#90 Post by micha » 02 Apr 2016, 13:13

fluppie wrote
I'm wondering why you configure an output as an input? Is there a specific reason to?
You`re right. It´s completely unnecessary :oops:

Was my error to think it´s needed to use it in domoticz. It´s not...

If you need to read the relay control port level in your rules, you do. :)

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

Re: New ESP gadget

#91 Post by morle » 08 Apr 2016, 00:41

Hi,
I got 3 sonoff with 5 pin, tried to flash one with espeasy.
Always get this error:

Code: Select all


warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
Can anybody help here?
Regards
Hubert

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

Re: New ESP gadget

#92 Post by SuperToma » 08 Apr 2016, 08:35

Hi !

I have the same problem, is it possible to flash it with a serial port RS232 ?

cherowley
Normal user
Posts: 125
Joined: 14 Jan 2016, 09:39

Re: New ESP gadget

#93 Post by cherowley » 08 Apr 2016, 10:13

5 pins?

Ooo, please take a picture :)

Deennoo
Normal user
Posts: 158
Joined: 07 Sep 2015, 13:03

Re: New ESP gadget

#94 Post by Deennoo » 08 Apr 2016, 10:39

Maybe like H801 module one pin have to be set on gnd before power it, to set it on "programmation mode"

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

Re: New ESP gadget

#95 Post by morle » 08 Apr 2016, 11:08

It looks like in the wiki explaned here:
http://wiki.iteadstudio.com/Sonoff_TH
Regards
Hubert

cherowley
Normal user
Posts: 125
Joined: 14 Jan 2016, 09:39

Re: New ESP gadget

#96 Post by cherowley » 08 Apr 2016, 11:54

Ah, hadn't seen that one before :)

Convenient extra io pin :)

I've used the tx/rx pins on mine for PIR and dht sensors etc :)

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

Re: New ESP gadget

#97 Post by kr0815 » 10 Apr 2016, 20:02

fluppie wrote:
I used the new R91 release with rules to control the Sonoff relay with the button and get feedback from the led:

CODE: SELECT ALL
on SW_1#Switch do
if [SW_1#Switch]=0
gpio,12,0
gpio,13,1
else
gpio,12,1
gpio,13,0
endif
endon
i tried to change it the way that the relais status instead of the switch is read, so i could toggle always, even if the relais is switched from somewhere else

Now I have to push the button several times till it changes the state, any suggestions ?


[img]
Clipboard01.jpg
Clipboard01.jpg (69.45 KiB) Viewed 13413 times
[/img]

Code: Select all

on SW_1#Switch do
  if [relais#Switch]=1
    gpio,12,0
    gpio,13,1
  else
    gpio,12,1
    gpio,13,0
  endif
endon

kroonen
Normal user
Posts: 26
Joined: 05 Oct 2015, 22:00

Re: New ESP gadget

#98 Post by kroonen » 11 Apr 2016, 21:15

Any idea what GPIO this extra pin is?

Looking at the schema, it looks like gpio14?

xbmcnut
Normal user
Posts: 49
Joined: 17 Mar 2016, 08:49
Location: Auckland, NZ
Contact:

Re: New ESP gadget

#99 Post by xbmcnut » 12 Apr 2016, 07:52

morle wrote:Hi,
I got 3 sonoff with 5 pin, tried to flash one with espeasy.
Always get this error:

Code: Select all


warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
Can anybody help here?
Regards
Hubert
Had this today on several units. Hold down the button, plug in the USB and continue to hold button down for 10 seconds. Worked for me.
Numerous Sonoff's and Shelly's, Home Assistant on Intel NUC i3, Aeotec Z-Stick (Gen 5), deCONZ Zigbee Stick, 3 x Echo Dot's and 5 x Google Home

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

Re: New ESP gadget

#100 Post by morle » 12 Apr 2016, 11:39

Hi,
I managed to flash the ESPEasy_R78_1024.bin image.
But now i am not able to flash a newer version OTA.
Not even to do a config with the R78.
I can see in the log that the config is saved into the Flash, but when i reboot my sonoff, it starts again in AP mode with the initial setup.
What to do here?
Regards
Hubert

TridentTD
Normal 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 18946 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 18909 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 18888 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 :)

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

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

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

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: 132
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

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

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.

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

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
Normal 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...

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests