I'm trying to program a ESP01s on a relay board, but it won't boot when in the relay board?

Clear! Agree :slight_smile:

I was already thinking, why use this relay in a POS (Point of Sale)

You’ve rumbled my game. Using a wifi relay to turn on a card cloner remotely is my side project. :grimacing:

1 Like

I’ve tried the ‘hack’ as described in the video, it get’s the esp01s online, but it won’t pull the relay, so I’m giving up on that board, and I’m getting some of these instead


They are slightly bigger, but geekreit is usually good quality, they use serial coms to pull the relay instead of a GPIO.

I have a few of these working great, only differences I can see between mine and your code is that I don’t have a UART: section, only the switch on GPIO0 and it is inverted


switch:
  - platform: gpio
    id: relay
    inverted: true
    pin: GPIO0

I remember something elso from this PITA board…

See picture, I had to connect 2 pins (see picture - little small metal on the bottom right of the picture) then it worked… but now I prefer the D1 mini…

I have 2 of them, and they work great with Tasmota. But, although they look identical when seen from above, they differ from the one in the video, the way the man in the picture is holding them, mine have a hole in the right down corner.

I’ve tried both with and without, no change. .-(

How about jumpering GPIO2 to the relay instead of GPIO0 (and adjusting your ESPHome config)?

I’m giving up on that board, I’m going to use the geekreit type instead, only challenge is that I need an input, but I’m probably going to bend GPIO2 away, and mount the touch button on that.
The whole project is to replace the regular on/off button on our tefal raclette with a more intelligent control, so that it will turn off after a set period of time. The current button is defect, and needs to be replaced, so I’ve gotten a very small 5V psu, and a pushbutton to turn it on and off.
I’m actually going to select a board with two relays, I hope there is room enough for it, that way I can change the led in the button to reflect the switch state.

1 Like

Now I’m hungry. Raclette… :drooling_face:

:laughing: Feel free to drop by in Denmark :wink:

1 Like

Thanks for posting this. I was having the same problem with an ESP-01 + Relay module that I bought so I pulled the R2 like it describes and shorted the CH pin to 3.3V and now the thing boots properly and is seen by Home Assistant over Wifi. The problem with this is that when power is applied to the unit, the relay flips like 3-5 times, then it settles – not ideal but I guess that’s what you get for $3.

Good to hear @SpikeyGG. It’s not optimal with that little one, I’m going to try some other models, I hope they work better.

@SpikeyGG Im on my first diy/electrics/homeassistant project and im facing the same problem. I don’t quite understand what to do, I have never soldered anything so its going to be a challenge i guess. But can you maybe explain what you did and HOW to a noob like me? I don’t know how to short the pins (and you say CH mine says EN) and pull the R2, is that just removing and nothing in place of it? Hope you can help me.

Yeah man, we all start somewhere. I’ll use pictures because, you know, 1000 words or whatever…

This is the short (I soldered a little bridge):

And this is the removal of R2 (I tried to desolder mine but you may be able to just break it off):

You probably shouldn’t use the ESP01 as your first project though. It’s a terrible result because when you power it on the relay flips like 3-5 times which isn’t a good thing for whatever you’re controlling. I was planning on using it for my doorbell or a garage door opener and I wouldn’t want thing ringing the doorbell or hitting the garage door opener button a bunch of times in quick succession.

I only bought two of these ESP01’s with the relay hat thing and I’ll probably never use them because of that. ESP8266 NodeMCU, Wemos D1 mini and ESP32 are much better 1st project controllers to start on. I’ve played with them all and I recommend you start with Wemos D1 mini or ESP8266.

Good luck!

1 Like

Thank you very much! Can I just use a piece of a dupont wire to make that bridge? Im gonna try it this evening :slight_smile:

I was following this tutorial, which promised was noob friendly :wink: https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/
But maybe its outdated, I’m gonna search for a tutorial with Wemos or ESP8266, thank you for the advice! Have you successfully made something for your doorbell/garage door opener?

That is a good tutorial, but not all esp01 and relay boards are created equal. Mine worked on the first try, but I guess I was just lucky.

yeah tutorial was good but when you get stuck with a faulty esp board, its not for beginners.

Actually, I was going to do the same thing based on Frenck’s webpage that you shared. I found it too a while back. As @francisp said, these cheepo ones we got aren’t as simple to use as Frenck’s so in my mind they’re junk.

I did build a couple of smart garage door opener managers using Sonoff SVs based on watching Dr. Zzz’s $5 DIY “Smart” Garage Door Opener using Sonoff SV. He sets them up with Tasmota which I did. However, after I built those I got DEEP into Esphome and have since converted them both to be esphome-based devices.

After doing that I realized that I wanted to have more sensors and things with my garage door opener devices (like car presence sensor, temp sensor, motion sensor, light sensor, carbon monoxide sensor, etc.) AND I don’t want my garage door to only have a single reed switch (the position sensor for the door) which I used based on Dr. Zzz’s $5 video.

I started off on a redesign and I haven’t quite finished it yet. I have created the Esphome code to enable dual reed switch sensors so I can detect “full closed” and “full open” and therefore set the state of the door more accurately (open/closed/opening/closing). Now I just need to create the PCBs for the devices so I can set them out there and hook them up. I’m planning to use Wemos D1 minis with relays for all of that.