Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 Channel Inching/Self-lockIing Mode WiFi Wireless Switch 5V/12V and Sonoff-Tasmota? #893

Closed
jannnfe opened this issue Sep 20, 2017 · 89 comments
Labels
stale Action - Issue left behind - Used by the BOT to call for attention

Comments

@jannnfe
Copy link

jannnfe commented Sep 20, 2017

Hallo,
sorry i never posted anything on GitHub but I have a question and can't find a solution at this time. I'm a noob and like to control my Garage Door with Siri and Homebridge. My Garage Door needs a pulse to open/close.
I bought the "1 Channel Inching/Self-lockIing Mode WiFi Wireless Switch 5V/12V" from itead.cc and like to use it with the Sonoff-Tasmota Firmware to connect via plugin to Homebridge.

Pictures of the Relay:
img_6187
img_6186

Is it possible to flash the Sonoff-Tasmota Firmware to this relay?
Where do i have to connect my USB adapter or can i just use the build in USB Port?
Where are the RX, TX, GIO Ports on this Relay?

I hope anybody can help me and sorry for my bad english.
Thanks!

@ionciubotaru
Copy link

You can use Tasmota.
Connect the FTDI to the 4 pin cconector near the relay
One of 2 black buttons must be GPIO0

@jannnfe
Copy link
Author

jannnfe commented Sep 21, 2017

Thank you for your reply.
Is this right in the picture?
30655805-50903c56-9e32-11e7-8a66-bfd51f319bc8

After the flash is the Self-lockIing Mode still working?
Thanks!

@ionciubotaru
Copy link

From left to right:
GND - TX - RX - 3V3
The square is 3V3

@jannnfe
Copy link
Author

jannnfe commented Sep 21, 2017

Thanks!
I wrote with the itead.cc Support and they told me this device can not be flashing.
Is this right?

@itsecasc
Copy link

any updates ? i have almost the same board, same problem
image

@tomasroud
Copy link

Hi, my board does not have connected RX and TX to the chip, so I must used wires with needles and connect directly to the chip. TX and RX is 2nd and 3rd from to left corner. And be aware about changed 3,3 and gnd pin!!!!! First connect 3,3 and gnd and check without button presing if led go on. Fter that start with pressed button. Then press second button, to have both leds light on. Then you can flas with needles, I had so 70 trys, because my hand shaked a lot ;) P.S. I used autoclick with 20s delay to upload firmware ;)

@tomasroud
Copy link

21753223_1746353405377883_5072682759846380406_o
Here is the connect picture. That left to gpio0 is not necessary, button is working good. And for tx, rx use needles.
sonoff-self-lock_preview

@jannnfe
Copy link
Author

jannnfe commented Oct 5, 2017

Related to @ionciubotaru must the occupancy look like this on my relay? (White):
pic
@tomasroud you say it is possible to flash my relay? Does everything work the way it should or does complications occur?
Is the assignment at the top of the image or do I have to connect 3v3, RX, TX, GND in one of the three red rectangles? If yes, you can tell me which I must use and wich buttons when I must press. Many Thanks!

@tomasroud
Copy link

Eat the elephant by pieces. First locate 3,3 + GND.
It should be GND and 3v3 as in your picture.
Try to connect if LED light up.
Got it? Next step.
Start flash mode ... must both of two LEDs light up.
Next step.
Locate TX + RX.
Try RX and TX on your picture .... try swap TX + RX.
Still not working.
Try on rectangle nr 1 second and third from bottom.
And again try to swap second and third as TX + RX.
Tell how successfull you are. And be aware about switch 3,3 and GND. If you connect bad gnd to 3,3 and connect TX or RX, you just demage your USB programmer. As I twice :(

@jannnfe
Copy link
Author

jannnfe commented Oct 6, 2017

@tomasroud Now i have tested that what you are explaining.
I found out, that this picture is the right assignment:
30655805-50903c56-9e32-11e7-8a66-bfd51f319bc8

But i don't know how to come in flash mode. Can you tell me?

EDIT: Now when i connect the 3v3 and GND no light flash on the Sonoff...
About 1 hour ago it was working. Whats wrong?

@tomasroud
Copy link

Press one button nr. 1 or 2, try it and then connect to usb. If lights only 1 led, press next button till both of leds light.

Tell me, how it works.

P.S. When you connect 3,3 and GND, it will be too at bottom two pins on block nr. 3

@jannnfe
Copy link
Author

jannnfe commented Oct 8, 2017

I use the same arrangement as at the beginning. In the beginning lights still lit. For some reason now lights nothing more when I connect via USB. I do not think this is broken. Can be connected where else GND RX TX and 3v3?

With the normal build in USB of the Sonoff it works perfectly. So the Board is not broken

@tomasroud
Copy link

3,3 and GND are bottom 2 pins in block nr. 3, try it there, if the board will live. Try with ohmmetter that these pins are same as 3,3V and GND.

@jannnfe
Copy link
Author

jannnfe commented Oct 11, 2017

@tomasroud No light on the block 3 :(
I think the usb adapter is broken but it is light up on usb connect and it gives out 3,3v.

@tomasroud
Copy link

USB adapter can be broken on TX or RX, on 3,3 and GND probably not. So it must be OK.
If you connect GND and 3,3 is voltage on block 3, bottom 2 pins?

@tomasroud
Copy link

tomasroud commented Oct 11, 2017

image
Here are TX and RX pins, as I wrote above.
Picture source here: https://github.com/arendst/Sonoff-Tasmota/wiki/Hardware-Preparation

@jannnfe
Copy link
Author

jannnfe commented Oct 12, 2017

Idk if this is stupid but i connected 3,3v on board voltage and GND, RX, TX like this picture
30655805-50903c56-9e32-11e7-8a66-bfd51f319bc8
and now my mac recognize the board. The two light next to button 1 and 2 are flashing but in Arduino IDE 1.8.4 and 1.8.5 i get the same error like here: #957

@tomasroud
Copy link

tomasroud commented Oct 12, 2017

The board lives, that is cool, so, you should connect your USB adaptor to USB in pc in same time as btn. is pressed. Then both LEDs will light ... not flash, light still. OK? P.S. That error means TX or RX is not connected or board is not in fllashing mode (2 LEDs light still)

@jannnfe
Copy link
Author

jannnfe commented Oct 31, 2017

So I have now tried all sorts of combinations and pins and with nothing I can flash the Tasmota firmware. I have two pictures where you can see the LED light up. No idea what the flash mode is and if he is even in flash mode. Any ideas on how to connect to the tasmota firmware?
img_6579
img_6580

@tomasroud
Copy link

You must flash with VCC and GND from USB in PINS only. I see you have connected main voltage, it is not possible to flash the device like that. Unplug micro USB voltage, connect voltage in pins and tell me, if you can set up both these pictures too.

@jannnfe
Copy link
Author

jannnfe commented Nov 4, 2017

I'm not able to get in this light mode on picture 2 with VCC and GND connected :(

@tomasroud
Copy link

Press btn1 when connected to USB and release. Then press btn 2. IT MUST STAY IN 2 LEDs light on.

@jannnfe
Copy link
Author

jannnfe commented Nov 8, 2017

No it don't work. I think I have a Version of the Sonoff, that is not flash able :(

@tomasroud
Copy link

I am wondered, but maybe it is possible. I am sorry, that I can not help you :(

@ciotlosm
Copy link

This is how flashing mode should look like: https://www.youtube.com/watch?v=E0WBoFCcnYY

@jannnfe
Copy link
Author

jannnfe commented Dec 19, 2017

Thank you for the Video. I can access this mode like in the video but im not able to flash the sonoff.
My Module ist the PSA-B01-GL

@jannnfe
Copy link
Author

jannnfe commented Dec 19, 2017

Got it finally working!!!
I used Arduino IDE with ESP8285 and Flash Size : 1M (512k SPIFFS) and the latest Sonoff Firmware.
I connect VCC and GND to the pins shown above in the Photo and connect TX and RX (yellow and white cable) to the Pins shown in this picture
31437695-70e1f8be-ae86-11e7-94f3-d6b4c711a761
Hold the jumper cable to this pins without soldering it should work. Try swap TX and RX if its not working. After flashing you have to connect the USB to get into webinterface
For Mac check FTDI Drivers: esp8266/Arduino#3711

@badigit
Copy link

badigit commented Jan 11, 2018

Sucsesfull flashed this with SonOTA

@benjaminsonnleitner
Copy link

Yesssss also!!! but which device belongs in the configuration set?
That's not the basic model
https://www.youtube.com/watch?v=wSjzj-Imj0c

bildschirmfoto 2018-01-12 um 19 15 20

@udayroy04
Copy link

Hello everyone , i am totally new on git , this board is very useful for me and i want to use this board with my own android application . I would be great full if some can help me find the android sdk for this board .

@badigit
Copy link

badigit commented Mar 3, 2019

You are right. I switched mode with second button. Then it works like switch (switching between ON and OFF manually) but when i changed pulsetime, now it is ON only for adjusted time. Great.

Last question i hope:

Is it possible to set power on state to OFF always? I see that with every restart it turns ON for short time (less than 1sec) before it toggles to OFF. You know, i dont want to have the garage door opened after every restart :)

Have same problem. After soft-restart in webui, relay switch 1-0.
After hard-restart (via power on\off) - no problems, relay stay off

@Bacon-Ranch
Copy link

hello, please can anyone help me, I have tried every possible combination of wires and button holds as I power on, I am using ESP easy, lol. The Sonoff device is a 1 channel inching type, the serial device is a DSD tech FT232 TTL. I have looked for pin outs for the serial device and can not find, I have tried with the jumper on the RTS and CTS pins and without. I have tried 5v and 3.3V jumpers, I do not think I fried anything yet but the serial board did get a bit hot at first. Everything still seems to light up and at least is not completely dead yet, not even sure which button to hold down so I have tried both seperately. Please see the picture showing 2 boards, I get flash failed every time, so it at least attempts to connect. Orange and yellow are TX and RX, Red is +, brown is ground.

20190406_134555
20190406_134535
20190406_134552

@Bacon-Ranch
Copy link

Eat the elephant by pieces. First locate 3,3 + GND.
It should be GND and 3v3 as in your picture.
Try to connect if LED light up.
Got it? Next step.
Start flash mode ... must both of two LEDs light up.
Next step.
Locate TX + RX.
Try RX and TX on your picture .... try swap TX + RX.
Still not working.
Try on rectangle nr 1 second and third from bottom.
And again try to swap second and third as TX + RX.
Tell how successfull you are. And be aware about switch 3,3 and GND. If you connect bad gnd to 3,3 and connect TX or RX, you just demage your USB programmer. As I twice :(

was your USB programmer obviously dead? Just wondering if I messed mine up, it is still seen by Windows, powers up, shows a TX light, but is not flashing the Sonoff inching device.

@scasic
Copy link

scasic commented Apr 11, 2019

Have same problem. After soft-restart in webui, relay switch 1-0.
After hard-restart (via power on\off) - no problems, relay stay off

Absolutely the same behavior. Any workaround?

@ryaske
Copy link

ryaske commented Nov 3, 2019

I wanted to reopen this (it can be immediately reclosed) JUST because I know of no other place to post this valuable information, and in my pursuit of the information I found no other place online where it is properly discussed!!

Here is how to flash your PSF-B01.
NO HARDWARE MODIFICATIONS ARE NECESSARY.
(Note I have the AC/DC 7-32V module and I will be using it as a thermostat override to power on my HVAC fan using Tasmota/HA. This process should work fine for the other version of this module too.)

Use this pinout;

Use this flash boot method (press both buttons while powering it. Both LEDs need to come on.

You can flash Tasmota now.

Once booted, set it to module "1 channel (12)" in the included module list (no external template is needed).

VERY IMPORTANT
SetOption13 1

This will disable the "triple press" functionality that usually reboots ESP8266 into SmartConfig Mode.

After that, you can select via the hardware button if you want inching or locking latch, and you are good to go!

I hope this message saves someone A LOT of time. I took me quite a while to figure out why the module was going haywire.

@leonraul
Copy link

hi, I have this Relay. Rx and Tx are evident.
3v3 and Gnd I don't know where they are. Can someone help me? Thanks.

85A03FA5-FC50-4C7A-A8E9-72B90EF1112B

@ryaske
Copy link

ryaske commented Nov 14, 2019

Can someone help me? Thanks.

To teach a man to fish ...
here's what you do. Look up the labeling on the ESP chip (or any of the others), and see their pinout. That's how you can follow where power is coming in

To fish for a man......(happy to save you the time)
LD01-- that is your 3.3 volt regulator. to be absolutely certain I would want to know the labeling on that device so you can verify the pinout, but I am 90% certain that the large metal contact (near label C17) is going to be your 3.3v output(along with one of the three legs, probably the middle one from my experience with thse regulators). So grab your multimeter, stick the black lead onto the casing of that USB connector (we can assume that iwll be ground across the board), Plug a USB cable in, and probe both that big contact and the little one in the middle of the three. If you get 3.3v , follow that to a convenient place to solder or just connect to the small tab temporarily(what i'd do).

Ground is even easier to find--- it will also be one of the three LD01 legs. From the photo I'd bet its the closest to the bottom.. .and connecting to the ground plane. You can use your meter to find 3.3v between your now-known 3.3v pin on that device and one of the other two small legs. You can just connect the ground right onto that chip too (with your 3.3v FTDI. If you are using a 5 volt you'll want to connect the 5v to U4 instead). Highly recommend you verify your measurements match the pinout datasheet, just to double check yourself.

Hope this helps!!

You may already know, but you also need to get the ESP chip into boot mode, which may require grounding of some of the GPIOs. Try it by just using the GPIO0 button held during boot, first. If that doesnt work you may wnat to look up the pinout of the particual ESP you have on there and see what it needs. I have seen ones that ned more than GPIO0 ... like 15(?) also grounded at boot. It also depends what is wired to it on the board itself (I had to cut a trace and then repair it later to get it to flash).

You shouldnt have much trouble finding this info out there in the web! Let us know if yo uneed more assist

@leonraul
Copy link

leonraul commented Nov 15, 2019

Thanks! You were really kind. I tried to measure but the multimeter marks zero. The chip is an ESP8285. I'm probably doing something wrong.
95FB4194-0069-45DE-A919-7D1B6DB05445

@ryaske
Copy link

ryaske commented Nov 15, 2019

Thanks! You were really kind. I tried to measure but the multimeter marks zero. The chip is an ESP8285. I'm probably doing something wrong.
95FB4194-0069-45DE-A919-7D1B6DB05445

Ok then that may be ground (and I stand corrected!!). Or maybe the USB outer casing isnt actually board-wide ground.

Next, measure between two of the three smaller pins... all three combinations one at a time
(make sure you are in DC volts mode and not OHMs.. and DONT short any pins accidentally!)

Do you measure any voltage there? You sohuld see 5v and 3.3v there. You really have to, or maybe your meter is broken or not set correctly (or else the board wouldn't power up at all ---- as both the ESP8285 and the LED you see there are powered with 3.3v that must originate from that regulator chip--- whether you power the board with USB or with an outside voltage source, it still comes from there.)

If still having an issue, use another multimeter. And can you make out the labeling on that regulator? If it is AMS1117 its the same chip I use for all my custom made ESP projects..... (and the same one I've seen on sonoffs). Its pinout is always this (bottom right). INPUT will be 5v in this case, OUTPUT is 3.3v

@leonraul
Copy link

circuit
I confirm! It's an AMS 1117. The GND is pin number 3 of my photo.
3--->1 =5v
3--->2=3.3v
3--->A=0
3--->B=3.3v
3--->C=0
3--->D=0
3--->E=3.3v
A--->1=5v
A--->2=3.3v
Can I therefore say that A is the GND and B is 3.3v?

@ryaske
Copy link

ryaske commented Nov 15, 2019

Well, 1= 5v, 2= 3.3v and 3= ground. This matches the pinout I posted above (but you are using numbers in reverse, nbd).

With that said, I would be cautious about assuming anything about ABCDE. Not sure you are certain that one of those is not just "pulled high" by the ESP chip, or if it is actually tied to pin 2. Same for the 0v readings, is it connected to GPIO and just pulled low at the time you're measuring, or actually tied to ground? Cant be sure of that from what you tested so far

What you would do to verify that is either--- break out a bagnifying glass and very carefully follow the traces from the pin #2. Does it go to A B C D or E?

Yoiu could also flip your multimeter into continuity mode (it either makes a beep or reads 0ohms when both probes are touched together), make sure your board is unpowered, and probe pin 2. Do you get zero ohms to any of the letter pads? If so, and you can see a trace that goes direct between the two-- only then would I say you are good to use the letter pads. Otherwise, just tack a wire onto pin 2 for your 3.3v+ and pin 3 for your ground. Those we are certain about already!

Though, A def seems like a ground pad. The square pad itself tells us that too.

@leonraul
Copy link

leonraul commented Nov 15, 2019

Ok. I set the multimeter to continuity mode.
I use the inverted numbering of my photo
A--->3 =Beep (1 and 2 No)
B--->3=Beep (1 and 2 No)
C--->3 =Beep (1 and 2 No)
D--->3=Beep (1 and 2 No)
E--->2 =Beep (1 No)
E--->3=Beep

A= Gnd and E =3,3v?

@carl689
Copy link

carl689 commented Dec 12, 2019

hi, I have this Relay. Rx and Tx are evident.
3v3 and Gnd I don't know where they are. Can someone help me? Thanks.

85A03FA5-FC50-4C7A-A8E9-72B90EF1112B

Where you ever able to get this board in flash mode? I for the life of me can't get it to boot in flash mode.

I have tried the button hold down method, and when that didn't work I assumed they aren't connected to GIO0, so I tried grounding what I believe to be the GIO0 pin on the esp itself

@carl689
Copy link

carl689 commented Dec 13, 2019

To the future person googling for this board using the previous mentioned numbering scheme
Ground - A
3.5V - E
Rx - TX
Tx - Rx

Important: To fix flashing being unstable add a capacitor to 2,3

Hold down the button closest to the Rx/Tx when you boot up, Tada

@istefanpop
Copy link

istefanpop commented Dec 21, 2019

To the future person googling for this board using the previously mentioned numbering scheme
Ground - A
3.5V - E
Rx - TX
Tx - Rx

Important: To fix flashing being unstable add a capacitor to 2,3

Hold down the button closest to the Rx/Tx when you boot up, Tada

Thank you for making me gain valuable time! I installed HAA and currently using one of these as door electric strike relay

@thienvlkt
Copy link

Thank you for your value information.
Please help me with this board.
I don't know exactly where are Ground, 3v3 and gpio?
IMG_20191224_170916

@thienvlkt
Copy link

Hi, can you help me?

@meingraham
Copy link
Collaborator

@thienvlkt

Please address this to the Tasmota Support Discord Chat. The chat is a better and more dynamic channel for helping you. Github issues are best used for Tasmota software feature requests and bug reporting. Troubleshooting and setup assistance is more effective using an interactive forum.

Please check the Contributing Guideline and Policy and the Support Guide.

Thanks.

Support Information

See Wiki for more information.
See Chat for more user experience.
See Community for forum.
See Code of Conduct

@Denis-tls
Copy link

Indeed, I received the same new version of this Sonoff and was able to flash it with Tasmota, after powering it on while pressing on both buttons. Below the connections:
Sonoff

@tasict
Copy link

tasict commented Jan 26, 2020

Last question i hope:
Is it possible to set power on state to OFF always? I see that with every restart it turns ON for short time (less than 1sec) before it toggles to OFF. You know, i dont want to have the garage door opened after every restart :)

Have same problem. After soft-restart in webui, relay switch 1-0.
After hard-restart (via power on\off) - no problems, relay stay off
Absolutely the same behavior. Any workaround?

@jeremylee7
Copy link

Anyone figure out the solution to prevent the relay from switching on when performing a soft reset?

I noticed that it also does this behavior when wifi disconnects, this is a big problem

@blade3609
Copy link

blade3609 commented Mar 26, 2020

Indeed, I received the same new version of this Sonoff and was able to flash it with Tasmota, after powering it on while pressing on both buttons. Below the connections:
Sonoff

Thanks mate! i installed tosmota on my chip also, it looks the same, but the RX and TX were vice versa.

@foobar26
Copy link

foobar26 commented Jun 6, 2020

Indeed, I received the same new version of this Sonoff and was able to flash it with Tasmota, after powering it on while pressing on both buttons. Below the connections:
Sonoff

Thanks for your info, saved me a lot of time. To make it even easier for others:

  • You have to push both buttons during the whole process. I used some clothespins for this.
  • Firmware I used was Sonoff basic 6.6. I tried 7.1.2 before but that didn't work and I had to flush again. But maybe I did something wrong.
  • Configuration is Sonoff RF.

I updated to 7.1.2 via the web UI and it worked. So don't know what happened before...

@patrikpandolfi
Copy link

patrikpandolfi commented Jun 30, 2020

Hello guys, i need some help. There's not output tension after relay in my sonoff. I measured with multimeter and nothing change. Can someone help me? Thanks

WhatsApp Image 2020-06-30 at 17 37 41

WhatsApp Image 2020-06-30 at 17 37 28

@2lepus
Copy link

2lepus commented Aug 6, 2020

Secondary Pins of the relais don't have any connection. You have to connect any external power to com. This will be switched from NO to NC

@jhartlep
Copy link

Hi,
I have the same relais as @patrikpandolfi flashed with tasmota.
How can I reset this one without access to the device website?

@n00bster-za
Copy link

Just want to add some info since I have just flashed my board that is almost the same. My board does not show any LED when in flash mode. I press 1 button closest to the capacitor and then plug in the usb then let go the button. Unit is in flash mode with now LED on. then I just hold the TX and RX pins to the ESP chip RX TX and then it flashed.

@napalmz
Copy link

napalmz commented May 18, 2022

Flashed mine today, powered from USB keeping both button pressed.
A single BLUE led turned on meaning it was in FLASH MODE.
So I just hold TX e RX pin on the flasher and everything went ok!

@n00bster-za
Copy link

weird mine had no LED going on. and I know they work because when paring them initially it shows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Action - Issue left behind - Used by the BOT to call for attention
Projects
None yet
Development

No branches or pull requests