Git Product home page Git Product logo

nrf_adxl345's Introduction

ADXL 345 for NRF52

This is the library for Accelerometer ADXL345 using NRF52. This library uses the I2C bus.

alt text

How to use

The easiet way to use this library is to open the nRF5 SDK 15 example using I2C (TWI) and add the header file and source code to your project Depends on your PCA.

Example project

You can test this library using Segger Example. Download the example project and open the Solution using segger with path /examples/peripheral/twi_sensor/your_PCA/blank/ses

Function Description
ADXL345_I2C_Normal_Mode Initial function use it first
ADXL345_I2C_Init_Measure_Mode Set measure mode
ADXL345_I2C_Sleep_Mode Enable sleep mode to save power
ADXL345_I2C_Set_Format Set formating (todo: add function parameters)
ADXL345_I2C_Inactivity_Threshold(val) Set set inactivity mode value 0-255
ADXL345_I2C_Activity_Threshold(val) Set set inactivity mode value 0-255
ADXL345_I2C_Set_DATAX0 Send address to register for enable X axis data (read only)
ADXL345_Read_Sensor_Data Read sensor data from axis
ADXL345_Read_Acceleration Compute and read acceleration data from each axis

Todos

  • Write more Tests
  • Add more functionallity
  • Clean up the code

nrf_adxl345's People

Contributors

matt199 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nrf_adxl345'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.