Lemontree

[Hangshun Training Camp] Intelligent industrial control board based on Hangshun MCU +645886A

 
Overview

Intelligent industrial control board based on Hangshun MCU

project description

  • Using HK32F103C8T6 as the main control MCU
  • With 5 channels of photoelectric relay output, the relay output has a light display
  • With 4 isolated switch inputs and 2 modulus inputs
  • BOOT button to avoid troublesome jumpers
  • 2 on-board buttons
  • 4 LED indicators
  • Can use DAP-Link and serial port download program
    • Thanks to Chuangxin Workshop for providing PWLink emulator support

Project overview

  • PCB board 3D model
    • Snipaste_2021-03-10_17-53-41.png
    • Snipaste_2021-03-10_17-54-02.png
  • PCB layout 2D model
    • Snipaste_2021-03-10_17-55-08.png
  • PCB schematic diagram
    • Snipaste_2021-03-10_17-55-26.png
  • Physical PCB (light board)
    • IMG_20210322_144959.jpg
    • IMG_20210322_145008.jpg
  • Physical PCB (soldering)
    • IMG_20210322_145124.jpg

Hardware description

BOOT button and NRST reset button

  • Replace the old BOOT button in the form of a jumper cap with a button to facilitate debugging operations
    • BOOT startup rules
      • BOOT startup rules
    • BOOT in jumper form (not easy to use)
      • BOOT in jumper form (not easy to use)
    • BOOT in button form (easy to use)
      • BOOT in button form (easy to use)

Two onboard key inputs and four optocoupler isolated inputs

  • Onboard key input
    • Snipaste_2021-03-22_15-03-35.png
    • Snipaste_2021-03-22_15-04-22.png
  • Optocoupler isolation input
    • From top to bottom they are PB7, PB6, PB5, PB4
    • Short-circuit the yellow wireframe part to allow the input to be directly grounded
    • Snipaste_2021-03-22_15-05-46.png
    • QQ screenshot 20210322150846.png

Analog input

  • Snipaste_2021-03-22_15-27-19.png
  • Snipaste_2021-03-22_15-27-42.png

Five-way optocoupler relay output

  • The order of photoelectric relays from top to bottom is PA8, PB15, PB14, PB13, PB12
  • LED lights with synchronized display
  • QQ screenshot 20210322151104.png!

Debug interface

  • Support SWD and serial port

Power supply interface

  • The layout supports the following input interfaces
    • micro_USB_B input (5V)
    • Terminal input (5V)
    • Pin header and cable input (5V/3.3V)
    • DC wire input (5V-9V)
  • Snipaste_2021-03-22_15-26-17.png

development tools

  • Lichuang EDA V6.4.17
  • keil MDK-ARM Plus Version: 5.25.2.0
  • VScode Version: 1.54.3
  • STM32CubeMX Version: 6.2.0
  • PowerWriter

design record

>The current version is V1.0

  • V1.0 known issues

    • Use of Linear Regulators
      • If the power supply is 5V
        • The 5V linear regulator located in the center of the board needs to be removed and its input and output shorted
        • Snipaste_2021-03-22_15-22-10.png
    • The distance between the crystal oscillator and the MCU is too far. Although it does not affect the use, it is not standardized enough.
      • Snipaste_2021-03-22_15-15-24.png
    • The photoelectric relay part lacks a current limiting resistor, causing the Darlington transistor to overheat. This can be solved by clearing the wiring and using flying wires.
      • Traces that need to be cleared (pink part)
        • Snipaste_2021-03-22_15-17-54.png
      • Flying lead position (resistance 2K)
        • QQ screenshot 20210322151426.png
  • V1.1

    • Modify the problem of V1.0 and it can be used normally without cutting the wiring.
    • Update the corresponding wiring diagram
    • Snipaste_2021-03-30_08-25-28.png
    • Snipaste_2021-03-30_08-26-26.png    

last edited time

>March 30, 2021 08:26:45

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-07-24 20:48:15

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号