Projects / Ideas / Blue Pill shock logger

Blue Pill shock logger

IntermediateTest & MeasurementIdeaReviewed
In short

How do you build a blue Pill shock logger?

A Blue Pill reads a LIS3DH accelerometer at a fast rate and logs the peak acceleration of knocks and drops to a microSD card with a time stamp from the board's counter. You need STM32 Blue Pill (STM32F103C8T6), LIS3DH accelerometer, MicroSD Card Module and Breadboard 830 Tie Points.

Level
Intermediate
Time
About 190 min
Parts
4
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Record the size of knocks to a card.

How to build it

  1. Wire the sensor on I2C
  2. Set a fast data rate
  3. Detect a peak above a threshold
  4. Wire the card module over SPI
  5. Append the peak and time to a file

Related projects

Common questions

What parts do I need for the blue Pill shock logger?

STM32 Blue Pill (STM32F103C8T6), LIS3DH accelerometer, MicroSD Card Module and Breadboard 830 Tie Points.

How long does the blue Pill shock logger take to build?

About 190 minutes for a intermediate maker.