hello friends. sorry for bad english.

i have a system controled by 16f877 and output relays. when 24V water relay is active, letters on 4x20 LCD are shifting one character to left. sometimes also system is reset.

if i connect the valve directly to the 230 v, the valve is no connection to the board or anything else; i have the same problem. it is possible transmissed an electronic magnetic area. how can i solve this problem. thank you.