Hi All . . . I hope to get back in the game after an extended absence due to work and working on the house. I have recently bought an electric skateboard and I am looking to use a Teensy and a prop shield to manage a brake light, some indicators . . . and probably pimp it with some LED lighting while I'm at it. What I am hoping to do is write some code that can gather data from my rides and save it to SD card so that I can then study the data and write further code to control an LED brake light and indicators. The idea with the brake light would be to sense deceleration and switch the brake light on and then switch it off when I accelerate again. The idea with the indicators would be to somehow activate them, probably with push buttons, maybe via bluetooth, and then, after the board had tilted for a period in the direction indicated switch them back off automatically when it returned to level.

Does anyone have any example code for gathering prop shield sensor data and writing it to an SD card?

I have only just started to think about this one and so it will evolve over time but those are the main principles at the moment.

Any ideas?

Regards
Ex.