Professional Documents
Culture Documents
Module in Integration of Science and Robotics Newest - Felix
Module in Integration of Science and Robotics Newest - Felix
Module in Integration of Science and Robotics Newest - Felix
Learner’s Module
First Edition 2019
Republic Act 8293 Section 176 states: No copyright shall subsist in any work of
the Government of the Philippines. However, prior approval of the government agency
or office wherein the work is created shall be necessary for exploitation of such work
for profit. Such agency or office may, among other things, impose as a condition the
payment of royalties.
Writer:
Felix Robert P. Valenzuela
Illustrator:
Felix Robert P. Valenzuela
Philip John P. Valenzuela
2|Page
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
You already know that light is a form of energy that can be reflected or bounce
and even refracted or bend. Light has duality in nature, it can be a particle or a wave.
When you were in Grade 7, you learned that light is a form of electromagnetic wave
which means it can propagate through a vacuum or it doesn’t need a medium like
solid, liquid or even gas. In addition, it is a transverse type of wave which is the
combination of the electric and magnetic field. You also know that color and intensity
of light is related to frequency and wavelength. It was proven during your Grade 8
when you conducted an experiment of dispersion wherein a beam of light strikes the
prism, it bends inside, and dispersed the rainbow colors namely red, orange, yellow,
green, blue, indigo and violet. It was found out during the experiment, colors vary in
wavelength that resulted in red color is the least bend or having the longest wavelength
while violet color is the most bend or having the shortest wavelength. Moreover, the
wavelength and frequency of these deviated colors are different, they deviate
differently at different angles due to the velocity difference of the prism.
In this module, you will learn about the various practical applications of
electromagnetic waves, which is the use of infrared as remote control in controlling the
WeeeMake robot and as line-following sensor to trace the black line of a race track
through fun and exciting learning activities.
3|Page
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
2. Infrared waves that can be used for short range communication have frequencies
between
A. 300 GHz to 700 THz
B. 300 GHz to 800 THz
C. 300 GHz to 100 THz
D. 300 GHz to 400 THz
4|Page
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
4. Where is the location of the IR Receiver Module in the given picture of WeeeMake
ELF Mainboard?
A. 1 sensor C. 3 sensors
B. 2 sensors D. 4 sensors
Interpretation of Score:
Points Description
5 Outstanding
4 Very Satisfactory
3 Satisfactory
2 Fairly Satisfactory
1 Did Not Meet Expectations
5|Page
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
INFRARED
FIGURE 1
Point to Point: It requires a line of sight between the transmitter and a receiver.
In other words the transmitter and the receiver should be pointed to each other and
there shouldn’t be any obstacles between them. Example is the remote control
communication.
Diffuse Point: It doesn’t require any line of sight and the link between the
transmitter and the receiver is maintained by reflecting or bouncing of the transmitted
signal by surfaces like ceilings, roof, etc. Example is the wireless LAN communication
system
6|Page
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
Advantages Disadvantages
• It is secure way of communication as • As it is line of sight, it is difficult to
communication is point to point or line of control things not in line of sight of
sight. It is not feasible for intruder to transmitting IR control device.
come in between and hack the data. • It can control one device at a time.
• IR devices have low power • Maximum data transfer rate is about 4
consumption and hence battery will last Mbps
for longer period. • The device should be kept stable during
• IR devices are less costly. the data transfer mode.
• Hard obstacles (such as doors, walls),
bright sunlight, smoke, dust and fog
affects Infrared communication.
• Even though we cannot see Infrared
waves, it can damage eyes if transmitted
with more signal power.
https://www.rfwireless-world.com/Tutorials/Infrared-Communication-IrDA-tutorial.html
FIGURE 2
IR transmission
The transmitter of an IR LED inside its circuit, which emits infrared light for every
electric pulse given to it. This pulse is generated as a button on the remote is pressed,
thus completing the circuit, providing flow of direct current to the LED.
7|Page
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
IR Reception
The receiver consists of a photodetector which develops an output electrical
signal as light is incident on it. The output of the detector is filtered using a narrow
band filter that discards all the frequencies below or above the carrier frequency (38
KHz in this case). The filtered output is then given to the suitable device like a
Microcontroller or a Microprocessor which controls devices like robot.
IR transmission
IR LED of wavelength 940 nm to 950
nm are commonly used. When we transmit
the data to the IR receiver, at the same time
the IR receiver also receives IR rays from the FIGURE 3
surroundings. These IR rays from the
surroundings can distort the transmitted data. To avoid such surrounding
interferences, IR signal can be modulated with carrier frequencies. The commonly
used carrier frequencies are 30kHz, 36kHz, 38kHz, 56kHz etc.
IR Reception
At receiver end, IR receiver receives data at 38 kHz of carrier frequency. For
IR filter, epoxy package is designed. This module is designed in such a way that any
unexpected output pulses due to noise or disturbance signal are avoided. Generally,
TSOP series Receiver are used which support reception of various transmitted code.
IR remote control module is divided into two parts: infrared emission module
and infrared receiver module. Infrared emission module is mainly used to transmit the
infrared signal, namely remote control, and the infrared signal from different buttons
of the remote control. The infrared receiver module is mainly used to receive the
infrared signal.
8|Page
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
FIGURE 4
FIGURE 5
Practice:
Select the "M-Elephant" role and write the program as shown in FIGURE 6 in
online mode and run it, then you can use the “→” key of the remote control to control
the role to move to the right.
FIGURE 6
9|Page
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
S1
Transmitter and
Receiver
S2
FIGURE 7
Note: The infrared detection of the line-following sensor is different from that of IR remote control. The
former can only be used to detect the quantity of the infrared ray, but the latter can be used to detect
infrared signals.
According to the nature of the line-following sensor, most of the line-following sensors
patrol along the black line. It is because the black color can absorb a lot of infrared
rays. If the line-following sensor is on the black line, it will receive less infrared rays; If
the line-following sensor is not on the black line, it will receive more infrared rays.
Branch structure can be used to judge the situation and make the robot walk along the
line.
10 | P a g e
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
Practice:
Select “M-Elephant” role, write the program in the role as shown in FIGURE 9
and run it in the online mode. Observe the value changes of the line-following sensor
on the different reflective surface.
FIGURE 9
Note:
a. If there is no reading, at first, please check whether it has entered online mode. If yes, please check
whether the line-following sensor has to be connected to port A.
b. You can use a camera to observe whether the line-following sensor can work. Open the camera and
view the line-following sensor. If you see that the little light under the line-following sensor emits purple-
red light, the line-following sensor can work.
Run the program as shown in FIGURE 9, face the line-following sensor to the
black line (electrical tape) and the white line (ordinary reflective surface), as shown in
FIGURE 10 and FIGURE 11 respectively, and observe the changes in the reading.
FIGURE 10 FIGURE 11
Example Program effect: The reading on the black line is 70. The closer to
the black line, the smaller the reading will be. The reading on the white line is 700. The
closer to the white line, the larger the reading will be.
Note: The above reading may fluctuate in a specific range based on different environment.
11 | P a g e
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
Objectives:
1. Understand the principle of IR remote control
2. Write the program of the IR remote-controlled robot
Materials:
WeeeMake Wall-E Robot
IR Remote Control
Computer with WeeeCode
USB download cables
Procedures:
1. Open the Weee Code to your computer.
2. Write the program based on the picture given.
3. Get the Wall-E Robot, connect the USB cable B-1.3m from USB-B port of the
WeeeMake ELF mainboard to your computer, and upload the codes.
12 | P a g e
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
4. Switch on the power switch and try controlling your robot using the IR remote
control.
Note:
1. If the robot does not respond after you press the remote control, please detect two places:
a) Check whether the infrared receiver module is connected to the mainboard port 2. b) Check
whether the infrared emission module can transmit the signal smoothly: press the button of
the remote control, turn on the camera function of the phone, and watch the transmitter of
remote control through the camera. Press the button, and if the remote control can transmit
infrared signals, you can see there is purple- red light in the emission mouth. (Photosensitive
device in a camera can receive a broader spectral range than the human eye, and so it can
take the photos of the infrared ray.)
2. Because infrared ray is propagated along straight lines, the remote control shall be faced
to the robot directly as much as possible in the remote control process.
3. The transmitting distance of the remote control signal is about 10 meters, and try not to
remote control under the intense sun because too strong sunlight will cause interference to
the infrared remote signal.
4. If there is no preset paring ID between the robot and remote control, the situation that one
remote control can control several robots simultaneously will appear. Please pay attention to
avoiding the situation of signal interference of remote controls with your classmates during
testing or practice.
Objectives:
1. Understand the working principle of the line-following sensor.
2. Program to make the robot walk along the line
Materials:
WeeeMake Wall-E Robot
Electrical Tape or WeeeMake Line Following Map
Computer with WeeeCode
USB download cables
Procedures:
1. Master the two kinds of line-following algorithms in the succeeding procedures and
write the program according to the line-following algorithms. There are two line-
following methods in the line-following sensor namely; the black line clamps the line-
following sensor and the line-following clamps the black line. Let’s start.
13 | P a g e
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
3. Write the program for the black line clamps the line-following sensor based on the
picture given.
4. Get the Wall-E Robot, connect the USB cable B-1.3m from USB-B port of the
WeeeMake ELF mainboard to your computer, and upload the codes. Turn on the
power switch and test your robot. Note: You need to adjust the speed of moving
forward and turning according to the actual line-following situations.
5. Let’s try the second algorithm, the line-following sensor clamps black line. Write
the program on the picture given.
14 | P a g e
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
6. Upload the codes. Turn on the power switch and test your robot. Note: The line-
following algorithm of the double-way line-following sensor cannot be used to pass 90°
intersection, such as L shape, T shape, or cross intersection. When in mode 1: two
sensors both leave the black line simultaneously; or mode 2: two sensors both enter
the black line simultaneously, the robot does not know which direction it shall turn to.
If it is not 90° intersection, when the swerving angle is bigger, the proceeding speed
shall be slower. Otherwise, the robot will rush out of the black line easily. In the process
of program test, you can stick the electrical tapes to the white surface table to design
the walking route or use the line following map, and observe whether the robot can
walk along the route.
15 | P a g e
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
Write the program to allow the "1 - 7" buttons of the remote control to control
the different color transformation of RGB LED and 8 - 9 buttons to control the start and
stop the line-following sensor and its reference program. The robot must follow the line
as shown in the figure below. To rate your work, please follow the rubric in the previous
activity.
Key Concepts:
The propagation of infrared can be used for a communication system (for
transmission and reception) of data.
There are two types of Infrared communication the Point to Point which requires
a line of sight between the transmitter and a receiver and Diffuse Point which
doesn’t require any line of sight between the transmitter and a receiver and
maintained by reflecting or bouncing of the transmitted signal by surfaces like
ceilings, roof, etc.
IR Communication system uses through IR Photodiode Receiver or through
modulation.
WeeeMake robot uses infrared ray such as the IR remote control and the line-
following sensor.
16 | P a g e
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
There are two line-following methods in the line-following sensor namely; the
black line clamps the line-following sensor and the line-following clamps the
black line.
17 | P a g e
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
2. Infrared waves that can be used for short range communication have frequencies
between
A. 300 GHz to 700 THz C. 300 GHz to 100 THz
B. 300 GHz to 800 THz D. 300 GHz to 400 THz
4. Where is the location of the IR Receiver Module in the given picture of WeeeMake
ELF Mainboard?
D
18 | P a g e
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
A. 1 sensor C. 3 sensors
B. 2 sensors D. 4 sensors
II. Enumeration
1. List down the two items used in the robot that applies infrared ray. (2 pts)
19 | P a g e
PLEASE INDICATE THE REVISION NO. AND THE VERSION NO. OF YOUR MODULE.
References:
“Wireless InfraRed (IR) TSOP Design Tutorial 1,” Vortex Electrica, accessed
November 22, 2019, http://vortexelectricaz.blogspot.com/2011/10/wireless-
infraredir-design-tutorial-1.html
20 | P a g e