[GD32E231 DIY Contest] Work submission: Ornamental fish tank controller
[Copy link]
1. Project Name: Ornamental Fish Tank Controller
2. Project Introduction:
The fish tank controller was studied, developed and verified based on the Arm Cortex-M23 core GD32E231C-START evaluation board provided by GigaDevice for this competition. Finally, the GD32E231C8T6 microcontroller chip provided by GigaDevice was used , and the 315MHz remote control receiving and transmitting device and other related peripheral devices were used to realize the fish tank circulation pump state control; LED lighting three-stage brightness control; granular bait feeding control and water temperature acquisition digital tube display and other functions of the fish tank controller.
3. System Block Diagram:
Four. Hardware circuit design and production
1. System schematic and PCB production. Because there were new ideas at the beginning of the design, we planned to add LCD12864 display, add timing, use infrared remote control, etc., so we used thermal transfer to make it quickly, and redesigned it after the ideas matured and verified. The PCB is divided into two parts, one is the main board, and the large area of copper is used for PT4115 heat dissipation; the other small piece is used for digital tube display (other irrelevant items on the PCB are private goods). Because a single-sided board is used, the layout is a bit messy and there are errors.
2. PCB device welding and assembly. The materials in hand are quite mixed, with all kinds of appearances, and there are also a few disassembled parts, which look quite fancy. The submersible temperature display is simply encapsulated with wax, which is not very effective. Consider re-encapsulating it with resin or other adhesive materials, mainly for waterproofing.
3. Power supply. A 24V finished power supply is used to power the LED lighting and the whole machine. In addition to the 24V power supply, the system also uses 5V power supply PT2272 and 28BYJ-48 5-step motor. This part uses a small DCDC conversion module EC-A002, and the rest of the 3.3V power supply uses a 1117-3.3 LDO chip.
4. Granular bait delivery. This little thing has been tossed around for a long time. At first, there were three plans that I had been considering. This is one of them. One of the other two plans is relatively complicated, and I gave up because I didn’t have the right tools and materials. The other plan did not succeed because the processing accuracy was too low. The current plan is a variation of the previous third plan, and the whole process was completed after many modifications. The U-shaped metal strip is used to connect with the stepper motor shaft; the medical syringe is the protagonist. Here are a few photos, but I didn’t take into account the process in between:
[attach]
414432[/attach]
5. Remote control, LED lighting, circulating water pump, and buzzer. The remote control and circulating water pump (the water pump has been used for almost three years. It broke down last week and I haven't had time to buy a new one yet) are finished products. The LED lighting uses 5 1W LEDs, which are fixed on a 1100*52*22 U-shaped aluminum alloy profile. One is to dissipate heat; the other is to focus the light on the fish tank; the buzzer is used for interaction.
6. Overall assembly. I couldn't find a suitable shell, so I temporarily used half of the power shell;
5. Program implementation. It adopts a modular structure, but it is written in a messy way. There are complete engineering files at the end of the article, so I won't explain them one by one here.
6. Demonstration of results. Below are a few pictures prepared for the demonstration. There is a demonstration video at the end of the article, which is not long, less than one minute; there is also a video of testing the bait at that time, which is also very short. Interested friends can download it and have a look.
Demo video link:
https://training.eeworld.com.cn/video/20585
https://training.eeworld.com.cn/video/20586
VII. Existing Problems and Improvement Plans
1. Problems
Although the basic functions of the entire project have been realized, there are still many problems, such as the overall layout of the PCB; the key program needs to be improved; the remote control technology is relatively old, etc. In addition, only a very small part of the GD32E231C8T6 resources are used, and most of the high-quality resources have not been used.
2. Improvement plan
a. Change the remote control part to infrared remote control and use the finished small remote control for control;
b. Add a 12684 LCD display, use the RTC function to display the real-time clock on it, and set the time to turn on the fish tank lighting, put in bait at a fixed time, and turn on and off the circulating water pump at a fixed time every day;
c. LED lighting can add other colors of light, and can control the brightness and different light color combinations separately;
d. Add electric heating equipment and enable constant temperature control.
8. Project Summary
After a busy period, the process was full of anxiety and expectation. Today, I can make a summary. Although the project is completed, there are still some problems that need further rectification and improvement. The project itself is relatively small, the technical content is not high, and the program code is relatively lengthy. Although modular programming is also used, it is just a simple code superposition. There are many errors. Please correct me!
By participating in this GigaDevice GD32E231 DIY Competition, I learned a lot of new knowledge, especially a deeper understanding of GigaDevice's Arm Cortex-M23 core GD32E231 series microcontrollers, which laid a solid foundation for future practical applications.
I would like to take this opportunity to once again express my gratitude to GigaDevice and the World Electronic Engineering Forum, the organizers of this event ! I wish GigaDevice will create more brilliance on the road of domestic chip development! I wish the World Electronic Engineering Forum will flourish!
Attachments:
1. Complete project files (including PDF circuit schematic): [attach] 414450 [/attach]
2. Overall project documents (word format): [attach] 414451 [/attach]
3. Final results demonstration video file: [attach] 414452 [/attach]
4. Preliminary test demonstration video of bait delivery equipment: [attach] 414453 [/attach]
|