A software toolkit for the Raspberry Pi Sense Hat to enable us to detect when a train is passing overhead.
Currently doesn't do that and simply displays the accelerometer data on the RGB matrix display.
Clone the repo then simply run
$ python sensetrain.py high
To enable high sensitivity readings to be displayed.
From picking it up and shaking it around:
From knocking on the table next to it:
Accelerometer data displayed on the RGB matrix
-
[Raspberry Pi] (http://bit.ly/2nyBJ3V)
-
[Raspberry Pi Sense Hat] (http://bit.ly/2nE67L2)
A solution based on the ubiquitous NodeMCU (ESP8266 arduino compatible wifi enabled board) with ADXL335 accelerometer module should come in ten times cheaper.
Untested code in the arduino folder.
-
[NodeMCU] (http://ebay.eu/2nS6hzd)
-
[Accelerometer module] (http://ebay.eu/2nEpPqb)