Sunday, October 09, 2011

XO-1.75 seismograph

A seismograph program which uses the accelerometer of the OLPC XO-1.75 laptop

The x,y,z accelerometer readings are saved in boxes x,y,z. Action 1 computes long term averages for these readings, (boxes a,b,c), 5% of the current reading is added to 95% of the long term average to compute a new long term average.

Action 2 determines a threshold of random noise which is ignored. It sums the squares of the deviation from average (x-a)^2 + (y-b)^2 + (z-c)^2 . If this figure exceeds 10, the screen is turned red to indicate that an event is occuring.

Action 3 prints the sum of the squares of the deviations and the x,y,z deviations.

Project source

  • When an event occurs, graph the 3 channels (a)
  • Save the 3 channels events with a time stamp for exporting into a spreadsheet (b), (c)
  • Set up a network of laptops, an event is considered to have occured if all register it. (Use turtle position to share data)

Labels: , , ,


Post a Comment

<< Home