Accelerometer notes
Just some links relating to accelerometers, gyroscopes and balancing robots:
I have an STM32F3 discovery board equipped with both L3GD20, and LSM303DLHC. Here's a Chibios based demo which logs their values via the USB port. I've just built and installed it on the board,and it works. Ignore the 'when chibios supports i2c' note: it already talks to the LSM303DLHC.
There's also this in the Chibios forums for the L3GD20, which looks a little more structured.
I also like this article, which describes building a balance bot based on a Raspberry Pi. The general explanation of balance bots looks good.
I have an STM32F3 discovery board equipped with both L3GD20, and LSM303DLHC. Here's a Chibios based demo which logs their values via the USB port. I've just built and installed it on the board,and it works. Ignore the 'when chibios supports i2c' note: it already talks to the LSM303DLHC.
There's also this in the Chibios forums for the L3GD20, which looks a little more structured.
I also like this article, which describes building a balance bot based on a Raspberry Pi. The general explanation of balance bots looks good.