maniac84
Full Member level 6

Currently doing a project using PIC18F25K50 which I connect its USB interface with Device A. I'm also using this mcu to control a 240VAC relay and this relay will on or off device B. My problem is, everytime I turn on the relay, the USB connection will disconnected.
Is it something to do with noise or spike everytime I on the relay? Do you guys know is this the firmware problem or the hardware problem?
Is it something to do with noise or spike everytime I on the relay? Do you guys know is this the firmware problem or the hardware problem?