pxt-calliope/olddocs/lessons/seismograph.md
Tom Ball f4eca66648 move lessons out of web site
will move select lessons back to "educators" section
2016-06-14 11:49:58 -04:00

940 B

Seismograph Lesson

Build a seismograph with household materials

Topic

Acceleration & Analog Read Pin

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

basic.forever(() => {});
radio.sendNumber(0);
input.acceleration(Dimension.Strength)
radio.onDataReceived(() => {});
led.plotBarGraph(0, 0);
radio.receiveNumber();

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