The device purchased from Lichuang Mall was lost by express delivery, and we are still negotiating.
- Main control: Hangshun HK32F030c8t6, 48-pin, 64K Flash (domestic chip with M0 core, domestically produced)
- Power supply: USB-TypeC power supply, regulated to 3.3V by AMS1117 to power the system
- Serial port: adopts CH340E, small package, does not occupy space
- Digital tube: 4-bit common cathode digital tube is used, the driver chip is TMP1650, and the IIC interface is used for driving
- Display: 0.96-inch OLED display, IIC interface driver
- Buzzer: Electromagnetic active integrated buzzer HNB09A03, size 9x5.5mm
- Temperature and humidity: DHT11, single line control, more commonly used
- Infrared: The transmitter uses IR928-6C with a wavelength of 940nm; the receiver uses TSDP34138
The main control adopts Hangshun HK32F030C8T6. Let’s first understand the background of chip production: Shenzhen Hangshun Chip Technology Research Co., Ltd. has developed and designed three series of chips: HK32F030, HK32F031, and HK32F03X based on ARM Cortex-M0, collectively referred to as the HK32F03x product line. When choosing a certain MCU, you must first understand your needs, and then choose the appropriate MCU model based on your needs. Here are some main parameters of this chip:
- Power supply: 2.0V ~ 5.5V
- Stop standby power consumption: 10uA@3.3V
- Clock: (all clock sources of the chip can be selected as system clock)
- External HSE: supports 4~16MHz crystal oscillator, typical 8MHz crystal oscillator
- External LSE: 32.768KHz crystal oscillator
- On-chip RC oscillator clock: 8MHz/14MHz/56MHz configurable
- On-chip LSI clock: 40KHz
- ADC converter: 12-bit, 16 external analog signal input channels
- Temperature sensor: Analog output internally connected to separate channel of A/D converter
- SWD debug port
- Universal serial communication interface: 2 USART, 2 high-speed SPI, 2 I2C
- Timer: TIME1 has 6-channel PWM output, TIM3/TIM14/TIM15/TIM16/TIM17 general timer, TIM6 basic timer
- General IO: Up to 55 GPIO pins, all GPIO pins can be configured as external interrupt inputs, providing up to 20mA drive current. Knowing the above information, you basically understand the resources of an MCU. More detailed content needs to be discussed in During the development process, refer to: Hangshun HK32F030C8T6 Reference Manual .
The power supply interface uses a TYPE-C3.1 female socket with 16 contacts, which should be enough to power the entire system. The voltage stabilizing chip selected is the linear voltage regulator AMS1117. AMS1117 is a positive voltage output low voltage drop three-terminal linear voltage regulator circuit with a voltage drop of 1.2V at 1A output current. Assuming that the input terminal is 5V, under 1A operating current, the system operating voltage can be reached 3.3V, which meets the system requirements.
The size of CH340E is MSOP-10 package, which is smaller than SOP8 size. It contains the most commonly used serial port signals and has a 485 transceiver enable pin TNOW to support 3.3V or 5V power supply.
The digital tube uses a 0.56-inch four-digit common cathode digital tube, the display color is red, and the power consumption is about 50mW. The driver chip is TMP1650, supports 2.8V-5.5V power supply voltage, and uses IIC interface for driving. TM1650 is a dedicated circuit for driving and controlling LED (light emitting diode display) with keyboard scanning interface. Internally integrated MCU input and output control digital interface, data latch, LED driver, keyboard scanning, brightness adjustment and other circuits. TM1650 has stable performance, reliable quality and strong anti-interference ability, and can be suitable for 24-hour long-term continuous working applications. The reason for using TMP1650 to drive the digital tube is to save IO ports and use IIC communication. The detailed IIC communication protocol can be viewed in the data sheet .
It is the most commonly used 0.96 OLED screen, driven by IIC or SPI. The attachments include drivers, which contain OLED usage routines for commonly used MCUs such as STC51, STM32, and Arduino. Personal test, can be used.
The buzzer uses an active buzzer, which is easy to drive. NPN transistors are used for driving, and the transistors are S9013 to enhance the IO driving capability.
DHT11 digital temperature and humidity sensor is a temperature and humidity composite sensor with calibrated digital signal output. It applies dedicated digital module acquisition technology and temperature and humidity sensing technology to ensure that the product has extremely high reliability and excellent long-term stability, low cost, relative humidity and temperature measurement, ultra-fast response, strong anti-interference ability, and ultra-long signal transmission distance, digital signal output, precise calibration. The sensor includes a capacitive humidity sensing element and an NTC temperature measuring element, and is connected to a high-performance 8-bit microcontroller. Can be used in HVAC, dehumidifiers, testing and inspection equipment, consumer products, automobiles, automatic controls, data loggers, weather stations, home appliances, humidity regulators, medical, and other related humidity detection and control.
The transmitter uses IR928-6C, the wavelength is 940nm, its forward voltage is 1.2V, and the operating current is 50mA. The HK32F030C8T6 pin cannot provide such a large current, so when driving it, a three-stage tube is used for driving. The transistor uses the same NPN type S9013 transistor as the buzzer, and controls the infrared emitted signal through the PB1, TIME3_CH4, and PWM pins. The infrared receiver is TSDP34138, whose operating temperature range is -25℃~85℃, which meets the needs of daily use. When it receives a signal with a frequency of 38KHZ, the pin outputs a high level, otherwise the output is a low level. For detailed protocols about infrared, please refer to (just understand the NEC protocol): Detailed explanation of several infrared protocols
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