Tuesday, June 26, 2018

Adding an Accelerometer to your FeatherWing Crickit

Making robots with the Crickit is awesome. When you pair it and all of its output capabilities with the Circuit Playground Express (CPX) and all of its sensors, you can really do a lot. If you are using the FeatherWing Crickit with a Feather, you have the same outputs, but none of the sensors that you just have when you use the CPX.

I am working on a project with the Crickit and wanted to use the Feather version to keep things compact and a little lighter. The thing is that I need an accelerometer. I could have used the Accelerometer FeatherWing I made in this guide, But that would have made the whole thing bulkier that I wanted. Also, I figure it's a useful thing to have on a robotics board. As I found in that previous guide, the Flora breakouts for the LSM303 and LSM9DS0 fit nicely between the headers that the Feather plugs into. I had an LSM9DS0 sitting in a drawer so I used it for this project, but either will give you an accelerometer, and the pinouts of both Flora breakouts is identical. The only difference is importing the matching library.

The process was very similar to making that FeatherWing; even easier because of the connections to the Feather headers.

This project can be used with any Feather that is supported by the Crickit. I used the M0 Express since I wanted to write the code using CircuitPython.

No comments:

Post a Comment