Elementary programming tutorialElementary programming teaching can start from the following aspects:
** 1. Selection of programming language **
1. **Scratch**
- It was a graphic programming language developed by the Media Lab at the MIT Institute of Technology for children and teenagers. It used building blocks to build programs. It had a high degree of visualization and did not need to write complex grammar. As long as the code blocks were dragged, they could create animations, games, and other projects. Children can get started quickly with a low learning curve. They can quickly gain a sense of accomplishment and effectively cultivate programming thinking, logical thinking, creativity, and problem solving skills. It is very suitable for beginners and younger children to use as an introductory language.
2. **Python (after a certain foundation)**
- Python was a general-purpose programming language. It had a simple grammar but was flexible and powerful. Although it was relatively complicated and required code to write programs, there were many resources suitable for primary school students to learn. By learning Python, one could gain a deeper understanding of the basic knowledge and principles of computer science. Its rich library could implement a variety of common functions, from simple string processing to complex 3D graphics rendering. It was suitable for primary school students who had a certain programming foundation or wanted to learn programming in depth and explore more application fields.
** 2. Learn basic programming knowledge **
Primary school students needed to master the use of variables, conditionals, loop statements, functions, and classes, as well as the skills of programming, annotate code, and so on. These were the prerequisites for learning advanced programming concepts.
** 3. Teaching Method **
1. ** Arouse interest **
- Using children's love for games, he guided them to create their own Mini games through programming. From designing characters, setting rules, to implementing logic, this process could allow children to experience the fun of programming and improve their skills.
2. ** Practicing Operation **
- The programming was very practical and children were encouraged to do more. They could imitate existing programs to learn logical thinking and techniques, or they could write their own code from scratch. Learning to analyze problems and find solutions through trial and error was more valuable than pure book knowledge.
3. ** Project participation **
- With the mastery of basic knowledge, guiding children to participate in practical project development would help improve their comprehensive programming skills.
4. ** Guiding thoughts instead of giving direct answers **
- In teaching, don't directly tell the students the answer, but guide them to read the program and let the students discover the problem themselves; don't limit the students 'performance, encourage creativity and expression; don't let the students copy the code, but help them analyze, discuss the algorithm together, and ask questions to guide their thinking.
** 4. Creating a learning environment **
1. ** Code Club or Community **
- Primary school students were encouraged to participate in local programming clubs or online programming communities to exchange and share with other students, so as to obtain more programming skills and knowledge, establish connections, share experiences, support each other, and form a good learning atmosphere.
2. ** With the help of learning tools **
- Some learning platforms could be used, such as the Gaotu app. It had a question bank, information, experience sharing, Mini games, small tools, and other learning sections. Children could improve faster by using more questions and learning tools.
"When a programmer meets a psychologist" is equally exciting. Everyone is welcome to click to read it!
Introduction to programming tutorialHere are some introductory tutorial content for different types of programming:
- ** Drone programming (Teenagers)**: There are specialized books such as Falling in Love with Drone: A Guide to Teenagers 'Drone programming (Beginner) for reference.
- ** Graph programming **: The introductory teaching is to program through a graphic interface and tools.
- **Plc programming **: There are related tutorial books from beginner to master, covering the basics of programming, beginner, advanced applications, and comprehensive examples. The key points will point out important knowledge and skills. It also included the programming of two types of SIEMENS and Mitsui, instructions, and examples. There were 42 micro-class videos and 270-minute video demos to assist in understanding key and difficult knowledge, and it would also illustrate the comprehensive application of the LCD, frequency changer, touch screen, and servo-system.
- ** Children's programming **: First, let the children know about programming to stimulate interest, and then master some basic knowledge, such as variables, data types, conditionals, loop statements, etc., and encourage them to participate in community exchanges and sharing.
- ** Huawei's Cangjie programming language (using the Windows platform as an example)**:
- In the GitCode Cangjie community, download the Cangjie VScode plug-in and the Cangjie MDK-Win project on the Windows platform and the Cangjie MDK-Win project on the linux-platform, as well as the CangjieVScodePlug-in project (providing language services, project management, and other functions).
- Unzip and install the Cangjie Plug-in, and then set up the Cangjie running environment (note the configuration path to ~\Cangjie - 0.50.3 -windows_x64\Cangjie).
- Create a Cangjie Project (press Control + Shift + P to open the VScode function search box and type Create Cangjie Project).
- Run the Cangjie program (select the main.cj file and click the Run Code button in the upper right corner).
- ** Easy Language **: There is a video tutorial. The outline includes the entire process from the basics of Easy Language to the actual combat project. It can help the learner master the installation, configuration, and basic grammar of Easy Language, understand the programming logic and development process, and improve the efficiency of writing code. The learning method is flexible. You can repeatedly watch the basic knowledge explanation and follow the actual combat project practice.
- ** Modbus protocol in the programming of the Plc (for industrial control)**:
- Understand the Modbus protocol: This is a communication protocol widely used in the field of industrial control. It is stable, reliable, and low-cost. The bottom layer uses an RS485 signal. There are two common data transmission format (Modbus-MDT and Modbus-ADC. Modbus-MDT is more efficient and simple to process, and is more commonly used in the field of industrial control). It uses a single-master multi-slave communication method.
- In terms of programming, taking Modbus-Rtu as an example, the communication frame format includes the slave address +0x03 + register starting address + register number + Cyclic check (request frame), and the response frame format is the slave address +0x03 + bytecount + register value + Cyclic check. During programming, you need to pay attention to the key parameters such as the slave address, operation type, register starting address, and data number. The programming examples can start with simple read or write operations, such as setting up the key register when controlling the frequency changer and using the RS485 communication command to achieve communication.
"When a programmer meets a psychologist" is equally exciting. Everyone is welcome to click to read it!
single-chip computer programming tutorialThe following is a basic tutorial written on a single-chip computer:
##1. Initial preparations
1. ** Choose the model of the single-chip computer and the development board **
- According to your learning goals and interests, you can choose models suitable for beginners such as the 51 single-chip processor and STM32. Buy a development board that contains the model of the selected single-chip computer, and prepare the necessary accessories, such as USB to serial port module, LED lights, buzzers, etc.
2. ** Installs the Integrated Development environment **
- For example, 51 MCUs may use Keil, and STM32 may use STM32 CubeID.
3. ** Driver configuration **
- According to the requirements of the development board, the necessary drivers were installed. For example, the development board that uses ST-Link requires the ST-Link driver to be installed. The specific operation may include inserting the driver into the computer, opening the computer device manager to check if the installation was successful, and so on.
##2. Learning to program
1. ** Basic programming **
- Learn how to write and compile a single-chip computer program using the IDE. This included understanding programming languages. Single-chip processors usually used C or assembly language for programming. Beginners were advised to start with C. Familiarize yourself with the operation interface of the IDE, such as how to create a project, how to add source files, etc.
2. ** Simple experimental programming **
- He started writing programs from simple experiments, such as lighting up LED lights, controlling the sound of the buzz, and so on. These simple experiments helped to understand the basic operation of the single-chip computer. To light up the LED lights as an example, you need to understand the settings of the general input and output port (CPU) of the single-chip computer. You need to control the level state of the pins through programming to achieve the lighting or extinguishing of the LED.
- When writing code, you must follow the programming specifications and grammar requirements of the selected single-chip computer. For example, in the C language, one had to correctly define variable types, functions, etc.
3. ** Advanced experimental programming **
- As his understanding of the single-chip computer deepened, he tried more complicated experimental programming, such as using ADC (Analogy to Digital Conversion) modules to read the simulated signal, using Pulse width Modulation (Pulse width Modulation) to control the motor speed, and so on. This required a deeper understanding of the other functional modules of the single-chip computer, such as the programming application of timers, interrupt systems, etc.
##3. Search for Tuors and Resources
1. ** Online tutorial **
- Find online tutorial and videos about MCUs on platforms such as Bilibili and CSPD blog. These courses and videos might include basic to advanced programming knowledge, real-life case studies, and so on.
2. ** Book Learning **
- Read classic books about single-chip processors, such as "51 Single-Chip Computer Development from Entry to Proficiency","STM32F10x Series Arm Cortex-M3 Microcontroller Development Guide", etc., to obtain more systematic and in-depth programming knowledge from the books.
##4. Practicing Program
1. ** Project Design **
- Try designing a small project, such as using a microchip to control a smart home device or making a simple robot. When designing a project, one had to plan the functional requirements, hardware selection, software architecture, and so on.
2. ** Project Realization **
- Translate the design into an actual product, write the corresponding program code to realize the project function, and test and debugged it. In this process, various problems may be encountered, such as hardware circuit connection problems, program logic errors, etc., which need to be solved by debugging tools and methods. For example, he could use the single-chip computer's interface to set breakpoints and view variable values in the IDE.
<a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
Introduction to programming tutorial e-book free download websiteHere are some websites that might offer free downloads of introductory programming e-books:
- CSPD: This is a professional Chinese IT technology community that provides open classes, quality classes, e-books, and other resources.
- China University MOOCs: An online education platform launched by universities and Netease. There may be e-book resources related to programming introductory courses available for download.
- Netease Cloud Class: As an online practical skill learning platform, there may be e-books for programming introductory tutorial that can be downloaded for free.
In addition, the official websites of some programming languages may also provide free downloads of introductory tutorial e-books. For example, the official introductory tutorial of the Cangjie programming language could be obtained from its official website.
<a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
What is programming? What does programming mean?It was the process of letting a computer solve a certain problem on behalf of a certain calculation system, and making the calculation system operate according to the calculation method, and finally obtain the corresponding result. In order for the computer to understand human intentions, humans needed to tell the computer the ideas, methods, and means to solve the problem in a form that the computer could understand. The process of communication between humans and the computing system was programming. The programming here was not necessarily for computer programs. Any system with logical computing power could be considered programming.
The programming class was a course that taught knowledge and skills related to programming. In the programming class, students would learn the basic grammar of programming languages (such as data types, operators, branches, and cycles, etc.), use the programming language to implement basic data structures (such as sequence tables, linked lists, etc.), improve their programming thinking and problem solving skills by brushing algorithm questions, and carry out practical projects. For children's programming, they would use more interesting and child-friendly methods, such as using beautiful game screens, cute animated characters, and a standardized programming interface. They would let children learn to break down complex problems into simple steps and write code to execute these steps, thereby cultivating logical thinking, computational thinking, and creative thinking.
"When a programmer meets a psychologist" is equally exciting. Everyone is welcome to click to read it!
programming robotA programming robot was a type of robot that could be controlled and operated by programming. They usually had a control panel and a base that could be programmed to perform various tasks and actions. Robots can be used for educational purposes to help children and teenagers learn programming and creativity. There were many brands and models of programming robots available on the market, such as Lego Education Family, Matatalab, Mech Master S1, etc. These robots provided easy-to-use graphic programming software and a wealth of learning resources, allowing beginners to easily master programming skills. In addition, programming robots could also develop children's logical thinking, creativity, teamwork, and problem solving skills. In general, programming robots were an interesting and practical tool that could help people learn and apply programming techniques.
NC programmingNumerical-control programming was one of the main contents of the preparation stage of Numerical-control processing. The process was the whole process from the part drawings to obtaining the Numerical-control processing program. This included analyzing the part drawings, determining the processing process, calculating the tool path to obtain the tool location data, writing the numerical control processing program, making the control medium, checking the program, and the first piece of trial cutting.
There were two methods of programming for the numerical control processing, manual programming and automatic programming. The various stages of manual programming were completed manually. The programmer used general calculation tools to calculate the tool trajectory and compile instructions manually through trigonometric-function calculation. This method was relatively simple, easy to master, and had great adaptability. It was suitable for non-mold processing parts. The steps included manually completing the numerical control process of the parts, analyzing the parts drawings, making process decisions, and determining the processing route.
In programming, there was also the special function of the user macro program. There were some differences between the user macro program and the normal program. In the user macro program, variables could be used and assigned values. The variables could be calculated, and the program could jump. However, the normal program could only specify a constant, and the constant could not be calculated. The program could only be executed in sequence and could not jump. The function was fixed. The format of the macro program itself was the same as that of the subprogram. It could use normal, variable, calculation, and control commands. For example, in some engineering application scenarios, such as the calculation of circular arc evenly distributed holes, oval processing, etc., the use of macro programs could improve the efficiency of manual programming.
" When a programmer meets a psychologist " is equally exciting. Everyone is welcome to click to read it!
What is programming?The essence of programming was to let the computer solve a certain problem on behalf of a certain computing system, and to make the computing system operate according to the calculation method to finally obtain the corresponding result. This process was also a process of communication between humans and the computing system. Humans needed to tell the computer the ideas, methods, and means to solve the problem in a form that the computer could understand, so that the computer could work step by step according to the instructions and complete specific tasks. Furthermore, programming was not necessarily targeted at computer programs. Any system with logical computing power could be considered programming.
" When a programmer meets a psychologist " is equally exciting. Everyone is welcome to click to read it!
programming scratchScratch was a simple graphic programming software developed by MIT. It was programmed in the form of building blocks. It had the feature of visualization, allowing users to quickly create games, stories, animations, tutorial, works of art, and so on. In terms of Scratch programming learning, the learning time for people without a foundation depends on their understanding of programming, which may range from a week to a month. People with a foundation in programming may be able to understand all the content in a week and quickly complete the primary project independently. Learning objectives included mastering the logic of the code area, such as learning the role of time in the program in the event module, learning the use of conditions and cycles in the control module, and many other aspects. After completing these objectives, one could learn Python or C language.
" When a programmer meets a psychologist " is equally exciting. Everyone is welcome to click to read it!
What is programming?" Program " was the short form of programming. The essence of programming was to let a computer solve a problem on its behalf. This process required a specific calculation method for the calculation system to operate in this way to obtain results. In order to achieve this goal, humans had to transform the ideas, methods, and means of solving problems into a form that the computer could understand, so that the computer could work step by step according to the instructions to complete specific tasks. The process of communication between humans and machines was programming. In addition, programming could also be seen as designing a " controllable system " with logical flow. Moreover, programming was not necessarily limited to computer programs. The operations related to systems with logical computing capabilities could also be considered programming.
" When a programmer meets a psychologist " is equally exciting. Everyone is welcome to click to read it!