![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
This demo application utilizes the on-board accelerometer to implement a bubble level.
The bubble level application demonstrates basic usage of the on-board accelerometer to implement a bubble level. A bubble level utilizes two axes to visually show deviation from a level plane (0 degrees) on a given access. This demo uses the FTM to modulate the duty cycle of two onboard LEDs to gradually increase LED intensity as the board deviates from a level state.
Optionally, if you would like to observe the raw accelerometer X-Y data, you can connect to the board's virtual COM port.
This application is loaded onto the board at the factory for supported hardware platforms.
The bubble level application does not call for any special hardware configuration. Although not required, the recommendation is to leave the development board jumper settings and configurations in default state when running this demo.
For detailed instructions, see the Getting Started with Kinetis SDK document.
When the board is programmed, simply tilt the board to see the RGB LED illuminate. One LED color indicates X-axis variation while another indicates Y-axis variation.