![UUGear PiGear Nano Скачать руководство пользователя страница 30](http://html1.mh-extra.com/html/uugear/pigear-nano/pigear-nano_user-manual_1065765030.webp)
27
Resolution
LSB
Data Rate
Minimum Code
Maximum Code
12 bits
1 mV
240 SPS
0
2047
14 bits
250uV
60 SPS
0
8191
16 bits
62.5uV
15 SPS
0
32767
18 bits
15.625uV
3.75 SPS
0
131071
There is an 8-bit configuration register in MCP3424, and you can make configurations by changing
specific bits. More details can be found in MCP3424
‟s datasheet.
Here is an example for measuring voltage up to 11.6V:
You can calculate the measured voltage with this formula:
𝑉
𝑖𝑛
=
(220 + 47) × 𝐶𝑜𝑑𝑒
𝑜𝑢𝑡𝑝𝑢𝑡
× 2.048
47 × (𝐶𝑜𝑑𝑒
𝑚𝑎𝑥
+ 1) × 𝑃𝐺𝐴
=
𝐶𝑜𝑑𝑒
𝑜𝑢𝑡𝑝𝑢𝑡
× 11.634
(𝐶𝑜𝑑𝑒
𝑚𝑎𝑥
+ 1) × 𝑃𝐺𝐴
If PGA is set to x1, LSB is set to 1mV (12-bit resolution), and the ADC output code is 1712, then the
measured voltage is:
𝑉
𝑖𝑛
=
1712 × 11.634
(2047 + 1) × 1
≈ 9.726 𝑉
Содержание PiGear Nano
Страница 5: ...2...