Download Print this page

ON Semiconductor LV8702VSLDGEVK Quick Start Manual page 16

Stepper motor driver module solution kit

Advertisement

Please select the desired directory for the file to be
saved (e.g. Desktop or Documents) and click Save.
When using the GUI,
is the name of the program, so a different name
will need to be used to save the exported file.
Double click the newly saved Arduino program to
open the Arduino IDE.
The GUI and Arduino IDE cannot be connected to
a PC at the same time. To upload the Arduino
program, please exit or select Disconnect in the
GUI, and proceed working in the Arduino IDE.
Follow the instructions in the Quick Start Guide in
P3 "Compiling the Arduino Program – Write to
Arduino".
2) Using the generated Arduino program
After each API operation in the generated
program, a delay(0) is inserted. By changing the
value of the argument (0)* to the delay function,
the user is able to freely adjust the rotation time,
as well as the interval time between each API call
execution. This can be used to achieve the desired
stand−alone operation.
*Parameter units are msec (1000
For a delay of 1 second, use delay(1000).
LV8702VSLDGEVK
NOTE: The delay setting at the beginning of the setup
th
of a second).
www.onsemi.com
16
[Example of changing the interval time]
NOTE
"motorRotationDeg(10, 720.0, 0, 0)"
will start the motor with Full step, CW, 10 Step/s,
and an angle of 720 deg
"delay(5000)"
will drive the motor for 5000[msec]
"motorRotationStop()"
will stop the motor
After the time specified in the delay command has
elapsed, the next command will be executed.
If the delay setting is 0 or too short, some motor
operations will complete so quickly, that it will be
imperceptible.
method will execute in the case of a new USB
connection, Arduino reset, or upon uploading
a sketch to the Arduino. In this case, the
Arduino will delay for 5 seconds while writing
the initial settings.
(5s)

Advertisement

loading

This manual is also suitable for:

180-6981