Understanding of the difference between block-based coding and text-based coding
First of all, we will look at the difference between block-based coding and text-based coding by making a simple device, a thermo-hygrometer, as an example. Arduino device-making process can be divided into hardware production and software production.
Hardware: The process of connecting the Arduino board and the sensor (The simple structure of the Arduino board was learned in the basic course earlier.)
Software: The process of creating a design for how a physically constructed circuit will operate.
A detailed production practice will take place in Project 1. Here, we will focus on the difference between block coding and text coding.
The hardware manufacturing process is no different from block coding or text coding. This is because coding is the process of creating 'software'.
DHT11, a temperature and humidity sensor, is connected to the I/O port of the Arduino UNO board as shown on the right.
For text coding, software called Arduino IDE (Integrated Development Environment) is mainly used.
Coding in a programming language called 'Arduino C'. It is rather difficult because you need to know programming language syntax.
mBlock is mainly used for block coding. mBlock is a development tool that allows programming of physical computing such as Arduino, very similar to Scratch.
Just assembling the blocks as above, the same text code as on the left is automatically created.
Even if you do not know complex programming syntax, you can code intuitively through blocks.
mBlock 5 is a development tool that helps you easily code for Arduino without complex text coding.
You can develop software to be mounted on Arduino simply by assembling blocks.
mBlock 5 is very similar to Scratch. However, unlike Scratch, mBlock 5 enables physical computing development.
In the next page, we will make a thermo-hygrometer with block-coding through mBlock 5.