bài 7: Lập trình robot giáo dục KC-Bot đi theo vạch sử dụng cảm biến hồng ngoại

Kidscode STEM
12 người theo dõi
18 thg 11, 2023
---------- ★ ----------
* Website: http://kidscode.edu.vn/
* Email: [email protected]
* Hotline: 0888 424 222.
---------- ★ ----------
Today, we are going to use the outdoor experience to make a robot track
Before we start, let's watch a clip
about the outdoor experience in a real calculation
This clip was shot at night with an outdoor camera
The question is, why can people see places?
In fact, these are living bodies in the dark
The reason is that our living body will emit waves
These are the waves we see
It is called the infrared wave
So we can observe
In this slide, you can see that
the light will spread from very short waves
bring high energy to long waves
and bring lower energy
It is because our living body emits waves that we do not see
It is called infrared
There is a definition of infrared
Infrared is an electromagnetic wave with a wavelength longer than the light
but shorter than the wavelength of the infrared
In the chart, you can see that it is in the middle
Infrared is known as nona
It is outside the red line
The red line is the color in the light
So it is outside the red line
Infrared is a thermal infrared camera
It absorbs the heat emitted by the living body
The place with the highest temperature
The thermal spectrum is the brightest
These are the applications you have just seen
This is the definition of infrared
It is called
It absorbs infrared in an active way
Active means that I must have the source of infrared
If I don't have the source of infrared, I can't absorb it
This is one type
There is another type
It is called positive
What does positive mean?
I will get the active source of infrared
I will see how the change of the active source of infrared changes
From there, I can deduce what it absorbs or radiates
at different levels
This is one type
It is called
It absorbs infrared in an active way
The other type is called active
What we will apply in the robot is the active source
The application of infrared is also used quite a lot
It will be used in the military
Military is used a lot
As you can see in cameras
It will be indispensable
The source of infrared to observe objects at night
Similarly, there is another application
It is applied in astronomy
To observe from a distance in the night sky
There are many applications
From the general principle of infrared
Let's go to the specific example
It is a robot
It is equipped with an infrared sensor
Sorry, it is equipped with a module
It is not a sensor
I will analyze this module
This module of the infrared sensor of the robot
There will be 4 pairs of eyes
If you look at the direction I point
The pair on the left is A5
The pair on the right is A7
The pair on the right is A6
The pair on the right is A4
Maybe you will have a test later
Before you make a robot
You should test again
To see if my information is correct
Maybe it is wrong
The solution is
You read the value at A5
You suspect that A5 is in this position
You just read
First, you put the white paper in
See how much it reads
Then you put the black tape in
See how much it reads
If there is a clear change
I am reading correctly
This eye is A5
Similarly
I suspect this is A7
I put A7 in the white paper position
I read
Then I put the tape in the position of A7
I read
See if my value is correct
Or my A7 is here
If you put white paper and black paper
This eye does not change
I suspect this is A7
So you have to set it to the correct position
Then I can do it
That is the module
The module that uses the external sensor
For you to apply
Now let's see how it works
First, we will analyze the image on my slide
As you can see
On a board
They must have drawn a path for the robot to go
On a board
I assume
The path is
