Giter Club home page Giter Club logo

addfiles's Introduction

Bubble Peripheral

The bubble level demo 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 axis. You can open the mex file with MCUXpresso Config Tool to do further configuration of pin, clock and peripheral.

Devices: |RT1060|LPC55S69|MCX9N|K22F|

Technology: |SENSOR|

Application: |INDUSTRIAL|

Peripheral: |I2C|UART|

Toolchain: |ARMGCC|MCUXPRESSO|

Release notes

Version Description / Update Date
1.1 Updated instructions for seting up the example March 3rd 2023
1.0 Initial release on Application Center January 1st 2023

Table of Contents

  1. Software
  2. Hardware
  3. Setup
  4. Results
  5. FAQs
  6. Support

1. Software

  • MCUXpresso SDK v2.13.0 or later
  • Toolchains Supported
    • IAR embedded Workbench 9.30.1
    • Keil MDK 5.37
    • GCC ARM Embedded 10.3.1
    • MCUXpresso 11.6.0

2. Hardware

3. Setup

No special board settings are required.

MIMXRT1060-EVKB

3.1 Prepare the Demo

  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
  2. Open a serial terminal with the following settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  3. Download the program to the target board.
  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

3.1 Step 2

To properly setup the device copy the following into terminal:

code snippet to copy/paste to project

3.2 Step 3

Note Some users have found doing this helpful

3.3 Step 4

You can see how to complete this step in following video:

4. Running the demo

When the example runs successfully, you can see the similar information from the terminal as shown below.

Welcome to the BUBBLE example

You will see the change of LED brightness when change angles of board

x=  6 y = 22
x=  8 y = 26
x= 10 y = 28
x= 10 y = 28
x= 11 y = 29
x= 11 y = 29

5. FAQs

  • If the user LED flashes constantly and the following message is printed on the console: Sensor device initialize failed!

    Please check the sensor chip U32

    please check if the combo sensor (U32) is presented on the board.

6. Support

Questions regarding the content/correctness of this example can be entered as Issues within this GitHub repository.

Warning: For more general technical questions regarding NXP Microcontrollers and the difference in expected funcionality, enter your questions on the NXP Community Forum.

Follow us on Youtube Follow us on LinkedIn Follow us on Facebook Follow us on Twitter

addfiles's People

Contributors

kydando avatar purdurnr avatar

Watchers

 avatar

addfiles's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.