Lesson Modules
Teaching Tips:
A quick review of sine and cosine equations
Remind the students the sine and cosine equations as below.
{latex{\begin{align}y&=a \cdot sin(bx)+c\\y&=a \cdot cos(bx)+c\end{align}}latex}
where a is amplitude, b is frequency, and c is about horizontal shift.
Show the students the sine/cosine pattern (graph) on the road.
Note the grid on the surface that will help them make measurements.
Share the word cloud results with the student and have a quick discussion about the common answers.
--> The students might say one road has a curvier and/or wider zigzag.
The learning concept of this lesson is
1. amplitude
2. frequency
3. horizontal shift
An autonomous car needs to drive on a curved road. Look at the two images to compare.
What is the difference between the two roads above? Choose two factors. Type one factor for each question. You should answer using only ONE word.
Teaching Tips:
Students can do this activity individually or in a small group.
At the end of this module, have the students answer the questions. You have access to the students' input in the dashboard.
You can use this time as a teaching moment or review time for the amplitude, frequency, and vertical/horizontal translations.
Use the slide bars to adjust amplitude (a), frequency(b), and the vertical shift(c) to find the curve that the autonomous car can follow.
For now, don't worry about formula or how to calculate the period & frequency. Just focus on the relationships between the a, b, and c variables and the amplitude, period, horizontal shift and look of the graph.
Note: If you don't see the curve, click on the road and try to move a little bit.
Teaching Tips:
Guide the students to write and verify their equations on the simulation first.
Before the students start programming Scratch, help them to think through the order of the statement.
Print out this material for each group.
Cut each item of blocks so the students can place them next to the statements.
Show the answer in the class view.
Have students program Scratch.
Have students run the autonomous car, observe how the car moves, and answer the questions.
Simulation
Now that we understand how sine graph works, it's time to make our car drive on the road!
Note that you can generate new road patterns by clicking the Randomize button!
Direction:
- See the curvy road and imagine where the car should move on.
- What should the amplitude (a value) of the curve be?
- What should the period of the curve be?
- What is the frequency (b value) of the curve?
Hint: to calculate b value, use the formula {latexinline{ b=\frac{2 \pi}{period} }latexinline}.
- Use the amplitude and the frequency of the curve to write an equation.
- Use the slides below for a, b, and c values to check your answer.
y=sin(x) +
- Rotate View
- Move Camera
- Zoom In
Program the Autonomous Car
Print out this material. Cut each item of the blocks to match to the statement.
Do not look at the answer before you try.
Check the answer below and correct yourself.
A. Go with a certain power (speed) at a certain steering angle. | |
B. Continue for a certain interval time. | |
C. Go with the same power (speed) at a different steering angle. | |
D. Continue for the same interval time. | |
E. Repeat step C & D for a certain number of times. |
Now, open the Scratch from Orchestra program to try the blocks. If you don't have the Orchestra program on your computer, download it from here.
Next, connect your autonomous car to your computer. Make sure you choose the right ID number of the device to avoid conflicts with another team.
1. Bluetooth | 2. Orchestra | 3. Scratch |
Connect your autonomous car to your dedicated computer via Bluetooth. | Open Orchestra and connect your robot to the program. | Open Scratch from Orchestra |
Run your code on the autonomous car. Did the car move as you expected? If not, discuss with your team members and fix your code as needed.
Observe how the car moves and answer the following questions.
Teaching Tips:
To avoid confusion, this lesson mentions only the frequency. If the students are ready, then introduce period vs. frequency.
Check your knowledge on each concept.
- Not at all
- Not really
- Kind of understood
- Pretty much understood
- Totally got it
- Not at all
- Not really
- Kind of understood
- Pretty much understood
- Totally got it
- Not at all
- Not really
- Kind of understood
- Pretty much understood
- Totally got it
- Not at all
- Not really
- Kind of understood
- Pretty much understood
- Totally got it