Topic outline
ACTIVITY DESCRIPTION
The activity consists of developing a speed radar. The mBot will act as a speed radar. It will detect a vehicle circulating ahead of it and it will measure its speed. For this purpose the mBot will use a distance sensor.
It will be able to calculate the speed, (cm/s), to which an object moves.
In first version, it used an Arduino Uno board.
In second version, it is created exclusively with the mBot hardware. It also proposes the conversion of cm/s to km/h, since it is a unit of measure more recognizable by the students.
FIRST VERSION (with Arduino)
The speed radar will calculate the speed, in cm/sec, at which an object moves. In this case it will be a toy car. The speed will be calculated through the Arduino ultrasonic sensor.
First of all, we create the Arduino structure and connect the sensors.
- Connect LCD Display to Arduino Shield:
- Connect the Ultrasonic Sensor to Arduino Shield:
- Create the Radar Structure:
We left some example images:
SECOND VERSION (without Arduino)
The students' work is to know the mathematical formula relating speed, space and time and with the teacher's help, create the flowchart and develop the code that allows the mBot work as a speed radar.
The variable "space" will be obtained by the difference in between two measured distances. The variable "time", will be the gap of time between those two measurements.
The speed radar will remain in standby mode, until a "vehicle" passes in front of it. At that time, it will calculate the speed of the vehicle and display it on the 7-segment display. (It will be calculated in km/h).
ACTIVITY RESOURCES
Folder: 1File: 1