Seismograph Lesson
Build a seismograph with household materials
Topic
Acceleration & Analog Read Pin
Quick Links
Prior learning/place of lesson in scheme of work
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
forever
Repeats the code forever in the background.
sendNumber
Broadcasts a number over radio to any connected micro:bit in the group.
acceleration
Get the acceleration value in milli-gravitys (when the board is laying flat with the screen up, x=0, y=0 and z=-1024).
onReceivedNumber
Registers code to run when the radio receives a number.
plotBarGraph
Displays a vertical bar graph based on the `value` and `high` value.
Objectives
- learn how to repeat code forever in the background
- learn how to display a vertical bar graph based on the value.
- learn how to return the sum of the two numbers
- learn how to get acceleration value in milli-gravitys
- learn how to read the connector value as analog as a value comprised between 0 and 1023