Hacking the PSF-B04 ESP8285 4 channel relay board and with Tasmota and unable to drive all 4 relays concurrently

Tags: #<Tag:0x00007fc3d0f899b8> #<Tag:0x00007fc3d0f898c8>

Finally decided to automate my sprinkley system and settled on the PSF-B04 purchase via ebay.

Using the following guide as a start was able flash with Tasmota firmware:

Only to add to the above notes, instead of soldering necessary programming wires directly to the ESP8285 which can be challenging, GND, GPIO0 and 3.3Volts are easily accessible on other parts of the board as I’ve marked below , in addition GPIO0 and GND are conveniently position next to each other on a header.
image
Initially purchased two of the boards, one worked perfectly that is all 4 relays could be switched on at the same time but the other wouldn’t play ball. That is, switching on each individual channel on/off worked fine, but attempting to switch on all 4 relay channels would lose connectivity and device would reboot.

As I wouldn’t be switching on all 4 channels for my sprinkler system not an issue, but curious as to why this was occurring. Also purchased an additional board as a spare, but it also exhibited the same fault.

After eliminating several possible causes, power, shorts and PCB track variances between the boards nothing obvious stood out.
Curiously couldn’t understand the purpose of a mystery chip as shown circled above with all marking removed. All 4 relay output pins from the ESP8285 entered this chip and another 4 pins went to the digital input pins of the ULN2003, therefore not sure what the purpose of this chip performed and couldn’t see any reason why if removed and bypassed the board would still function the same….So I did!
Once mystery chip was removed and using the now free chip pads and wired as shown below was able to drive the ULN2003 directly without any issues and able to then switch on all 4 channels.
Hence still wondering what the purpose the chip serves but suspect it’s some sort of microprocessor/buffer with maybe a firmware bug as one of the three did work??
Be interested if anyone else has more info. on this chip.
image

2 Likes

Thanks! It helped me.
After upgrade to tasmota, I had not working device at all (was not able to control relays).
After the bypass chip hack everything is fine. Thanks for sharing!

Great to hear!! and welcome to HA, i’ve been using it for 2-3 years now and it’s fantastic.

Hey there !
I know it’s an old thread but it has been very useful to me in order to add it to my HA installation.

It’s been used to control 4 solenoid valves, works like a charm as I can use the same power supply for the solneoid and the board (DC 12V)

Now I wanted to go a bit further and add a flow meter (FSP300A), that I planned to hook onto a free GPIO of the board… but after reading the original article, and this one, I got to the conclusion that there were no available GPIO to hook a pulse_counter ?
I tried to use the RX pin with no luck (as I only need the TX to still get the logger).

Any lead ?

Cheers

I will use it with Tasmota:

For flashing you need this:
https://tasmota.github.io/docs/devices/Sonoff-4CH-DIY/

The template are taken from:

{“NAME”:“Geekcreit-4ch”,“GPIO”:[9,0,0,0,23,22,10,11,21,52,12,24,0],“FLAG”:0,“BASE”:18}

Tasmota 9.3.1 is running sweet…

Details to use the module are here:
http://raspberrypiwiki.com/5V-4_Jog_Switch

Hey, thanks for your reply !
I’d rather stick to ESPHome as all my devices are based on it.

I actually managed to patch my flow meter using the onboard 3.3v, GND and GPIO14 (Key4 on the board).
Now everything is working flawlessly and I only need one 12vDC to power the board, the 4 solneoids and the flow meter (rated 5v but works perfectly in 3.3v hence pushing back only 3.3v to the GPIO)

Cheers