Basically all the pins of py32f002 are used, and it can control 2 small DC motors and 4 servos at the same time.
There is not much to say about the principle, but here are two things to pay attention to:
1. If the remote control is powered by two AA batteries, the 3.3v power chip does not need to be soldered. You can solder two pin headers on the two soldering holes next to it. , and then use a shorting piece to short-circuit it. If using lithium battery, I suggest you still use a 3.3v power supply chip, because the highest voltage range of ci24r1 is only 3.6, and the lithium battery is still about 4v when it is fully charged. I don’t know if it will be damaged; if the receiving module To control the servo, you still need a power supply of more than 5v, otherwise the servo may not work properly. The motor control chip on the receiving board is the YX-1818AM purchased on Taobao, priced at 3 cents each.
2. The right hand controls but the joystick controls the steering of the two motors, similar to the track steering control. The left hand joystick controls the two servos, and the two buttons control the two servos respectively. See the attachment for specific procedures.
3. When drawing the board, I also made a receiver using py32f030, because 002 only has an advanced timer and a basic timer. After thinking about using the advanced timer to control the servo, there was no universal timer to generate the PWM for controlling the motor. , so I wanted to use f030 to do it. Then I suddenly remembered that I could use a basic timer to simulate the scheduled interrupt. After testing it, it completely met the requirements, so I didn’t program f030 anymore. You can program it yourself if necessary.
4. I don’t know how to match the impedance of the antenna. According to the CI24R1 user manual, the antenna matching capacitor is 1pf. As a result, the transmission distance is less than 10 meters. Later, the capacitor was directly cancelled, but the transmission distance increased a lot. If any expert can help adjust the impedance matching parameters, I would be very grateful. For
other details, please see the attachment.