hi i am testing '4 hardware serial read and write to USB' on Arduino Due, it works fine in SURGE INVIRONMENT,
but when i use same on Arduino Mega 2560, suddenly surge produced and Arduino Mega 2560 stops communicating USB and blinking communication led stops blinking, it turned into continue glow.
and when i remove the usb cable and attached again the Board starts working again. so every time i am facing the problem.
can any one suggest me solution please, because i want to use Mega instead of Due.
Thanks In Advance.