Page 1 of 1

PowerSTEP01 arduino library

Posted: Mon May 01, 2017 8:23 pm
by Joe
Hi, I tried to build the example of the PowerSTEP01 stepper driver interface without success.
Did anybody try that library with success?

I'm using an arduino mega2560 powered with a lipo 24v and this motor http://www.ebay.de/itm/EU-Free-Ship-Sch ... SwtZJY-ExA

Re: PowerSTEP01 arduino library

Posted: Tue May 02, 2017 2:01 am
by philr
Hi Joe, was this using the library we link to in our article?

Re: PowerSTEP01 arduino library

Posted: Tue May 02, 2017 1:10 pm
by Joe
Yes
http://www.megunolink.com/articles/powe ... face_Panel

I also tried the PowerSTEP01SimpleTest example but the X-NUCLEO-IHM03A1 only lights the red error led and nothing moves.

Re: PowerSTEP01 arduino library

Posted: Thu May 04, 2017 7:29 pm
by Joe
I did some testing and found out that the library does not work with Arduino Mega. It only works with an Uno. Has anybody an idea why? I need to use a Mega for my project.

Re: PowerSTEP01 arduino library

Posted: Tue May 09, 2017 3:00 am
by philr
Hi Joe, good find. I'm not sure why that would be the case but it's certainly possible it was built with things that specifically rely on the layout of an UNO. Let us know how you go?

Re: PowerSTEP01 arduino library

Posted: Tue May 09, 2017 11:07 am
by Joe
Hi, I think this causes the different pins on the mega used for spi connection.

Does anybody know how to make the library compatible to the arduino mega? I already tried to wire the driver shield and the mega by hand with the correct spi pins but this also didn't work.

Can anybody help?