Close

Phase 1 initial work

A project log for Accelerometer Data Logger

A headless data logger based around H3LIS331DL accelerometers and Teensy 3.0

emach00Emach00 07/08/2015 at 22:430 Comments

I purchased 2 STEVAL-MKI153V1 eval boards from Mouser and used an old Teensy 3.0 I had bought for personal use a while back for another project. I slapped everything onto a prototype board and wired everything up with some hookup wire. Now onto software! After some Goggling I found the Seed Studio Arduino library for the H3LIS331DL accelerometer. Github Link Here. The library communicates via I2C to the chip but unfortunately only supports 1 accelerometer at a time. The I2C slave address for the accelerometer is hard coded. So after getting the demo sketch to work with a single accelerometer, the next step was to delve into the library and dig into adding functionality to declare the accelerometer's I2C address when initializing the accelerometer.

After a lot of poking and prodding at the code, I managed to get the demo running with 2 accelerometers and configured for the measurement range and output data rate I was looking for. It was a huge help that I could save changes to the library's source and header files and then simply recompile the Arduino sketch and see the impact. If I can get my act together, there will be links to my Git with the modified library.

Discussions