This post was last edited by ljj3166 on 2018-9-30 23:03 0.Written at the beginningThis DIY project originated from the children's programming education that I came into contact with when I took my children to play with Lego toys. Looking at the companies on the market that just change the interface to make money, I would like to use this DIY to show my disdain. At present, only the basic framework of the entire project concept has been realized. There is still a lot of work to be done, especially the repair and processing of some details, which is very time-consuming and brain-burning. Here, I pay tribute to the code farmers who changed the world. I have done a little bit in the early stage. If you are interested, you can take a look slowly.
1. Design nameLogicKids Easy Programmable PlatformSingle board name: Easy Platform 1 (EP1) 2. Introduction of the workThis DIY work single board is based on GigaDevice GD32F350CBT6 microcontroller. With the support of standard peripheral driver library, a set of script data parsing methods and online simulation data formats are customized. Script data is generated with mobile phone or PC client. The script data is downloaded to the single board through Bluetooth communication. After the single board is powered on, the script data is loaded and parsed to complete the operation of each on-chip peripheral. At the same time, it supports online simulation of the script running process. 3. System block diagramThe working block diagram of the whole system is as follows
The client generates script data on PC and Mobile DeviceThe PC communicates with EP1 through the adapter of USB bridge Bluetooth, and the Mobile Device can communicate directly with EP1. There is really nothing much to say about the hardware block diagram of the board. Here is the old picture
4. Functional description of each part The 128K Flash of GD32F350 on the EP1 board is divided into two partitions: boot and app. The boot area is used to update the code in the app area. The app area is used to parse the data generated by the client. GD25Q16 is used to store the script data, controller firmware, fonts and pictures generated by the client. After power-on, GD32F350 loads the data in 25Q16 into RAM for parsing. The OLED screen is used to display the running status of EP1. The buttons are mainly reset and restore to factory settings (erase GD32Q16 scripts and picture data). The usb2BLE Dongle is mainly composed of a usb2uart bridge chip and a Bluetooth serial port. It is used for communication between the client and EP1. About the occupation of on-chip resources, boot occupies less than 8K bytes of Flash when printf is turned on.
app code turns on printf Set up 1K character variables, 50 floating-point variables, 200 long integer variables, 1K bytes of script data buffer, and 256 bytes of firmware buffer. The final resources occupied are
less than 30K of FLASH space and nearly 10K of RAM. Well, we can still save a little more. 5. The nearly 19-minute demonstration video is quite long and verbose. 1080P source, full-screen playback is more powerful... There are many functions I want to do, such as custom driver modules, which are packaged into modules with components, and can directly drive IPS screens, sensors, etc. Similar to the sub-ui of labview Due to time constraints, I haven't had time to do it. I will update it slowly later when I have time. The ifelse logic in the video is not implemented because there are still some problems with the algorithm of traversal and connection relationship of each component on the PC client. From time to time, some bugs will appear, so it is not shown here. The analysis of the ifelse logic on the single board has been implemented. There are also introductions in the previous posts and videos. You can check them out 【GD32F350 LogicKids】 Input and basic logic test Submit VER0.1 first 6. Source code (can't upload it yet, I'll talk about it later) I will update the above when I have time Supplementary content (2018-10-13 22:47): See the source code on the 10th floor
South Korea's LG has a core: ARM 32 M3 CPU FLASH 128.
The main thing is that the price is good.
There are 100K in stock now, and the supply is stable every month. Call WeChat: 13424332191