To solve any “problem” it is necessary to supply the computer with the instructions to be executed and the data on which the instructions must operate.
The sequence of operations to be performed to achieve the result required by a problem is called an algorithm.
The algorithm instructions must be converted into a machine-understandable code (encoding) to conveniently communicate with a computer, .
The result of the translation of the instructions is called a program (or code).
We need to pass through several phases to create a new program from scratch. Each phase consists of an activity to carry out, the results to be achieved and the controls to be performed.
The creation steps of a program are defined as logical design, implementation and testing.
The first phase mentioned consists in facing the problem through a careful analysis, identifying the fundamental characteristics and the elements involved. The analysis highlights the most important aspects. The analysis builds a generalized model of the problem, a simplified form of representation of the target to be reached.
The problem solving process consists essentially in acquiring the available data (input or input data) and processing them to produce a result (output data or output) after a transformation.
In Arduino the code to be implemented resembles a problem posed in its general terms, and it is necessary to proceed with a detailed analysis of the activities to identify the objectives, find the necessary data and build a formalized resolution procedure.
Usually, the following steps are taken to solve a problem:
- Identification of the goals
- Construction of the model of the problem
- Search for the available data
- identification of the resolution process
- Build of the algorithm
- Execution of the algorithm
- Communication of the results obtained after execution
The term algorithm comes from mathematics and indicates the rules, or in general the operations to be performed, to execute a calculation or solve a problem. It derives from the name of a 9th century Arab algebraist named Al-Khuwarizmi.
The algorithm is the description of a finite set of instructions, which must be performed to complete a given task and to achieve a result defined at the outset.
The arduino programming language is the language that is used to translate the algorithm into a form understandable to the PC (the executor). The result of this translation is called a program. A program is therefore a series of instructions written in a specific programming language.
Follow us to keep yourself updated with the news!