3707 views|6 replies

137

Posts

0

Resources
The OP
 

[Review of Arteli Development Board AT32F421] + Have a good understanding of the power supply voltage [Copy link]

 

How to measure the power supply voltage without a multimeter? Of course there is a way...

Today we will take a look at the AD function of AT32F421.

AT32F421 has 15 12-bit ADC acquisition ports, which is more than enough for general projects.

It can be used to measure battery voltage and collect ambient temperature. . . .

Let's take a look at the AD input location on the development board

There are 6 channels in the blue box. We choose one of them (PA1) for testing.

Part of the ADC initialization program:

A single conversion is sufficient to measure the battery voltage.

Let's do a simple test, loop calling AD sampling in the main function, and print the value through the serial port.

Let's take a look at the board's power supply voltage of 3.3v, which is magnified 1000 times here, in MV.

Then let's measure the voltage of a 18650 lithium battery:

The results of the multimeter measurement are as follows:

The voltage is 2229MV. Let's look at the test results of AT32F421:

It is basically consistent with the measurement results.

For specific applications, please refer to the attachment.

In general, the 12-bit ADC of AT32F421 is quite accurate. You can use it with confidence in your project.

IMG_20210519_001916.jpg (2.11 MB, downloads: 0)

IMG_20210519_001916.jpg

IMG_20210519_001916.jpg (2.12 MB, downloads: 0)

IMG_20210519_001916.jpg

07_ADC.7z

3.04 MB, downloads: 37

This post is from Domestic Chip Exchange

Latest reply

Thanks for the tip, I saw it.   Details Published on 2021-5-25 19:15

赞赏

1

查看全部赞赏

 
 

9702

Posts

24

Resources
2
 

Good, there is also an internal reference voltage

This post is from Domestic Chip Exchange
 
 
 

1942

Posts

2

Resources
3
 

Haha, measuring low voltage is not bad!

This post is from Domestic Chip Exchange
 
 
 

7422

Posts

2

Resources
4
 

Thanks for sharing! Looking forward to the follow-up!

This post is from Domestic Chip Exchange
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

1022

Posts

0

Resources
5
 

Question: Your measurement result is 3298mV

The voltage measured by the meter is 2.229V?!

The difference between the two is not negligible, how can you think they are similar?

Also, is your PA1 directly connected to the battery? The voltage of this 18650 battery is between 3.2-4.2V. Have you done hardware voltage division?

This conversion process was not seen in the calculation.

If it is really 2.229, then is the voltage read by F421AD the voltage of the separate power supply?

This post is from Domestic Chip Exchange

Comments

You must not have read the content carefully. Look again... 3298mV is the onboard voltage: 3.3V. The one below is the battery voltage: 2.229V. The measurement result is 2228MV ~ 2229MV...  Details Published on 2021-5-24 14:20
Personal signatureچوآن شـين
 
 
 

137

Posts

0

Resources
6
 
Gen_X posted on 2021-5-24 13:20 Question: Your measurement result is 3298mV, and the meter measured 2.229V? ! The difference between the two cannot be ignored, how can you think they are almost the same...

You definitely didn't read the content carefully.

Look back again...

3298mV That is the onboard voltage: 3.3V voltage

The one below is the battery voltage: 2.229V,

The measurement results are 2228MV ~ 2229MV. . . . .

This post is from Domestic Chip Exchange

Comments

Thanks for the tip, I saw it.  Details Published on 2021-5-25 19:15
 
 
 

1022

Posts

0

Resources
7
 
Xidian Zhong Lingyuxiu published on 2021-5-24 14:20 You must not have read the content carefully. Look back... 3298mV That is the onboard voltage: 3.3V voltage...

Thanks for the tip, I saw it.

This post is from Domestic Chip Exchange
Personal signatureچوآن شـين
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list