Hello, first of all I know that my problem has been discussed a lot before, but for me I am living with it for years without any solution.
Simply, I have built a circuit to open specific port when another port pulled down, everything works great, but the drama starts when I connect the long wire to the switch, it works also, but, open or close the flourescent lamp, and with every click, the microcontroller misbehave.
I am using 100nF and bigger and smaller capacitors everywhere, also I am using a PC power supply, 10k or 1k pull-up resistors everywhere, tried a BC547 and BC327 before the port, worked but again, when I connect the long wire I get noise a lot, tried CD40106, the same.
PLEASE help me to eliminate this problem, years a go I have built a lot of circuits with the same problem, noise from flourescent lamps and other electromagnetic noise sources.
!! PLEASE HELP !!
Thanks a lot
Simply, I have built a circuit to open specific port when another port pulled down, everything works great, but the drama starts when I connect the long wire to the switch, it works also, but, open or close the flourescent lamp, and with every click, the microcontroller misbehave.
I am using 100nF and bigger and smaller capacitors everywhere, also I am using a PC power supply, 10k or 1k pull-up resistors everywhere, tried a BC547 and BC327 before the port, worked but again, when I connect the long wire I get noise a lot, tried CD40106, the same.
PLEASE help me to eliminate this problem, years a go I have built a lot of circuits with the same problem, noise from flourescent lamps and other electromagnetic noise sources.
!! PLEASE HELP !!
Thanks a lot