schufti wrote:that sounds like bad wiring (ground routing) and decoupling of the motor circuit.
That's very probable. Taking into account my huge knowledge of electronics, my wiring could be incorrect. Where can I find necessary information about wirings?