2020-03-19 21:06:45 +08:00
# Module STEPMOTOR
2018-12-25 16:04:58 +08:00
2020-07-09 17:48:46 +08:00
<el-tag effect="plain">SKU:M012</el-tag>
2020-03-19 10:58:07 +08:00
2020-04-08 14:09:44 +08:00
<div class="product_pic"><img src="assets/img/product_pics/module/module_stepmotor_01.webp"> <img src="assets/img/product_pics/module/module_stepmotor_02.webp"></div>
2018-12-25 16:04:58 +08:00
## Description
2019-04-26 18:10:14 +08:00
**STEPMOTOR** is used for stepper motor control. It is perfect for any motion project as it can drive up to 3 Stepper motors with **GRBL** control.
2018-12-25 16:04:58 +08:00
2019-04-26 18:10:14 +08:00
It is built with MEGA328P has been flashed **GRBL** firmware. The module comunicates with M5Core via I2C(0x70)
Integrated 3 DRV8825, a simple but very powerful board that can control one bipolar stepper motor at the time and allows micro stepping up to 1/32 of a step.
## Product Features
2018-12-25 16:04:58 +08:00
- 9-24V Power Input
2019-04-26 18:10:14 +08:00
- 3-way stepper motors ** (X, Y, Z)**
2020-06-10 14:13:34 +08:00
2018-12-25 16:04:58 +08:00
## Include
- 1x Step Motor Module
2019-03-05 15:52:45 +08:00
- 12V Power (Optional)
- 1x 5V FAN Module for heat dissipation (Optional)
2018-12-25 16:04:58 +08:00
## Applications
- DIY 3D Printer
- Simple Robot Arm
2020-05-29 16:36:24 +08:00
## Specification
<table>
<tr style="font-weight:bold">
<td>Resources</td>
<td>Parameter</td>
</tr>
2021-03-15 16:43:18 +08:00
<tr>
<td>DC Interface</td>
<td>XT30</td>
</tr>
<tr>
<td>Motor Interface</td>
<td>HY2.0-4P</td>
</tr>
2020-06-18 09:30:41 +08:00
<tr>
2020-11-18 19:00:45 +08:00
<td>Net weight</td>
2020-05-29 16:36:24 +08:00
<td>24g</td>
</tr>
<tr>
<td>Gross weight</td>
<td>34g</td>
</tr>
<tr>
<td>Product Size</td>
<td>54.2*54.2*12.8mm</td>
</tr>
<tr>
<td>Package Size</td>
<td>60*57*17mm</td>
</tr>
</table>
2018-12-25 16:04:58 +08:00
## Related Link
2019-01-31 11:29:00 +08:00
- **[The Firmware of inside MEGA328 ](https://github.com/m5stack/stepmotor_module/tree/master/Firmware%20for%20stepmotor%20module/GRBL-Arduino-Library )**
2019-10-22 17:14:58 +08:00
- **[DRV8825 Datasheet ](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/DRV8825_en.pdf )**
2019-06-24 17:43:36 +08:00
2019-06-14 17:49:23 +08:00
## EasyLoader
2020-04-08 14:09:44 +08:00
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.webp" width="100px" style="margin-top:20px">
2019-06-14 17:49:23 +08:00
2020-08-21 14:55:54 +08:00
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_STEPMOTOR.exe"><el-button type="primary">download EasyLoader</el-button></a>
2019-06-14 17:49:23 +08:00
2020-11-17 16:38:23 +08:00
>1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.
2019-06-14 17:49:23 +08:00
>2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click ** "Burn"** to start burning.
2020-08-04 18:55:59 +08:00
?>3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. [Click here to view the driver installation tutorial ](en/related_documents/M5Burner#install-usb-driver )
2019-06-14 17:49:23 +08:00
2019-08-14 11:53:31 +08:00
## PinMap
**Mega328 ISP**Download interface Pin foot definition
2020-04-08 14:09:44 +08:00
<img src="assets\img\product_pics\app\mega328_isp.webp" width="30%" height="30%">
2019-08-14 11:53:31 +08:00
2020-08-13 10:23:45 +08:00
## MBUS PinMap
<img src="assets\img\product_pics\module\module_bus.webp"/>
2020-04-24 21:10:31 +08:00
## Schematic
<img src="assets/img/product_pics/module/stepmotor_sch.webp">
2018-12-25 16:04:58 +08:00
## Example
2018-12-29 14:46:55 +08:00
### 1. Arduino IDE
2020-04-30 14:13:25 +08:00
The code below is incomplete. TO get complete code, please click [here ](https://github.com/m5stack/M5Stack/tree/master/examples/Modules/STEPMOTOR )
2018-12-29 14:46:55 +08:00
### 2. UIFlow
2020-03-19 21:06:45 +08:00
Wanna explore the easiest way of Servo programming?? Check out the Blockly Platform at [UIFlow ](flow.m5stack.com )
2019-04-26 18:10:14 +08:00
2020-03-19 21:06:45 +08:00
To get complete code, please click [here ](https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Module/STEPMOTOR/UIFlow )
2018-12-29 14:46:55 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/module/module_example/STEPMOTOR/example_module_stepmotor_01.webp">
2018-12-29 14:46:55 +08:00
2020-02-11 18:00:45 +08:00
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/step-motor-module-adapter-fan-module';
anchor_search(purchase_link);
scrollFunc();
</script>