hmcb5

LCSC Training Camp - CW32 Voltage and Ammeter

 
Overview
Design Background:
LCSC Training Camp – Based on the CW32F030 Calibration-Enabled Voltage and
Current Meter. An ADC (Analog-to-Digital Converter) is an indispensable key component in electronic systems. It converts continuous analog signals into digital signals, enabling digital processing and analysis. ADCs play a crucial role in signal conversion, measurement and data acquisition, control system input, and communication and signal processing. Their widespread application promotes the intelligent and precise control of electronic equipment across various industries, and is one of the key factors driving modern technological progress.
Digital voltage and current meters combine ADC technology with circuit measurement principles, accurately converting analog voltage and current signals into digital displays for easy reading and analysis by electronic engineers. This device not only improves the accuracy and efficiency of circuit measurements but also helps engineers better understand circuit behavior, making it a powerful tool for electronic design and troubleshooting, significantly supporting the work of electronic engineers. In product applications, digital voltage and current meters ensure the accuracy and safety of circuit design, while also providing strong support for product quality control and subsequent maintenance.
Learning to design and build a digital voltage and current meter is highly beneficial for improving one's professional skills. This digital voltmeter and ammeter project covers multiple aspects, including microcontroller circuit design and implementation, signal acquisition and processing circuit design, user interface development and optimization, and product appearance design. It integrates knowledge from multiple fields such as electronics, microcontroller programming, circuit design, and industrial design. Considering the learning pace and knowledge absorption capacity of beginners, we have specially launched this introductory-level digital voltmeter and ammeter project, which is very suitable for beginners in electronics and those who want to learn more about microcontroller applications. This project has the following highlights:
it adopts a core board plus expansion board design concept and uses plug-in components, making learning simpler and exploration more in-depth;
the core board uses the domestic Wuhan Xinyuan Semiconductor CW32 as the main controller, while also being compatible with other similar development boards; however, the CW32 has advantages.
The project is highly comprehensive and practical, and after completion, it can be used as a desktop instrument;
the project has abundant learning materials, including circuit design tutorials, PCB design, code programming learning, and training for engineers' debugging skills.
The schematic design instructions are

basically based on the tutorial, with plug-in components replaced by surface-mount components, and one LDO and one resistor modified.

I'm using the AMS1117-5.0 here, which only supports 5-12V power.
The original tutorial suggested
a 200k resistor, but I didn't have one, so I used two 100k resistors in series.
I haven't modified
the PCB design notes

before because I was replicating other open-source projects and had only purchased the components. I only learned PCB design through this training camp, so my drawings aren't great and are just for reference.
When designing the PCB, you need to make the current measurement traces wider and larger, and the power supply lines should also be drawn wider.
The software

is another challenge...
I encountered many problems while setting up the environment, and in the process of finding solutions, I gained a basic understanding of Keil. I'm not a beginner, just someone who's touched the threshold. Therefore, the code references tutorials and other authors, and it barely runs.
Reference 1: https://oshwhub.com/li-chuang-kai-fa-ban/cw32-shu-zi-dian-ya-dian-liu-biao-kai-fa-ban-tao-jian
Reference 2: https://oshwhub.com/yzp_666/voltage-and-ammeter-based-on-cw3
(Physical demonstration)

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-24 03:06:52

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号