background image

S

EEEDUINO

 F

ILM

 M

OTION

 F

RAME

User Manual v0.9c

Altitude | Pressure | Temperature | Motion Sensing | Data Logging

 Nov 30, 2010

WWW.SEEEDSTUDIO.COM

Summary of Contents for HP03M

Page 1: ...SEEEDUINO FILM MOTION FRAME User Manual v0 9c Altitude Pressure Temperature Motion Sensing Data Logging Nov 30 2010 WWW SEEEDSTUDIO COM ...

Page 2: ...eed 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...

Page 3: ...essure 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 Flexible Ultra small Slim form factor Seeeduino Film compatible I C Barometer I C 3 Axis Accelerometer SPI 32M BIT Serial Flash 0 1 pitch pad breakout 20 pin daisy chain flex bus Transform by ...

Page 4: ... module is connected by a 20 pin flex bus Motion Frame is attached to Seeeduino Film with the help of a FPC socket 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 attention while handling especially do not bend or move too many times 4 Seeeduino Film Motion Frame ...

Page 5: ...e I C EEPROM operation is compatible with 24C02 HP03M s SCL SDA XCLR are connected to Seeeduino Film s PC5 PC4 and PD4 PD5 as follows Fig Barometer Seeeduino Film Port Connection XCLR XCLR is connected to PD4 and PD5 of Seeeduino Film PD4 default XCLR is used to initialize the ADC EEPROM operation Coefficient data should be read only after pulling XCLR to LOW Similarly XCLR should be pulled HIGH b...

Page 6: ...i e PD4 is pulled HIGH to read ADC data The raw temperature and pressure are read from ADC XCLR i e PD4 is reset to LOW to reset the sensor 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 function...

Page 7: ...Serial println Hp03m Pressure Serial print Altitude Serial println Hp03m Altitude delay 1000 Algorithms and Timing diagrams The HP03M 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 HP03M The overall operation can be summarized as below Fig Barometer Read Process 7 Seeeduino Fi...

Page 8: ...th the read data 5 Stop I C transmission Read Raw Pressure 1 Pull XCLR HIGH 2 Start I C transmission 3 Send command 0xFF 4 Send command 0xF0 5 Read 2 bytes of data 6 Fill the raw Pressure buffer D1 with read data 7 Stop I C transmission 8 Pull XCLR LOW Read Raw Temperature 1 Pull XCLR HIGH 2 Start I C transmission 3 Send command 0xFF 4 Send command 0xE8 5 Read 2 bytes of data 6 Fill the raw Temper...

Page 9: ... 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...

Page 10: ... Programming Interface API The MMA7660FC library provides two high level interfaces init and accelarationRead The result of the accelarationRead is available in accelarationData 3 array in X Y and Z order init The init takes care of initialization of MMA7660FC chip It begins the I C communication with 0x4C as slave address It sets the mode of MMA7660FC operation to Active mode accelarationRead X Y...

Page 11: ...cc_z Serial println 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 ...

Page 12: ...r 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 b...

Page 13: ... 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 Spi h include W25Xnn h 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...

Page 14: ...ait Serial println erased W25xnn deviceInfoGet void loop unsigned char temp_data 32 unsigned char i W25xnn dataRead 0x000000 temp_data 20 Serial println read data from address 0x000000 to 0x000014 for i 0 i 20 i Serial print temp_data i Serial println delay 1000 Please refer to W25X32 data sheet for complete information of operations supported by the serial flash memory 14 Seeeduino Film Motion Fr...

Page 15: ... 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 15 Seeeduino Film Motion Frame ...

Page 16: ... 20 25 60 Storage Temperature 30 25 70 Communication Protocol I C and SPI BAROMETER Minimum Normal Maximum Operating Voltage 2 2V 3 3V 3 6V Active RTC Crystal 1 5V 3 3V 5 5V Communication Protocol I C I C Speed 100kHz 400 kHz Absolute Pressure Accuracy 1 5hPa 0 50 750 1100hPa Absolute Pressure Accuracy 3hPa 20 60 750 1100hPa Temperature Accuracy 1 0 50 Temperature Accuracy 2 20 60 16 Seeeduino Fil...

Page 17: ...eed Up to 75MHz Erase Write cycles Up to 100000 cycles Sector Erase Write 4K Bytes Page Program Up to 256 Bytes within 2ms Data Retention 20 year I C 3 AXIS ACCELEROMETER Minimum Normal Maximum Operating Voltage 2 4v 3 3v 3 6V Communication Protocol I C I C Speed 100kHz 400kHz Maximum Acceleration all axes 100 μs 10000 g 17 Seeeduino Film Motion Frame ...

Page 18: ...n Visweswara R 30th November 2010 v0 9b Initial public release Lafier 5th October 2010 v0 9b 1 Change the parameters of barometer Lafier 26nd October 2010 10 LICENSE 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 lic...

Reviews: