gonadgranny
Member level 4
Hey. I have an arduino microcontroller which is controlling several relays connected to 40W lightbulbs which are powered by the mains 240v power supply.
I can control the bulbs fine when using a pre-programmed sequence stored on the arduino but what I want to do is control them using a program on my computer over the serial and this is where problems occur.
WHen I try to send preprogrammed signals over serial it works fine in flicking the relays when not connected to the mains power supply but when I do something happens which messes up my arduino and leaves it in a kind of frozen state.
This sounds like some sort of EMF problem maybe but it all works fine when the signals are sent from a sequence stored on the arduino which makes me wonder where the difference arises.
Any help would be massively appreciated.
Danny.
I can control the bulbs fine when using a pre-programmed sequence stored on the arduino but what I want to do is control them using a program on my computer over the serial and this is where problems occur.
WHen I try to send preprogrammed signals over serial it works fine in flicking the relays when not connected to the mains power supply but when I do something happens which messes up my arduino and leaves it in a kind of frozen state.
This sounds like some sort of EMF problem maybe but it all works fine when the signals are sent from a sequence stored on the arduino which makes me wonder where the difference arises.
Any help would be massively appreciated.
Danny.