USER MANUAL EN TB6500 3 A stepper motor driver board WPM333 whadda.
Introduction To all residents of the European Union Important environmental information about this product This symbol on the device or the package indicates that disposal of the device after its lifecycle could harm the environment. Do not dispose of the unit (or batteries) as unsorted municipal waste; it should be taken to a specialized company for recycling. This device should be returned to your distributor or to a local recycling service. Respect the local environmental rules.
What is Arduino® Arduino® is an open-source prototyping platform based on easy-to-use hardware and software. Arduino® boards are able to read inputs – light-on sensor, a finger on a button or a Twitter message – and turn it into an output – activating of a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board.
controller: TB6560 MCU, PLC, digital circuits driver board Note: Resistors on data lines are optional.
Connection to 4-Wire Stepper Motor Stepper Motor WPM333 red wire A+ blue wire A- green wire B+ black wire B- Whadda WPM333 Stepper Motor Driver Arduino example This example shows how the Whadda WPM333 Stepper Motor Driver board can be used with Arduino. The following connections are required: 2 <==> CW+ GND <==> CW3 <==> CLK+ GND <==> CLKFor more information about the Whadda WPM333 Stepper Motor Driver, consult the manual, available online at whadda.
#define CLK_Pin 3 #define stepsPerRevolution 200 void setup() { // Declare pins as output: pinMode(CW_Pin, OUTPUT); pinMode(CLK_Pin, OUTPUT); } void loop() { // Set the spinning direction clockwise: digitalWrite(CW_Pin, HIGH); // Spin the stepper motor 1 revolution slowly: for (int i = 0; i < stepsPerRevolution; i++) { // These four lines result in 1 step: digitalWrite(CLK_Pin, HIGH); delayMicroseconds(8000); digitalWrite(CLK_Pin, LOW); delayMicroseconds(8000); } delay(1000); // Set the spinning direction c
// Set the spinning direction counterclockwise: digitalWrite(CW_Pin, LOW); // Spin the stepper motor 5 revolutions fast: for (int i = 0; i < 5 * stepsPerRevolution; i++) { // These four lines result in 1 step: digitalWrite(CLK_Pin, HIGH); delayMicroseconds(2000); digitalWrite(CLK_Pin, LOW); delayMicroseconds(2000); } delay(1000); } The running current limit can be set by using the DIP-switches located on the module. The following table gives an overview of the possible settings.
whadda.com Modifications and typographical errors reserved - © Velleman Group nv. WPM333_v01 Velleman Group nv, Legen Heirweg 33 - 9890 Gavere.