2016-10-25 01:30:21 +02:00
|
|
|
# Seismograph Lesson
|
2016-04-29 01:49:57 +02:00
|
|
|
|
|
|
|
Build a seismograph with household materials
|
|
|
|
|
2016-10-25 01:30:21 +02:00
|
|
|
## Topic
|
2016-04-29 01:49:57 +02:00
|
|
|
|
|
|
|
Acceleration & Analog Read Pin
|
|
|
|
|
|
|
|
## Quick Links
|
|
|
|
|
|
|
|
* [activity](/lessons/seismograph/activity)
|
2016-05-12 17:48:10 +02:00
|
|
|
* [challenge](/lessons/seismograph/challenge)
|
2016-04-29 01:49:57 +02:00
|
|
|
|
2016-10-25 01:30:21 +02:00
|
|
|
## Prior learning/place of lesson in scheme of work
|
2016-04-29 01:49:57 +02:00
|
|
|
|
|
|
|
Learn how to **show LEDs** to turn on a LED light pattern on the LED screen. We will be learning basic comments such as show LEDs and pause.
|
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
|
|
|
```cards
|
2016-06-02 06:13:30 +02:00
|
|
|
basic.forever(() => {});
|
|
|
|
radio.sendNumber(0);
|
|
|
|
input.acceleration(Dimension.Strength)
|
2016-10-25 01:30:21 +02:00
|
|
|
radio.onDataPacketReceived(() => {});
|
2016-06-02 06:13:30 +02:00
|
|
|
led.plotBarGraph(0, 0);
|
2016-04-29 01:49:57 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## Objectives
|
|
|
|
|
|
|
|
* learn how to repeat code forever in the background
|
2016-10-25 01:30:21 +02:00
|
|
|
* learn how to display a vertical bar graph based on the value.
|
2016-04-29 01:49:57 +02:00
|
|
|
* learn how to return the sum of the two numbers
|
2016-10-25 01:30:21 +02:00
|
|
|
* learn how to get acceleration value in milli-gravitys
|
2016-04-29 01:49:57 +02:00
|
|
|
* learn how to read the connector value as analog as a value comprised between 0 and 1023
|
2016-08-10 14:44:10 +02:00
|
|
|
|
|
|
|
```package
|
2016-10-23 06:29:31 +02:00
|
|
|
radio
|
2016-08-10 14:44:10 +02:00
|
|
|
```
|