Great video. I have been thinking of doing something like this , that way it wont require internet and it also have a fail safe
@leventelikhanecz22585 жыл бұрын
hi Samir, do you use a simple relay? mean not self latching one? imagine you have your relay in the NO (normally open) position. once the esp fails it falls back itself to NC (normally closed) state, toggling the lamp state. improve failsafe with self latching relay (regardless 1 coil or 2 coil type). there you just give a short pulse (pulsetime) on the coil/s to toggle state of relay. if the esp dies silently the relay will keep its present state. (imagine you wake up in the middle of night due to a lamp start burning into your face upon esp death) or the opposite.
@SamirSogay5 жыл бұрын
I use a simple relay. I never knew there were self latching relay. My lights do toggle if I reboot the microcontroller when it hangs. Thanks for the input.
@leventelikhanecz22585 жыл бұрын
@@SamirSogay there are 2 types, single coil and 2 coil. the single coil you have to reverse polarization to toggle, while on 2 coil type you have to drive both coil same polarization and pulse them accordingly to toggle. may require little tricky programming depends on firmware / control OS.
@leventelikhanecz22585 жыл бұрын
by the way, in between your 2 endpoint (in this case the 3 pin switch and the esp relay - which acts as a 3 pin) you still can put endless number of so called "cross switch". 3pin - X - X - X - 3pin. the cross switch has 4 pins. on toggle it change routing between the upper line and the lower line. where you have several entry point ( a lobby ) each switches will do the light. | | | | / \ | |. | |
@SiddheshBagade3 жыл бұрын
Hello sir, I just learned about latching relays - also called as bistable or impulse relays. Can you cover this topic on 2 way or 3 way switches as it will not keep taking current as normal relays to keep it on.
@SiddheshBagade4 жыл бұрын
To have the privilege to be so lazy, You have to work hard once. - Samir Sogay, 2018. 0:31
@harshanimataraarachchige40405 жыл бұрын
Industrial ESP32 PLC NORVI IIOT Features : Industrial Arduino ESP32 : IIOT with ESP32 Watch the video kzbin.info/www/bejne/hIfdhoqajtilfJY #esp32 #esp8266 #Arduino #IIoT #PLC #automation #Robotics
@aliasaad13473 жыл бұрын
can this method used with bylnk and give correct stateus of lamp
@SamirSogay3 жыл бұрын
Unfortunately there is no way to track the current status of the lights. If you can have a light sensor in the room, you can use that to update the status.
@hycron12343 жыл бұрын
@@SamirSogay - Hall Effect Current Sensor, then you would know if it was on or off.
@SamirSogay3 жыл бұрын
@@hycron1234 Nice option for the people who want status change in Openhab.
@NEWBI3GAM1NG4 жыл бұрын
nice video, hope their is a clear and complete wiring diagram with the conventional and the relay switch module. thanks in advance.
@SamirSogay4 жыл бұрын
If you see the video, there are some diagrams which should clarify the setup. It is important for you to understand 2 way switches. This will help in understanding this setup.
@UmeshKumar-vu9uz3 жыл бұрын
Can you demonstrate with One way button or normal button as well
@SamirSogay3 жыл бұрын
It cannot be done with 1 way button
@timchan17834 жыл бұрын
Is it possible to do this with 12v setup? I want to be able to control my interior van lights with Alexa but also have a failsafe wall switch. Thank you!
@bespired5 жыл бұрын
Smart. I'm looking for a physical switch to turn the lights on via wifi. So I don't need to pull a wire.
@SamirSogay5 жыл бұрын
There maybe a way by which both places will have esp8266. One will have a physical button and the other will have a relay. They will both communicate with wifi.
@nu199ds4 жыл бұрын
There is one problem in this system. Suppose you have powered on the light by triggering the relay by the web server and you switched it off by the wall switch. You go on a pleasure trip for 2 days. Few minutes later, your area gets a power cut for 5 minutes. Heres what happens when the power comes back on.... you relay will start at the N/C configuration. The wall switch will supply power across the relay to your bulb until you have returned home.
@SamirSogay4 жыл бұрын
I didn't even have to take a trip to know this. Anytime power fluctuates, the light toggles when the relay is energised. Didn't take into consideration while designing this setup.
@carlosgarcialalicata3 жыл бұрын
@@SamirSogay you can use a latching relay instead
@proFFGaming23 жыл бұрын
What will happen in power cut will switches remember their on off state or they will all off when power comes again?
@hycron12343 жыл бұрын
They would remember their state. 🙂
@proFFGaming23 жыл бұрын
@@hycron1234 thanks bro
@codingspace11435 жыл бұрын
OK..but with failsafe can you update the status of light in ALexa?
@SamirSogay5 жыл бұрын
No, you can't.
@CATips4 жыл бұрын
Sir I have using water tank level transmitter for measuring the tank level. The transmitter output is 1 to 5 V variable Means 1V need to set 0% 2V need to set 25% 3V need to set 50% 4V need to set 75% 5V need to set 100% Can you make gauging display via blynk app with modemcu Please make code for me
@unbreakabledesire142 жыл бұрын
Bhaiya mera Manual switch bina hotspot connect kiye kaam nhi kr raha hai ek baar hotspot connect krne ke baad switch kaam kr raha or hotspot band kr raha phir bhi switch kaam kr raha lekin stating me mujhe ek baar hotspot connect krna pad raha phir switch kaam kr raha , Mtlb switch ko Initialise krne ke liye hotspot connect krna pad raha jo ki acha nhi hai if phone nhi raha to switch kaam nhi krega PLZZ SOLVE THIS PROBLEM..🙏🙏
@tahabutt4742 жыл бұрын
hey can you provide the circuit diagram of this circuit
@RajveerSingh-yb6zq4 жыл бұрын
I have the Similarsetup in my house and I want to Upgrade it, Problem is if I Turn the "ON" the Device using Micro Controller in My Phone Display it will say its On, But if I Turn the device off Using the conventional switch, Microcontroller has no means to know that the Device is off Now, So in My Phone, it will still say its on, And If I click it again to off in UI, It will Turn the Device ON but on Phone's Display it will say it's off. Do you have any solution to this problem Bro?
@SamirSogay4 жыл бұрын
This is the most common question I get on this video but unfortunately there is no easy answer. One way of maintaining the status of the Web button could be through light dependant resistor. If light is above a certain brightness, it could turn status of button on and vice versa.
@tirthrajgandhakwala62014 жыл бұрын
I have made automation system for home which toggles for both manual and esp32 command over LAN. But the issue is that I cannot change the status of online Switch GUI to ON or OFF when manually state of output is changed. Any way I can change online status of switches when I change them manually?
@SamirSogay4 жыл бұрын
Unfortunately no. You may have to rely on a light sensor which could toggle status based on ambient brightness.
@mogilogi1956 Жыл бұрын
you can use current sensor, to sense the current going to the light to know if it's on or off
@mohammedsikandar60564 жыл бұрын
Is it possible to switch-on from conventional switch and switch-off from the esp-relay board? If so, does the UI in the app update accordingly?
@SamirSogay4 жыл бұрын
Yes but ui does not update
@mosikud4 жыл бұрын
Thanks for the reply.. I am almost done with this project.. I have all the setup, I only need to connect esp32.. Any suggestions on how to update the UI?
@SamirSogay4 жыл бұрын
@@mosikud Probably have a light sensor in the room which will update the switch status based on light level in the room.
@mani5004 Жыл бұрын
u wont get feed back and need to tell alexa the opposite of on and off
@mani48124 жыл бұрын
Sir how get return feed back indicating Which light is on or off condition plz tell sir
@mani48124 жыл бұрын
When switch on the light by manual which indicates in app light is on
@brunoleonmexico77674 жыл бұрын
You can't.
@SamirSogay4 жыл бұрын
There is no way of feedback. You might have to rely on light sensors.
@SaturnAR4 жыл бұрын
@@SamirSogay or you could just add a current sensor at the output power cable, and use this info to update the status accordingly.
@nicolassuarez1446 жыл бұрын
Hi! Very good tutorials! There is an alternative to hi-link 3.3v to power supply the esp board?
@awesamphotography76886 жыл бұрын
Hi, there is hlk-pm03 for 3v output
@Defaultgamingyt5 жыл бұрын
hi bro i have only one way switch can i do it? and if yes can you give me diagram for it?
@SamirSogay5 жыл бұрын
Hi. The only necessary requirement is having a 2 way switch with 3 terminals. Other than that you need a relay and a micro controller to control the relay. Connectivity is pretty simple if you follow the video.
@shahidmustafa77685 жыл бұрын
Hi Samir, would it possible if you can share the code or project folder.. it would be great.. thanks in advance
@SamirSogay5 жыл бұрын
I have added the code in the video description.
@harjaskaran4 жыл бұрын
How to modify the code add additional switches
@SamirSogay4 жыл бұрын
I think if you go through the code, you will be able to alter it for your requirement.
@aliasaad13473 жыл бұрын
current statues is appeared correct on application ?
@SamirSogay3 жыл бұрын
No, there is no way of knowing current status
@Dennis-iz4lm3 жыл бұрын
"espipswitchtoggle.h" i can't find the library on the web...heeeeelp me plsss
@SamirSogay3 жыл бұрын
The files are linked in the video description
@mgscyber3 жыл бұрын
Pls show the full diagram next time
@ahmadimamadyan13964 жыл бұрын
How to setup the setting of openHAB app?
@SamirSogay4 жыл бұрын
Openhab app depends upon openhab server which you must run on Raspberry Pi
@Roaming_with_akshay5 жыл бұрын
How it will work with Google assistant?
@SamirSogay5 жыл бұрын
This esp8266 integrates with openhab and openhab has Google binding.