I think some accelerometers have various filters that you can apply to the acceleration value, but mostly they're filtering out the high frequency stuff.
I guess it's just a matter of hitting the datasheets, but SPI accelerometers should be relatively fast for Espruino to access...
The other option is to use an analog accelerometer and either come up with some analog circuitry, or use Espruino's Waveform class to sample the value 1000 times a second or so, and to then iterate over the returned buffer finding the highest value.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think some accelerometers have various filters that you can apply to the acceleration value, but mostly they're filtering out the high frequency stuff.
I guess it's just a matter of hitting the datasheets, but SPI accelerometers should be relatively fast for Espruino to access...
The other option is to use an analog accelerometer and either come up with some analog circuitry, or use Espruino's Waveform class to sample the value 1000 times a second or so, and to then iterate over the returned buffer finding the highest value.