Controlling a stepper motor using Stepper library - Photon crashes with 'usage fault'

I’ve tried a few things in the past days but now I’m even more confused. Without the stepper motor plugged in it the board runs fine. When I plug the stepper in the board restarts after a certain amount of time.

I’ve been using a breadboard voltage regulator power supply that allows up to 700mA. I wondered if it was exceeding the current and stopping a consistent flow of electricity getting to the photon, hence the restart. I purchased a 2A 5V power supply and connected that to the photon and stepper motor driver board. Within half a revolution it blew the power supply!

From what I’ve read online the stepper motor only draws around 92mA - don’t understand why the power supply blew :frowning: