Yeah sure does very well and probs because of this explanation in your attachment. If the switch is moving from one state to another and staying there it becomes irrelevant as he describes here …
because of this if I can manage to use my existing two way wiring at the wall switch, back to the arduino, I will re-wire it all to use 5v logic the switch then just hard toggles the data pin to either logic 1 or 0 and the blynk app does the same.
So I guess a latching switch is the solution unless you need to use a momentary one for other functions ie long hold etc
true.
the inconvenience i see with this, is that unlike buttons, switches can stay in 2 positions, and you never know when it is “on” or “off” the light. this can be surprise for a person who is not get used with the system
very easy indeed which is why my vrbls have a 1 after them just duplicate everything ie RELAY2_PIN AC_Sens2_pin etc etc but within the same void loops ie AC_detect etc
hope that makes sense - I am using 9 channels when I implement this
@Khatrichaitanya As I have already asked twice, I moved your 4 channel code into your own post and removed your posting in the two other topics you had interjected into.
Please use your own topic to request any assistances. Thank you.
While this forum is NOT about Mains wiring… and ALL MAINS wiring recommendations and diagrams “should” be treated as for “PROFESSIONAL USE ONLY!”… some may “forget” to read the fine print, or may not understand it, and after glancing at the pretty picture, say, oh, I’ll try that.
You should make sure any diagrams are VERY clear that there is to be a mains isolated sensor in-between your gray wire and any MCU.
I thought that was pretty clear in the text with the diagram - the grey wire does go to the mains logic board which is an optoisolated 240v mains to ttl logic signals. So the grey wire does indeed go to the input side(mains) of the mains to logic board.
I’m not sure what you want to do here it’s getting a little lost in translation. If you are not using mains then I have a totally different setup that uses 5v ttl signals from the light switch to operate a two circuit
Yes… but I was responding to @leomaralmonte, whom seemed unsure… marking the motion sensor and indicating that it was the isolated testing board??
I honestly thought he had added in the grey wire and words instead of diagram for the isolated sensor… I was comparing to your initial diagram (I missed seeing the modified one mid-way). My bad on that one.
That said, I would have still put in an image of the “mains to 5v logic board” instead of lots of words… but then I am a visual learner