[Newbie need help] Arduino crashing when trying to control step motor over Alexa

Hi All

I almost have 0 experience in programing and I am new into playing around with Arduino (extremely fun)...I am learning as I am going.

I had a working IR receiver code that is working perfectly to control the step motor, I want to implement Alexe as well. I don't know what is wrong but when Alexa is triggered the arduino is crashing while trying to execute the command.

This is my current code http://pastie.org/p/1caClNycVHAolSeFlDrZ7e

The bellow link is the serial output I get when I ask Alexa for OFF, I tried disconnecting the step motor but the same result.

http://pastie.org/p/52AuByDs0MiMV0tqd41Joi

I really don't know what is wrong. It seems Serial.println (blindLength); Serial.println (blindPosition); is printing the current values, so I can read that and yet its failing to execute the movemotor command, it has a issue with it, but I can't find what exactly.

Maybe I am missing to add something in the void loop ()?

I will not go to another web site to look at code. Neither will most helpers. It can be dangerous.

Please read the three locked posts at the top of this forum and anything that they link to (etc.) to learn about how to post your code properly. In particular, use the Arduino IDE autoformat feature, use code tags, and use copy-and-paste.