A schematic of the project showing all components and power supplys would help us to help you. My fist impression is that the solenoid is sending garbage onto the power supply causing the processor to malfunction.
A schematic of the project showing all components and power supplys would help us to help you. My fist impression is that the solenoid is sending garbage onto the power supply causing the processor to malfunction.