pxt-calliope/docs/reference/js/lessons/zoomer.md
2016-04-13 08:27:45 -07:00

96 lines
3.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# zoomer lesson
measure the acceleration on the micro:bit in the "z" direction.
### @video td/videos/zoomer-0
## Topic
Acceleration
## Quick Links
* [activity](/lessons/zoomer/activity)
* [challenges](/lessons/zoomer/challenges)
* [quiz](/lessons/zoomer/quiz)
* [quiz answers](/lessons/zoomer/quiz-answers)
* [tutorial](/lessons/zoomer/tutorial)
## Class
Year 7
## Prior learning/place of lesson in scheme of work
Learn how to get the **acceleration**, `input->acceleration` in one of three specified dimensions. We will be learning how to get the acceleration using a forever loop, local variables, input on button pressed, as well as simple commands, such as show number and pause.
## Documentation
* **forever** : [read more...](/reference/basic/forever)
* **local variable** : [read more...](/reference/variables/var)
* **acceleration** : [read more...](/reference/input/acceleration)
* **if** : [read more...](/reference/logic/if)
* **button is pressed** : [read more...](/reference/input/button-is-pressed)
* **show number** : [read more...](/reference/basic/show-number)
## Objectives
* learn how to repeat code in the background forever
* learn how to create a variable to store data
* learn how to get the acceleration value (g-force), in one of three specified dimensions
* learn how to pause your code for the specified number of milliseconds
* learn how to conditionally run code depending on whether a condition is true or not
* learn how to get the state of an input button
* learn how to show a number on the LED screen
## Progression Pathways / Computational Thinking Framework
#### Algorithms
* Designs solutions (algorithms) that use repetition and two-way selection, ie if, then and else.(AL)
* Uses logical reasoning to predict outputs, showing an awareness of inputs (AL)
* Shows an awareness of tasks best completed by humans or computers (EV)
* Designs solutions by decomposing a problem and creates a sub-solution for each of these parts. (DE) (AL) (AB)
* Recognises that different algorithms exist for the same problem (AL) (GE)
* Represents solutions using a structured notation (AL) (AB)
* Can identify similarities and differences in situations and can use these to solve problems (pattern recognition)(GE)
#### Programming & Development
* Creates programs that implement algorithms to achieve given goals (AL)
* Declares and assigns variables(AB)
* Uses post-tested loop e.g.until,and a sequence of selection statements in programs,including an if,then and else statement(AL)
* Understands the difference between, and appropriately uses if and if, then and else statements(AL)
* Uses a variable and relational operators within a loop to govern termination (AL) (GE)
* Uses a range of operators and expressions e.g. Boolean, and applies them in the context of program control. (AL)
* Selects the appropriate data types(AL) (AB
#### Communication Networks
* Demonstrates responsible use of technologies and online services, and knows a range of ways to report concerns Understands how search engines rank search results (AL)
#### Information Technology
* Collects, organizes, and presents data and information in digital content (AB)
* Makes appropriate improvements to solutions based on feedback received, and can comment on the success of the solution (EV)
* Recognises ethical issues surrounding the application of information technology beyond school.
Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algorithmic Thinking; EV = Evaluation; GE = Generalisation
## Activity
* time: 20 min.
* [activity](/lessons/zoomer/activity)
* [tutorial](/lessons/zoomer/tutorial)
* [quiz](/lessons/zoomer/quiz)
## Extended Activity
* time: 20 min.
* [challenges](/lessons/zoomer/challenges)
## Homework
* Extended Activity: [challenges](/lessons/zoomer/challenges)