Files

164 lines
6.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# M5CameraX - ノーマルレンズ (4MB PSRAM搭載) {docsify-ignore-all}
<img src="assets/img/product_pics/unit/unit_m5camera_x_01.png" width="30%" height="30%">
***
:memo:**[概要](#概要)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:bulb:**[クイックスタート](zh_CN/quick_start/m5camera/m5camera_quick_start)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[サンプルコード](#サンプルコード)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[購入リンク](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.18.550e425eB8OqGB&id=587046526441)**
## 概要
**<mark>M5CameraX</mark>**はESP32とOV2640カメラモジュールをベースに**<mark>4MB PSRAM</mark>**を搭載したカメラユニットです。ESP-IDF または Arduino IDE を使用してプログラムを行うことが可能です。
<img src="assets/img/product_pics/unit/unit_m5camera_f_04.png">
このユニットは他にも、6 DoF IMU (MPU6050)、温度湿度気圧の環境センサ (BME280)、**デジタルシリコンマイク (SPM1423)**用のパターンを備えており、如果您需要这些器件,可以自行焊接到对应位置上或者直接购买选配指定硬件版本的 M5CameraX。M5CameraX Unit 还预留了电池インターフェース。外壳内可以容纳的电池大小对应电池容量为 **80mAh**
**注意:选配不同硬件时,M5CameraX 的命名不一样,遵循以下规则**
*M5CameraX_#_#... 即 M5CameraX 后跟选配的硬件。*
* 如果选配 MPU6050,则命名为 M5CameraX_6050
* 如果还选配了麦克风 SPM1423,则命名为 M5CameraX_6050_MIC
* 如果还选配了温湿度气压传感器 BME280,则命名为 M5CameraX_6050_BME280
* 如果还选配电池,则命名为 M5CameraX_6050_MIC_BME280_BAT
<img src="assets/img/product_pics/unit/unit_m5camera_f_02.png" width="100%" height="100%"><img src="assets/img/product_pics/unit/unit_m5camera_f_03.png" width="100%" height="100%">
因为模块可以生成 WIFI 热点 AP,所以可以用手机、PC 或其他设备通过 WIFI 无线获取摄像头图片,也可以通过模块的 GROVE インターフェース有线获取摄像头图片。
## 特徴
- ESP32 模组特性
+ 集成双核 Tensilica LX6
+ 高达 240MHz 的时钟频率
+ **4MB PSRAM**
+ **4MB Flash memory**
+ 集成802.11 BGN WiFi和双模蓝牙(经典蓝牙和BLE)
+ 硬件加密(AES, SHA2, ECC, RSA-4096)
- CP2104 USB转串口
- OV2640摄像头驱动
- 输出格式(8-bit):
+ YUV(422/420)/YCbCr422
+ RGB565/555
+ 8位的压缩数据
+ 8至10位的原始数据
- 图片在不同格式时最大传输速率
+ UXGA/SXGA: 15fps
+ SVGA: 30fps
+ CIF: 60fps
- 扫描模式: Progressive
- 摄像头特性
+ 可视范围: **160 度**
+ 最大像素: 200W
- 传感器最大分辨率:1600 * 1200
- 尺寸:23.5 × 48 × 23.5mm
## パッケージ内容
- 1x M5CameraX
- 1x LEGO 适配件
- 1x Wall/1515
- 1x Type-C USB 线
<img src="assets/img/product_pics/unit/unit_m5camera_f_05.png" width="50%" height="50%">
## ピンマップ
**OV2640**
| *インターフェース* | *OV2640* | *M5CameraX* |
| :------------------- | :--------:| :------: |
| SCCB Clock | SIOC |IO23 |
| SCCB Data | SIOD |**IO22** |
| System Clock | XCLK |IO27 |
| Vertical Sync | VSYNC |**IO25** |
| Horizontal Reference | HREF |IO26 |
| Pixel Clock | PCLK |IO21 |
| Pixel Data Bit 0 | D2 |IO32 |
| Pixel Data Bit 1 | D3 |IO35 |
| Pixel Data Bit 2 | D4 |IO34 |
| Pixel Data Bit 3 | D5 |IO5 |
| Pixel Data Bit 4 | D6 |IO39 |
| Pixel Data Bit 5 | D7 |IO18 |
| Pixel Data Bit 6 | D8 |IO36 |
| Pixel Data Bit 7 | D9 |IO19 |
| Camera Reset | RESET |IO15 |
| Camera Power Down | PWDN | *see Note 1* |
| Power Supply 3.3V | 3V3 | 3V3 |
| Ground | GND | GND |
**GROVE**
| *Grove* | *M5CameraX* |
| :-----------: | :------: |
| SCL | **IO13** |
| SDA | **IO4** |
| 5V | 5V |
| GND | GND |
**LED**
| *LED* | *M5CameraX* |
| :-----------:| :------: |
| LED_Pin | IO14 |
**<mark>以下为预留的IC</mark>**
**BME280**
*I2Cアドレス 0x76*
| *BME280* | *M5CameraX* |
| :-----------: | :------: |
| SCL | IO23 |
| SDA | IO22 |
**MPU6050**
*I2Cアドレス 0x68*
| *MPU6050* | *M5CameraX* |
| :-----------: | :------: |
| SCL | IO23 |
| SDA | IO22 |
**MIC(SPM1423)**
| *SPM1423* | *M5CameraX* |
| :-----------: | :------: |
| CLK |IO4|
| DATA |IO2|
**<mark>注意:</mark>**
1. **Camera Power Down 引脚** 没必要连接到 ESP32 的引脚。
2. 我们有几个版本的摄像头板子,下图是它们主要区别的比较。
如果想**查看**详细的资源对比,请点击[这里](https://shimo.im/sheets/gP96C8YTdyjGgKQC/e2041)。
如果想**下载**详细的资源对比,请点击[这里](https://github.com/m5stack/M5-Schematic/blob/master/Units/m5camera/M5%20Camera%20Detailed%20Comparison.xlsx)。
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_table/camera_comparison/camera_comparison_zh_CN.png">
## 関連動画
- **[公式ビデオ](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
- **[フォーラム](http://forum.m5stack.com/)**
- **データシート**
- [ESP32](https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_cn.pdf)
- [OV2640](https://www.uctronics.com/download/cam_module/OV2640DS.pdf)
## サンプルコード
### ファームウェア
- **[M5CameraX ファームウェア](https://github.com/m5stack/m5stack-cam-psram/tree/master)**
<img src="assets/img/product_pics/unit/unit_m5camera_f_06.png" width="50%" height="50%">