他们逼我做卧底

One-handed remote control based on HK32F030M

 
Overview

1. Main circuit of schematic diagram

1. Lithium battery charge and discharge protection circuit: Using the charge protection IC scheme, the advantage is that the circuit is simple, but the disadvantage is that because the load current of this scheme is too small, the output will automatically turn off after a period of use (this can be solved by adding a discharge resistor to the output. But it will also increase power consumption and reduce the use time of the remote control). When I have time later, I will also change the existing lithium battery charging and discharging circuit.

WtVTDwHluz44XNqL4EYuZ1KhanfNBxrR7EGotr2U.png

2. Gyroscope module circuit: Due to the limited pin positions of the selected microcontroller, the IIC communication of the MPU6050 and the communication of the OLED display module share a set of I2C during the design. However, during the actual writing process, it was found that the IIC protocols of the two are quite different, and there is no way. Multiplexing, so the current solution disconnects the communication of MPU6050. In the future, if friends want to use it at the same time, they can choose an MCU with more pins.

wA7A3QA2wa3vhJG4KJdijt5sBei2iwXrsI4sjWSP.png

 

3. MCU minimum circuit: The MCU uses HK32F030MF4P6, which is based on the M3 core and has a built-in RC oscillator. Just add a reset circuit and lead to the download port to use it. Of course, the power supply is indispensable.hqspsezIcUaYLA6qiHfttSNncTshGsi50Hb6fNLQ.png

4. nRF24L01 module: The finished module is used. Just connect the communication line according to the official connection instructions. Since the instantaneous power consumption of the wireless module is large when sending data, it is best to install a 10uF capacitor on the power supply closest to the module. Pay special attention to the PCB layout to extend the module antenna as much as possible. Now that I have less extension, data packet loss occurs. Now I can only solve it by increasing the number of retries in the software.

 

2. Software implementation

Please download the attachment to view the detailed code.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 19:31:40
  • Send a Chinese userguide for 430
  • The output of the infrared tube TCRT5000 is always high level
  • uclinux serial port printing problem
  • Dual-receive and dual-transmit radio RF board based on XC7Z100+ADRV9009
  • 請問有關UART中斷問題
  • How to select DSP and HPIC through PCI2040 in XP

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号