Sửa chữa Robot đồ chơi công nghệ
Sửa chữa Robot dân dụng

Newest V3 Engraver 3D Printer New CNC Shield Expansion Board

Posted at: TUEsday - 07/02/2017 09:53 - post name: SuperG
Newest V3 Engraver 3D Printer New CNC Shield Expansion Board

Newest V3 Engraver 3D Printer New CNC Shield Expansion Board

The expansion board can be used as engraving machines, 3D printers driven expansion board. It has four slots, can drive four A4988 stepper motor. Each road stepper only need two IO ports. In other words, 6 IO port can be well managed three stepper motors. It is very convenient to use.

Features:

The expansion board can be used as engraving machines, 3D printers driven expansion board.
It has four slots, can drive four A4988 stepper motor. Each road stepper only need two IO ports.
In other words, 6 IO port can be well managed three stepper motors. It is very convenient to use.


Stepper motor wiring as follows:
2A, 2B is a group(red, green), 1A, 1B is a group(blue, yellow), if want to change direction,
can be change the position of one group, for example, 2A, 2B mutually exchanged.


How to connect it with For Arduino uno
IO corresponding figure above
UNO for For Arduino---------------------- expansion board
8 ------------------------ EN ( stepper motor driver enable , active low )
7 ----------------------- Z.DIR (Z -axis direction control )
6 ----------------------- Y.DIR (Y -axis direction control )
5 ----------------------- X.DIR (X -axis direction control )
4 ---------------------- Z.STEP (Z -axis stepper control )
3 ---------------------- Y.STEP (Y -axis stepper control )
2 ---------------------- X.STEP (X -axis stepper control )
/ / The following is a simple stepper motor control procedures,
# define EN 8 / / stepper motor enable , active low
# define X_DIR 5 / / X -axis stepper motor direction control
# define Y_DIR 6 / / y -axis stepper motor direction control
# define Z_DIR 7 / / z axis stepper motor direction control
# define X_STP 2 / / x -axis stepper control
# define Y_STP 3 / / y -axis stepper control
# define Z_STP 4 / / z -axis stepper control
/ *
/ / Function : step . function: to control the direction of the stepper motor , the number of steps .
/ / Parameters : dir direction control , dirPin corresponding stepper motor DIR pin , stepperPin corresponding stepper motor " step " pin ,
Step number of step of no return value.
* /
void step (boolean dir, byte dirPin, byte stepperPin, int steps)
{
digitalWrite (dirPin, dir);
delay (50);
for (int i = 0; i < steps; i + +) {
digitalWrite (stepperPin, HIGH);
delayMicroseconds (800);
digitalWrite (stepperPin, LOW);
delayMicroseconds (800);
}
} void setup () {/ / The stepper motor used in the IO pin is set to output
pinMode (X_DIR, OUTPUT); pinMode (X_STP, OUTPUT);
pinMode (Y_DIR, OUTPUT); pinMode (Y_STP, OUTPUT);
pinMode (Z_DIR, OUTPUT); pinMode (Z_STP, OUTPUT);
pinMode (EN, OUTPUT);
digitalWrite (EN, LOW);
}
void loop () {
step (false, X_DIR, X_STP, 200); / / X axis motor reverse 1 ring, the 200 step is a circle.
step (false, Y_DIR, Y_STP, 200); / / y axis motor reverse 1 ring, the 200 step is a circle.
step (false, Z_DIR, Z_STP, 200); / / z axis motor reverse 1 ring, the 200 step is a circle. delay (1000);
step (true, X_DIR, X_STP, 200); / / X axis motor forward 1 laps, the 200 step is a circle.
step (true, Y_DIR, Y_STP, 200); / / y axis motor forward 1 laps, the 200 step is a circle.
step (true, Z_DIR, Z_STP, 200); / / z axis motor forward 1 laps, the 200 step is a circle. delay (1000); }?
 

 
Note:
When inserting the A4988 module,
must be careful not to insert opposite.



Package included:

1 x CNC Shield Expansion Board

Brand Name:Reprap 3D
Model Number:A4988
Type:Other


DESCRIPTION:

1 suitable for driving below 8V ~ 35V 2A stepper motor;

2 only a simple step and direction control interface;

3 five different increment modes: full half 1/4 1/8 and 1/16;

4 adjustable potentiometer can adjust the maximum current output resulting in higher step rate;

5 Automatic current decay mode detection / selection;

6 the thermal shutdown circuit undervoltage lockout crossover-current protection;

7 ground fault protection and load short-circuit protection

A4988 is a converter and overcurrent protection with Microstepping DMOS Driver the product is available in full half 1/4 1/8 and 1/16 step modes to operate bipolar stepper motors of an output drive performance up to 35 V and ± 2 A4988 includes a fixed off-time current regulator the regulator in slow or mixed decay modes.
A4988 converter is the key to the easy implementation. As long as the "step" input inputting one pulse drives the motor one microstep. There are no phase sequence tables high frequency control lines or complex interfaces to program.
A4988 interface is very suitable for complex microprocessor is unavailable or is overburdened.

11

11

Test code:
int dirPin = 8;
int stepperPin = 7;
 
void setup()
{
pinMode(dirPin OUTPUT);
pinMode(stepperPin OUTPUT);
}
 
void step(boolean dirint steps)
{
digitalWrite(dirPindir);
delay(50);
for(int i=0;i
digitalWrite(stepperPin HIGH);
delayMicroseconds(800);
digitalWrite(stepperPin LOW);
delayMicroseconds(800); }
}
 
void loop()
{
step(true1600);
delay(500);
step(false1600*5);
delay(500);

}

Article reviews
Total number of articles is: 0 in 0 rating
You click on a star to rate article
 

About us

About us We provide 3D printers for retail and wholesale, We produced and assembled at Hanoi, Vietnam with many type: Cube, Delta, Mendel, scara, robot arm, custom by client...  - Repair 3D printers - Provide 3D printing materials...

1 1 1