Just as airplanes have long used the idea of the "black box" that logs all of the flight data in case something goes wrong, our LuggageLogger device provides similar utility for your luggage. The LuggageLogger can record bumps, rolling, and pressure changes, so it's never a mystery as to how carefully your personal belongings were treated on the way to their destination.

What it does

The device logs accelerometer, gyroscope, and barometer data to a USB drive. The USB drive can then be plugged into a computer where our javascript program can output easy-to-read charts with all of the logged information for the user to read and interpret.

How we built it

After working out our design, we soldered an accelerometer, gyroscope, and barometer to a prototyping board. We were then able to connect that prototyping board directly to the GPIO pins of our Arduino Leonardo. Since we didn't have an SD or USB shield for the Arduino, we connected the Arduino directly to a Raspberry Pi via serial connection, and the Raspberry Pi then logs the data to our USB drive. Then when the USB drive is connected to our computer, we can view the data using our easy-to-use javascript program.

Challenges we ran into

  • Attempting to use the Wolfram Alpha API to process our output data.
  • Synchronizing the data output from out sensors.
  • Logging the data in a uniform and consistent way, accounting for hardware irregularities and unpredictability.
  • Soldering, there were some tricks with that.

What we learned

  • How to solder sensors to a prototyping board.
  • How attach and interface sensors with an Arduino using I2C.
  • How to turn raw sensor data into useful output data on an Arduino.
  • How to output data over serial signal on an Arduino.
  • How to receive input data over serial signal on a Raspberry Pi.
  • How to automatically save serial data to a text file on a Raspberry Pi.
  • How to create charts and graphs from a text file in javascript.

What's next for LuggageLogger

  • Add GPS functionality.
  • Transfer log files over bluetooth instead of USB.
  • Move Raspberry Pi functionality over to Arduino to reduce system overhead and improve battery life.
  • Refine the device form factor.
  • Explore possibilities with integrating the device directly with luggage equipment.
Share this project: