I have a small circuit designed to switch on the lights in my room using a wifi-enabled microcontroller Particle Photon. The circuit is based on an opto-triac and TRIAC setup where the microcontroller triggers opto which triggers the TRIAC to switch on or off.
I installed 4 of them in my house, 1 in my living room and 1 in my bedroom (both incandescent bulbs) , 1 in the kitchen and one in the bathroom (both use neon based flourescent lamps).
I also have a push button wired to the Microcontroller to enable physical switching for the lamps along side the wifi.
The problem When i switch on the lights in the kitchen, the lights in the bathroom and my bedroom go up as well.
Notes : 1. My boards are connected to a cloud service by Particle, where i can monitor (remotely from a laptop) if a voltage was applied to a certain pin. 2.Every board of mine has a powersupply (5V 1A) output the powers the board. This power supply takes in Mains (220V AC and Neutral directly from the wall) 3. My board takes in 5V from the supply and is connected to the Mains, and Lamp to switch on/off
Trials and Conclusions 1. I thought it was a software issue, so i disconnected the internet from the boards and tried it again, again it happened, therefore this has to be a HW problem. 2. I immediately went to think that the neon is somehow cause some back-emf or something and messing up my gear, i disconnected the power supply and powered my board through a portable mobile charger , still happened again, the lights in the other rooms went on. 3. I disconnected my board from the wall (Yes , my board is now completely wireless), just to see if the pins would be triggered (i can see this through my web service). and YES, when i switch on lights in the kitchen, my WIRELESS board in the bathroom registers a voltage on my pin. Now keep in mind i deliberatley set my (now) wireless board very close to the naked wires in the wall that trigger the lamp, when i take it farther away, it doesn't register that voltage.
One possibility now ... Electromagnetic Interference.
Q1. Is my assesment correct? Q2. How to resolve this issue?
The blinking thing is the microcontroller on my board, the green board is the power supply.
I know this is rather complicated , any questions required to answer this i'm fully prepared to provide details. ANY HELP IS GREATLY APPRECIATED.