Attempting to rig up a few vibration sensors to do a couple things - see what if any vibration the tools get and see if we can correlate data with NetworkRail data feeds which are confusing so correlations should highlight what data is relevent. We can then show some kind of warning (flashing light or similar) before a train goes overhead, so we know we’re about to be interrupted.
I scrounged a RPi and Sense Hat so prototyped using that. May shift over to an ESP and accelerometer breakout in the future although that will mean porting all my code
Not really played with accelerometers before but they are supersensitive, quickly had it dumping samples to a csv file and a quick graph shows promising results:
From picking it up and shaking it around:
From knocking on the table next to it:
This shows that we can pick up vibrations through solids quite well (each spike was one of my knocks) so we should be able to pick up a train.
So refreshed my rusty python and made it so the accelerometer data is displayed on the RGB matrix (no video not allowed ):
github repo:
Next steps is to strap it to one of the threaded bars coming out of the ceiling as these are going to vibrate the most when a train is overhead and be mostly isolated form what is going on in the space, and then filter / analyse our data suitably and hopefully get a Train: True/False output reading… Help on that front is welcome
I’m also using a makerspace PEG DHCP for this project while I prototype, so thanks @jonathanjo for setting that up super useful!