No that sounds like a hardware problem.
Something like a power supply related issue and your wiring of it.
That is we need to see a schematic of how things are wired up.
Is there a battery involved? That can cause problems if you don't take the right precautions.