Files

116 lines
3.3 KiB
Markdown
Raw Permalink Normal View History

2020-03-19 21:06:45 +08:00
# Module USB
2019-01-23 10:54:28 +08:00
<el-tag effect="plain">SKU:M020</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_usb_01.webp"><img src="assets/img/product_pics/module/module_usb_02.webp"></div>
2019-01-23 10:54:28 +08:00
## Description
2019-04-26 18:10:14 +08:00
**USB** is a USB driver module, integrated **MAX3421E** which adds USB host or peripheral capability to any system with an SPI
interface. Ever up for adding the standard USB features on your project? this M5 moudle is the perfect solution.
2019-01-23 10:54:28 +08:00
2019-04-26 18:10:14 +08:00
## Product Features
2020-03-19 21:06:45 +08:00
- Series Protocol: SPI
2019-04-26 18:10:14 +08:00
- 1x UAB stadard A port
- 10x extended GPIO pins
- extended 3v3, 5v & GND
2020-06-10 14:13:34 +08:00
2020-06-18 09:30:41 +08:00
## Include
2019-01-23 10:54:28 +08:00
2019-04-26 18:10:14 +08:00
- 1x M5Stack USB Module
2019-01-23 10:54:28 +08:00
2020-02-12 16:55:19 +08:00
## Applications
2019-01-23 10:54:28 +08:00
2019-01-23 11:16:54 +08:00
- USB keylogger
- Read and write U disk using M5Core
2019-01-23 10:54:28 +08:00
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>13g</td>
</tr>
<tr>
<td>Gross weight</td>
<td>25g</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>
2019-01-23 10:54:28 +08:00
## Related Link
2020-04-24 21:10:31 +08:00
- **Datasheet**
- [MAX3421E](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/MAX3421E_en.pdf)
2019-01-23 10:54:28 +08:00
2019-06-11 19:20:48 +08:00
## EasyLoader
2019-01-23 10:54:28 +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_USB.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.
?>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-06 20:01:45 +08:00
2019-06-11 19:20:48 +08:00
## Example
2020-04-24 21:10:31 +08:00
### 1. Arduino IDE
2020-04-30 14:13:25 +08:00
To get complete code, please click [here](https://github.com/m5stack/M5Stack/tree/master/examples/Modules/USB_MAX3421E)
2019-01-23 10:54:28 +08:00
2019-04-26 18:10:14 +08:00
**NOTE:**
2020-04-30 14:13:25 +08:00
Before compile this example code, you need to download the corresponding USB library from [here](https://github.com/m5stack/M5Stack/tree/master/examples/Modules/USB_MAX3421E).
2019-04-26 18:10:14 +08:00
Unzip and copy this library folder to Arduino library path.( This is my path`C:\Users\<user_name>\Documents\Arduino\libraries`)
2019-04-04 17:40:21 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/module/module_usb_03.webp">
2019-04-04 17:40:21 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/module/module_usb_04.webp">
2019-04-04 17:40:21 +08:00
2019-04-26 18:10:14 +08:00
Download the example `usb_mouse.ino`
2019-01-23 11:16:54 +08:00
2019-04-26 18:10:14 +08:00
Plug the USB mouse into USB A port.
2019-01-23 11:16:54 +08:00
2019-04-26 18:10:14 +08:00
* Hold down the left button to draw white lines.
* Hold down the right button to draw green line.
2019-01-23 11:16:54 +08:00
* Press the middle wheel button to clear the screen.
2019-01-23 10:54:28 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/module/module_example/USB/example_module_usb_01.webp">
2019-01-23 10:54:28 +08:00
## Schematic
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/module/usb_sch.webp">
2019-03-13 16:31:54 +08:00
2020-08-13 10:23:45 +08:00
## MBUS PinMap
<img src="assets\img\product_pics\module\module_bus.webp"/>
2020-02-11 18:00:45 +08:00
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/usb-module';
anchor_search(purchase_link);
scrollFunc();
</script>