Halocode LVL 1 DLM Grade 9 Grade 12
Halocode LVL 1 DLM Grade 9 Grade 12
In the future, robots could be in our homes, neighbors’ houses, in offices, malls, on the streets,
and even inside our own bodies. Like from the fictional movie i-robot, a police detective became a
humanoid with a robotic arm.
Today, we are trying to create robots that can perform highly sophisticated tasks that originally,
only a human being can perform with high precision and accuracy. We call them in different names like
robots, androids, humanoids, cyborgs, droids, and actroids. In the next century, these robots will be a
helping tool to anybody, at home, in the hospital, in transport terminals, and other places.
What is a Robot?
A robot is a human-like machine made out of metal, plastic, or steal, that can perform a task or
series tasks automatically based on the programming and environment it was created for. The origin of
the word ‘robot’ can be traced from Karel Capek (1890-1938), a Czech playwright, who used the word
robot referring to forced labor.
Evolution of Robots
10 AD -70 AD
Mechanical Singing Bird was created by Heron of Alexandria from Greece.
1217 – 1379 BC
Water Clock was invented by Amenemhet from Egypt.
1495
The Mechanical Knight known as the First humanoid was designed by Leonardo Da Vinci.
1822
Difference Engine was invented by Charles Babbage as the first calculator.
1961
UNIMATE was created by George Devol and Joseph Engleberger who designed the first
industrial and programmable robot arm.
1980
Wabot II was created by researchers from Waseda University. It was the first full-scale
humanoid robot that had a camera and was programmed to read and play music with its
robotic arm.
1996
Sojourner was created by NASA. It was the first Mars rover that can be operated outside planet
Earth to investigate the Mars habitat.
2000
Honda’s ASIMO was created by Honda in Japan. It was the first robot that could walk and run
independently with relatively smooth movements and could climb up and down the stairs
autonomously.
2016
Sophia was invented by David Hanson. It is a social humanoid robot that interacts with humans
and can display different facial expressions.
The rapid development of robots will soon populate our world, but for robots to be really use-
ful, they need to be self-sufficient. After all, new robots should have more effective functions as time
goes by. Robots would be able to execute new courses of actions through the use of advanced artificial
intelligence.
STUDENT ACTIVITY
Make a timeline showing the evolution and development of robotics. Name the robots and identify
the important events that happened. The first robot has been identified for you.
ROBOTS
Mechanical
Singing
10 AD - 70 AD
created by
Heron of
Alexandria
from Greece
IMPORTANT EVENTS
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description of your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
Chip ESP32
Core Xtensa dual-core 32-bit LX6 microprocessor
CPU Clock Speed 240 MHz
Flash Rom 440 K
RAM 520 K
SPI Flash 4 MB
PSRAM 4 MB
Operating Voltage 3.3 V
Product Dimensions Diameter: 45 mm
Weight 10 g
HaloCode Features:
• Built-in Wi-Fi Modules
Self-contained System On Chip (SOC) with integrated TCP/IP (Transmission Controlled
Protocol / Internet Protocol) that can give access to a Wi-Fi (Wireless Fidelity) Network within
a range.
• LAN Functionality
Local Area Network (LAN) links the device together and provide access to other computers
• Easy IoT Applications
IoT (Internet of Things) is a system of interconnected computing devices through machines
• AI Speech Recognition
AI (Artificial Intelligence) automatic speech recognition understands voice by the computer
that performs an action based on the required task.
• Multi-Thread Programming
Ability of a program to process data with more than one user at a time.
Parts of Halo Code
Identify the parts of HaloCode and write your answers on the space provided.
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description of your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
A Micro Controller Unit or MCU is a small programmable computer on a single integrated cir-
cuit chip that can process and perform data with a small amount of memory.
Microcontrollers are used in different devices that can be controlled automatically –like engines
from automobiles, home appliances, remote control, toys, and other embedded systems.
A microprocessor is a computer processor that controls different functions of a CPU or Central
Processing Unit on a single Integrated Circuit (IC).
Microprocessors are usually found inside in computer attached to the motherboard. They are
also known as the brains of a computer that carry out commands.
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description of your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
The brain of living things receives information through the senses and coordinates with the
other parts of the body for a variety of movements.
Robots, on the other hand, have microcontrollers that interact and give instructions to the sen-
sors and actuators in different ways to adapt to its environment.
Components of a Robot
A typical robot has the following parts:
Controller - is a device that fetches and decodes data interpreted from the memory to form an
action.
Sensors - are devices used for sensing the condition from its environment for effective
performance.
Actuators - are mechanical devices for controlling the movement of an object.
Frames– are materials that hold all the components of a robot.
Being a wireless single board computer, HaloCode has the following parts:
Connecting Pins
Ground
GND
Note: Do NOT connect directly to the power pin.
CONNECTING PINS
Input and output pins can be used for both analog and digital
0-1-2-3
signal.
The four pins can be used for digital and analog input and
output signals. Pin 0-1 are digital pins signals and pin 2-3 are analog pin
signal (values between 0 and 1023).
Power Pin
Ground Pin
The pin labeled “GND” is the ground connector for the addition-
al sensors or actuators connected to HaloCode.
Single Blue Button
HaloCode has a single blue button located in the center of the
board. The button is a sensor which returns a logical value based on its
state:
HaloCode has 12 RGB LEDs in a ring formation. Each RGB LED is made up of three monochrome
LEDs– one of each primary color: red, green, and blue. Combining these three primary colors can create
different colors from the spectrum.
RGB LED
Column A Column B
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description of your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
Robots are able to feel, hear, show balance, and react to its surroundings.
Parts of HaloCode:
Front View
Programmable Button
Motion Sensor
Touch Sensor
MicroUSB Port
Touch Sensor
The four golden colored connection pins are the touch sensors. It is also known as capacitive
sensors that act like a switch. It will activate when touched.
Sound and Voice Sensor
It is a sensor that gives HaloCode the sense of hearing not only for measuring the intensity
of sounds, but also for interpreting it. Using a sound and voice sensor, one can turn on or off the LED
switch one’s voice.
Gyroscope and Accelerometer
A gyroscope is used to maintain the orientation or balance of an object.
An accelerometer is a device that measures the acceleration of an object.
A gyroscopic sensor and an accelerometer allow to measure the angular movement and accel-
eration in 3 axes. The gyroscope range is + -180° on the X axis and + -90° on the Y axis, while the accel-
erometer range is + -8g.
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description of your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
To make your HaloCode serve its purpose, it must be connected to a power supply and operate.
Here are the important apparatuses needed for power supply:
The Micro USB connector assists in loading programs to the memory and to power on your
HaloCode.
USB Connector
The USB connector makes the transfer of files from your computer to HaloCode fast and easy.
Power Supply
The power supply is a device that supplies electrical energy to any electrically powered
equipment.
To operate HaloCode, a 3- or 5-volts battery can be used. The HaloCode board is powered by
3.7 Volts Lipo battery.
Safety
For safety, avoid contact with other components or pins of the board for this can cause damage
to the device.
Secure all connections before turning it ON. Connect the power supply to HaloCode properly to
avoid false contact.
Avoid a close contact between metal screws to prevent short circuit or damage on board. Use
a nylon screw or cord instead. Why is it important to use the right power supply to make HaloCode
work?
STUDENT ACTIVITY
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description of your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
In our daily routines, algorithms are used to help us solve problems or execute actions. Let us
utilize the problem on the right as an example.
It is highly recommended for a programmer to be clear about the algorithm before creating
the program.
A flowchart is a type of diagram that follows a sequence of actions represented by symbols
or figures. A flowchart is useful in solving problems in a step-by-step procedure.
Example:
Below is a flowchart program to show the procedure on how to read the room temperature with a
code.
STUDENT ACTIVITY
You are requested by your mother to prepare hard-boiled egg. Draw a flowchart to show the
procedure of boiling an egg. Use the symbols and words discussed in the module in creating your flow-
chart.
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description of your answer.
2 3 4
I1don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
Makeblock 5 is a scratch-based software program used for coding graphical and textual pro-
gram language.
mBlock is easy to use. With just a click, drag, and drop of blocks, coding and programming can
be completed.
Launching mBlock 5
Editing Area
Red Stage Area: add designs, connect devices, and set sprites and backgrounds
Blue Blocks Area: command blocks are located and are categorized by color
Green Script Area: area where different blocks are placed
Connecting to HaloCode
Complete the table by describing and identifying the icons using your own words.
Icon Name and Description
LESSON 9
COMMAND BLOCKS
Module Objectives
At the end of this session, you should be able to:
identify different command blocks; and,
demonstrate how to control a Sprite character.
Command blocks are designed in different shapes and color which can be connected to each
other vertically like a jigsaw puzzle.
Event Block
Event Blocks and Their Uses
Control Block
Event Blocks and Their Uses
repeats the scripts included in this block a number of times. The default
value is 10.
executes script 1 included in this block if the specified conditions are met. Oth-
erwise, script 2 is executed.
executes the included scripts and stop execution when the specified conditions
are met.
Motion Block
Motion Blocks and Their Uses
makes the Sprite bounce back when it touches the edge of the
stage.
sets the rotation style of the sprite either; left-right, don’t rotate,
or all around
Looks Block
Looks Blocks and Their Uses
displays a speech bubble containing the specified text on the
upper right of the Sprite for the specified period.
displays a speech bubble with the specified text on the upper right
of the sprite.
Sensing Block
Operators Block
Operator’s Blocks and Their Uses
Buildings Fantasy
Plants
Let’s make our Sprite move.
When you click the green flag, the Sprite moves 10 steps for-
ward.
After you click the green flag, the Sprite says “Hello,” waits one
second, and then says “I am a Panda.” (The sprite in this exam-
ple is Panda.)
STUDENT ACTIVITY
Describe the action of the Sprite character based on the given command blocks for each item.
LESSON 10
LIGHTS
Module Objectives
At the end of this session, you should be able to:
manipulate LEDs using command blocks; and,
control RGB LED Lights.
Lighting
The HaloCode consists of 12 RGB LEDs forming a ring shape.
The block itself allows access to a drop-down menu to select one of the available patterns:
Effects: Description
Rainbow All the LEDs light up and a transition of the colors of the rainbow occurs.
All LEDs turn blue and then a group of white LEDs rotates until the
Spindrift
circle is completed.
Similar to the previous one but at a higher speed and two rounds are
Meteor
completed.
Firefly At random, the LEDs are switched on and off progressively.
Show Block
When the “GREEN FLAG” is clicked, the LED ring will
light up in the specified color order.
In this program, when the “GREEN FLAG” is clicked,
the board will show the specified color order of the LEDs
with a waiting sec of 0.5.
This block allows you to turn on all the LEDs by specifying a certain color, saturation, and
brightness. You can also set the brightness, either with a constant value or with a variable.
For more interesting color mixture, try to use this color table.
STUDENT ACTIVITY
Using mBock 5 draw a HaloCode figure with 12 LED lights, create a program to display the specified
color order with its 12 LEDs in sequence.
ASSESSMENT
Create a rainbow color sequence per LED that changes according to your design.
SELF ASSESSMENT
Total /20
LESSON 11
SENSING
Module Objectives
At the end of this session, you should be able to:
utilize command blocks sensing;
determine how to control integrated sensors in HaloCode; and,
create programs using correct sensors of HaloCode.
Motion Sensor
The gyroscopes sensors are suitable for determining instantaneous and small magnitude
turning angle, but they are not suitable for determining angles of rotation over time or of great
magnitude.
This block reports HaloCode’s timer value
(measured in second, rounded to the nearest tenth).
Total /20
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description of your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
Operators are group of blocks that allow mathematical operations, logical operations,
comparisons,and arithmetic function to be applied in coding.
Addition Multiplication
Subtraction Addition
Sample code:
Comparison
These three blocks allow you to compare two variables of the same type. If the comparison
is true, the result is true. Otherwise, it is false.
Assume that the variables to be compared are A and B, the possible comparisons are:
Logical
Logical Block Description Equivalent Value
Operation
check if value A is equal to
A=B A is Equal to B
Value B
check if value A is greater
A>B A is Greater than B
than value B
check if value A is less
A<B A is Less than B
than value B
Sample code:
1 AND 1 = 1 1 1 OR 1 = 1 1
1 AND 0 = 0 0 1 OR 0 = 1 1
0 AND 1 = 0 0 0 OR 1 = 1 1
0 AND 0 = 0 0 0 OR 0 = 0 0
This block allows you to reverse the resulting value of a condition. It corre-
sponds to the “Not” operation of the Boolean in algebra.
Not(1) = 0 Not(0) = 1
1. Write the code based on the problem given, place your answer inside the box.
ASSESSMENT
What is the importance of operators in a program?
Mathematics is all around us. If you will be asked to add, subtract, multiply, and divide something in
your life, what would it be? Why?
LESSON 13
PINS
Module Objectives
At the end of this session, you should be able to:
manipulate command blocks pins; and,
use digital or analog pins of HaloCode.
Connecting pins in HaloCode can be configured either as an input or output and for digital or
analog signals.
Pins 0 and 1 are called digital pins (D) in HaloCode, while pins 2 and 3 are analog pins (A). All
analog pins can be identified from values 62 higher than 512, and digital pins are identified as 1 and
lower values as 0.
Controlled by a PWM (Pulse Width Modulation) signal like a potentiometer, you can con-
trol the 12 LED ring of HaloCode from 0 value to 1023.
Procedure:
1. Connect black wire to GND.
2. Connect red wire to digital pin 0.
3. Connect blue wire to 3.3V.
Code
When the “SPACE BAR” key is pressed, if pin 0 is in
high voltage, all LEDs will light up blue, but if the voltage is
low, all LED will light up red.
Servo Pin
It rotates the servo motor of the specified pin (0, 1,
2, 3) to a specified angle.
Materials Needed: Wiring Connection:
• 1pc. micro servo motor
• connecting wires
Procedure:
1. Connect black wire toGND.
2. Connect red wire to3.3V.
3. Connect yellow wire to digital pin0.
Code
When the “SPACE BAR” key is pressed, it rotates the
servo pin 0 from 0-degree angle to 90-degree angle.
Buzzer Pin
It reads the frequency value and produce buzzing sound of the specified pin (0, 1, 2, 3).
Procedure:
1. Connect black wire to GND.
2. Connect red wire to digital pin 0.
Code
When the “SPACE BAR” key is
pressed, buzzer pin 0 plays at a frequency
of an assigned value with a given length of
time.
STUDENT ACTIVITY
Create the following projects and perform the tasks required. Write your answer in the box.
Project 1: Project Angle Measuring Device Materials Needed:
1 pc. white folder 1pc. protractor 1 pc. HaloCode
1 pc. servo motor 1pc. marker connecting wires
1 pc. masking tape
Procedure
Total /20
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description of your answer.
2 3 4
I don’t really
1 I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
Low Volume (less air pressure) High Volume (more air pressure)
This activity will test the volume of sound using the microphone in HaloCode.
Microphone
STUDENT ACTIVITY
Materials Needed:
1 pc. HaloCode and microphone
Procedure
1. Prepare the HaloCode setup.
2. Sing the notes of DO RE MI then measure the volume of sound using the microphone as the
input source showing in the 12 LED ring of HaloCode as our output display.
3. Regulate the sounds produced to achieve the task given.
Sing the note for DO to maintain only 6 LED lights on for 3 seconds.
Sing the note for RE to maintain only 3 LED lights on for 3 seconds.
Sing the note for MI to maintain only 8 LED lights on for 2 seconds.
Total /20
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description for your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
The color wheel is the basis of color theory. It shows the arrangement of colors from primary,
secondary, to tertiary colors. Mixing colors bring color harmony that is pleasing to the eyes.
Color schemes refer to harmonious color combinations. It may be composed of any two col-
ors opposite each other in the color wheel; any three colors equally spaced around the color wheel
forming a triangle, or any four colors forming a rectangle
Did you know that colors have meanings as well?
Red is the color of fire and blood. It is associated with energy, war, danger, strength, power,
determination, as well as passion, desire, and love.
Yellow is the color of sunshine. It is associated with joy, happiness, intellect, and energy.
Green is the color of nature. It symbolizes growth, harmony, freshness, and fertility. Green has
strong emotional correspondence with safety. Dark green is also commonly associated with
money.
Blue is the color of the sky and sea. It is often associated with depth and stability. It symbolizes
trust, loyalty, wisdom, confidence, intelligence, faith, truth, and heaven
Orange combines the energy of red and the happiness of yellow. It is associated with joy,
sunshine, and the tropics. Orange represents enthusiasm, fascination, happiness, creativity,
determination, attraction, success, encouragement, and stimulation.
Purple combines the stability of blue and the energy of red. Purple is associated with royalty. It
symbolizes power, nobility, luxury, and ambition. It conveys wealth and extravagance. Purple is
associated with wisdom, dignity, independence, creativity, mystery, and magic.
White is associated with light, goodness, innocence, purity, and virginity. It is considered to be
the color of perfection.
Black is associated with power, elegance, formality, death, evil, and mystery.
STUDENT ACTIVITY
This activity will test the mixing of colors using the touchpad in HaloCode.
Materials Needed:
3 pcs. wire
1 pc. HaloCode
masking tape
Procedure:
1. Cut 3 sheets of aluminum foil cut into a square.
2. Attach the individual wires to the aluminum foil using a tape.
3. Attach the end of the wire to the HaloCode.
Sample code:
Task 1: One Touch. Touch the aluminum foil and observe what color is shown.
When touchpad 0 is touched what color lights up?
When touchpad 1 is touched what color lights up?
When touchpad 2 is touched what color lights up?
Task 2: Mixing Colors. Touch the aluminum foil and observe what color is shown.
When touchpad 0 and 2 are combined, what color lights up?
When touchpad 0 and 1 are combined, what color lights up?
When touchpad 1 and 2 are combined, what color lights up?
When all touchpads are combined, what color lights up?
SELF ASSESSMENT
Total /20
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description for your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
A network is a group of devices such as computer systems linked together, for sharing files,
and even for importing and exporting documents.
A network connection involves two or more computers connected either by wire or wireless
connection for transmitting, receiving shared resources and data.
Computer network devices are digital communication devices used for network shared
information between other nodes. Some examples of these are router, hub, modem, and network
data cables.
A router is a device that connects multiple networks and send nodes within the network.
Network data cables are used to connect and transfer information in a form of data be-
tween computers and other network devices in a network. There are different kinds of network
cables: coaxial, fiber optic, and twisted pair cables.
Network Structure
There are different types of networks where devices can be connected to share information.
1. CAN 4. PAN
meaning: meaning:
who uses it: who uses it:
where is it used: where is it used:
2. LAN 5. WAN
meaning: meaning:
who uses it: who uses it:
where is it used: where is it used:
3. MAN
meaning:
who uses it:
where is it used:
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description for your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
The Internet is the information superhighway, also called the “net” – a term popularized in the
1990s. This refers to a digital communication system.
The Internet is a global network of computers across thousands of devices worldwide, from
computers to smartphones, to their communication devices. Anyone can communicate hassle-free from
different services and products. Everything is connected globally to the Internet world.
“The Internet ecosystem is made up of many organizations and communities that help the
Internet work and evolve. The rapid and continued development and adoption of Internet technologies
can be attributed to the involvement of a broad range of people and organizations; open, transparent,
and collaborative processes; and the use of products and infrastructure with dispersed ownership and
control” (Source: Internetsociety.org).
There are lots of advantages with the use of the Internet to society – from information, knowl-
edge, and learning (read, watch, and listen) to music and entertainment. Everybody is updated and
connected through communication and sharing.
Sending emails and instant messages in real-time, together with media websites, are easy and
accessible to everyone. You can search for locations using virtual maps, buying and ordering food and
products, doing e-commerce like buying and selling and making a profit is now possible. You can know
the latest trends in business and commerce anywhere in the world.
Virtual conferencing and classroom settings can be done anywhere as long as one has an Inter-
net connection. Honestly, the Internet is still evolving, which is why we always need to be vigilant and
careful whenever we are online.
Remember to always “think before you click.” Here are some of the negative impacts when one
is irresponsible in using the net.
• cyberbullying • data leakage
• black mailing • destroys lives
• lying to yourself and to • social disconnection
others • cyber crime
• types of internet connectivity
The Internet and Network Connection
A network is a collection of devices used in communication. It makes the sharing of information
possible.
The Internet is based on a two-part networking system called the TCP/IP (transmission control
protocol/Internet Protocol). This allows the exchange information within a network structure.
1. IoT
2. FTP
3. TCP
4. POP
5. HTML
6. IP
7. IORT
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description for your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
Wi-Fi or Wireless Fidelity is a wireless network technology that lies between ra-
dio wave and microwave signals to provide connection to a network device.
Bluetooth is a wireless technology device that allows different devices to link
together and transfer files at a high-speed performance. It uses radio waves signals to
connect to devices like smartphones, laptops, speakers, controllers, and others in a limited
distance.
HaloCode has a built in Wi-Fi and dual-mode Bluetooth module with a low-power system on
a chip microcontroller.
Voice recognition in HaloCode uses Microsoft Cognitive Services. The HaloCode board
records the voice message and sends it to the Microsoft Server that translates the voice into text.
Wi-Fi access should be available to connect HaloCode to the Internet, and the user needs to login to
Makeblock.com account to make it functional.
Note:
You need to use an international account to sign in to the inter-
national community.
3. After signing in, you can manage or publish your projects and use cloud services.
Once connection is established, you can start programming the Wi-Fi blocks.
Sample code:
2. Send the voice file to the Microsoft server to convert into text based on the selected language
(Chinese or English).
It works effectively when all HaloCode boards are connected to the same user account, re-
gardless of the location.
Sample code:
Sample code:
E A C O S T P Q M N O B E W I F I O
P F R P X Z R W A B L V K P L T O X
H G H A O J S B E N L F S P E E D S
S B M L N E T F J K U O E I L N F J
N J O S H G H F H O P E C R E N T A
M F D S T V E M N T E W A Q S W C R
P I U R H S N O P E X Z E T K B L H
L S L S E C U R I T Y S W X P U I W
Q S E N U I W B M L P F R E S T E O
1. cost
2. module
3. range
4. security
5. Wi-Fi
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description for your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
LAN (Local Area Network) in HaloCode is a command block that manages the wireless net-
work between HaloCode boards to exchange messages and data among others.
Sample code:
Sample code:
Sample code:
Do to it, it is recommended that you use a USB cable to connect the device to computer and
update the firmware of the device through mBlock 5 on the computer or web (www.mblock.cc).
2. Open mBlock 5 and connect the device. (You need to start mLink first if you will use mBlock 5 on
the web.)
3. Click “SETTING”, and then click “FIRMWARE UPDATE”. Click “UPDATES” in the dialog box that
appears.
STUDENT ACTIVITY
Materials Needed:
2 HaloCode Boards
Procedure:
1. Work with the group assigned by your teacher (at least 2groups).
2. With your HaloCode, write the code to accomplish the following tasks.
Touch is one of the body senses using hands or other body parts to receive stimuli from the
environment.
Shake is an act of movement from different directions. It may include a rotational or angular
motion.
You can create different sounds using your HaloCode.
Note: Use Sprites tab, to add the music block, click the extension block, and select music.
Task A. Use your creativity to play a music. Task B. Make a HaloCode Steering Wheel Using
the Gyro Sensor.
1. Use the old folder as a base. 1. Use an old CD and place the HaloCode board
2. Get an aluminum foil and cut it into 4strips. at the center.
3. Cut 4 wires and attach one end to the foil and 2. Use a double-sided tape or an electrical tape
the other end to the HaloCode board. to attach HaloCode.
4. Attach the USB cable to your computer and to 3. Connect the USB cable to your computer and
HaloCode. to HaloCode.
5. Run the program and start playing music. 4. Run the program and start playing.
5. Use the code below to make your steering
wheelwork.
Sample code:
You may add a Sprite character that will help you identify the movement when tilting
HaloCode in different directions; left, right, up, and down.
Sprite Airplane
Procedure:
1. Perform task A and B.
2. After you accomplish task A, report to your teacher to have your output checked before
proceeding to the next task.
Guide Questions:
Task A. 1. Describe the sounds produced by your HaloCode.
Task B. 1. Describe the directions of the Sprite in relation to the directions of the steering wheel.
2. What difficulty did you encounter in performing the task?
SELF ASSESSMENT
Student Name:
Activity Name: Touch and Shake
Criteria Description Rate
problem solving skills demonstrated problem solving skills in doing the task /5
understanding followed the step-by-step instructions to complete the task /5
cooperation contributed ideas and supported the team /5
Total /20
LESSON 21
PROJECT: MESH
Module Objectives
At the end of this session, you should be able to:
use of the mesh network; and,
use of the mesh in HaloCode boards.
Mesh network is a type of network topology in which all devices are interconnected in the
same network either through wired or wireless connection.
STUDENT ACTIVITY
Materials:
2 HaloCode boards
A. HaloCode Mesh Network Project Lights On
Procedure
1. Two groups will be combined to perform this task.
2. Wait for your teacher’s instructions (what groups will work by pair).
3. Use the code below and observe the output actions of your HaloCode board.
HaloCode A Code
HaloCode
HaloCode B Code
HaloCode
HaloCode 2
Guide Questions:
1. Describe the output action of your HaloCode when:
b. button is pressed.
SELF ASSESSMENT
Total /20
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description for your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
Voice or Speech Recognition is the ability of a machine to identify words in any format of
language. It is embedded in its system and converts it into machine language to be understood
and executed as commanded.
STUDENT ACTIVITY
Procedure:
1. Copy the given code for HaloCode.
2. Connect your HaloCode via USB cable.
3. Connect your HaloCode to a Wi-Fi access
point before giving a command to your
HaloCode.
4. Upload the program and test.
Guide Questions:
Describe the output actions of your HaloCode after the executing the program.
SELF ASSESSMENT
Total /20
Task B. Project Noise Monitoring Procedure:
1. Two groups will work together for this 5. Connect your HaloCode to a Wi-Fi access
project. point before giving a command to your
HaloCode.
2. Wait for your teacher’s instruction for
the groupings. 6. Upload and run the program.
3. Copy the given code below. 7. Use a battery to power the HaloCode.
4. Connect your HaloCode via USB cable. 8. Observe and analyze the output action
of the two HaloCode boards.
HaloCode A (Outdoor)
HaloCode A (Indoor)
Guide Questions:
Total /20
LESSON 23
PROJECT: WRISTBAND
Module Objectives
At the end of this session, you should be able to:
describe the BAN technologies; and,
use the variable block.
BAN (Body Area Network) is an example of network wireless signal devices with a minimum-
range of that is attached to a human body.
Examples of BAN are the wearable devices like smart health watch and ring. These devices
can monitor user’s heartbeat, blood pressure, motion, sleep, and other information to be sent to your
smartphones connected via Bluetooth or Wi-Fi access point.
Materials:
HaloCode
USB cable
straps
3. Attach the HaloCode to the straps to make a wrist watch like feature as shown in the picture
below.
4. Move your wrist in different directions until a SMILEY face is shown in your display.
Guide Questions:
1. Describe the output of your project.
.
Student Name: Grade/Section
Activity Name: Project Wristband
Criteria Description Rate
problem solving skills demonstrated problem solving skills in doing the task /5
understanding followed the step-by-step instructions to complete the task /5
cooperation contributed ideas and supported the team /5
Total /20
Variables Block
Guide Questions:
1. Describe the output of your project.
Total /20
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description for your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.
Pedometer is a device that counts the steps made by a person. It is sometimes called step count-
er. It detects the movement and tracks different routines.
Pen Block
Pen block is used to enable the Sprite to draw lines or shapes inside the stage area.
To activate the pen block, click the extension in Sprite tab and select pen. Once activated, you
can start drawing shapes and lines with different colors. You may also set pen size to work inside the
stage area.
Procedure:
1. Connect and copy the code to your HaloCode board.
2. Code for HaloCode
3. Upload and run the program.
4. Use a USB Cable to power HaloCode and to read the data.
5. Attach HaloCode to a strap on your risk.
6. Move or walk from side to side and get the reading while
you are moving and resting.
7. Observe and analyze the output action of this project.
Guide Questions:
1. Describe the output of your project.
SELF ASSESSMENT
Total /20
LESSON 25
PROJECT: SMART HOME
Module Objectives
At the end of this session, you should be able to:
describe a smart home; and,
explain the convenience of a smart home.
Smart home is a futuristic home using devices connected to the Internet like IoT that enables
the monitoring and managing of your home. This device keeps you on track for surveillance even
you’re away from home.
Materials:
• 1/8 Illustration Board
• Cutter and Scissor
STUDENT ACTIVITY
3. Cut a hole for the windows and for the garage door.
5. Attach the servo motor inside the garage and stick it at once side of the wall
6. Connect the servo arm at the servo motor with a small hook attached to the servo arm and the
garage door that will be used for opening and closing the garage door.
7. Connect all wires for the servo motor and individually connect to assign pins of HaloCode.
9. Create a roof and place at the top for your smart home.
5. Download and install mBlock App from the Google Play store.
Download mBlock App fromthe Google Play store and install it to your
mobile device to operate your smart home using this app.
6. Using your mobile device, login to your account and open the smart home you save to the cloud
from your computer.
Guide Questions:
1. Describe your SMART HOME.
Total
SELF ASSESSMENT
Total /20
SELF REVIEW
How did you find the activity? Circle the number that corresponds to your answer and write a short
description for your answer.
1 2 3 4
I don’t really I needed a little I need a bit more I was able to help my
understand the help and I got it. practice. classmates and I need
lesson. more challenge.