CNC Shield 3D tiskárny pro Arduino
75 Kč
Kategorie produktu:
Tato expanzní deska je vhodná pro rycí stroje, 3D tiskárny, apod., obsahuje čtyři sloty pro A4988 drivery krokových motorů.
Balíček obsahuje jeden CNC Shield 3D tiskárny pro Arduino.
Příklad:
//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 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. 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.
UNO 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 )
Oblíbené produkty na téma: arduino, cnc, shield
Arduino Nano V3.0 ATmega328 – Precizní klon
Velice zdařilý klon Arduino NANO s FTDI převodníkem, po SW a HW stránce totožné s originální deskou. Specifikace: Procesor: ATmega328 USB převodník: FTDI FT232RL Verze desky: V3.0 Provozní frekvence: 16MHz Pracovní napětí: 5V Vstupní napětí: 7-12V Digitální IO portů: 14 (z toho 6x PWM ) Analogový vstup: 8 Maximální proud 5V digitálního / analogového portu: 40 … Číst více
Koncový spínač s kývavou pružinovou tyčkou AC CNC – ME-8166
Koncový doraz určený do průmyslu pro detekci předmětů. Specifikace: Produktu: koncový spínač Model: ME-8166 Typ: kývavá tyčka, Automatický reset Napájení: AC 250V 5A, DC 115V 0,4A Konfigurace kontaktů: 1x NC (rozpínací, 2 svorky) + 1x NO (spínací, 2 svorky) Průměr připevňovacího závitu: 4,5 mm Rozteč montážního otvoru: 56 mm x 21 mm Délka tyče: 70 mm Délka … Číst více
Síťový ethernetový modul W5500 pro Arduino
Specifikace: Úsporný režim: ano Režim probuzení na LAN přes UDP: ano Vysokorychlostní sériové periferní rozhraní (SPI MODE 0, 3): ano Interní paměť: 32 kB pro vyrovnávací paměť TX/RX Vestavěný: 10BaseT a 100BaseTX Ethernet PHY Automatické nastavení Ethernet komunikace: ano Fragmentaci protokolu IP: nepodporuje Tolerance signálu: 3,3V provoz s 5V I/O LED výstupy: (Full a Half duplex, Link, … Číst více