Difference between revisions of "Spike Prime - Measuring Speed"

From RoboWiki
Jump to: navigation, search
m
m
Line 1: Line 1:
== Topic ==
+
== Let's begin ==
  
 
Lucky drivers who have never paid a speed ticket. Unlucky people who's been hurt by those who were not able to control their speed. Automatic speed control systems help keep the roads safe. In this exercise, we will build a simple vehicle and a speed measuring sensor module. We will experiment with measuring speed in different ways.
 
Lucky drivers who have never paid a speed ticket. Unlucky people who's been hurt by those who were not able to control their speed. Automatic speed control systems help keep the roads safe. In this exercise, we will build a simple vehicle and a speed measuring sensor module. We will experiment with measuring speed in different ways.
 +
  
 
== Build ==
 
== Build ==
Line 29: Line 30:
 
* [[Media:spike_measure_speed_vehicle.io|vehicle (stud.io)]]
 
* [[Media:spike_measure_speed_vehicle.io|vehicle (stud.io)]]
 
* [[Media:spike_measure_speed_model_hub_and_sensor.io|sensor module (stud.io)]]
 
* [[Media:spike_measure_speed_model_hub_and_sensor.io|sensor module (stud.io)]]
 +
  
 
== Program ==
 
== Program ==
Line 36: Line 38:
  
 
Download: [[Media:measure_speed.llsp|measure_speed.llsp]]
 
Download: [[Media:measure_speed.llsp|measure_speed.llsp]]
 +
 +
The vehicle should start in a distance > 120 cm. After the program is started, it starts counting 5,4,3,2,1... giving you 5 seconds to get ready. After that, it waits for the arrival of the vehicle. Next, each time vehicle enters area that is closer than 110, 80, or 50 cm respectively, it measures the time it takes the vehicle to travel 30cm. These times are stored to variables t1, t2, t3.
 +
 +
The speed of travel in each of the three segments is calculated using the formula '''v = s / t'''.
 +
 +
Finally the avarage speed over the three segments is calucated and shown on the hub display.
 +
 +
On the computer screen, in the section with variables, you can see the values of all the variables.
 +
  
 
== Measure, analyze, think ==
 
== Measure, analyze, think ==
Line 48: Line 59:
 
[[Image:spike_measure_speed_variables.png|result of measurement]]
 
[[Image:spike_measure_speed_variables.png|result of measurement]]
  
* Perform the measurements and discuss in your group what has happened.
+
* Perform measurements with your model and discuss in your group what has happened.
 +
 
  
 
== Explore and modify ==
 
== Explore and modify ==
Line 54: Line 66:
 
* Modify the program so that it will measure the maximum speed instead of the average
 
* Modify the program so that it will measure the maximum speed instead of the average
 
* Modify the model so that it will be propelled by motors, and make a program to move in constant velocity, then repeat the measurement
 
* Modify the model so that it will be propelled by motors, and make a program to move in constant velocity, then repeat the measurement
 +
  
 
== Present ==
 
== Present ==
  
 
* Prepare a short presentation for the group. Tell others about how your measurement went, what issues did you have to solve. What do they mean and why did they happen?
 
* Prepare a short presentation for the group. Tell others about how your measurement went, what issues did you have to solve. What do they mean and why did they happen?
 +
  
 
== Additional resources ==
 
== Additional resources ==

Revision as of 18:06, 10 February 2020

Let's begin

Lucky drivers who have never paid a speed ticket. Unlucky people who's been hurt by those who were not able to control their speed. Automatic speed control systems help keep the roads safe. In this exercise, we will build a simple vehicle and a speed measuring sensor module. We will experiment with measuring speed in different ways.


Build

Model:

model of measuring station model of vehicle

Pictures:

sensor module vehicle vehicle

Building instructions:

Download building instructions:

Download stud.io model:


Program

Initialization - counting before start Measuring, calcuation, and display

Download: measure_speed.llsp

The vehicle should start in a distance > 120 cm. After the program is started, it starts counting 5,4,3,2,1... giving you 5 seconds to get ready. After that, it waits for the arrival of the vehicle. Next, each time vehicle enters area that is closer than 110, 80, or 50 cm respectively, it measures the time it takes the vehicle to travel 30cm. These times are stored to variables t1, t2, t3.

The speed of travel in each of the three segments is calculated using the formula v = s / t.

Finally the avarage speed over the three segments is calucated and shown on the hub display.

On the computer screen, in the section with variables, you can see the values of all the variables.


Measure, analyze, think

  • Make your own recording

Example result of measurement:

result of measurement

  • Perform measurements with your model and discuss in your group what has happened.


Explore and modify

  • Modify the program so that it will measure the maximum speed instead of the average
  • Modify the model so that it will be propelled by motors, and make a program to move in constant velocity, then repeat the measurement


Present

  • Prepare a short presentation for the group. Tell others about how your measurement went, what issues did you have to solve. What do they mean and why did they happen?


Additional resources