Home
User Manual v0.9c
Contents
1. Fig Accelerometer Seeeduino Film Port connection Chip Address e 2C Slave address of MMA7660FC is set to 0x4C Application Programming Interface API e The MMA7660FC library provides two high level interfaces init and accelarationRead e The result of the accelarationRead is available in accelarationData 3 array in X Y and Z order init e The init takes care of initialization of MMA7660FC chip e It begins the l2 C communication with 0x4C as slave address e It sets the mode of MMA7660FC operation to Active mode accelarationRead e X Y and Z values from acceleration is read by this function The result of this operation is stored in accelarationDatal array e X Y and Z values are provided in 6 bit 2 s compliment signed byte format in the allowable range of 31 to 32 The following simple example demonstrates the use MMA7660FC library The access of functions and data variable of the library should be made through pre instantiated object Mma7660fc QOS Seeeduino Film Motion Frame 10 WWW SEEEDSTUDIO COM Tech Support info seeedi com seeed studio Boost ideas Extend your reach W include lt Wire h gt include lt MMA7660FC h gt void setup Serial begin 38400 Mma7660fc init Initialize Mma7660fc void loop char Acc_x 0 char Acc_y 0 char Acc_z 0 Mma7660fc accelarationRead Read accelaration X and Z Acc_x char Mma7660fc accelarationData 0
2. lt lt 2 4 Serial prin Serial prin AOC Vy Serial prin Serial prin AcC_Z Serial prin Serial prin t Acc_x t Acc_y t Acc_z tln Acc_x DEC char Mma7660fc accelarationData 1 lt lt 2 4 tln Acc_y DEC char Mma7660fc accelarationData 2 lt lt 2 4 tln Acc_z DEC delay 1000 Please refer the data sheet for the complete operation and full list of features provided by 3 Axis accelerometer Features like tilt detection shake detection are not provided by the library This can be implemented by the user Application Ideas Orientation detection Accelerometer can be used whether the device is oriented in portrait or landscape direction Acceleration control and Measurement The 3 Axis acceleration provided by the module can be used to control the acceleration of a toy airplane or toy helicopter It can also be used as an acceleration measuring device when connected to a suitable display device Qoo Seeeduino Film Motion Frame 11 W seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend your reach Tech Support info seeedi com 4 SPI SeriaL Flash Memory Motion Frame is equipped with Winbond W25X32 SPI Flash memory It has a capacity of 32Mbit 4 Mega byte Seeeduino Film PB3 PB4 and PB5 are connected to DI DO and CLK pins of W25X32 flash memory E W250 CS 15 R m ak UCC 1250 CS io 2 UCC Rae B ID Fig Con
3. 16 X y seeed siudio WWW SEEEDSTUDIO COM Boost ideas Extend yourreach Tech Support info seeedi com 32M BIT FLASH Minimum Normal Maximum 12C 3 AXIS ACCELEROMETER Minimum Normal Maximum Communication Protocol 12C Speed 100kHz 400kHz Maximum Acceleration all axes 100 us 10000 g OOO Seeeduino Film Motion Frame 17 W seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend your reach Tech Support info seeedi com 8 SUPPORT Please refer to product page for latest documents and development resources any product related issue could be inquired via info seeedstudio com 9 ReEvision History Revision Descriptions Editor Release date Rewrite Added detailed description 30 November 2010 Initial public release 5 October 2010 v0 9b 1 Change the parameters of barometer 26 October 2010 10 LICENSE Soee You can use the content of this document under the terms of Creative Commons Attribution NonCommercial ShareAlike 3 0 Unported License Attribution should be made to Seeed Studio Inc www seedstudio com Source code and libraries are licensed under GPL LGPL Please refer source code files for exact terms of use OOO Seeeduino Film Motion Frame 18
4. data from address 0x000000 to 0x000014 for i 0 i lt 20 1i Serial print temp_data i Serial printin delay 1000 Please refer to W25X32 data sheet for complete information of operations supported by the serial flash memory C OOO Seeeduino Film Motion Frame 14 X y seeed siudio WWW SEEEDSTUDIO COM Boost ideas Extend yourreach Tech Support info seeedi com 5 Mecuanic DiMENSIONS The outline dimension is 77 5mm x 20 3mm x 3 45mm as below 3058mil 77 47MM i ease 625mil g ease 625mil 2 gt inane 15 9mm 15 5mm O 0 0 O O00000 AL Lae 00 00 O00000 Seeeduino Film Motion Frame can be used to build wearable devices You can even put on a toy airplane or helicopter It can store status information like altitude temperature or acceleration to the Serial Flash These information can be retrieved later by connecting Seeeduino Film to a PC The barometer can be used to predict weather 4 MB space available in serial flash memory can be used to build a data logger OSO Seeeduino Film Motion Frame 15 X y seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend yourreach Tech Support info seeedi com 7 SPECIFICATION KEY SPECIFICATION Minimum Normal Maximum C dm Povraomowen som dR few Communication Protocol 12C and SPI BAROMETER Minimum Normal Maximum Operio votas few faa ao o pemco rv p SS Communication Protocol we C OOO Seeeduino Film Motion Frame
5. OM chip address is set to OxEF Application Programming Interface API HPO3M library is provided in a Seeeduino Arduino compatible format Copy the contents of the library folder to Arduino library folder to get started QOS Seeeduino Film Motion Frame 5 W seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend your reach Tech Support info seeedi com e The HPO3M library provides two high level interfaces init and read e There exist a pre instantiated object Hp03m which is used to access the above two interfaces The result of read is available in Temperature Pressure and Altitude attributes variables provided by HPO3M library The raw uncompensated pressure and temperature values are available in D1 and D2 variables init The init interface initializes the 1 C communication e Configures Seeeduino PD4 as output e XCLR i e PD4 is pulled LOW to read calibration data e Reads calibration data read e XCLR i e PD4 is pulled HIGH to read ADC data e The raw temperature and pressure are read from ADC e XCLR i e PD4 is reset to LOW to reset the sensor e The real temperature and pressure are calculated by compensating with the coefficient data read during init phase Altitude is calculated from the measured pressure The results are stored in Temperature Pressure and Altitude variables The following two functions are used by the above read function internally realTemperaturePr
6. SEEEDUINO Fim Motion FRAME las E fy Lith capa ace oy User Manual v0 9c Altitude Pressure Temperature Motion Sensing Data Logging Nov 30 2010 seeed studio WWW SEEEDSTUDIO COM Lire Support Device Poticy Seeeduino Film Motion Frame and other products of Seeed Studio Inc are not designed intended or authorized for use in life support devices or systems Life support devices or systems include but are not limited to surgical implants medical systems and other safety critical systems in which failure of Seeed Studio Inc products could cause personal injury or loss of life Should buyer purchase and use Seeed Studio Inc products in such an unauthorized and unintended manner Buyer agrees to indemnify and hold harmless Seeed Studio Inc its officers employees suppliers affiliates and distributors from any and all claims arising from such use even if such claim alleges that Seeed Studio Inc was negligent in the design or manufacture of its product All trademarks are property of their respective owners Nov 30 2010 seeed studio WWW SEEEDSTUDIO COM W seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend your reach Tech Support info seeedi com OVERVIEW Seeeduino Film Motion Frame is a motion sensing extension board designed for Seeeduino Film lts flexible ultra slim and small form factor is suitable for building wearable devices It consists of a Barometer HPO3M a 3 axis Accelerom
7. attention while handling especially do not bend or move too many times OHO Seeeduino Film Motion Frame 4 W seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend your reach Tech Support info seeedi com 2 BAROMETER The Hope RF HPO3M is used for pressure altitude and temperature sensing It consist of a piezo resistive pressure sensor connected to an ADC It uses an I C bus to communicate with the Seeeduino Film ATMega168 HPO3M internally integrates an l C ADC and an l C EEPROM The EEPROM maintains 11 coefficient data stored during manufacturing These coefficient data should be used for calibration compensation of the measured values to find the real pressure and real temperature The l C ADC maintains the measured atmospheric pressure and temperature The 1 C EEPROM operation is compatible with 24C02 HPO3M s SCL SDA XCLR are connected to Seeeduino Film s PC5 PC4 and PD4 amp PD5 as follows To Seeeduino Film GND SCL UCC SDA MCLR XCLR HP 3M Barometer Fig Barometer Seeeduino Film Port Connection XCLR e XCLR is connected to PD4 and PD5 of Seeeduino Film PD4 default e XCLR is used to initialize the ADC EEPROM operation e Coefficient data should be read only after pulling XCLR to LOW e Similarly XCLR should be pulled HIGH before start of an AD conversion cycle Chip Address ADC and EEPROM share a common I C bus e C ADC chip address is set to OxEE e 2C EEPR
8. end your reach Tech Support info seeedi com Algorithms Read Compensation Data The operation of HPO3M EEPROM is compatible to 24C02 The following operation are carried out to read the calibration data 1 5 Start 12C transmission 2 Send Slave Device Address 0x10 3 4 Fill the compensation coefficient buffer C1 C2 C3 C4 C5 C5 C7 AA BB CC Read 18 bytes of data and DD with the read data Stop 12C transmission Read Raw Pressure ONDAN Pull XCLR HIGH Start 12C transmission Send command 0xFF Send command 0xF 0 Read 2 bytes of data Fill the raw Pressure buffer D1 with read data Stop 1 C transmission Pull XCLR LOW Read Raw Temperature XCLR MCLE SCL ONDAN Pull XCLR HIGH Start 12C transmission Send command OxFF Send command OxE8 Read 2 bytes of data Fill the raw Temperature buffer D2 with read data Stop 1 C transmission Pull XCLR LOW Timing diagram P UUUUUUUUVAUUUUUUUUL Sf NJ N oS w XY gt gt Fig Typical Timing diagram of Read Temperature and Pressure operation C OOO Seeeduino Film Motion Frame 8 W seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend your reach Tech Support info seeedi com Calculate Real Temperature and Real Pressure Real Temperature and Pressure are calculated by using the below expressions provided by the data sheet if D2 gt C5 dUT D2 C5 D2 C5 2 7 D2 C5 2 7 A 2 C i
9. essureCalculate e Calculate real temperature and pressure from raw value available in Hp03m D1 amp Hp03m D2 altitudeCalculate e Calculate altitude from real atmospheric atmospheric pressure Temperature e The real temperature in C is available as float Pressure e The real air pressure in hP is available as float C OOO Seeeduino Film Motion Frame 6 X y seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend yourreach Tech Support info seeedi com Altitude e The calculated altitude in 0 1m is available as ong integer The following simple example demonstrates the use HPO3M library include lt Wire h gt include lt HP03M h gt void setup Serial begin 38400 Hp03m init void loop Hp03m read Read temperature pressure and altitude Serial print Temperature Serial println Hp03m Temperature Serial print Pressure Serial printin Hp03m Pressure Serial print Altitude Serial print1n Hp03m Altitude delay 1000 Algorithms and Timing diagrams The HPO3M library provides a very simple interface to users All the low level functions are carried out by the library The following section describes how Seeeduino interacts with HPO3M The overall operation can be summarized as below A Y init read p Fig Barometer Read Process Seeeduino Film Motion Frame 7 W seeed studio WWW SEEEDSTUDIO COM Boost ideas Ext
10. eter Sensor MMA7660FC and a 32 Mb serial Flash W25X32 This provide sensing and logging of altitude temperature air pressure and motion for Seeeduino Film FILM and other extension FRAMEs could be simply connected via the 20 pin universal bus like a chain Its native 2 54mm pitch pins enable quick prototyping as well FEATURES APPLICATION IDEAS e Flexible Ultra small Slim form factor e Weather Watching e Seeeduino Film compatible e Environment Sensing e 2C Barometer e Sports and Gyms e C 3 Axis Accelerometer e Hiking Climbing e SPI 32M BIT Serial Flash e Hobby Aviation e 0 1 pitch pad breakout e Security e 20 pin daisy chain flex bus e Data logging e Transform by cutting and chaining e Reinforced to increase endurance C OOO Seeeduino Film Motion Frame 3 X y seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend yourreach Tech Support info seeedi com 1 BLock DIAGRAM The following block diagram presents the arrangement of various components of Motion Frame Each module is connected by a 20 pin flex bus Motion Frame is attached to Seeeduino Film with the help of a FPC socket Barometer 32M BIT Flash Acceleration Sensor LJ 32 768kHz Active crystal 32 768kHz Active Crystal FFC Socket 12C Acceleration 32M BIT SPI Flash 12C Barometer CAUTION 1 The direction of accelerometer is completely reversed in the board 2 The FFC socket and golden finger are easily lost or broken pay more
11. f D2 lt C5 dUT D2 C5 D2 C5 2 7 D2 C5 2 7 B 2 C OFF C2 C4 1024 dUT 2 14 4 SENS C1 C3 dUT 2 10 X SENS D1 7168 2 14 OFF Real Pressure P X 10 2 5 C7 Real Temperature T 250 dUT C6 2 16 dUT 2 D Calculate the Altitude The altitude is calculated by using a look up table Please refer the source code for exact calculation Application Ideas 1 Predict Rain A sudden fall in air pressure might bring rainfall Similarly raise in atmospheric pressure indicates clean sky 2 Energy Saver The temperature sensor along with a RTC can be used to control Air conditioners AC on time per day No sophisticated relay circuit needed An IR LED connected to Seeeduino film can be used to control the AC as a remote C OOO Seeeduino Film Motion Frame 9 W seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend your reach Tech Support info seeedi com 3 THREE Axis ACCELEROMETER Motion Frame is equipped with Freescale MMA7660FC 3 Axis accelerometer MMA7660FC uses a capacitive type MEMS sensor and provides an I C output The device is capable of detecting acceleration in X Y and Z direction It also supports tilt orientation detection and gesture detection like shake detection and tap detection The direction of accelerometer is reverse mounted on Motion Frame MMA7660FC s SCL SDA are connected to Seeeduino Film s PC5 and PC4 respectively To Seeeduino Film AUSS So SDA a INT SCL 6 PCS
12. m Writes en bytes of data to an address from a buffer pointed by pHead pointer sectorErase Erases a sector of memory pointed by address sector blockErase Erases a block of memory pointed by address block chipErase Erases the complete chip The following example demonstrate the use of W25Xnn library include lt Spi h gt include lt W25Xnn h gt void setup unsigned char data W25X32 32M bit flash Data to be written to the SPI flash Serial begin 38400 W25xnn init initialize W25x32 serial Flash memory W25xnn idleStatusWait W25xnn sectorErase 0x000000 erase first sector W25xnn blockErase 0x000000 erase first block W25xnn chipErase delay 300 sector erase time 150 300ms W25xnn idleStatusWait W25xnn pageProgram 0x000000 data 20 Serial printin lt W25X32 32M bit flash gt write to address 0x000000 to 0x000014 OSO Seeeduino Film Motion Frame 13 W seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend your reach Tech Support info seeedi com delay 10 Serial println erasing W25xnn chipErase chip erase time 40s 80s for unsigned char i 0 i lt 80 1i Serial printin i DEC delay 1000 W25xnn idleStatusWait Serial println erased W25xnn deviceInfoGet void loop unsigned char temp_data 32 unsigned char i W25xnn dataRead 0x000000 temp_data 20 Serial printin read
13. nection between Seeeduino Film and SPI Flash Memory The chip uses 256 bytes per programmable page It supports a uniform 4K byte sectors 64K byte blocks W25X32 is capable of supporting data transfer up to 150bits seconds It also supports sector 4KB erase and block 64KB erase commands Application Programming Interface API The following public interfaces are provided by W25Xnn library This library uses Spi library available in Arduino Playground There exist a pre instantiated object W25xnn for accessing these methods Please refer the source code for know how these functions are implemented init Initialize the W25X32 flash memory device by setting chip select pin deviceiInfoGet Read and print manufacturer s and device s IDs idleStatusWait Waits for idle status of the chip This is used before any new operation on the chip statusRegisterRead Reads the status register of the chip jedec Reads the JEDEC information of W25X32 OOO Seeeduino Film Motion Frame 12 W seeed studio WWW SEEEDSTUDIO COM Boost ideas Extend your reach Tech Support info seeedi com powerUp Sends power up command to W25X32 powerDown Sends power down command to W25X32 writeEnable Sends write enable command to W25X32 writeDisable Sends write disable command to W25X32 dataRead Reads en bytes of data from an address and stores it in a buffer pointed by pHead pointer pageProgra
Download Pdf Manuals
Related Search
Related Contents
Husqvarna 322 L Trimmer User Manual Prima Games Left 4 Dead, EN user`s manual - Control Systems Engineering Laboratory 10.1.08 Pericoli Canon LEGRIA HF M32 + 32GB SD XStend Board V2.1 Manual Uniden EcoTerra GMR2059-2CK User's Manual Smeg STA4846 dishwasher Lexmark T650, T652, T654 Copyright © All rights reserved.
Failed to retrieve file