Microstack Accelerometer Getting started



Similar documents
For Raspberry Pi - Getting started Connect to the real world in minutes, with the most popular interface board for Raspberry Pi.

USB 2.0 USB 2.0 ETHERNET AUDIO JACK AND RCA VIDEO HDMI MICRO SD CARD MICRO USB POWER

Microstack GPS Getting Started

P73474-F5U006-UNV-AM-man.qxd 9/18/00 10:10 AM Page 1

SmartDock for Xperia ion User guide

PORTABLE ALARM CLOCK. Dual Alarm. FM Radio. Wake-up Sounds. USB Phone Charger G-1CR

MoCA Adapter MC1001 v2 Installation Guide

BPM Series. Metered Rack Mount PDUs. Quick Start Guide. Models Covered:

In-Site Motion Webcam

4 Port PCI Express Gigabit Ethernet PoE PSE Network Card

GSM-EXT Cable Assembly Installation Guide

Regulatory Compliance Statement

ETRX3USB ETRX3USB-LRS ETRX3USB+8M ETRX3USB-LRS+8M PRODUCT MANUAL

Power Supply Guide Version 1.0 for D-Show

Messager USB Digital Messaging System

Tablet Management Rack 16

How To Set Up An Ecm Display On A D210 (D210) (D2) (Ecm) (Emc) (Mcd) (Power Supply) (Mm) (Camellom) (Ios)

Docking station for two laptops

AC Power cord. AC Adapter

USB 3.0 to M.2 NGFF SSD Enclosure with UASP

Cisco TelePresence MCU 4500 Series safety and compliance information

Wireless Internet Keyboard and Laser Mouse

USB Fieldbus Interface

UIM-2T1 T1 Loop Bonding Uplink Interface Module

Triple Expansion Chassis

User guide. Miracast Wireless Display IM10

How To Use A Fortivoice Phone On A Cell Phone On An Ipad Or Ipad (For A Sim Sim) On A Simplon (For An Ipod) On An Iphone Or Ipod (For Ipad)

VoiceTone T1 USER S MANUAL

CR /Fusion. BEETLE /FUSION Side Combo. Operating Manual

KVM Switch P74242-D. Belkin B.V. Boeing Avenue PH Schiphol-Rijk, The Netherlands +31 (0) (0) fax. Belkin Ltd.

Network Management Card

Broadband Telecommunications Drop Amplifier

NK Series. NK-RP1/P & NK-RP1/PN Redundant Power Supply. User Guide

PCI Express 10GBase-LR/SR/LRM Fiber Network Card with Open SFP Slot

HP SuperSpeed USB 3.0 PCIe x1 Card. User Guide

Home Gateway. User s Installation Guide. In This Guide

About the HotWire Slot Standalone Shelf

TNE1500-P and TNE1500-S Single Line T1 Network Extender Provider and Subscriber

Energy Smart Electric Water Heater Controller

Kvaser Mini PCI Express User s Guide

CUSTOMER SERVICE CONTACTS

Open Networking Adapter 1101GT Quick Install Guide

Installation Instructions. Wireless Adapter/Repeater. Introduction Rev C

USB 3.0 Mini Docking Station Adapter with Gigabit Ethernet and VGA

W O R L D C L A S S H I F I

GAIN LEVEL VOICE OUTPUT INPUT DISTORTION. true bypass USER S MANUAL

C24-CAMANL Video Server/Encoder

Avaya 1100 Series Expansion Module User Guide. Avaya Business Communications Manager

Installation Guide. Wyse VX0L and VX0LE Thin Clients 1-GB RAM Upgrade Option Kit. Issue: PN: L Rev. A

Out-of-Band Management Card

FUSION R400 RAID USB 3.0

Wireless Optical Mouse

PEARL Portable Reading Camera

Universal Laptop Charger

Gateway Port Replicator User Guide

Gigabit Ethernet Switch 10/100/1000 Mbps GS605 / GS608. Installation Guide

2013 VTech Printed in China US

USB Peripheral Switch Share a USB device with up to four computers

No. S8351. S8351 External Bluetooth module for mz series transmitter OPERATING INSTRUCTION

LG 8820 IP Phone. User Guide. for Bell Aliant Call Servers

HLWLAN b/g/n Transceiver Kit

II Intelligent PC/CAN Interface. Manual

AXIS 291 1U Video Server Rack Installation Guide

VFS24/32HDIP. Public Display IP Monitor User Manual

IP Phone 1100 User Guide. IP Phone 1110 Business Communications Manager


MINIRIGR. portable rechargeable bluetooth speaker. mrbt user s Guide

User Guide for the Wireless Headset (HS-11W) Issue 1

Network Management Card. Installation and Quick Start Manual

MIC-BP4 Bi-Phase Converter Card For the MIC400 series camera

MicroTech III Rooftop and Self Contained Unit Controller BACnet Communication Module (MS/TP)

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

HP Ethernet 10Gb 2-port 530SFP+ Adapter User Guide

AXIS 5810 A Bluetooth Print Plug. Quick Start

Powerline PL500 Series Adapter

LED Security Spotlight User Manual

Hardware Manual CAN-IB130/PCIe CAN-IB230/PCIe PCIe/104 CAN Interface

User guide. Stereo Bluetooth Headset SBH70

Simon XTi Installation Guide

INSTALLATION GUIDE. AXIS T8133 Midspan 30W

HP POS Keyboard with MSR for Point of Sale System. User Guide

Zebra RW 420 Mobile Battery Eliminator Kits

AV1200 TL-PA8030P KIT. 3-Port Gigabit Passthrough Powerline Starter Kit. Highlights

HP-1000E v2. User s Manual. Powerline Ethernet Adapter. HP1000E v2 User s Manual

Edgeport/E USB ETHERNET ADAPTER. Installation Guide. Model: Edgeport/E

=============================== WARNING

EPSON Network Image Express Card User s Guide

Perle Protocol Transparent Media Converter Modules

Synapse Smart Cable for NEC PC 9821 Interface Guide

USB 3.0 SATA/IDE 2.5 Hard Drive Enclosure

Waveguide Access Point WGA631. Product Guide

56-A11A Plantronics Calisto Headset with Bluetooth USB Adapter. User Guide

Gigabit eco-friendly Ethernet Switch AT-GS900/8. Installation Guide Rev. A

Digital Library Assistant Model 701

Mercury Helios 2 ASSEMBLY MANUAL & USER GUIDE

VS-0202 VS User Manual

EZmoto V2. Product description Rev. 6 10/01/2014. EZmoto V2 Product description Rev.6 10/01/2014

Strato Pi Hardware Guide

USER GUIDE. Compatible with most Bluetooth phones & Bluetooth enabled computers (Windows or Macintosh )

BODi rs BD004 Series Bandwidth-on-Demand Internet with Reliability and Survivability. Quick Start Guide NOTES

Transcription:

Product Highlights Microstack Accelerometer Getting started Find out which way is up! Detect taps, flicks, swishes and shakes, make a 3D motion controller or discover how much force has been applied. http://www.microstack.org.uk Typical applications: Orientation sensing position detection of up, down, left, right, face down, face up. User input devices shake detection, physical movement gestures Free fall detection Measuring motion gaming, sports, pedometer, image stablisation Security/audit shock detection and tamper Robotics course correction/dead reckoning Features: Low power (6μA to 165μA) ±2g/±4g/±8g dynamically selectable ranges Can be used with Microstack adapter baseboards, including Raspberry Pi Can be used directly in breadboards, prototyping and custom designs Technical Specifications: Power 1.95V to 3.6V Current Consumption 6μA to 165μA Update interval 1.56Hz up to 800Hz (subject to I 2 C bus speed) Operating Temp 40 to 85 99μG/ Hz Noise Tour of Hardware

Before using any Microstack module always read the instructions and precautions carefully. Fitting Instructions Carefully line up the pins of the Microstack Accelerometer module with sockets on the appropriate baseboard or stackable module, then gently push down. The Accelerometer module is fitted in the blue I 2 C socket. Ensure every pin plugs into a corresponding socket. The Accelerometer is a socket stackable module meaning that additional, other blue I 2 C modules can be stacked on top. Hardware The jumpers should not be changed as Microstack Accelerometer is not user configurable. Installing Software Under Linux Microstack Accelerometer is very easy to use with the Microstack Node Python Libraries. Installing the Libraries This guide assumes you are installing on Raspbian on a Raspberry Pi connected to the Internet to allow you to download packages with apt get. Make sure you are using the lastest version of Raspbian by opening a terminal and typing: sudo apt get update To install the Microstack Node libraries for Python 3, in a terminal, type the following command: sudo apt get install python3 microstacknode Testing This section shows how to run a sample program installed with the libraries and walks you through creating a simple Python program to read forces. Testing the Microstack Node Python Libraries Run the following example program by typing into a terminal: python3 /usr/share/doc/python3 microstacknode/examples/accelcat.py Which should print something like the following into the terminal: x: 0.05, y: 0.02, z: 0.49 As you twist, turn and rotate the Raspberry Pi the numbers should change:

x: 0.05, y: 0.02, z: 0.50 x: 0.05, y: 0.02, z: 0.49 x: 0.07, y: 0.05, z: 0.52 x: 0.12, y: 0.45, z: 0.61 x: 0.21, y: 0.08, z: 0.41 x: 0.12, y: 0.09, z: 0.44 x: 0.26, y: 0.00, z: 0.33 x: 0.42, y: 0.20, z: 0.25 x: 0.48, y: 0.16, z: 0.07 x: 0.41, y: 0.20, z: 0.27 You may have heard the term G when talking about forces. e.g. the pilot pulled 3G in that turn! A force of 1 G is the force of gravity that pulls us to earth. A force of 2G is twice this force of gravity. To be sensitive enough to detect small forces and big forces, the accelerometer can measure three ranges. The output of the sensor is always a value between 1.0 and 1.0 representing the minimum and maximum value of the range. By default, the range of is set to 2G, which means that a value of 1.0 indicates a measured force of 2G (that is twice the ordinary force of gravity). So, when the board is perfectly horizontal and at rest, gravity will be the only force acting on the accelerometer z axis of the accelerometer. Since 1G is half the maximum force of 2G, the z axis will read 0.5. Negative values correspond to a force being applied in a negative direction to the axis (for example, when the Accelerometer is upside down). Python Functions in Microstack Node Full documentation is provided with the Python module, or online. You can also look at the example code in /usr/share/doc/python3 microstacknode/examples. Note: These examples below use Python interactively. This is shown by the >>> which is presented in the Python interface to indicate it is ready for you to enter a command. Do not type >>> before the commands! >>> import microstacknode.hardware.accelerometer.mma8452q >>> accelerometer = microstacknode.hardware.accelerometer.mma8452q.mma8452q() >>> x, y, z = accelerometer.get_xyz() >>> print('x: {:.2f}, y: {:.2f}, z: {:.2f}'.format(x, y, z)) The example code first imports the module, then creates an accelerometer object. The third line reads the accelerometer and stores the force on the three axes into the three variables x,y and z. The final line then prints these values to the screen.

Warnings Microstack Accelerometer is not intended for use in life critical systems. Do not rely on it for navigation or safety critical positional information. Do not expose to water, moisture or extremes of temperature. Take care whilst handling to avoid mechanical and electrical damage to the module and connectors. Take suitable precautions to minimise risk of causing damage by electrostatic discharge. Connection to unapproved devices may affect compliance or result in damage to unit and invalidate any warranty. Connections to Microstack modules should only be made with the power supply disconnected. Ensure that Microstack modules are powered by a suitably rated power supply that complies with the relevant regulations and standards applicable to the country of intended use. It is the user s responsibility to ensure the module is fitted in a suitable enclosure that it offers appropriate protection to ensure safe and proper operation. Take care when applying motion to the accelerometer and any mechanically connected devices. Compliance Information This Microstack module complies with the relevant provision of the RoHS Directive for the European Union. In common with all Electronic and Electrical Equipment this Microstack module should not be disposed of in household waste. Alternative arrangements may apply in other jurisdictions. Microstack accelerometer module is CE marked. It is a class B product. The EMC emission test was performed with a Microstack baseboard fitted to a Raspberry Pi Model B+. Due to the nature of the module, as a prototyping and development board, fast transient immunity tests and conducted radio frequency immunity tests have not been executed. ESD handling precautions should be observed. The module may be considered a component if integrated into another product. Any person designing or developing a product that uses one or more Microstack modules is responsible for ensuring that it is compliant and that any modification to a Microstack module or inter connection of other elements and devices with a module does not change compliance. This Class B digital apparatus complies with CAN ICES 3 (B). Cet appareil numérique de la classe B est conforme à la norme NMB 003 du Canada. This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. http://www.microstack.org.uk

Microstack is designed in the UK by OpenLX SP Ltd. Registered Office 145 157 St John Street, London, EC1V 4PW. Microstack is distributed by Premier Farnell UK, 150 Armley Road, Leeds LS12 2QQ, UK Manufactured in the UK. Documentation Revision 1.0 October 2014 Raspberry Pi is a Trademark of the Raspberry Pi Foundation. All other Trademarks acknowledged.