2020-06-09 11:11:56 +08:00
# Module DC MOTOR
2019-01-25 19:11:15 +08:00
2020-07-09 17:48:46 +08:00
<el-tag effect="plain">SKU:M021</el-tag>
2020-03-19 10:58:07 +08:00
2020-04-23 21:07:21 +08:00
<div class="product_pic"><img src="assets/img/product_pics/module/module_lego_plus_01.webp"></div>
2019-01-25 19:11:15 +08:00
## Description
2021-01-04 13:23:37 +08:00
**DC MOTOR** is built with MEGA328 and L293DD microcontrollers, implemented 4 driver channels. A DC power input is designed for power supplement. Through M-BUS the DC in can automatically power the M5 core at top. DC motor module can drive RJ12 interface encoder-motor easily and quickly, such as LEGO ev3 Motor.( This product is not affiliated with or endorsed by LEGO. LEGO is a trademark of the LEGO Group of companies)
2019-01-25 19:11:15 +08:00
2021-01-29 14:47:53 +08:00
Series Communication: I2C (0x56).
2019-01-25 19:11:15 +08:00
2019-04-26 18:10:14 +08:00
## Product Features
- DC Power input: 6-12V
2019-08-22 14:16:47 +08:00
- DC Connector Type: XT30 (female)
2020-06-09 11:11:56 +08:00
- 4x Motor port
2021-01-04 13:23:37 +08:00
- Compatible with LEGO EV3 motor
2021-01-29 14:47:53 +08:00
- 2x I2C GROVE port (extend PORTA from M5 Core)
2019-04-26 18:10:14 +08:00
- L293DD: PUSH-PULL Driver Chip
2020-05-15 18:20:00 +08:00
2019-01-25 19:11:15 +08:00
## Include
2020-06-09 11:11:56 +08:00
- 1x DC MOTOR module
- 1x 10cm motor cable
2019-01-25 19:11:15 +08:00
- 1x DC connector
2020-05-29 16:36:24 +08:00
## Specification
<table>
<tr style="font-weight:bold">
<td>Resources</td>
<td>Parameter</td>
</tr>
<tr>
2020-11-18 19:00:45 +08:00
<td>Net weight</td>
2020-05-29 16:36:24 +08:00
<td>17g</td>
</tr>
<tr>
<td>Gross weight</td>
<td>48g</td>
</tr>
<tr>
<td>Product Size</td>
<td>54*54*12mm</td>
</tr>
<tr>
<td>Package Size</td>
<td>95*65*25mm</td>
</tr>
</table>
2019-01-25 19:11:15 +08:00
## Related Link
- **[The Firmware of inside MEGA328 ](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LEGO_PLUS/firmware_328p )**
<!-- ### 1. Arduino IDE -->
2019-06-11 19:20:48 +08:00
## EasyLoader
2019-01-25 19:11:15 +08:00
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_LEGO_PLUS.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-06 20:01:45 +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.
2021-01-04 13:23:37 +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-11 19:20:48 +08:00
2019-08-14 11:53:31 +08:00
## PinMap
2021-01-04 13:23:37 +08:00
**Mega328 ISP** Download interface Pin foot definition
2019-08-14 11:53:31 +08:00
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"/>
2019-06-11 19:20:48 +08:00
## Example
2019-01-25 19:11:15 +08:00
2020-01-13 17:11:48 +08:00
### 1. Arduino
2020-04-30 14:13:25 +08:00
To get the complete Arduino code, please click [here ](https://github.com/m5stack/M5Stack/tree/master/examples/Modules/LEGO_PLUS )
2020-01-13 17:11:48 +08:00
### 2. UIFlow
2019-01-25 19:11:15 +08:00
2020-03-19 21:06:45 +08:00
To get the complete code, please click [here ](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LEGO_PLUS/UIFlow )
2019-01-25 19:11:15 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/module/module_example/LEGO_PLUS/example_module_lego_plus_03_en.webp">
2019-01-25 19:11:15 +08:00
## Schematic
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/module/lego_plus_sch.webp">
2019-01-25 19:11:15 +08:00
## NOTE
2019-04-26 18:10:14 +08:00
If you want to change the firmware inside **MEGA328 chip** which has implemented the motor driver code by default, you can overwrite through **ISP** port. Below shows the location of ISP port.
2019-01-25 19:11:15 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/module/module_lego_plus_03.webp">
2019-03-07 18:17:21 +08:00
2021-01-04 13:23:37 +08:00
<el-divider content-position="right">Last updated: 2020-12-28</el-divider>
2020-02-11 18:00:45 +08:00
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/lego-module';
anchor_search(purchase_link);
scrollFunc();
2021-01-04 13:23:37 +08:00
</script>