他们逼我做卧底

Test board based on Hangshun MCU - can measure indoor brightness

 
Overview

Hangshun MCU test board

1. HS-MCU test system

This unit test board uses the HK32F030MF4P6 microcontroller of Hangshun Company. The HK32F030M series chip is an MCU chip developed by Shenzhen Hangshun Chip Technology R&D Co., Ltd. It uses the ARM® CortexTM-M0 core, the maximum operating frequency is 32MHz, and it has built-in 16K-ByteFLASH, 448- Byte EEPROM and 2-KByte SRAM. Through the register configuration of the FLASH controller, the interrupt vector can be remapped in the 16K-Byte space to meet a variety of application scenarios.

2. Introduction to the functions of HS-MCU test board

This test board has the following functions:

  • Onboard LED indicator;
  • Onboard buttons;
  • Onboard light sensor:
  • SWD download interface;
  • USB to serial port;
  • All remaining IO ports are led out;
  • Onboard WIFI module;
  • Subsequently, the serial port can be connected to WIFI according to personal needs, and the indoor light intensity can be uploaded to Alibaba Cloud.

3. Completion status

  1. HS-MCU test board schematic completed
  2. PCB design completed
  3. PCB welding completed
  4. The demo program has been written. The functions vary according to the external light intensity and the LED indicator light flashing cycle.

4. Other situation descriptions

Problems encountered:
After the welding was completed, the output 3.3V voltage was incorrect. The inspection found that there were two reasons for the incorrect output 3.3V voltage.

1. Schematic packaging problem. Use Hangshun's HK7333-A power chip. Directly search the official packaging library of C495410 as follows. The schematic library of SOT23-3 is used, while C495410 should use the schematic library of SOT89-3, which needs to be modified by yourself. .picture.png

The datasheet pinouts are as follows:

picture.png

Disconnect the wires and fly the wires. This time it will be ok. After powering on and testing, I found that the output voltage is still wrong. Please see item 2 for the cause of incorrect voltage. 2. The power supply of the USB to serial port is 5V, which causes the voltage of the microcontroller to change, that is, the 3.3V output by the LDO becomes more than 4V. Original picture 5V power supply:

picture.png

Modified 3.3V power supply:

picture.png



If you still use 5V power supply, you can also connect a transistor to the serial port for voltage conversion. Being lazy here, I just disconnected the serial port line.

The above problems can actually be avoided by reading the data sheet. Remember to read the data sheet carefully for unused chips!

Problems encountered when testing ST-LINK and ULINK programming programs respectively: I have an ST-LINK and ULINK on hand. First use ST-LINK to download and connect the used pins to the SWD port of the board through a cable. The sequence of ST-LINK The phone number can be recognized but the SWD port cannot be recognized. I am completely speechless. . . . I accidentally discovered that when I disconnect the power supply, SWD will be recognized. At this time, the download will report an error, but it doesn't matter if I click once and the download will be successful. At this time, when powering on, the LED indicator light flashes normally, and the phenomenon is normal. Use ULINK to download and test everything is normal. Therefore it is not recommended to use ST-LINK to download.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2024-11-14 23:25:06

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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号