I am a novice, I have only been exposed to Arduino and 51 before, and have not studied systematically, so I cannot bring exciting projects, nor can I share professional knowledge. I can only make a dog according to the training camp case. But I will record the process of my participation in this project from the perspective of a novice, so that more novices can understand the charm of electronic design through my sharing, and let more novices join the Lichuang training camp to learn, so that more novices can learn about the charm of electronic design through my sharing. More novices have become electronic enthusiasts by participating in Lichuang training camp.
1. 3D design
First of all, the foundation lies in sketching. The teacher in the tutorial talks about practical information. It is recommended to read the tutorial first. Learn how to use solidworks.
The first step is to draw a sketch, mainly focusing on the following four points: 1. How to draw rectangles and circles. 2. How to mark dimensions. 3. Establish the relationship between lines or figures (for example: assuming there are two lines a and b, the two lines can be established as equal or parallel). 4. How to use mirror entities (draw a straight line, set the straight line as the construction line, and finally set the construction line as the mirror axis, and you will get the mirror entity).
After drawing the sketch, we start with the features, mainly using the extruded boss. This is very simple. Just set the thickness to be stretched according to your needs.
After drawing all the parts, it becomes an assembly. The assembly is like building blocks. It is very simple to establish a good coordination relationship bit by bit. At the end you will get a 3D model of the mechanical dog.
Suggestion: Read the tutorial once, remember the key points I mentioned above, and then start sketching by yourself. If you encounter something that you don’t understand, then go to the tutorial to learn. This kind of practical learning will give you a sense of accomplishment and deep impression.
2. Circuit design and drawing schematic diagram
Schematic drawing
Before drawing the schematic diagram, I suggest that you first create a mind map yourself and divide the entire circuit into several parts, such as: power supply, main control, and peripheral chips (see the picture below). According to the mind map, we To understand the chip we need to use, by looking at the data sheet of the chip, there will be typical circuits in the data sheet. We can design it completely according to the typical circuits in the data sheet, or we can go to the Lichuang open source platform to search for it. Is there anyone who has designed it for reference? But we still need to read the data sheet in detail to understand his pin description and other knowledge.
PCB design
PCB design is a relatively boring step. You need to lay out all the components properly and then wire them properly. My suggestion is to follow our mind map and complete it part by part. For example, if we start with the power supply part first, then drag the power interface to the voltage stabilizing chip and the required peripheral capacitors and resistors into the box bit by bit. Reasonable layout. After all the layout is completed, it is time to wire. At this time, the layout can be adjusted according to the actual situation. Remember to check again and again before making the board, and you must be careful. Otherwise, discovering problems after the board arrives will waste time and resources.
3. Welding
For example, all my boards are welded with a soldering iron. I feel that practice makes perfect when using a soldering iron. The more you use it, the more you can handle anything. If you have a hot air gun, you can use a hot air gun. My conditions are limited, and it is useless without a hot air gun. Pass. When welding, I usually weld the power supply part first. After welding the power supply part, I use a multimeter to measure whether the output and input voltages are correct to prevent other components from burning due to incorrect power supply design or welding errors. Main control chip or something. Friendly reminder: Be sure to pay attention to safety when using a soldering iron. I have been burned by the soldering iron many times.
4. Burn firmware
I won’t go into details here. Use the ch340 burning module to plug into the computer, then connect the module’s TX to the RX on our board, RX to the TX on the board, and then connect to a common ground. If necessary, use the For power supply, connect 3.3v. (Before burning, make sure there is a ch340 driver in the computer. If the computer does not have a ch340 driver, you can go to site b to find a ch340 driver installation video.) As for how to burn, you can directly watch the video tutorial of the training camp and follow the step-by-step operation. Can.
5. Assembly
I chose acrylic because of limited time. I recommend 3D printing if possible. The biggest headache for me with acrylic is the self-tapping thread used to fix the servo. The acrylic plate cracked when I tried hard. Moreover, I feel that the appearance of acrylic is not as good as that of 3D printing. After you have installed the servo on the side panel, we have to do a very important step before installing the legs. Move the servo to the installation position, connect the servo to the board according to the wiring sequence as shown below, then turn on the power and connect with your mobile phone. Go to the WiFi of our board. After connecting, open the browser and enter 192.168.10.1 to enter a configuration interface. Click on the dog control below, and then click on the installation location on the page that comes out. You can hear the servo rotate. Finally install the dog legs. These are all mentioned in the video. I am here to tell you that this step is very important. I went back and forth several times to disassemble and assemble it because the installation position was not right.

I also encountered a pitfall, that is, I reserved the USB interface and used the 5V provided by the power bank during debugging. Then during debugging, as soon as I clicked the control button on the mobile phone control page, the network would be disconnected, or else After you click on the control, it stops moving as soon as you move it. In fact, this is caused by a power supply problem. Because the current supplied by our power bank is not enough, the voltage stabilizing chip cannot work stably, causing the main control chip to be powered off and restarted.
Realized functions: forward, backward, turn left, turn right, push-ups, stand still, etc. The demonstration video is below.
After completing the above, you will get a mechanical dog that can be controlled by your mobile phone. When you see your dog moving, you will feel a great sense of accomplishment. Congratulations on becoming a novice, but we still need to advance, and we need to learn from the big guys. So as a novice, I will continue. Learn firmware development and understand the underlying code part. I feel that there should be a key point in the subsequent study, which is IIC communication. I spent a lot of time to figure this out when I was playing 51 before. You can go to Bilibili or CSDN and other platforms to check the related information of IIC communication. Knowledge. (Key points: start signal, stop signal, response/non-response signal, and how to implement reading and writing data.)
Next step: I am going to develop my own firmware and use this board to make a four-legged spider robot. After completion, I will open source it to everyone.
Finally, I would like to thank Lichuang and Chuanzhi Education for providing this training camp! I also hope that Lichuang Training Camp will get better and better. I sincerely recommend more people to join Lichuang Training Camp.
My ability is limited. If there are any shortcomings above, please help me correct them in the comment area. You are also welcome to communicate and discuss in the comment area.