I'm building a project that involves a raspberry and a small 3-6v water pump. As the RPI and the water pump run on 5V I am using a single 110v-5v 2.5 Amp walwart to supply the power.
My question is, will I cause the raspberry pi harm as a variable current passes through the load? Initially the raspberry pi was not a happy but upon adding a flyback diode it seems to be OK. Are there other precautions I should take to ensure the RPI is not harmed?