Hi All,
I've tried this on a picaxe and on an arduino, same result.
I'm trying to output Morse code to a 40W 240v desk lamp. The board outputs to a darlington array which in turn outputs to a 12v mains relay, the relay interupts the live wire to the desk lamp.
I know the code is OK as the relay clicks perfectly when the mains power is not switched on, however when the mains is connected, the system runs through its routine for about 1 - 2 minutes and then freezes, a reset sets it going for another minute or 2 then the same thing happens.
When trying the picaxe version I also got a small shock off the board! I've no idea how though.
Its almost as if the relay is pushing voltage back towards the darlington, but I've changed bothe the darlington and the relay but no change.
Anyone got any ideas?
PS: Please keep the answers simple as I'm pretty much a beginner at electronics.