G6 - Unit 8 - Robotics and Animation
G6 - Unit 8 - Robotics and Animation
Learning Objectives
Learners will learn to:
understand the basics of Arduino board and how it can be integrated to build
circuits
Vocabulary
Arduino
microcontroller
Let Us Start
1
Get, Set, Go
8.1 Introducing Tinkercad Circuits
Tinkercad allows us to create virtual electronic circuits and test them. This is called
simulation. It allows you to create simple to complex circuits and test them before
Step 3: Select the Circuit option. The Tinkercad Circuits workspace appears as shown.
2
8.2 Components of Tinkercad Circuits
The Circuits workspace in Tinkercad is similar to that of 3D design workspace.
In addition to the regular options, it contains tools for creating and testing
circuits. These are listed below.
Workspace
It is the area where the electronic components and 3D objects are placed.
Rotate
It is used to rotate the selected component placed on the workspace.
Wire color
It is used to change the colour of the wires used to connect the components in
a circuit.
Wire type
It is used to select the type of wire used to connect the different components
in a circuit.
Start/Stop Simulation
It is a toggle button that is used to test the working of circuits and
components.
3
8.3 Components
An electronic circuit is built using different components.
Circuit Assemblies
Circuit assemblies are simple, pre‐made circuits that can be incorporated into
3D designs. Some available circuit assemblies are the glow circuit, move circuit
and spin circuit.
Arduino
Arduino is an open‐source platform that helps to build electronic projects. It
consists of both hardware and software. The Arduino hardware is a
programmable circuit board called a microcontroller. You can tell the board
what to do by sending a set of instructions through code to the
microcontroller. Arduino software is an IDE (integrated development
environment) through which developers write and upload the code to the
microcontroller. The Arduino boards can read inputs such as a light on a
sensor, a finger on a button, or a Twitter message and turn them into outputs
such as activating a motor, turning on an LED, publishing something online, etc.
4
Micro Bit
1. USB connector - The Arduino board can be powered by using the USB cable
from your computer. Connect the USB cable to the USB connector to set up a
connection.
5
2. Power port - The boards can be powered directly from the mains power
timing for the microcontroller. Its stability and accuracy influence the reliability
system.
5. Reset switch - You can reset your Arduino board, i.e., start your program from
the beginning.
6. Digital and Analog Pins - Arduino boards come with a set of digital and
analog input/output pins that can be used to connect sensors, LEDs, motors,
7. Microcontroller - Each Arduino board has its microcontroller. You can assume
indicators that show the communication activity between the Arduino and
9. USB interface chip - The USB interface chip on certain Arduino boards
Arduino boards can read analog or digital input signals from different sensors
and turn it into an output, such as activating a motor, turning LED on/off,
6
You can control your board functions by sending a set of instructions to the
Arduino does not need an extra piece of hardware in order to load a new code
Step 3: From the components panel, find and drag an Arduino board, LED and
Step 5: Click the "Start Simulation" button to run your circuit. Tinkercad will simulate
Step 6: Click the Code button to see the corresponding code for the Arduino.
USB cable
7
Using PictoBlox
PictoBlox is a programming software based on Scratch 3.0; hence, its basic
Download PictoBlox
Use the link https://thestempedia.com/product/pictoblox/download-pictoblox/ and
choose the appropriate Operating System (Windows, macOS, Linux) to download it.
Step 3: Connect your Arduino Uno to your computer using a USB cable.
Step 4: Select the appropriate serial port. Click on the Upload Firmware button.
8
Step 5: Once uploaded, disconnect the USB cable.
Follow the procedure given below to interface Arduino Uno with PictoBlox.
Step 2: Go to the toolbar and click on the Board menu. Select Arduino Uno.
In doing so, the Arduino Uno, Actuators, Sensors, Display, and Dabble extensions will
Step 3: Click on the Connect menu and from the fly-out menu, select the Port. Once
you select the port, the icon beside the Connect tab will become connected.
9
Setting up the project
Step 1: Go to My Blocks palette. Click on Make a Block button. Type Red into the
Step 4: Similarly, create the custom blocks to Green and Blue LED and create the
script as shown.
10
Step 5: To create the main script, drag and
11
Assembling components
Step 1: Gather the hardware components and assemble it as shown.
Step 2: Connect the Arduino board to the computer using USB cable.
Step 3: Upload the code from PictoBlox to the Arduino Uno board.
Step 4: Change the Wait time to make the LED blink fast or slow.
Resources
https://ai.thestempedia.com/docs/pictoblox/pictoblox-tutorials/getting-started-with-pictoblox/
Reference Material
https://www.youtube.com/watch?v=VfsOv1Hdmzo
12