Sonoff 4CH with ESPEasy

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
cy80rg
New user
Posts: 8
Joined: 23 Aug 2017, 22:08

Noob - powering Sonoff for flash?

#51 Post by cy80rg » 23 Aug 2017, 22:37

More specifically, my issue is:

On his modd'ed programmer in that tutorial, he's got 3 pins - 1 VCC, 1 3.3v, 1 ground.

On my programmer, I have two pins - Vcc and ground.

Looking at his programmer / voltage reg, he's got the first two legs of the voltage reg going to VCC and 3.3, but then using a jumper to short them together / set 3/3v.
The 3rd leg of the reg is ground, which is easy enough.

On my programmer, I only have the one Vcc + voltage select on jumpers above the out put pins, so - in desperation - I figured that joining both Vin and OUT on the reg to the VCC on the programmer would be an equivalent... obviously not.

From the inline voltage reg (on my breadboard) I had Vin and OUt going to VCC on the programmer, with Ground going to Ground on the Sonoff.

Clearly I was incorrect - what should i have done?

sjp770
New user
Posts: 3
Joined: 24 Aug 2017, 03:49

Re: Sonoff 4CH with ESPEasy

#52 Post by sjp770 » 24 Aug 2017, 03:56

Any ideas if the Sonoff 4CH Pro is supported? Would love to have the RF support as well.

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

Re: Sonoff 4CH with ESPEasy

#53 Post by manjh » 24 Aug 2017, 08:17

What you could do is connect tx/rx and ground, keeping the vcc pin open, and then connect the Sonoff to mains. Careful! :geek: :ugeek: :geek:

cy80rg
New user
Posts: 8
Joined: 23 Aug 2017, 22:08

Re: Sonoff 4CH with ESPEasy

#54 Post by cy80rg » 24 Aug 2017, 09:20

Thanks Manjh ,
I know it's easy to "ignore the dumb noob" when you guys are all at such a higher level :)

Much appreciate your help, I'll give that a try tonight.

Apart from "generally not poking things with a screw driver" when connected to the mains, and specific non no's?

From your advice, I plan to run a direct mains supply into the "wire clamp input" (no barrel input on this model)...

Is that correct?

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

Re: Sonoff 4CH with ESPEasy

#55 Post by manjh » 24 Aug 2017, 14:06

cy80rg wrote: 24 Aug 2017, 09:20 Thanks Manjh ,
I know it's easy to "ignore the dumb noob" when you guys are all at such a higher level :)

Much appreciate your help, I'll give that a try tonight.

Apart from "generally not poking things with a screw driver" when connected to the mains, and specific non no's?

From your advice, I plan to run a direct mains supply into the "wire clamp input" (no barrel input on this model)...

Is that correct?
Don't worry if you're a noob or not (I doubt it), even Einstein started out as an absolute noob :)

The only thing you need to remember when you're working on the Sonoff 4CH when it is attached to mains: there will be leads on the bottom that are "live". So make sure you place the print in the bottom part of the housing, and place it on a very stable flat surface. Make sure the leads are out of the way so you can't accidentally pull the print from the table. Imagine what would happen if in a reflex you try to catch it...
All jokes aside, 230V is no joke to play around with.

So connect a wire with a plug to the "mains in", connect tx/rx (remember: no crossing for this device!), and connect ground (probably not really needed, but I would connect it anyway).
Once you are satisfied that everything is connected: connect the plug to a mains outlet.

cy80rg
New user
Posts: 8
Joined: 23 Aug 2017, 22:08

Re: Sonoff 4CH with ESPEasy

#56 Post by cy80rg » 24 Aug 2017, 14:50

Thanks Manjh :)

One last...

When you say "no crossing on this device", does that mean

A) the device doesnt cross tx to Rx, so I'll need to
Or
B) the device does cross, so I don't need to?

So Rx to Rx, tx to tx?

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

Re: Sonoff 4CH with ESPEasy

#57 Post by manjh » 24 Aug 2017, 16:28

cy80rg wrote: 24 Aug 2017, 14:50 Thanks Manjh :)

One last...

When you say "no crossing on this device", does that mean

A) the device doesnt cross tx to Rx, so I'll need to
Or
B) the device does cross, so I don't need to?

So Rx to Rx, tx to tx?
Normally you would cross: so connect tx to rx and vv.
With the Sonoff the labels tell you where to connect. So connect tx to tx, rx to rx.

cy80rg
New user
Posts: 8
Joined: 23 Aug 2017, 22:08

Re: Sonoff 4CH with ESPEasy

#58 Post by cy80rg » 24 Aug 2017, 19:24

thanks manjh

home now, got the sonoff and the programmer connected as you suugest - runnng off the mains.

power to the sonoff is stable.

I was hoping it would just be a case of "holding down the first button", then appying power to the sonoff to get in to boot flash mode...

Howver, if i do that - the sonoff doesnt seem to turn on at all (no lights).

However, if i push the first button (fw/100 - I like the fact it's labelled "fw"!) , after the sonoff is powered, the L4 led lights (IO4) - in what may be green or red (im color blind).

Trying to upload a bin to the sonoff via Nodemcu... I get

Arbitrarily set to COm5, as thats what Nodemcu started up with.

AP MAC - Waiting MAC
STA MAC - waiting mac

Blue spinning icon bottom let corner (which i assume means it thinks its doing something), and reuire ("gpio") and require("wifi") fade in and out under the com area of the UI.

I would imagine those are the current commands being sent to - received from the sonoff - but they just repeat...

Silly question - this sonoff is straight out of the box - I've never had it associated on my wifi etc - do i need to do the basic set up, as per the OEM fw, first?

For fear the FW is actually being written - I'll leave it all plugged in and "doing it's thang" for a while....

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

Re: Sonoff 4CH with ESPEasy

#59 Post by manjh » 24 Aug 2017, 20:12

You will need to get the Sonoff in flash mode before applying power. If it reacts to that first button like you describe, it means that the firmware is still the original Sonoff.
If you want to test, you could download their app and see if you can pair it.

So: press and hold the button and only then plug in the mains. That should do it (I flashed two of them this way)

cy80rg
New user
Posts: 8
Joined: 23 Aug 2017, 22:08

Re: Sonoff 4CH with ESPEasy

#60 Post by cy80rg » 24 Aug 2017, 22:48

Thanks Manjh,

So, hold down the first button (marked fw/io01) then power the sonoff, then release the button...?

How does the Sonoff show its in flash mode, lit LEDs etc?

When I did that with mine, it didn't show any LEDs or sign of life period.

I have since paired and tested with the OEM app, so at least I've not killed it....

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

Re: Sonoff 4CH with ESPEasy

#61 Post by manjh » 24 Aug 2017, 22:54

cy80rg wrote: 24 Aug 2017, 22:48 Thanks Manjh,

So, hold down the first button (marked fw/io01) then power the sonoff, then release the button...?

How does the Sonoff show its in flash mode, lit LEDs etc?

When I did that with mine, it didn't show any LEDs or sign of life period.

I have since paired and tested with the OEM app, so at least I've not killed it....
If you have paired with the app, you were not successful in flashing.
When the Sonoff is in flash mode it does not show anything special.
Also, when you flash code while it is NOT in flash mode, everything seems to go OK since the flash tool does not really have a way to check.
So the only way to know if it worked: try to reboot the unit and see if you get the AP coming up in Wifi... :-)

cy80rg
New user
Posts: 8
Joined: 23 Aug 2017, 22:08

Re: Sonoff 4CH with ESPEasy

#62 Post by cy80rg » 25 Aug 2017, 19:36

W00t! :)

Got it working - on the wifi and I'm about to start the set up process...

FOr others who may find it of use, few things that through me:

1. To get into boot loader mode (flash mode), hoeld won the first button on the Sonoff 4 ch... with the lid of the case off, you should find this is marked FW/IO0 .
2. Power on the Sonoff
3. In boot mode - there's NO LIGHTS or anything to show the Sonoff is even on. But, it is - and in boot mode!
4. A case of RTFM, but this WONT appear as a new device on your network (i.e access it via an IP on your network) - largely becuase it ISNT at this point.
Instead, use some other wifi device (phone etc), search for a new Access Point (probably ESP_O or simmilar) and connect to that. It'll ask you to sign in (see wiki for pw), then simply eneter your wifi creds.
The Sonoff will reboot, then register and appear on your network.
From there - go to that IP and do all that set-upy-jiggerypokery I'm about to do!

NOTE: These points above *arent a complete step through* - they're just stuff that threw me - and in fairness, much of it is RTFM and getting a bit confused ;)

Thanks to ManJh for his help, even as I could feel him losing the will to live towards the end... ;)

Cheers buddy :)

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

Re: Sonoff 4CH with ESPEasy

#63 Post by manjh » 26 Aug 2017, 08:48

cy80rg wrote: 25 Aug 2017, 19:36 W00t! :)

Got it working - on the wifi and I'm about to start the set up process...

FOr others who may find it of use, few things that through me:

1. To get into boot loader mode (flash mode), hoeld won the first button on the Sonoff 4 ch... with the lid of the case off, you should find this is marked FW/IO0 .
2. Power on the Sonoff
3. In boot mode - there's NO LIGHTS or anything to show the Sonoff is even on. But, it is - and in boot mode!
4. A case of RTFM, but this WONT appear as a new device on your network (i.e access it via an IP on your network) - largely becuase it ISNT at this point.
Instead, use some other wifi device (phone etc), search for a new Access Point (probably ESP_O or simmilar) and connect to that. It'll ask you to sign in (see wiki for pw), then simply eneter your wifi creds.
The Sonoff will reboot, then register and appear on your network.
From there - go to that IP and do all that set-upy-jiggerypokery I'm about to do!

NOTE: These points above *arent a complete step through* - they're just stuff that threw me - and in fairness, much of it is RTFM and getting a bit confused ;)

Thanks to ManJh for his help, even as I could feel him losing the will to live towards the end... ;)

Cheers buddy :)
Good,well done. :D
But one thing you are absolutely right about: all of this has been documented in the Wiki. The only thing that is different is the fact that a regular ftdi programmer will not supply the amount of power to run the device. With a "normal" esp unit it will run fine, a Sonoff 4ch is simply too power-hungry. So this is where the mains-on trick comes along.
The rest of the steps are fairly standard, so yes: RTFM! :mrgreen:

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#64 Post by Dylantje » 17 Sep 2017, 19:09

sorry guys...

Is there a way in a wiki or so, to flash this 4channel board..
I read there is a other version for this board.

Only where can i find the flash tool and the firmware for generic ESP8285

search the net...
Only think do everything wrong..
Flash with esp8266 only no luck @ all..

Hope for some help ..

Thanks

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff 4CH with ESPEasy

#65 Post by Shardan » 17 Sep 2017, 21:49

look at page 4 of this thread.
i've posted a compiled verion for the 4ch there
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#66 Post by Dylantje » 17 Sep 2017, 22:22

Shardan wrote: 17 Sep 2017, 21:49 look at page 4 of this thread.
i've posted a compiled verion for the 4ch there
mm
Thanks i see that..
Only i do not understand how to use this in ide?
What do i need to load?
And where to place ?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff 4CH with ESPEasy

#67 Post by Shardan » 17 Sep 2017, 22:40

i used the standard esp tool that came with the r14x ( it is a bit different from the esptool that came with r120).
For my 4ch's i could just flash the binary directly, worked. As long as Itead did not change things as they did with sonoff basic it should work.
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#68 Post by Dylantje » 18 Sep 2017, 19:48

Shardan wrote: 17 Sep 2017, 22:40 i used the standard esp tool that came with the r14x ( it is a bit different from the esptool that came with r120).
For my 4ch's i could just flash the binary directly, worked. As long as Itead did not change things as they did with sonoff basic it should work.
Sorry i do not understand what you say here...?
Please i am a dummy

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff 4CH with ESPEasy

#69 Post by Shardan » 18 Sep 2017, 22:42

sorry, i'm on vaccation atm and i have only my old tablet at hand.
With one of the r14x versions a reworked flash tool was delivered.
that was the flashtool i used with the binary i attached with this thread.
Regards
Shardan

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

Re: Sonoff 4CH with ESPEasy

#70 Post by manjh » 19 Sep 2017, 00:36

Shardan wrote: 18 Sep 2017, 22:42 sorry, i'm on vaccation atm and i have only my old tablet at hand.
With one of the r14x versions a reworked flash tool was delivered.
that was the flashtool i used with the binary i attached with this thread.
Same here. I had my share of trouble flashing the Sonoff units, and in the end found that old flash tool to work best.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#71 Post by Dylantje » 19 Sep 2017, 07:18

mm m where can i find this tool? [ i do not have it ]
And can i flash then the normal latest espeasy beta with it?
Or does any one have a working os for me,

Thanks

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

Re: Sonoff 4CH with ESPEasy

#72 Post by manjh » 19 Sep 2017, 10:14

Dylantje wrote: 19 Sep 2017, 07:18 mm m where can i find this tool? [ i do not have it ]
And can i flash then the normal latest espeasy beta with it?
Or does any one have a working os for me,

Thanks
This is quite easy to find in the Wiki. Look for the esp setup, there is a link to a download which also brings the esptool downloader and cmd files.
Then when you want to load a 2.0 release or a version that you compiled yourself, make sure it follows the naming convention for the loader tool.

Note that for the Sonoff 4CH unit you will need to recompile using a different processor.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#73 Post by Dylantje » 20 Sep 2017, 18:55

mm when i have tie i try...

Only what are the gpio port to use for the four channels?
And how can i switch them with a http command..

Thanks

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

Re: Sonoff 4CH with ESPEasy

#74 Post by manjh » 20 Sep 2017, 19:24

Dylantje wrote: 20 Sep 2017, 18:55 mm when i have tie i try...

Only what are the gpio port to use for the four channels?
And how can i switch them with a http command..

Thanks
GPIO 4, 5, 12 and 15.
Buttons are 0,9,10 and 14.
I switch them from the rules, so I can give a simple json command and let the rules translate it into the proper GPIO.

When I have some time I will update the Wiki to reflect my setup as a small project.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#75 Post by Dylantje » 20 Sep 2017, 19:26

manjh wrote: 20 Sep 2017, 19:24 When I have some time I will update the Wiki to reflect my setup as a small project.

Hope you do that...
Cannot understand the wiki..
Hope you will let it know when..

thanks!

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

Re: Sonoff 4CH with ESPEasy

#76 Post by manjh » 20 Sep 2017, 19:32

Dylantje wrote: 20 Sep 2017, 19:26
manjh wrote: 20 Sep 2017, 19:24 When I have some time I will update the Wiki to reflect my setup as a small project.

Hope you do that...
Cannot understand the wiki..
Hope you will let it know when..

thanks!
Which part don't you understand?
In my view, the Wiki was set up quite good, and has recently been reorganized.
It should be easy to understand for everyone!

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#77 Post by Dylantje » 20 Sep 2017, 19:34

mmm what part do you talking about..
The normal is no problem i flashed 10 sonoff
Only the wiki for the 4 channel :-( ?

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#78 Post by Dylantje » 20 Sep 2017, 19:48

and other topic only no answer

Do you perhaps know how i can use the Sonoff dual..
Please a http command? with the gpio that is used..
A example please?
Thanks

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

Re: Sonoff 4CH with ESPEasy

#79 Post by manjh » 20 Sep 2017, 21:10

Dylantje wrote: 20 Sep 2017, 19:48 and other topic only no answer

Do you perhaps know how i can use the Sonoff dual..
Please a http command? with the gpio that is used..
A example please?
Thanks
This thread is about the Sonoff 4CH.
The Sonoff dual is a totally different beast, I seem to remember that it has a different architecture that is not supported by EspEasy.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff 4CH with ESPEasy

#80 Post by Shardan » 20 Sep 2017, 22:01

search for the sonoff dual here in the forum.

it uses a secondary signal processor at the serial port and is not supported
by the standard espeasy version.
if i remember right there where some attempts to integrate it
but honestly i can't say if there was a success and if there is a testing module.
Regards
Shardan

stofakiller
New user
Posts: 7
Joined: 03 Aug 2016, 19:19

Re: Sonoff 4CH with ESPEasy

#81 Post by stofakiller » 21 Sep 2017, 15:07

Hi,

I have a 5-32v Sonoff/Itead 4ch, but i cant figure out how to flash it. I have flash many types of Sonoff's, i have Sonoff POW, normal 1ch Sonoffs and bulbs... I have triede both thrue my Arduino to flash it and also tried to erase it with ESP_Basic_Flasher... I always get cant open the port. Anyone triede or have any suggestions?
sonoff-4ch.jpg
sonoff-4ch.jpg (1.98 MiB) Viewed 40911 times

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

Re: Sonoff 4CH with ESPEasy

#82 Post by manjh » 21 Sep 2017, 15:11

Are you sure this is a Sonoff 4CH? It looks totally different from the two units I have. I see no buttons, for example.
Also, my Sonoff has a mains connection from which it feeds. Looks like this one expects an external power supply!

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff 4CH with ESPEasy

#83 Post by Shardan » 21 Sep 2017, 17:40

Definitely that is not a genuine Itead 4ch.

Anyways an interesting module.
Do you have a link or schematics?
I'm not able to identifythe cpu module, it might contain an esp, not sure.
It might contain a signal cpu too.
Regards
Shardan

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

Re: Sonoff 4CH with ESPEasy

#84 Post by manjh » 21 Sep 2017, 17:41

Shardan wrote: 21 Sep 2017, 17:40 Definitely that is not a genuine Itead 4ch.

Anyways an interesting module.
Do you have a link or schematics?
I'm not able to identifythe cpu module, it might contain an esp, not sure.
It might contain a signal cpu too.
A picture of the external casing might help, plus an accurate type/model number.

stofakiller
New user
Posts: 7
Joined: 03 Aug 2016, 19:19

Re: Sonoff 4CH with ESPEasy

#85 Post by stofakiller » 22 Sep 2017, 11:09

I bought true banggoodhttps://www.banggood.com/USB-5V-Or-DC-7 ... 84201407E9

That was back in may, i can see now that they have changed the product name to Geekcreit. It still uses Sonoff's app. But i would like to control it my self with mqtt :-)

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Sonoff 4CH with ESPEasy

#86 Post by papperone » 22 Sep 2017, 11:30

maybe just the WiFi module is from itead --> https://www.itead.cc/psb-04.html
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

stofakiller
New user
Posts: 7
Joined: 03 Aug 2016, 19:19

Re: Sonoff 4CH with ESPEasy

#87 Post by stofakiller » 25 Sep 2017, 09:53

I found the solution here: viewtopic.php?t=2721#p13583

I'm trying to flash it later today :-)

stofakiller
New user
Posts: 7
Joined: 03 Aug 2016, 19:19

Re: Sonoff 4CH with ESPEasy

#88 Post by stofakiller » 25 Sep 2017, 18:55

It's a different chip, psf-b85 https://www.itead.cc/wiki/File:Pins_map_PSF-B85.png

So i'll try flashing it, all the pins i need is on one sideof the pcb...

stofakiller
New user
Posts: 7
Joined: 03 Aug 2016, 19:19

Re: Sonoff 4CH with ESPEasy

#89 Post by stofakiller » 26 Sep 2017, 17:34

I did'nt, i think the image is from the pcb side, and i think i was right, i just found this image Image

stofakiller
New user
Posts: 7
Joined: 03 Aug 2016, 19:19

Re: Sonoff 4CH with ESPEasy

#90 Post by stofakiller » 29 Sep 2017, 11:55

It worked :-)

Its a 8266 chip and works perfect as a Sonoff 4ch PRO module

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff 4CH with ESPEasy

#91 Post by grovkillen » 29 Sep 2017, 12:20

Ah, cool! I will order one to test :) Thanks.

(AliExpress link: http://s.click.aliexpress.com/e/eYfIy76)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff 4CH with ESPEasy

#92 Post by Shardan » 29 Sep 2017, 13:11

stofakiller wrote: 26 Sep 2017, 17:34 I did'nt, i think the image is from the pcb side, and i think i was right, i just found this image Image
Which device is that? It's not the 4ch switch showed above, isn't it?
Regards
Shardan

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff 4CH with ESPEasy

#93 Post by grovkillen » 29 Sep 2017, 13:29

Shardan wrote: 29 Sep 2017, 13:11 Which device is that? It's not the 4ch switch showed above, isn't it?
It's the "Successful Case" explained here:
https://www.itead.cc/psb-04.html

A ton of itead based OEM modules are found here: http://s.click.aliexpress.com/e/vJMNjuj
Last edited by grovkillen on 29 Sep 2017, 13:30, edited 1 time in total.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

stofakiller
New user
Posts: 7
Joined: 03 Aug 2016, 19:19

Re: Sonoff 4CH with ESPEasy

#94 Post by stofakiller » 29 Sep 2017, 13:30

Shardan wrote: 29 Sep 2017, 13:11
stofakiller wrote: 26 Sep 2017, 17:34 I did'nt, i think the image is from the pcb side, and i think i was right, i just found this image Image
Which device is that? It's not the 4ch switch showed above, isn't it?
No, it's this one, frome my earlier post here viewtopic.php?f=5&t=2616&p=19423#p19212

And i flashed it with Tasmota firmware https://github.com/arendst/Sonoff-Tasmota
Last edited by stofakiller on 29 Sep 2017, 15:09, edited 1 time in total.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff 4CH with ESPEasy

#95 Post by Shardan » 29 Sep 2017, 14:52

grovkillen wrote: 29 Sep 2017, 13:29
Shardan wrote: 29 Sep 2017, 13:11 Which device is that? It's not the 4ch switch showed above, isn't it?
It's the "Successful Case" explained here:
https://www.itead.cc/psb-04.html

A ton of itead based OEM modules are found here: http://s.click.aliexpress.com/e/vJMNjuj
Due to the PCB layout shown in the itead link this circuit uses a serial MCU to drive relays and key inputs.
You can see the 20-pin square chip in the upper right corner and you can follow the "relay" pcb lines.
There are a lot of "NC" connectors - NC usually says "not connected" but obviously they are.

So this is questionable with ESPEasy.
If it uses the serial MCU it might run into same problems as the Sonoff dual.
If some of the "NC" pins are connected to usual GPIO and used by the circuit it might work.

PS: PSF-B85 and PSB-04 seem to be different ...

PSB-04 uses a serial MCU as mentioned above and uses an ESP-8266.
Datasheet: https://www.itead.cc/wiki/PSB_Series_Sm ... tch_Module

PSF-B85 seems to be a ESP-8285 based equivalent to an ESP-12 module,
1MB built in Memory and other pinout and no additional MCU
Datasheet: https://www.itead.cc/wiki/File:Psf_03.jpg

So those 4ch with a PSF-B85 should work easily with ESPEasy, might be necessary to use a ESP-8285 compiled binary.
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#96 Post by Dylantje » 29 Sep 2017, 16:47

stofakiller wrote: 29 Sep 2017, 11:55 It worked :-)

Its a 8266 chip and works perfect as a Sonoff 4ch PRO module

Please a step by step?
Or link where i do the same thing....

My 4channel is online only i cannot use the channels...

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff 4CH with ESPEasy

#97 Post by grovkillen » 29 Sep 2017, 17:04

Shardan wrote: 29 Sep 2017, 14:52
grovkillen wrote: 29 Sep 2017, 13:29
Shardan wrote: 29 Sep 2017, 13:11 Which device is that? It's not the 4ch switch showed above, isn't it?
It's the "Successful Case" explained here:
https://www.itead.cc/psb-04.html

A ton of itead based OEM modules are found here: http://s.click.aliexpress.com/e/vJMNjuj
Due to the PCB layout shown in the itead link this circuit uses a serial MCU to drive relays and key inputs.
You can see the 20-pin square chip in the upper right corner and you can follow the "relay" pcb lines.
There are a lot of "NC" connectors - NC usually says "not connected" but obviously they are.

So this is questionable with ESPEasy.
If it uses the serial MCU it might run into same problems as the Sonoff dual.
If some of the "NC" pins are connected to usual GPIO and used by the circuit it might work.

PS: PSF-B85 and PSB-04 seem to be different ...

PSB-04 uses a serial MCU as mentioned above and uses an ESP-8266.
Datasheet: https://www.itead.cc/wiki/PSB_Series_Sm ... tch_Module

PSF-B85 seems to be a ESP-8285 based equivalent to an ESP-12 module,
1MB built in Memory and other pinout and no additional MCU
Datasheet: https://www.itead.cc/wiki/File:Psf_03.jpg

So those 4ch with a PSF-B85 should work easily with ESPEasy, might be necessary to use a ESP-8285 compiled binary.
Thanks for looking into it Shard.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff 4CH with ESPEasy

#98 Post by grovkillen » 29 Sep 2017, 18:07

Screen dump of AliExpress picture. Seems to be genuine ESP.

https://www.dropbox.com/s/yo9wk6ibx1ia3 ... 0.png?dl=0
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff 4CH with ESPEasy

#99 Post by grovkillen » 03 Nov 2017, 17:27

stofakiller wrote: 21 Sep 2017, 15:07 Hi,

I have a 5-32v Sonoff/Itead 4ch, but i cant figure out how to flash it. I have flash many types of Sonoff's, i have Sonoff POW, normal 1ch Sonoffs and bulbs... I have triede both thrue my Arduino to flash it and also tried to erase it with ESP_Basic_Flasher... I always get cant open the port. Anyone triede or have any suggestions?
sonoff-4ch.jpg
You found how to flash it but haven't reported back about it. Me and a friend flashed this unit plus the smaller one, with on relay, today. Will try to write an official wiki page for it soon.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

sandeepkumar12
New user
Posts: 1
Joined: 22 Nov 2017, 06:27

Re: Sonoff 4CH with ESPEasy

#100 Post by sandeepkumar12 » 22 Nov 2017, 06:29

Nowadays
https://logmein.site wrote:gmail login
accounts have become popular among people around the World more than ever before.

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests