Page 51 - ODV Training outline_EN
P. 51
Despite the approach to microcontrollers involving learning a textual
language like C++, this transition, which can be an initial barrier for some,
can be made very smooth by using resources that allow programming our circuit
with a block-based language similar to those used for coding and robotics. In
some cases, such as Tinkercad Circuits (https://www.tinkercad.com/circuits), it is
even possible to build a digital twin of the circuit and simulate its operation
after programming it with blocks.
However, there is also the option to download the C++ version of the programs to
load it into a dedicated programming environment like "Arduino IDE" and upload
the code to the board to make the circuit work in the real world.
The process of creating a device to perform a specific task using a KIT could be as
follows: choose the component(s) we find useful based on their functionality,
connect them to the microcontroller board following the component
specifications (type of connection, possible presence of other accessory
components like resistors or capacitors), and finally create the program that
executes the instructions to achieve the expected behaviour. All of this can be
done using a digital simulator and a block programming app or by directly building
the circuit and programming it with a language like C++.
For example, if we want to create a device that opens and closes a box, we could
use Arduino and a servo motor. The servo motor will be connected to the board
(if done through a breadboard, we'll have the option to easily add other
components to our prototype), and the entire setup will require a program that
instructs the microcontroller (Arduino) to move the servo motor based on a timing
sequence or certain conditions.
Arduino and servo motor digital Arduino and servo motor real
prototype prototype
Funded by the European Union. Views and opinions expressed are however those of the
author(s) only and do not necessarily reflect those of the European Union or the European
Education and Culture Executive Agency (EACEA). Neither the European Union nor EACEA can
be held responsible for them. Proposal number: 101087107.