add gps vmeter ameter mic

This commit is contained in:
vany5921
2020-09-18 10:34:13 +08:00
parent 79c150c173
commit 1974519f63
15 changed files with 1302 additions and 3 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

+3 -3
View File
@@ -1,8 +1,8 @@
# COM.GPS
<el-tag effect="plain">SKU:M003</el-tag>
<el-tag effect="plain">SKU:M031-G</el-tag>
<div class="product_pic"><img src=""><img src=""></div>
<div class="product_pic"><img src="assets/img/product_pics/module/com.x_gps/comx_gps.webp"></div>
## Description
@@ -152,7 +152,7 @@ For more information,please refer to [u-blox 8 / u-blox M8 Receiver Description
## Schematic
<img src="assets/img/product_pics/module/gps_sch.webp">
<img src="assets/img/product_pics/module/com.x_gps/com.x_gps_sch.webp">
<script>
+110
View File
@@ -0,0 +1,110 @@
# Module SERVO 2
<el-tag effect="plain">SKU:M</el-tag>
<div class="product_pic"><img src=""></div>
## Description
**SERVO 2** is an updated servo driver module in the M5Stack stackable module series. It uses a PCA9685 16 channel PWM controller to control 16 channel servos at the same time. The power input is 6-12V DC and two SY8368AQQC chips are used for voltage reduction.
The maximum total power output of dual channel is 35W (5V / 3.5A * 2), and the maximum output power of single channel is 25W (5V / 5A). When the battery base is used for power supply, the maximum output power is 5V / 2A. The module communicates with the host directly through I2C (the default address is 0x40) however the I2C address can be changed through the dial switch. This also means that multiple Servo 2 modules can be stacked and used simultaneously. There is a power switch on the board to control the power supply of Servo 2.
## Product Features
- 16x actuator drive channel
- 2X power indicator
- I2C address adjustable
- Support internal / external power supply
- DC input: 6-12V
- DC connector type: XT30 (female)
## Include
- 1x Servo2 Module
## Applications
- Humanoid robot
- Bionic multi joint robot
- 3-axis steering gear pan tilt
## Specification
<table>
<tr style="font-weight:bold">
<td>Resources</td>
<td>Parameter</td>
</tr>
<tr>
<td>net weight</td>
<td>g</td>
</tr>
<tr>
<td>Gross weight</td>
<td>g</td>
</tr>
<tr>
<td>Product Size</td>
<td>54.2*54.2*13.2mm</td>
</tr>
<tr>
<td>Package Size</td>
<td>mm</td>
</tr>
</table>
## EasyLoader
>EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification. Please install the corresponding driver according to the device type. M5Core host [Please click here to view the CP210X driver installation tutorial](en/arduino/arduino_development), M5StickC/V/T/ATOM series can be used without driver)
<div class="easyloader-box">
<div style="background-color:white;">
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/MODULE/EasyLoader_Servo_MODULE.exe">Windows</a>
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/MODULE/EasyLoader_Servo_MODULE.dmg">MacOS</a>
<!-- <a>Linux</a>
<a>MacOS</a> -->
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Module/SERVO_MODULE.mp4" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>Description:</p>
<p>Control servo rotation.</p>
</div>
</div>
</div>
## Related Link
- **[PCA9685](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/PCA9685.pdf)**
## Example
### 1. Arduino IDE
To get the complete code, please click [here]()
## MBUS PinMap
<img src="assets\img\product_pics\module\module_bus.webp"/>
## Schematic
<img src="assets/img/product_pics/module/servo2_sch.webp">
<script>
var purchase_link = '';
anchor_search(purchase_link);
scrollFunc();
</script>
+166
View File
@@ -0,0 +1,166 @@
# A Meter Unit{docsify-ignore-all}
<el-tag effect="plain">SKU:U086</el-tag>
<div class="product_pic"><img src="assets/img/product_pics/unit/a_meter/ameter.webp"></div>
## Description
**A Meter Unit** is a current meter that can monitor the current in real time. The 16-bit ADC (analog-to-digital) converter ADS1115 is used internally to communicate through I2C (0X48). In order to ensure the measurement accuracy, there is a built-in DC-DC isolated power supply, and the I2C interface is also electrically isolated through the low-power isolator CA-IS3020S. This prevents noise and surges on the data bus or other circuits from entering the local ground terminal to interfere or damage sensitive circuits. Each Unit is individually calibrated when leaving the factory, with an effective accuracy of ±1999 (3 digits after the decimal point) The unit has a maximum measurement current of ±4A, and an internal integrated 4A fuse to prevent excessive measurement current from burning out the circuit. Minimal Resolution reaches 0.15626mA.
>? EEPROM (0x51) has built-in calibration parameters when leaving the factory. Please do not write to the EEPROM, otherwise the calibration data will be overwritten and the measurement results will be inaccurate.
## Product Features
- ±4A range
- 16-bit ADC conversion
- LED power indicator
- Overcurrent protection
- Minimal Resolution(mA) reaches 0.15626
- No recalibration (EEPROM factory write)
- Accuracy up to ±1999
- Built-in CA-IS3020S isolation chip, anti-interference
- Isolated DC-DC
- Signal transmission rate: up to 1 MHz
- Up to 5000 VRMS isolation withstand voltage
- Development platform: Arduino, UIFlow (Blockly, Pyhton)
- 2x LEGO compatible holes
## Includes
- 1x A Meter Unit
- 1x Grove Cable
## Application
- galvanometer
## Specification
<table>
<tr style="font-weight:bold">
<td>Resources</td>
<td>Parameter</td>
</tr>
<tr>
<td>Withstand voltage</td>
<td>5000V</td>
</tr>
<tr>
<td>Measuring range</td>
<td>±4A</td>
</tr>
<tr>
<td>Protocol</td>
<td>I2C</td>
</tr>
<tr>
<td>Net Weight</td>
<td>9g</td>
</tr>
<tr>
<td>Gross Weight</td>
<td>24g</td>
</tr>
<tr>
<td>Product Size</td>
<td>65*24*8mm</td>
</tr>
<tr>
<td>Package Size</td>
<td>67*53*12mm</td>
</tr>
</table>
## Measurement Range Gain Setting
**Different range resolution is different, the error value of the result is different, please set the appropriate range according to the needs.Do not write EEPROM.If you really want to save the custom calibration values to EEPROMUsing the following statement, the factory data will be lost once written**
```Arduino
bool Ammeter::saveCalibration2EEPROM(ammeterGain_t gain, int16_t hope, int16_t actual)
//@Parameter: ammeterGarin_t gain //Set Gain
###########################################
# // | PAG | Max Input Voltage(V) | #
# // | PAG_4096 | 64 | #
# // | PAG_2048 | 32 | #
# // | PAG_512 | 16 | #
# // | PAG_256 | 8 | #
###########################################
//@Parameter: int16_t hope // Set target value
//@Parameter: int16_t actual //ADC raw value
```
<table>
<tr><td>ADC1115_Reference calibration</td><td>Calibration current(A)</td><td>Expected reading(int16)</td></tr>
<tr><td>PGA512(O.512)</td><td>2</td><td>6400</td></tr>
</table>
<table>
<tr><td>Current measurement range</td><td>Maximum input current(A)</td><td>Power Disspation(W)</td><td>Minimum resolution(mA)</td><td>Gain factor</td></tr>
<tr><td>4.096</td><td>40.96</td><td>83.88608</td><td>2.5</td><td>0.125</td></tr>
<tr><td>2.048</td><td>20.48</td><td>20.97152</td><td>1.25</td><td>0.0625</td></tr>
<tr><td>1.024</td><td>10.24</td><td>5.24288</td><td>0.625</td><td>0.03125</td></tr>
<tr><td>0.512</td><td>5.12</td><td>1.31072</td><td>0.3125</td><td>0.015625</td></tr>
<tr><td>0.256</td><td>2.56</td><td>0.32768</td><td>0.15626</td><td>0.007813</td></tr>
</table>
## EasyLoader
>EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification. Please install the corresponding driver according to the device type. M5Core host [Please click here to view the CP210X driver installation tutorial](en/arduino/arduino_development), M5StickC/V/T/ATOM series can be used without driver)
<div class="easyloader-box">
<div style="background-color:white;">
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/UNIT/For%20M5Core/EasyLoader_A_Meter_Unit.exe">Windows</a>
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/UNIT/EasyLoader_A_Meter_Unit_for_M5Core.dmg">MacOS</a>
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Unit/AMeter.mp4" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>Description:</p>
<p>Measuring current, gear 0.512, maximum input current 5A, analog pointer shows range 2A</p>
</div>
</div>
</div>
## Related Link
- **Datasheet**
- [CA-IS3020S](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/CA-IS3020S.pdf)
- [ADS1115](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/ADS1115.PDF)
## Schematic
<img src="assets/img/product_pics/unit/a_meter/a_meter_sch.webp" width="40%">
### PinMap
<table>
<tr><td>M5Core(GROVE A)</td><td>SDA(GPIO21)</td><td>SCL(GPIO22)</td><td>5V</td><td>GND</td></tr>
<tr><td>A Meter Unit</td><td>SDA</td><td>SCL</td><td>5V</td><td>GND</td></tr>
</table>
## Example
### 1. Arduino IDE
[Click here to download the Arduino example](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/A_Meter_Unit)
<script>
var purchase_link = '';
anchor_search(purchase_link);
scrollFunc();
</script>
+127
View File
@@ -0,0 +1,127 @@
# MIC Unit{docsify-ignore-all}
<el-tag effect="plain">SKU:U096</el-tag>
<div class="product_pic"><img src="assets/img/product_pics/unit/mic/mic.webp"></div>
## Description
**MIC Unit** is a sound sensor with a built-in omni-directional electret microphone. The signal is amplified and output by microphone preamplifier max4466. The amplifier can effectively suppress power supply noise and common mode noise, and the output signal has high sound recovery and can be used in noisy environments. The unit can not only output analog signals, but also output digital level signals. The built-in LM393 double voltage comparator can set the comparison voltage threshold by adjusting 10K adjustable resistance. The sensor is very suitable for acoustic electrical conversion, audio recording / sampling, FFT acoustic feedback, voice switch and other projects..
## Product Features
- Audio record/sample
- Built-in microphone preamplifier MAX4466
- Omnidirectional, 52dB sensitivity
- Digital output and analog signal
- Built-in dual independent precision voltage comparator and adjustable resistor, threshold adjustable
- Development platform: Arduino, UIFlow (Blocky, Python)
- HY2.0-4P interface
- 2X LEGO™ compatible holes
## Include
- 1x MIC Unit
- 1x Grove Cable
## Applications
- FFT Spectrum Display
- Audio Sample / Record
- Voice Switch
## Specification
<table>
<tr style="font-weight:bold">
<td>Resources</td>
<td>Parameter</td>
</tr>
<tr>
<td>Microphone sensitivity / SNR</td>
<td>52dB/40dB</td>
</tr>
<tr>
<td>Output Signal</td>
<td>Analog / digital</td>
</tr>
<tr>
<td>Working Voltage</td>
<td>3.3V</td>
</tr>
<tr>
<td>Net weight</td>
<td>5g</td>
</tr>
<tr>
<td>Gross weight</td>
<td>16g</td>
</tr>
<tr>
<td>Product Size</td>
<td>32*24*8mm</td>
</tr>
<tr>
<td>Package Size</td>
<td>67*53*12mm</td>
</tr>
</table>
## EasyLoader
>EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification. Please install the corresponding driver according to the device type. M5Core host [Please click here to view the CP210X driver installation tutorial](en/arduino/arduino_development), M5StickC/V/T/ATOM series can be used without driver)
<div class="easyloader-box">
<div style="background-color:white;">
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/UNIT/For%20M5Core/EasyLoader_MIC_Unit_With_M5Core.exe">Windows</a>
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/UNIT/EasyLoader_MIC_Unit_for_M5Core.dmg">MacOS</a>
<!-- <a>Linux</a>
<a>MacOS</a> -->
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Unit/MIC.mp4" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>Description:</p>
<p>Display the AD value collected by the microphone</p>
</div>
</div>
</div>
## Related Link
- **Datasheet**
- [MAX4466](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/MAX4466_V2.PDF)
- [LM393](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/LM393.PDF)
## Schematic
<img src="assets/img/product_pics/unit/mic/mic_unit_sch.webp" width="40%">
### Pin Map
<table>
<tr><td>M5Core(PORT B</td><td>GPIO26</td><td>GPIO36</td><td>5V</td><td>GND</td></tr>
<tr><td>Mic Unit</td><td>26</td><td>36</td><td>5V</td><td>GND</td></tr>
</table>
## Example
### 1. Arduino IDE
To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/MIC_Unit)
<script>
var purchase_link = '';
anchor_search(purchase_link);
scrollFunc();
</script>
+165
View File
@@ -0,0 +1,165 @@
# V Meter Unit{docsify-ignore-all}
<el-tag effect="plain">SKU:U087</el-tag>
<div class="product_pic"><img src="assets/img/product_pics/unit/v_meter/vmeter.webp"></div>
## Description
**V Meter Unit** is a voltage meter that can monitor the voltage in real time. The 16-bit ADC (analog-to-digital) converter ADS1115 is used internally to communicate through I2C (0X49). In order to ensure the measurement accuracy, there is a built-in DC-DC isolated power supply, and the I2C interface is also electrically isolated through the low-power isolator CA-IS3020S. This prevents noise and surges on the data bus or other circuits from entering the local ground terminal to interfere or damage sensitive circuits. Each Unit is individually calibrated when leaving the factory, with an effective accuracy of ±1999 (3 digits after the decimal point), and a maximum measurement voltage of ±36V. Minimal Resolution reaches 0.490798455 mV.
>? EEPROM (0x53) has built-in calibration parameters when leaving the factory. Please do not write to the EEPROM, otherwise the calibration data will be overwritten and the measurement results will be inaccurate.
## Product Features
- ±36V range
- LED power indicator
- 16-bit ADC conversion
- Overcurrent protection
- No recalibration (EEPROM factory write)
- Accuracy up to ±1999
- Minimal Resolution(mV) reaches 0.490798455
- Built-in CA-IS3020S isolation chip, anti-interference
- Isolated DC-DC
- Signal transmission rate: up to 1 MHz
- Up to 5000 VRMS isolation withstand voltage
- Development platform: Arduino, UIFlow (Blockly, Python)
- 2x LEGO™ compatible holes
## Includes
- 1x V Meter Unit
- 1x Grove Cable
## Application
- voltmeter
## Specification
<table>
<tr style="font-weight:bold">
<td>Resources</td>
<td>Parameter</td>
</tr>
<tr>
<td>Withstand voltage</td>
<td>5000V</td>
</tr>
<tr>
<td>Measuring range</td>
<td>±36V</td>
</tr>
<tr>
<td>Protocol</td>
<td>I2C</td>
</tr>
<tr>
<td>Net Weight</td>
<td>9g</td>
</tr>
<tr>
<td>Gross Weight</td>
<td>24g</td>
</tr>
<tr>
<td>Product Size</td>
<td>65*24*8mm</td>
</tr>
<tr>
<td>Package Size</td>
<td>67*53*12mm</td>
</tr>
</table>
## Measurement Range Gain Setting
**Different range resolution is different, the error value of the result is different, please set the appropriate range according to the needs.Do not write EEPROM.If you really want to save the custom calibration values to EEPROMUsing the following statement, the factory data will be lost once written**
```Arduino
bool Voltmeter::saveCalibration2EEPROM(voltmeterGain_t gain, int16_t hope, int16_t actual)
//@Parameter: voltmeterGarin_t gain //Set Gain
###########################################
# // | PAG | Max Input Voltage(V) | #
# // | PAG_4096 | 64 | #
# // | PAG_2048 | 32 | #
# // | PAG_512 | 16 | #
# // | PAG_256 | 8 | #
###########################################
//@Parameter: int16_t hope // Set target value
//@Parameter: int16_t actual //ADC raw value
```
<table>
<tr><td>ADC1115_Reference calibration</td><td>Calibration voltage(V)</td><td>Expected reading(int16)</td></tr>
<tr><td>PGA4096(4.096)</td><td>60</td><td>7641</td></tr>
<tr><td>PGA512(0.512)</td><td>5</td><td>5094</td></tr>
</table>
<table>
<tr><td>Voltage measurement range</td><td>Maximum input voltage(V)</td><td>Minimum resolution(mV)</td><td>Gain factor</td></tr>
<tr><td>4.096</td><td>128.6516364</td><td>7.852272727</td><td>0.125</td></tr>
<tr><td>2.048</td><td>64.32581818</td><td>3.926136364</td><td>0.0625</td></tr>
<tr><td>1.024</td><td>32.16290909</td><td>1.963068182</td><td>0.03125</td></tr>
<tr><td>0.512</td><td>16.08145455</td><td>0.981534091</td><td>0.015625</td></tr>
<tr><td>0.256</td><td>8.040727273</td><td>0.490798455</td><td>0.007813</td></tr>
</table>
## EasyLoader
>EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification. Please install the corresponding driver according to the device type. M5Core host [Please click here to view the CP210X driver installation tutorial](en/arduino/arduino_development), M5StickC/V/T/ATOM series can be used without driver)
<div class="easyloader-box">
<div style="background-color:white;">
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/UNIT/For%20M5Core/EasyLoader_V_Meter_Unit.exe">Windows</a>
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/UNIT/EasyLoader_V_Meter_Unit_for_M5Core.dmg">MacOS</a>
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Unit/VMeter.mp4" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>Description:</p>
<p>Measuring voltage, gear 0.512, maximum measuring voltage 16V, analog pointer indicating range 5V</p>
</div>
</div>
</div>
## Related Link
- **Datasheet**
- [CA-IS3020S](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/CA-IS3020S.pdf)
- [ADS1115](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/ADS1115.PDF)
## Schematic
<img src="assets/img/product_pics/unit/v_meter/v_meter_sch.webp" width="40%">
### PinMap
<table>
<tr><td>M5Core(GROVE A)</td><td>SDA(GPIO21)</td><td>SCL(GPIO22)</td><td>5V</td><td>GND</td></tr>
<tr><td>V Meter Unit</td><td>SDA</td><td>SCL</td><td>5V</td><td>GND</td></tr>
</table>
## Example
### 1. Arduino IDE
[Click here to download the Arduino example](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/V_Meter_Unit)
<script>
var purchase_link = '';
anchor_search(purchase_link);
scrollFunc();
</script>
+168
View File
@@ -0,0 +1,168 @@
# COM.GPS
<el-tag effect="plain">SKU:m031-G</el-tag>
<div class="product_pic"><img src="assets/img/product_pics/module/com.x_gps/comx_gps.webp"></div>
## 描述
**COM.GPS** 是M5Stack堆叠模块系列中的一款,卫星定位模块.基于NEO-M8N模组开发,配备有源天线.NEO-M8N具备 -167 dBm 高接收灵敏度,并且保持系统低功耗.NEO-M8N 集成了 72 通道的 [u-blox](https://www.u-blox.com) M8 GNSS 引擎,支持多个 GNSS 系统:北斗, Galileo, GLONASS, GPS / QZSS,允许同时接收 3 个 GNSS 系统的数据.模组内部集成了可编程FLASH,可对固件进行升级。该模块具有较小的静态漂移,低功耗和紧凑的尺寸非常适合于车辆,PDA等手持设备,车辆监控,移动电话,相机和其他移动定位系统中的应用。M5Core与COM.GPS模块之间使用UART通信协议,通过模块内的拨码开关可设置UART通讯引脚.
如果你想要更改串口波特率,请点击 ( [u-center-just-for-Windows](https://www.u-blox.com/en/product/u-center-windows) )查看.
**注意: 为了使 GPS 模块获得良好信号,请在使用时将模块放置在室外.**
**UART协议:波特率(默认为9600bps),数据位(8位),起始位(1位),停止位(1位),校验位(无)**
?>COM GSM的RXD/TXD可以通过设置拨码开关接入的M5Stack的UARTTX(0/13/17)RX(5/15/16)),**M5Stack Fire** 中的 GPIO 16 / 17 默认与PSRAM连接,在使用GSM时会产生冲突,建议使用剩余两组中的任意一组UART引脚。
?>右侧拨码开关无需设置。
## 产品特性
- 天线类型:外置有源天线
- 外部天线端口:SMA
- 可以同时从3个GNSS系统接收数据
- 水平位置精度:最小 2.5m
- GPS 模组 (NEO-M8N) 内置闪存, 通过[u-center-just-for-Windows](https://www.u-blox.com/en/product/u-center-windows)升级固件
- 支持协议: NMEA, UBX, RTCM
- 行业领先的 -167dBm 灵敏度
- 与 NEO‑7 和 NEO‑6 系列向后兼容
## 包含
- 1x M5Stack GPS 模块
- 1x 外置天线(长度: 1 m)
## 应用
- 基于 GPS 的物流跟踪管理
- 无人驾驶汽车定位
## 规格参数
<table>
<tr style="font-weight:bold">
<td>规格</td>
<td>参数</td>
</tr>
<tr>
<td>接收类型</td>
<td>GPS:L1C/A SBAS:L1C/A QZSS:L1C/A GLONASS:L1OF BediDou:B1 Galileo:E1B/C</td>
</tr>
<tr>
<td>定位时间</td>
<td>Cold start:26S Hot start:1.5S </td>
</tr>
<tr>
<td>灵敏度</td>
<td>-167 dBm</td>
</tr>
<tr>
<td>刷新率</td>
<td>Separate GNSS 10HzParallel GNSS 5Hz</td>
</tr>
<tr>
<td>速率精度</td>
<td>0.05m/s</td>
</tr>
<tr>
<td>最大高度</td>
<td>50000m</td>
</tr>
<tr>
<td>最大速度</td>
<td>500m/s</td>
</tr>
<tr>
<td>工作电压</td>
<td>2.7 ~ 3.6V</td>
</tr>
<tr>
<td>工作温度</td>
<td>-40 ~ 80°C</td>
</tr>
<tr>
<td>净重</td>
<td>28g</td>
</tr>
<tr>
<td>毛重</td>
<td>99g</td>
</tr>
<tr>
<td>产品尺寸</td>
<td>54*54*13mm</td>
</tr>
<tr>
<td>包装尺寸</td>
<td>125*68*23mm</td>
</tr>
</table>
## 相关链接
- **[GPS Info](https://www.u-blox.com/zh/product/neo-m8-series)** (GPS)
- **[TinyGPS++库官网](http://arduiniana.org/libraries/tinygpsplus/)**
- **datasheet**
- **[NEO-M8N](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/NEO-M8-FW3_DataSheet_en.pdf)**
- **[u-blox Protocol Manual](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/u-blox8-M8_ReceiverDescrProtSpec_en.pdf)**
## EasyLoader
>EasyLoader是一个简洁快速的程序烧录器,其内置了一个产品相关的案例程序,通过简单步骤将其烧录至主控,即可进行一系列的功能验证.**(程序烧录前,请根据设备类型安装相应驱动程序. M5Core型主机[请点击此处查看CP210X驱动安装教程](zh_CN/arduino/arduino_development?id=安装串口驱动)M5StickC/V/T/ATOM系列可免驱动使用)**
<div class="easyloader-box">
<div style="background-color:white;">
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/MODULE/EasyLoader_COM_GPS.exe">Windows</a>
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/MODULE/EasyLoader_COMX_GPS_for_M5Core.dmg">MacOS</a>
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Module/COM.GPS.mp4" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>案例描述:</p>
<p>拨码开关RX16/TX17,屏幕显示地理位置与时间</p>
</div>
</div>
</div>
## 案例程序
### Arduino IDE
[点击这里下载Arduino示例](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMX_GPS)
**注意: 为了使 GPS 模块获得良好信号,请在使用时将模块放置在室外.**
**协议规范:**
请参考 [u-blox 8 / u-blox M8 Receiver Description - Manual](https://www.u-blox.com/sites/default/files/products/documents/u-blox8-M8_ReceiverDescrProtSpec_%28UBX-13003221%29_Public.pdf)了解更多信息, 下表是NMEA协议中xxRMC消息的指令.
## 原理图
<img src="assets/img/product_pics/module/com.x_gps/com.x_gps_sch.webp">
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/gps-module';
anchor_search(purchase_link);
scrollFunc();
</script>
+105
View File
@@ -0,0 +1,105 @@
# Module SERVO 2
<el-tag effect="plain">SKU:M014</el-tag>
<div class="product_pic"><img src="assets\img\product_pics\module\servo\servo_01.webp"></div>
## 描述
**SERVO 2** 是M5Stack堆叠模块系列中的一款舵机驱动模块,内部采用PCA9685 16通道PWM控制器,可以同时控制16路舵机。采用直流电源输入(6-12V)设计,通过两片SY8368AQQC进行降压,双通道输出最大总功率35W (5V/3.5A*2),单通道输出最大功率25W(5V/5A),当使用电池底座供电时最高支持5V/2A输出。模块与主机直接通过I2C进行通讯(默认0x40),通过拨码开关可改变I2C地址,这也意味着多个SERVO2可以堆叠使用,板上有一个电源切换开关,可控制SERVO2电源通断。
## 产品特性
- 16x 舵机驱动通道
- 2x 电源指示灯
- I2C地址可调
- 支持内部/外部供电
- DC 输入: 6-12V
- DC 连接器类型: XT30 (母头)
## 包含
- 1x Servo2 模块
## 应用
- 人形机器人
- 仿生多关节机器人
- 3轴舵机云台
## 规格参数
<table>
<tr style="font-weight:bold">
<td>规格</td>
<td>参数</td>
</tr>
<tr>
<td>净重</td>
<td>g</td>
</tr>
<tr>
<td>毛重</td>
<td>g</td>
</tr>
<tr>
<td>产品尺寸</td>
<td>54.2*54.2*13.2mm</td>
</tr>
<tr>
<td>包装尺寸</td>
<td>mm</td>
</tr>
</table>
## 相关链接
- **[PCA9685](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/PCA9685.pdf)**
## EasyLoader
>EasyLoader是一个简洁快速的程序烧录器,其内置了一个产品相关的案例程序,通过简单步骤将其烧录至主控,即可进行一系列的功能验证.**(程序烧录前,请根据设备类型安装相应驱动程序. M5Core型主机[请点击此处查看CP210X驱动安装教程](zh_CN/arduino/arduino_development?id=安装串口驱动)M5StickC/V/T/ATOM系列可免驱动使用)**
<div class="easyloader-box">
<div style="background-color:white;">
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
<div class="easyloader-btn">
<a href="">Windows</a>
<a href="">MacOS</a>
<!-- <a>Linux</a>
<a>MacOS</a> -->
</div>
</div>
<div>
<video id="example_video" controls>
<source src="" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>案例描述:</p>
<p></p>
</div>
</div>
</div>
## 案例程序
### 1. Arduino IDE
[请点击此处下载Arduino代码]()
## 原理图
<img src="assets/img/product_pics/module/servo2/servo2_sch.webp">
<script>
var purchase_link = '';
anchor_search(purchase_link);
scrollFunc();
</script>
+167
View File
@@ -0,0 +1,167 @@
# A Meter Unit{docsify-ignore-all}
<el-tag effect="plain">SKU:U086</el-tag>
<div class="product_pic"><img src="assets/img/product_pics/unit/a_meter/ameter.webp"></div>
## 描述
**A Meter Unit** 是一款电流计,可以对电流进行实时监测。内部采用16位ADC数模转换器ADS1115,通过I2C(0X48)进行通讯。为了保证测量精度,内置DC-DC隔离电源,同时I2C接口通过低功耗隔离器CA-IS3020S进行电气隔离,防止数据总线或其他电路上的噪声和浪涌进入本地接地端而干扰或损坏敏感电路。每个Unit在出厂时都单独进行校准,最小分辨率达到0.15626mA,有效值达到±1999(小数点后三位),最大测量电流为±4A,内部集成4A熔断器,防止测量电流过大烧毁电路。
>? EEPROM(0x51)在出厂时内置了校准参数,请勿对EEPROM进行写操作,否则校准数据将被覆盖导致测量结果不准确。
## 产品特性
- ±4A量程
- 16位ADC转换
- 最小分辨率达到0.15626mA
- LED电源指示灯
- 过流保护
- 免重新校准(EEPROM出厂写入)
- 精度高达±1999
- 内置 CA-IS3020S隔离芯片,抗干扰
- 隔离DC-DC
- 信号传输速率: 高达 1 MHz
- 高达 5000 VRMS 隔离耐压
- 开发平台: Arduino, UIFlow(Blockly,Pyhton)
- 2x LEGO 兼容孔
## 包含
- 1x A Meter Unit
- 1x Grove 线
## 应用
- 电流计
## 规格参数
<table>
<tr style="font-weight:bold">
<td>规格</td>
<td>参数</td>
</tr>
<tr>
<td>耐压值</td>
<td>5000V</td>
</tr>
<tr>
<td>测量范围</td>
<td>±4A</td>
</tr>
<tr>
<td>通讯协议</td>
<td>I2C</td>
</tr>
<tr>
<td>净重</td>
<td>9g</td>
</tr>
<tr>
<td>毛重</td>
<td>24g</td>
</tr>
<tr>
<td>产品尺寸</td>
<td>65*24*8mm</td>
</tr>
<tr>
<td>包装尺寸</td>
<td>67*53*12mm</td>
</tr>
</table>
## 测量范围增益设置
**不同的量程分辨率不同,获得的结果误差值不同,请根据需要设置合适的量程。请勿对EEPROM进行写操作,如果确实希望将自定义校准值保存至EEPROM,使用下列语句,一旦写入后出厂数据将丢失**
```Arduino
bool Voltmeter::saveCalibration2EEPROM(voltmeterGain_t gain, int16_t hope, int16_t actual)
//@Parameter: voltmeterGarin_t gain 设置增益
###########################################
# // | PAG | Max Input Voltage(V) | #
# // | PAG_4096 | 64 | #
# // | PAG_2048 | 32 | #
# // | PAG_512 | 16 | #
# // | PAG_256 | 8 | #
###########################################
//@Parameter: int16_t hope 设置目标值
//@Parameter: int16_t actual ADC原始读数
```
<table>
<tr><td>ADC1115参考校准档位</td><td>校准电流(A)</td><td>期望读数(int16)</td></tr>
<tr><td>PGA512(O.512)</td><td>2</td><td>6400</td></tr>
</table>
<table>
<tr><td>电流测量档位</td><td>最大输入电流(A)</td><td>功耗(W)</td><td>最小分辨率(mA)</td><td>增益系数</td></tr>
<tr><td>4.096</td><td>40.96</td><td>83.88608</td><td>2.5</td><td>0.125</td></tr>
<tr><td>2.048</td><td>20.48</td><td>20.97152</td><td>1.25</td><td>0.0625</td></tr>
<tr><td>1.024</td><td>10.24</td><td>5.24288</td><td>0.625</td><td>0.03125</td></tr>
<tr><td>0.512</td><td>5.12</td><td>1.31072</td><td>0.3125</td><td>0.015625</td></tr>
<tr><td>0.256</td><td>2.56</td><td>0.32768</td><td>0.15626</td><td>0.007813</td></tr>
</table>
## EasyLoader
>EasyLoader是一个简洁快速的程序烧录器,其内置了一个产品相关的案例程序,通过简单步骤将其烧录至主控,即可进行一系列的功能验证.**(程序烧录前,请根据设备类型安装相应驱动程序. M5Core型主机[请点击此处查看CP210X驱动安装教程](zh_CN/arduino/arduino_development?id=安装串口驱动)M5StickC/V/T/ATOM系列可免驱动使用)**
<div class="easyloader-box">
<div style="background-color:white;">
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/UNIT/For%20M5Core/EasyLoader_A_Meter_Unit.exe">Windows</a>
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/UNIT/EasyLoader_A_Meter_Unit_for_M5Core.dmg">MacOS</a>
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Unit/AMeter.mp4" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>案例描述:</p>
<p>测量电流,档位0.512,最大输入电流5A,模拟指针表示范围2A</p>
</div>
</div>
</div>
## 相关链接
- **Datasheet**
- [CA-IS3020S](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/CA-IS3020S.pdf)
- [ADS1115](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/ADS1115.PDF)
## 原理图
<img src="assets/img/product_pics/unit/a_meter/a_meter_sch.webp" width="40%">
### 管脚映射
<table>
<tr><td>M5Core(GROVE A)</td><td>SDA(GPIO21)</td><td>SCL(GPIO22)</td><td>5V</td><td>GND</td></tr>
<tr><td>A Meter Unit</td><td>SDA</td><td>SCL</td><td>5V</td><td>GND</td></tr>
</table>
## 案例程序
### 1. Arduino IDE
[点击这里获取Arduino示例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/A_Meter_Unit)
<script>
var purchase_link = '';
anchor_search(purchase_link);
scrollFunc();
</script>
+124
View File
@@ -0,0 +1,124 @@
# MIC Unit{docsify-ignore-all}
<el-tag effect="plain">SKU:U096</el-tag>
<div class="product_pic"><img src="assets/img/product_pics/unit/mic/mic.webp"></div>
## 描述
**MIC Unit** 是一款声音传感器,内置全指向型驻极体麦克风,通过麦克风前置放大器MAX4466对信号进行放大输出,该放大器能有效抑制电源噪声与共模噪声,输出信号声音还原度高,可在嘈杂环境中使用。该Unit不仅可以输出模拟信号,也可以输出数字电平信号,内置LM393双电压比较器,可通过调节10K可调电阻,设定比较电压阈值。该传感器非常适用于声电转换,声控开关等项目。
## 产品特性
- 声音采样/音频录制
- 内置麦克风前置放大器MAX4466
- 全指向,52dB灵敏度
- 模拟与数字信号输出
- 内置电压比较器与可调电阻,阈值可调
- 开发平台: Arduino, UIFlow(Blockly,Python)
- HY2.0-4P 接口
- 2x LEGO 兼容孔
## 包含
- 1x MIC Unit
- 1x Grove 连接线
## 应用
- 声电转换
- 声控开关
## 规格参数
<table>
<tr style="font-weight:bold">
<td>规格</td>
<td>参数</td>
</tr>
<tr>
<td>麦克风灵敏度/信噪比</td>
<td>52dB/40dB</td>
</tr>
<tr>
<td>输出信号</td>
<td>模拟/数字</td>
</tr>
<tr>
<td>工作电压</td>
<td>3.3V</td>
</tr>
<tr>
<td>净重</td>
<td>5g</td>
</tr>
<tr>
<td>毛重</td>
<td>16g</td>
</tr>
<tr>
<td>产品尺寸</td>
<td>32*24*8mm</td>
</tr>
<tr>
<td>包装尺寸</td>
<td>67*53*12mm</td>
</tr>
</table>
## EasyLoader
>EasyLoader是一个简洁快速的程序烧录器,其内置了一个产品相关的案例程序,通过简单步骤将其烧录至主控,即可进行一系列的功能验证.**(程序烧录前,请根据设备类型安装相应驱动程序. M5Core型主机[请点击此处查看CP210X驱动安装教程](zh_CN/arduino/arduino_development?id=安装串口驱动)M5StickC/V/T/ATOM系列可免驱动使用)**
<div class="easyloader-box">
<div style="background-color:white;">
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/UNIT/For%20M5Core/EasyLoader_MIC_Unit_With_M5Core.exe">Windows</a>
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/UNIT/EasyLoader_MIC_Unit_for_M5Core.dmg">MacOS</a>
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Unit/MIC.mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>案例描述:</p>
<p>显示麦克风采集AD值</p>
</div>
</div>
</div>
## 相关链接
- **Datasheet**
- [MAX4466](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/MAX4466_V2.PDF)
- [LM393](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/LM393.PDF)
## 原理图
<img src="assets/img/product_pics/unit/mic/mic_unit_sch.webp" width="40%">
### 管脚映射
<table>
<tr><td>M5Core(PORT B</td><td>GPIO26</td><td>GPIO36</td><td>5V</td><td>GND</td></tr>
<tr><td>Mic Unit</td><td>26</td><td>36</td><td>5V</td><td>GND</td></tr>
</table>
## 案例程序
### 1. Arduino IDE
[点击这里获取Arduino示例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/MIC_Unit)
<script>
var purchase_link = '';
anchor_search(purchase_link);
scrollFunc();
</script>
+167
View File
@@ -0,0 +1,167 @@
# V Meter Unit{docsify-ignore-all}
<el-tag effect="plain">SKU:U087</el-tag>
<div class="product_pic"><img src="assets/img/product_pics/unit/iso485/iso485.webp"></div>
## 描述
**V Meter Unit** 是一款电压传感器,可以对电压进行实时监测。内部采用16位ADC数模转换器ADS1115,通过I2C(0X49)进行通讯。为了保证测量精度,内置DC-DC隔离电源,同时I2C接口通过低功耗隔离器CA-IS3020S进行电气隔离,防止数据总线或其他电路上的噪声和浪涌进入本地接地端而干扰或损坏敏感电路。每个Unit在出厂时都单独进行校准,有效值达到±1999(小数点后3位),最大测量电压为±36V,最小分辨率达到0.490798455mV。
>? EEPROM(0x53)在出厂时内置了校准参数,请勿对EEPROM进行写操作,否则校准数据将被覆盖导致测量结果不准确。
## 产品特性
- ±36V量程
- 16位ADC转换
- 最小分辨率达到0.490798455mV
- LED电源指示灯
- 过流保护
- 免重新校准(EEPROM出厂写入)
- 精度高达±1999
- 内置 CA-IS3020S隔离芯片,抗干扰
- 隔离DC-DC
- 信号传输速率: 高达 1 MHz
- 高达 5000 VRMS 隔离耐压
- 开发平台: Arduino, UIFlow(Blockly,Python)
- 2x LEGO 兼容孔
## 包含
- 1x V Meter Unit
- 1x Grove 线
## 应用
- 电压表
## 规格参数
<table>
<tr style="font-weight:bold">
<td>规格</td>
<td>参数</td>
</tr>
<tr>
<td>耐压值</td>
<td>5000V</td>
</tr>
<tr>
<td>测量范围</td>
<td>±36V</td>
</tr>
<tr>
<td>通讯协议</td>
<td>I2C</td>
</tr>
<tr>
<td>净重</td>
<td>9g</td>
</tr>
<tr>
<td>毛重</td>
<td>24g</td>
</tr>
<tr>
<td>产品尺寸</td>
<td>65*24*8mm</td>
</tr>
<tr>
<td>包装尺寸</td>
<td>67*53*12mm</td>
</tr>
</table>
## 测量范围增益设置
**不同的量程分辨率不同,获得的结果误差值不同,请根据需要设置合适的量程。请勿对EEPROM进行写操作,如果确实希望将自定义校准值保存至EEPROM,使用下列语句,一旦写入后出厂数据将丢失**
```Arduino
bool Voltmeter::saveCalibration2EEPROM(voltmeterGain_t gain, int16_t hope, int16_t actual)
//@Parameter: voltmeterGarin_t gain 设置增益
###########################################
# // | PAG | Max Input Voltage(V) | #
# // | PAG_4096 | 64 | #
# // | PAG_2048 | 32 | #
# // | PAG_512 | 16 | #
# // | PAG_256 | 8 | #
###########################################
//@Parameter: int16_t hope 设置目标值
//@Parameter: int16_t actual ADC原始读数
```
<table>
<tr><td>ADC1115参考校准档位</td><td>校准电压(V)</td><td>期望读数(int16)</td></tr>
<tr><td>PGA4096(4.096)</td><td>60</td><td>7641</td></tr>
<tr><td>PGA512(0.512)</td><td>5</td><td>5094</td></tr>
</table>
<table>
<tr><td>电压测量档位</td><td>最大输入电压(V)</td><td>最小分辨率(mV)</td><td>增益系数</td></tr>
<tr><td>4.096</td><td>128.6516364</td><td>7.852272727</td><td>0.125</td></tr>
<tr><td>2.048</td><td>64.32581818</td><td>3.926136364</td><td>0.0625</td></tr>
<tr><td>1.024</td><td>32.16290909</td><td>1.963068182</td><td>0.03125</td></tr>
<tr><td>0.512</td><td>16.08145455</td><td>0.981534091</td><td>0.015625</td></tr>
<tr><td>0.256</td><td>8.040727273</td><td>0.490798455</td><td>0.007813</td></tr>
</table>
## EasyLoader
>EasyLoader是一个简洁快速的程序烧录器,其内置了一个产品相关的案例程序,通过简单步骤将其烧录至主控,即可进行一系列的功能验证.**(程序烧录前,请根据设备类型安装相应驱动程序. M5Core型主机[请点击此处查看CP210X驱动安装教程](zh_CN/arduino/arduino_development?id=安装串口驱动)M5StickC/V/T/ATOM系列可免驱动使用)**
<div class="easyloader-box">
<div style="background-color:white;">
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/UNIT/For%20M5Core/EasyLoader_V_Meter_Unit.exe">Windows</a>
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/UNIT/EasyLoader_V_Meter_Unit_for_M5Core.dmg">MacOS</a>
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Unit/VMeter.mp4" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>案例描述:</p>
<p>测量电压,档位0.512,最大测量电压16V,模拟指针表示范围5V</p>
</div>
</div>
</div>
## 相关链接
- **Datasheet**
- [CA-IS3020S](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/CA-IS3020S.pdf)
- [ADS1115](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/ADS1115.PDF)
## 原理图
<img src="assets/img/product_pics/unit/a_meter/a_meter_sch.webp" width="40%">
### 管脚映射
<table>
<tr><td>M5Core(GROVE A)</td><td>SDA(GPIO21)</td><td>SCL(GPIO22)</td><td>5V</td><td>GND</td></tr>
<tr><td>A Meter Unit</td><td>SDA</td><td>SCL</td><td>5V</td><td>GND</td></tr>
</table>
## 案例程序
### 1. Arduino IDE
[点击这里获取Arduino示例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/V_Meter_Unit)
<script>
var purchase_link = '';
anchor_search(purchase_link);
scrollFunc();
</script>