OrffZ

CW voltage and current meter project

 
Overview
Main functions:
Voltage has two levels: 0-3Vdc, 0-30Vdc;
Current range: 0-3A.
Environment configuration:
Install the CW32 pack. The firmware library can be downloaded from the Wuhan Xinyuan official website:
https://www.whxy.com/gujianku.html?keyword=f030.
If compilation errors occur, try installing ARM.CMSIS5.7.0.pak. Experiment
9 Code description:
This example uses button operation for calibration. The specific operation method is as follows:
Define 5 working modes. The K1 key is used to switch the display mode. The K2 key sets the parameter value in the corresponding mode and saves it to FLASH. The K3 key returns to mode 0.
Mode 0: Displays normal voltage and current values ​​(the upper row of the digital tube displays the voltage value *.V or .*V automatically switches, and the lower row displays the current value _.**A).
Mode 1: Voltage 5V calibration value setting. The upper row of the digital tube displays 5.05. The lower row displays the current voltage value _.V or ._V. In this mode, the multimeter should be set to 5.00V when measuring the measured bit. After pressing the K2 key, the current value is calibrated as a 5V voltage value.
Mode 2: 15V voltage calibration setting. The upper digital display shows 5.15. The lower display shows the current voltage value as _V or ._V. In this mode, the multimeter should be set to 15.0V when measuring the measured bit. After pressing the K2 key, the current value is calibrated as a 15V voltage value.
Mode 3: 0.5A current calibration setting. The upper digital display shows A.0.5. The lower display shows the current current value as _.**A. After pressing the K2 key, the current value is calibrated as a 0.5A current value.
Mode 4: 1.5A current calibration setting. The upper digital display shows A.1.5. The lower display shows the current current value as *.**A. After pressing the K2 key, the current value is calibrated as a 1.5A current value.
Measurement Interface Description:
Note: For more information, please refer to the tutorial document: CW32 Digital Voltmeter and Ammeter Training Camp Project Tutorial Document
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-26 14:40:33

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号