Input devices¶
For this week, I experimented with a Sparkfun Breakout board that has a 3 axis Accelerometer, Gyroscope and Magnetometer, the lsm9ds1.
I don’t have access to other components, but did have this sensor board from an old kit I bought years ago.
The lsm9ds1 uses I2C communication, so I soldered its I2C pins and connected it to my Barduino as shown in the schematic.
I then installed Sparkfun’s Arduino Library for this breakout board, and opened an example sketch that makes use of all the sensors.
I uploaded the sketch to my Barduino and verified the functionality of the sensors by opening Arduino IDEs Serial Plotter.
In the video, a graphic is visible; it changes over time as sensor values are gathered and plotted. I moved the sensor, triggering the gyroscope in its axes, and also triggered the Magnetometer with my watch and a servo motor.
Files¶
Example sketch for the lsm9ds1 Breakout Board
Checklist¶
Individual assignment¶
- Measure something: add a sensor to a microcontroller board that you have designed and read it.
Learning outcomes¶
- Demonstrate workflows used in sensing something with input device(s) and MCU board
Have you?¶
- Linked to the group assignment page
- Documented what you learned from interfacing an input device(s) to microcontroller and how the physical property relates to the measured results
- Documented your design and fabrication process or linked to previous examples.
- Explained the programming process/es you used
- Explained problems and how you fixed them
- Included original design files and source code
- Included a ‘hero shot/video’ of your board