The core board of this project drew on the verification version layout of Lichuang Mall and then adjusted it.
The MCU uses hk32f103cbt6, which is slightly different from the model in the PCB, but the pins are exactly the same. The USB pins are lead out on the board, and the d+ d- of micro usb is used to connect to the outside. But because the price of the series with A is too high and the family is poor, this function has been abandoned. The circuit is as shown in the figure. The original plan was to use a jumper cap to freely switch between full speed (FULL-SPEED) and low speed (LOW-SPEED). In theory, it can be used by replacing the MCU, but it has not been verified.
The power supply adopts USB 5V power supply, uses AMS1117-3.3 LDO chip for voltage stabilization and voltage reduction, and uses multiple capacitors for filtering.
For serial port debugging and programming, the CH330 serial port to USB chip is used, with a built-in crystal oscillator, which has the characteristics of less peripheral components and small size.
In addition, all pins have been led out, and 3V3 and 5V power supplies have been led out in one row each to facilitate the use of various peripherals.
The module board adopts the design of a sandwich development board and can be directly inserted into the core board. Actual verification has shown that it can be inserted perfectly. However, there are some slight problems with the circuit design of the LED lights on the clock and LED module versions. First, the negative electrode of the LED is grounded, and the IO port of the MCU is used for driving, and the driving capability may not be enough; second, the current-limiting resistor in series with the LED is too large, causing the problem of low LED brightness.
Because I haven't started learning 32-bit MCU development yet, I simply turned on the light. The writing framework of vscode+platformIO+arudino and keil ide were used respectively to try. Because there was a slight problem with the LED circuit design and it was difficult to take pictures and show it, I used a voltmeter to measure the high and low levels to indicate whether the LED was on or off. I put this at the end
PlatformIO
, click the first one, and then click Install.ST
, appear ST STM32
, click the word and click install to installupload_protocol = cmsis-dap
Save.I won’t go into details on this. I also used the official routine to light the lamp. I will put the relevant files in the attachment, so you can download them for reference.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet