Forum >Romeo V2 stepper motor drive code - does it really work?
ArduinoGeneral

Romeo V2 stepper motor drive code - does it really work?

userHead gaflurry 2015-08-27 13:14:07 2505 Views1 Replies
I just received my 4th Romeo V2 and I hope to use it to drive a bipolar stepper motor. I confess I don't have a motor yet, but after what I've seen, I'm not really sure I want to hook up a motor.

On the product page, there is a link to "Drive Stepper motor with Romeo v2" that no longer works. Is there a new URL?

Also on the product page, there is a link to "Romeo stepper motor library". That link works and I downloaded the library and created a sketch using it in my Arduino IDE. The code does not compile because in the .ino file, "D7,D6,D4,D5" are not defined. The version is 1; is there a newer version?

I assume that "D7,D6,D4,D5" refer to the output pins that drive the motor (M1 and M2) outputs, where D4 controls the "direction" of M1 and D5 is the PWM for M1, and D7 controls the "direction" of M2 and D6 controls the PWM for M2. I substituted simple integer constants for "D7,D6,D4,D5" and the code compiles and runs. Looking at the signals on a scope however makes me wonder if this approach really works. Has it been tested by DFRobot? Has anyone else had success?

Further, I wonder if the Romeo, or any Arduino controller, is capable of micro-stepping a stepper motor.
2015-08-28 18:58:04 Sorry for the bad link, we will fix it later. The tested library / example here: How to drive stepper by the 298 shield/ Romeo.

And yes, you are right , only change the D4-7 to simple number“4-7” will work!

Further more, I am not sure about the compatibility with the micro-stepping a stepper motor. For stepper is different from each other. Why not have a test? ;)
userHeadPic Leff