MMA axis digital accelerometer module

Similar documents
Pedometer 3 Click. PID: MIKROE 3259 Weight: 24 g

Microcontrollers and Interfacing

Accel 5 click. PID: MIKROE 3149 Weight: 24 g

Skill Level: Beginner

Gravity: BMI160 6-Axis Inertial Motion Sensor SKU: SEN0250

Sensor Toolbox (Part 2): Inertial Sensors

Thermo 6 click PID: MIKROE-2769

ASM330LHH. Automotive 6-axis inertial module: 3D accelerometer and 3D gyroscope. Data brief. Features. Applications. Description

Sure Electronics. : 3 Axis Acceleration Sensor Board. 3 Axis Acceleration Sensor Board. Copyright Sure Electronics Inc.

Pressure 4 click. PID: MIKROE 3020 Weight: 24 g

± 2g Tri-axis Accelerometer Specifications

Mbed Microcontroller SPI. Spring, 2018 Prof. Jungkeun Park

GSDM110 Three-Axis Digital Magnetometer

SH1030 Rev Introduction. Ultra low power DASH7 Arduino Shield Modem. Applications. Description. 868 MHz. Features

LIS3DH Hookup Guide. Introduction. SparkFun Triple Axis Accelerometer Breakout - LIS3DH SEN Required Materials

GRAVITECH GROUP

Dual Digital Pot (100K) SKU: DFR0520

Interfacing Techniques in Embedded Systems

PAN502x Capacitive Touch Controller Datasheet

Grove - 3 Axis Digital Accelerometer±16g Ultra-low Power (BMA400)

WM1030 Rev Introduction. Ultra low power DASH7 Modem. Applications. Description. 868 / 915 MHz. Features. WIZZILAB Technical datasheet 1/10

Table of Contents 1 Typical Applications General Description Block Diagram Pinout System Connections Typical A

Parallel Data Transfer. Suppose you need to transfer data from one HCS12 to another. How can you do this?

1.6inch SPI Module user manual

MC3635 FEATURES GENERAL DESCRIPTION

Stepper 6 click. PID: MIKROE 3214 Weight: 26 g

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C

MAKEVMA208 3-AXIS DIGITAL ACCELERATION SENSOR MODULE - MMA8452 USER MANUAL

AN055. Replacing KX023, KX123, KX124 with KXG07. Introduction

Level Shifter. for. Hardware User s Manual.

keyestudio Keyestudio MEGA 2560 R3 Board

Gaussmeter click. PID: MIKROE 3099 Weight: 23 g

Fully Integrated Thermal Accelerometer MXC6225XU

JeeNode V2. A small *duino-ish MPU board with a wireless RF module. Jean-Claude Wippler jeelab.equi4.com March 2009

± 2g Tri-axis Digital Accelerometer Specifications

Color 7 click. PID: MIKROE 3062 Weight: 19 g

3.2inch SPI Module MSP3218 User Manual

Microcontroller. BV523 32bit Microcontroller. Product specification. Jun 2011 V0.a. ByVac Page 1 of 8

Prototyping Module Datasheet

MMA7260QT. 3 Axis Accelerometer Module

Signal conditioning and filtering. Temperature Sensor. 1 SCK 3 MISO 4 MOSI 7 CSB Sensing element 2. Signal conditioning and filtering

Product Family Specification

Microcontrollers and Interfacing week 10 exercises

Introduction the Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications

Gyroscope Module 3-Axis L3G4200D (#27911)

± 2g / 4g / 6g / 8g Tri-axis Digital Accelerometer Specifications

#include "quaternionfilters.h" #include "MPU9250.h" data read #define SerialDebug true // Set to true to get Serial output for debugging

PIXI click PID: MIKROE Weight: 28 g

Serial Peripheral Interface. What is it? Basic SPI. Capabilities. Protocol. Pros and Cons. Uses

Raspberry Pi - I/O Interfaces

Breeze Board. Type A. User Manual.

ECG 2 click PID: MIKROE Weight: 30 g. Condition: New product. Table of contents

AS Channels Capacitive Touch Sensor IC From Santa Clara, United States of America

PAT9125EL: Optical Tracking Miniature Chip

< W3150A+ / W5100 Application Note for SPI >

Pmod modules are powered by the host via the interface s power and ground pins.

FT800 Display Controller Board. Part Number: MCIB-15 Version: 1 Date: 25/02/2016 Revision History Description of change 25/02/2016 First draft

DIGI POT 3 click. PID: MIKROE 3016 Weight: 25 g

RN-174. WiFly GSX Super Module. Features. Description. Applications. rn-174-ds v1.1 1/24/2011

GMA301 ±6g Tri-Axial Digital Accelerometer

MPU-6000/MPU Axis Evaluation Board User Guide

PmodJSTK2 Reference Manual. Overview. 1 Functional Descriptions. Revised July 19, 2016 This manual applies to the PmodJSTK2 rev. C

or between microcontrollers)

Amarjeet Singh. January 30, 2012

How to Use an Arduino

Arduino Uno R3 INTRODUCTION

ArduCAM-M-5MP Camera Shield

WICE-SPI Hardware Operation Manual

Technical Documentation

LABORATORIO DI ARCHITETTURE E PROGRAMMAZIONE DEI SISTEMI ELETTRONICI INDUSTRIALI. Laboratory Lesson 9: Serial Peripheral Interface (SPI)

MDP200 Series. Differential Pressure Sensor FEATURES APPLICATIONS DESCRIPTION

1.3inch OLED User Manual

PWR Meter click. PID: MIKROE 3169 Weight: 31 g

Technical Manual Rev1.1

Flash 4 click. PID: MIKROE 3191 Weight: 24 g

Bluno M0 Mainboard SKU: DFR0416

EPT-200TMP-TS-U2 TMP102 Temperature Sensor Docking Board Data Sheet

Grove Lightning Detector 0219-MOD1016G-01

Adafruit BME680. Created by lady ada. Last updated on :10:23 AM UTC

± 10g Tri-axis Accelerometer Specifications

SQI FLASH click. PID: MIKROE-2828 Weight: 22 g

MS4525DO DESCRIPTION STANDARD RANGE (PSI)

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Shack Clock kit. U3S Rev 2 PCB 1. Introduction

GENERAL DESCRIPTION MC3635 FEATURES

Corning Varioptic C-C-39N0-160 Auto Focus Lens Module

Grove - 6-Axis Accelerometer&Gyroscope(BMI088)

Introduction to I2C & SPI. Chapter 22

Sensor Toolbox for Accelerometer, Pressure and Proximity Sensors. Sensor and Actuator Products

IMU Axis Gyro Evaluation Board Application Note

Using Sensors with the RoboRIO

Graphic Color OLED Display Module + Arduino UNO Shield

MiCOKit-3166 Development Kit Hardware Manual

SimPLC. User Manual.

SPI bus communication with LDE/LME pressure sensors

Graphic Color OLED Display Module + Arduino UNO Shield

MMA845x Driver: Quick Start Guide

Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout

Evaluation Board User Guide UG-047

FireBeetle Covers-OSD Character Overlay Module SKU:DFR0515

Transcription:

MMA7455 3-axis digital accelerometer module Instruction The MMA7455L is a Digital Output (I2C/SPI), low power, low profile capacitive micromachined accelerometer featuring signal conditioning, a low pass filter, temperature compensation, self-test, configurable to detect 0g through interrupt pins (INT1 or INT2), and pulse detect for quick motion detection. 0g offset and sensitivity are factory set and require no external devices. The 0g offset can be customer calibrated using assigned 0g registers and g-select which allows for command selection for 3 acceleration ranges (2g/4g/8g). The MMA7455L includes a Standby Mode that makes it ideal for handheld battery powered electronics. This MMA7455 module has low pressure regulator and IO port level converter. The power supply ranges from 3V~5V. And all the digital I/O interfaces are compatible with 3V~5V. Its voltage flexibility allows users to integrate it into most hardware systems. Features Digital Output (I2C/SPI) Low Current Consumption Self-Test for Z-Axis User Assigned Registers for Offset Calibration Programmable Threshold Interrupt Output Level Detection for Motion Recognition (Shock, Vibration, Freefall) Pulse Detection for Single or Double Pulse Recognition

Sensitivity (64 LSB/g @ 2g and @ 8g in 10-Bit Mode) Selectable Sensitivity (±2g, ±4g, ±8g) for 8-bit Mode Robust Design, High Shocks Survivability (5,000g) Environmentally Preferred Product Parameter Power supply: 3V ~ 5 V Current: 30uA Interface: IIC / SPI Operating Temperature: -40 ~ 85 Dimensions (L * W * H): 18.2mm 23.3mm 11.6mm Interface All the interfaces are compatible with 3V~5V. PIN NUMBER NAME DESCRIPTION 1 VCC 3V~5V DC 2 NC NC 3 NC NC 4 INT1 Interrupt 1 5 INT2 Interrupt 2 6 GND GND 7 GND GND 8 CS SPI / I2C CS 9 SDO SPI Serial Data Output (MOSI) 10 SDA/SDIO I2C Serial Data (SDA), SPI Serial Data Input (SDI/ MISO), 3- wire interface Serial Data Output (SDO) 11 SCL SPI / IIC clock line 12 VCC 3V~5V DC

Example Here we show an example of this module working with Arduino. Hardware connection Code Update the following code to Arduino /* Circuit: CS: pin 7 MOSI: pin 11 MISO: pin 12 SCK: pin 13 */ // the sensor communicates using SPI, so include the library: #include <SPI.h> //Sensor's memory register addresses: //Data ready status is output to INT1/DRDY PIN //SPI is 4 wire mode //Self test is not enabled //2G is selected for measurement range //Measurement Mode

const int Mode = 0x05; const int Mode_address = 0x16; const int X_address = 0x00; const int Y_address = 0x02; const int Z_address = 0x04; const byte READ = 0b00000000; //read command const byte WRITE = 0b10000000; // write command // pins used for the connection with the sensor // the other you need are controlled by the SPI library): const int CSPin = 7; unsigned int read_buffer; void setup() Serial.begin(9600); // start the SPI library: SPI.begin(); SPI.setBitOrder(MSBFIRST); SPI.setClockDivider(SPI_CLOCK_DIV128); // initalize the data ready and chip select pins: pinmode(cspin, OUTPUT); digitalwrite(cspin, HIGH); //pull high void loop() //Configure writeregister(mode_address,mode); // give the sensor time to set up: delay(100); read_buffer = readregister(mode_address); if (read_buffer==mode) Serial.println("Success"); else Serial.println("Fail"); delay(1000); //Read from or write to register from the SCP1000: unsigned int readregister(byte thisregister) unsigned int result = 0; // result to return //left shift 1 bit thisregister = thisregister << 1; byte datatoread = thisregister READ; // take the chip select low to select the device: digitalwrite(cspin, LOW); // send the address you want to read: Serial.print("Read from:"); Serial.println(dataToRead,BIN); SPI.transfer(dataToRead); // send a value of 0 to read the first byte returned: result = SPI.transfer(0x00); Serial.print("Data: "); Serial.println(result,BIN);

// take the chip select high to de-select: digitalwrite(cspin, HIGH); // return the result: return(result); //Sends a write command to MMA7450L void writeregister(byte thisregister, byte thisvalue) // take the chip select low to select the device: digitalwrite(cspin, LOW); // shift one byte: thisregister = thisregister<<1; // combine the register address and the command into one byte: byte datatosend = thisregister WRITE; Serial.print("Send to:"); Serial.println(dataToSend,BIN); Serial.print("Data:"); Serial.println(thisValue,BIN); SPI.transfer(dataToSend); //Send register location SPI.transfer(thisValue); //Send value to record into register // take the chip select high to de-select: digitalwrite(cspin, HIGH); Result Other information For Arduino users, you can refer to this topic for more information. Contact Web: www.elechouse.com Email: elechouse@elechouse.com Disclaimer and Revisions The information in this document may change without notice. Revision History Rev. Date Author Description A Oct. 22nd, 2011 Wilson Shen Initial version