Giter Site home page Giter Site logo

accelerometer_europi's Introduction

Connecting an ADXL343 Accelerometer to a EuroPi module

A simple script adapting Shawn Hymel's ADXL343 I2C tutorial code for the EuroPi module.

Voltage Outputs

Output Value
CV1 X
CV2 Y
CV3 Z
CV4 1-X
CV5 1-Y
CV6 1-Z

Hex Addresses on the ADXL343

Refer to Table 19 on Page 21 of the ADXL343's Datasheet for a complete description of what each hex address is referring to in the accelerometer_europi.py code.

EuroPi I2C setup

For I2C, you only need to use 4 pins on the ADXL343: VIN, GND, SDA, and SCL. Connect these pins to the EuroPi (the I2C breakout header lists VIN as 3V3) and use this code to let the EuroPi read data from the ADXL343 breakout board:

i2c = machine.I2C(1, scl=machine.Pin(3), sda=machine.Pin(2), freq=400000)

Demo

ADXL343 to EuroPi Demo

accelerometer_europi's People

Contributors

dcomposer avatar

Stargazers

 avatar gavin crangle avatar  avatar

Watchers

 avatar

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.