I have researched every where for this problem and cannot find a direct answer.
I am currently working on a project which involves a large 20ft conveyor belt transferring product into a Plexiglas box and is then ejected onto another belt. When testing the project, I had been running the program for about ten minutes everything was running great until all of the sudden my LED's and Pneumatic piston started triggering on and off and went haywire.
I spoke with the other engineers and IT and they mentioned that there could be static interference? Is this possible with all of the friction occurring from the belts and the pneumatic piston? If so how can I prevent this from happening. What is the best method to ground the entire board preventing the voltage spikes?
When trouble shooting I had tested the power supply to see if any voltage spikes had occurred and nothing stood out. I replaced the SD card as well in hope that it could've been corrupted somehow. The PI is open right now and I am working on making a custom case for it if that will help. All of my inputs are assigned to the Pull Up/Down resistors.
Here are some pictures of my wiring. I am a mechanical engineer but have basic background with circuitry and writing code. Problems like these however i do not know a direct route to fix them so any advice would be appreciated.
PI Circuit Board
Relay Wiring