Hello everyone !
It seems that I might be in need of your aid a second time folks ! <3
I will be as precise as possible with my problem. I hope I won’t frustrate you.
I made a Smart Light Switch project for my room using Blynk on an ESP8266 (ESP-01).
I’ve encountered several difficulties both on coding and on the hardware side, but after some reasearch I got to a good point.
> THE GENERAL PROJECT IDEA:
- I want to be able to control two separate lights in my room via Wi-Fi using Blynk.
- I also want to be able to control them via physical button in case my Wi-Fi goes off-line.
> WHERE I AM SO FAR
I’ve built a prototype on a breadboard guided by the links above.
I am using an ESP-01, a Low-Level Relay Board (pull to ground to activate) and a Capacitive Button as the off-line fail-safe. The button outputs HIGH when pressed.
I am using (according to the suggestion on the link) NPN Transistors to “drive” the Inputs of the Relay board. Acoording to the schematic I’ll post bellow.
I am using two Virtual Pins that control the two Separate Lights independently through the BLYNK app, and they cycle through OFF, 1ST_ON, BOTH_ON when using the physical button.
> DOES IT ACTUALLY WORK ? (The Problem)
When I boot the device up, it works flawlessly. I can control (as intended) the lights both from the APP and the Button.
Even if I disconnect the device from the Wi-Fi by turning off the Router, it works via the Physical Button.
The problem is, that IF I leave both lights ON (so both relays active) then after a couple of minutes, the device appears to shutdown. The Lights turn off, and my app says that the device disconnected.
If I quickly reset the ESP8266 it goes back up to normal.
IF I leave just ONE light (one relay) ON, then the device works as intended without disconnecting or shutting down, at least for the last 5 hours I’m testing it. It doesn’t matter which light (which relay, therefore which GPIO) I leave ON. It just has to be ONE of the two. Once I activate both at once, I got a couple of minutes before it shuts down.
When it shuts down alone, it appears to reset and restart on normal operation after some time. But then again shuts down and disconnects again.
> QUESTION TIME
- Is it possible that my ESP-01 is UNABLE to drive that much current and shuts off to protect itself ?
- Or maybe I’m not powering it with enough Milliamps ?
- Do you suggest any other Transistor / Resistor Configuration that would possibly solve the problem ?
Thanks a LOT in advance and sorry for taking your time. <3