Plotting Sound Level
This example demonstrates how to make a graph of a variable or sensor input. In this example we use the microphone sensor in the PC.
This program consists of an infinite loop which again and again adds a data point to the graph. The data point is a measurement of the sound level from the PC's microphone (remember to turn on the PC's microphone).
A time-series plot is created in the interface. Here is one example with a high sound after 17,5 seconds:
Press the red stop button to terminate the program.
Get blockly source code here.