Skip to content

Interfacing Accelerometer to 96Boards using mraa library

License

Notifications You must be signed in to change notification settings

96boards-projects/accel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

accel

This project demonstrates interfacing of Accelerometer and RGB LCD with Dragonboard 410C using libupm and libmraa. LCD will show the XYZ acceleration readings with blue background in ideal mode. If shake is detected, color will change to Red and if tap is detected, color will change to Green.

Table of Contents

1. Hardware requirements:

  1. Dragonboard 410c or any of 96Boards CE
  2. Sensors Mezzanine
  3. MMA7600 sensor
  4. RGB LCD
  5. Connecting cables

2. Software

2.1 Operating System

2.2 Package Dependencies

  1. MRAA Library
$ sudo apt-get install libupm-dev
  1. UPM Library
$ sudo apt-get install libmraa-dev

3. Building and Running:

$ git clone https://github.com/96boards-projects/accel.git
$ cd projects
$ cd accel
$ make
$ ./accel

4. Conclusion:

Following output can be observed by running the executable.

4.1 Acceleration:

Change the sensor position to see acceleration readings

4.2 Tap/Shake detection:

Mount the sensor on a plain surface and tap/shake it to obeserve the color change in LCD

About

Interfacing Accelerometer to 96Boards using mraa library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published