It really depends if the 5v supply to the Raspberry Pi has the capability of dealing with the power spikes which come from making a step with the motor and still providing a steady 5v for the Raspberry Pi itself and any attached devices.
If you are using a mobile phone charger then the answer is likely no.
The reason for this is that even a very short dip in the voltage to the Raspberry Pi will probably cause it to restart, motors tend to cause dips in the supply voltage when they start moving.
We would always recommend using separate supplies anyway where possible, this keeps any motors from being able to cause power issues for the Raspberry Pi.
piborg
Tue, 06/10/2014 - 10:11
Permalink
Depends on the supply
It really depends if the 5v supply to the Raspberry Pi has the capability of dealing with the power spikes which come from making a step with the motor and still providing a steady 5v for the Raspberry Pi itself and any attached devices.
If you are using a mobile phone charger then the answer is likely no.
The reason for this is that even a very short dip in the voltage to the Raspberry Pi will probably cause it to restart, motors tend to cause dips in the supply voltage when they start moving.
We would always recommend using separate supplies anyway where possible, this keeps any motors from being able to cause power issues for the Raspberry Pi.