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.
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.
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.
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.
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