ESP12F_Relay_X4

1,569 views
Skip to first unread message

BusinessClaes

unread,
Jun 17, 2021, 6:00:18 PM6/17/21
to TasmotaUsers
Hi!

Has someone succeeded in flashing Tasmota to this 8CH relay board?

I have three of them and all behave in the same way. I try with Tasmotizer v1.2 and it just keeps shutting itself down after I press "tasmotize!" (the program Tasmotizer shuts down)

I use an FTDI232, which has worked well before for flashing both Sonoff RF bridge and ZBBridge, so that shouldnt be the problem.

I am trying to flash tasmota.bin, latest release.

The board has clearly marked pinholes for GND, TX, RX, GPIO0 and 5V.
I have tried several combinations:
+ FTDI at 3,3V (which means putting 3,3V where the board says 5V)
+ FTDI at 5V (which means putting 5V at RX and TX)
+ FTDI at 3,3V but putting 5V at the 5V pinhole
+ Tasmotizer with both checked and unchecked box for "self-resetting device" 
+ GPIO0 put to ground the whole time, or put to ground and released directly after pressing "tasmotize!"

Nothing works, Tasmotizer just keeps shutting down a couple of seconds after I press "tasmotize!"

Any ideas? I guess that if Blackadder has this relay board in the templates list is because it is possible to be flashed with tasmota :)

BusinessClaes

unread,
Jun 17, 2021, 6:03:16 PM6/17/21
to TasmotaUsers
The topic should of course have been ESP12F_Relay_X8, not X4 :)

sfromis

unread,
Jun 17, 2021, 6:53:47 PM6/17/21
to TasmotaUsers
Any flasher named something with FTDI is recommended against, as it is a well-known troublemaker. It just does not have the power supply ability for reliable flashing, but may work, or not. Anytime you bring 5V near ESP8266, you run the risk of the chip getting fried. 

However, your issue may be that Tasmotizer is not properly installed to be operational. Try if this works for you: https://github.com/Jason2866/ESP_Flasher


Philip Knowles

unread,
Jun 18, 2021, 12:49:15 AM6/18/21
to TasmotaUsers, sfromis
It's worth trying nodemcu flasher. It shows a QR code when the ESP8266 is in flash mode. I've used it on devices which are difficult to flash.
It's always better to solder a header on if you can. In this case there are 2 GNDs so putting a jumper wire between GPIO0  and GND is easier (but check that they actually connected together).
The header pins for Tx and Rx are directly connected to Tx and Rx on the ESP-12F so trying to flash with 5V is risky. 3.3V on ESP-12F is diagonally opposite Tx if you want to connect directly (or check that you are getting at least 3V when connecting 3.3V to the 5V header.

The AI-Thinker datasheet for ESP-12F has GPIO0 high for Flash mode which is unusual but may be the issue (or a typo)
Regards

Phil K


From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of sfromis <sfr...@gmail.com>
Sent: Thursday, June 17, 2021 11:53:47 PM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Re: ESP12F_Relay_X4
 
Any flasher named something with FTDI is recommended against, as it is a well-known troublemaker. It just does not have the power supply ability for reliable flashing, but may work, or not. Anytime you bring 5V near ESP8266, you run the risk of the chip getting fried. 

However, your issue may be that Tasmotizer is not properly installed to be operational. Try if this works for you: https://github.com/Jason2866/ESP_Flasher


--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/06bc17c9-b66b-4f39-9666-ad0d3a4795a4n%40googlegroups.com.

Jon Bartlett

unread,
Jun 18, 2021, 5:46:26 PM6/18/21
to TasmotaUsers
I forget each time, if you're Tasmotizing from Windows to run as admin....

BusinessClaes

unread,
Jun 19, 2021, 7:08:36 PM6/19/21
to TasmotaUsers
Yes! Thank you! Problem solved! It was me not running Tasmotizer as admin!
Thank you toofor the suggestions about ESP flasher and NodeMCU, I have three 8CH boards, so nr.2 and nr.3 will get tasmotized with those, just for fun and for learning myself something new :)

The steps I followed, in case someone wants to recreate my success :)
+ Run Tasmotizer as admin
+ Jumper at 3.3v in the FTDI flasher
+ GND, TX and RX at the board pinholes connected to GND, RX and TX at the FTDI flasher
+ GPIO0 and GND pinholes at the board connected (it has to be a typo at the AI-Thinker datasheet)
+ 5v pin from the FTDI flasher connected to the 5v pinhole at the board (with the jumper at 3.3v, powering the board with the VCC output is not enough to get the job done, It has to be 5v at the 5v pinhole)
+ Connect the USB to your PC
+ Tasmotize!
+ GPIO0 can be kept connected to GND during the whole flashing process
+ Find the Tasmota Wifi AP and connecto to it
+ In the Tasmota interface, choose your Wifi and put your password
+ Go to the new IP address that your router asigned to the relay board
+ Go Console and send 2 commands
1. Template {"NAME":"ESP12F_Relay_X8","GPIO":[229,1,1,1,230,231,0,0,226,227,225,228,224,1],"FLAG":0,"BASE":18}
2. Module 0
+ Configure MQTT user and password if you are going to send commands that way

Thats it! You can now control each of the 8 relays
+ From the Tasmota interface, one button for each relay
+ From the Tasmota console, command Power1 ON (or Power1 1) to activate relay 1
+ With MQTT, in my case from NodeRED with an Inject node that sets msg.payload to 0 or 1, followed by a SendMQTT node with topic cmnd/8CH_Board1/Power1

Now it is time for me to set up the irrigation system in my greenhouse! :)
Maybe I will put some pictures when I´m done with that :)
Cheers!
5v.jpg
ESP12F_Relay_X8.PNG

Tomas Muehlhoff

unread,
Oct 18, 2021, 3:33:21 PM10/18/21
to TasmotaUsers
Hi,
great instructions.... How can I rename the Relays from 0...8 to something meaningful ?

Philip Knowles

unread,
Oct 18, 2021, 5:14:21 PM10/18/21
to Tomas Muehlhoff, TasmotaUsers

Commands - Tasmota

 

WebButton

 

Sent from Mail for Windows

From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of sfromis <sfr...@gmail.com>
Sent: Thursday, June 17, 2021 11:53:47 PM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Re: ESP12F_Relay_X4

 

Any flasher named something with FTDI is recommended against, as it is a well-known troublemaker. It just does not have the power supply ability for reliable flashing, but may work, or not. Anytime you bring 5V near ESP8266, you run the risk of the chip getting fried. 

 

However, your issue may be that Tasmotizer is not properly installed to be operational. Try if this works for you: https://github.com/Jason2866/ESP_Flasher

 

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/06bc17c9-b66b-4f39-9666-ad0d3a4795a4n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.

Tomas Muehlhoff

unread,
Oct 20, 2021, 12:39:11 PM10/20/21
to TasmotaUsers
Yes thanks a lot...:

I do recognize that the Tasmota documentation is very good and complete, at the same time I regularly fail to find the stuff I need in there, mainly due to lack of proper terminology on my side.

By chance anyone who can tell me the keyword to get some 'backlog' (I assume is the right term here) to start and startover after finish ?

Thanks a lot.

Philip Knowles

unread,
Oct 20, 2021, 12:53:40 PM10/20/21
to Tomas Muehlhoff, TasmotaUsers

Backlog is used to use multiple commands in one rule so probably not that.

 

If you explain what you are trying to achieve someone will try to help.

 

Regards

 

Phil K

Tomas Muehlhoff

unread,
Oct 20, 2021, 1:03:57 PM10/20/21
to TasmotaUsers
found it... it's the ruletimer usied in a rule.... 
Reply all
Reply to author
Forward
0 new messages