16/20
www.rohm.com
© 2016 ROHM Co., Ltd. All rights reserved.
STEPMO_EVK_20x
Evaluation Board Manual
EUDC59-U-002 - Rev. 1.3
●
Content of the Software Delivery Package
The ROHM STEPMO_EVK_20x software delivery package is part of this EVK. It contains the library with all required functions and
also some example programs (Arduino Sketches) to demonstrate the usage of this library.
Standard content
for Arduino library
Arduino GUI
accessible examples
Example Sketch:
One EV board connected.
Demonstrating
CW/CCW,
clock speeds, full/half/micro
stepping etc.
Example Sketch:
Two EV boards connected.
Demonstrating
CW/CCW,
clock speeds, full/half/micro
stepping etc.
Implementation of the library. It
only needs a header file. A
“.cpp” file is not used.
Table 11: Contents of the ROHM STEPMO_EVK_20x software delivery package
●
DEMO Sketch
/*
Basic Demo. Running BD63720AEFV in continous full step mode
*/
#define BD63720AEFV
#include <ROHM_Steppers.h>
ROHM_Stepper RS(ONE);
void setup()
{
RS.ENABLE(ACTIVE); // OPEN->ACTIVE
RS.PS (ACTIVE); // RESET->ACTIVE
delayMicroseconds(40); // wait 40us after PS->High as recommended in data sheet
RS.MODE (FULL_STEP);
RS.CW_CCW(CCW);
}
void loop()
{
RS.CLK(1);
}