Home
XTRINSIC-SENSE Board
Contents
1. 14 DAVE TOP IV 14 ECT D S Dcum 14 OE PAIGE IOC SS ERIT m 14 Ay S E emt aaa URDU MM need TUI M DCN M DUE TOTUM PRG 16 RaW Data Gnd COICUIGUONS 16 nugae 16 17 UN Ty PN Tc RR 17 TUM 17 DESEE ICH d P 17 Data Siru cture ER 16 bod Qi m 18 po eo mni 19 M P arte au ey eases 19 DEMONSTRATION W BUD Pos zz T 20 Sent ond 20 DEMONSTRATION WAS SSPBERBY e iA ENE 26 SOIC 26 Ao TTI 27 AU LIU T A A E E E E E E E 29 APP COON RTT 30 22 EUR 33 MAKE YOUR OWN
2. Figure 2 Sensor Board Top View Pin Definition CN1 Used for interface with FRDM KL25z host platform XOUT 8491 Push Pull X Axis Tilt Detection Output Exclusively from XTRINSIC SENSE Board m nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Table 1 CN1 FRDM KL25z Data Interface Connector CN2 FRDM KL25z Power Supply Connector oom Table 2 CN2 FRDM KL25z Power Supply Connector CN3 Raspberry Pi Interface ome No Connection po oe SCL SENSOR I2C Slave Clock Line Ground eoo 9 1 MMA8491 Push Pull Z Axis 12 ZOUT Tilt Detection Output MMA8491 Push Pull X Axis 13 XOUT Tilt Detection Output MMA8491 Push Pull Y Axis 15 YOUT Tilt Detection Output Embest and element14 are trademarks of Premier Farnell plc 8 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 a Ground No Connection e mem ELEME MM eo Table 3 CN3 RPi Interface Connector CN4 UART Interface omm ome oA Table 4 CNA RPi UART Interface Connector Embest and ele
3. FIGURE 14 MMAS4AJIU DEMO FIGURE 15 SENSOR BOARD SCHEMATIC 1 arani SOR Cove eann Sa UE FIGURE 16 SENSOR BOARD SCHEMATIC 52 aiit FIGURE 17 SENSOR BOARD SCHEMATIC F sisi sess Ai FIGURE 18 SENSOR BOARD SCHEMATIC 4 FIGURE 19 SENSOR BOARD PCB TOP VIEW Ud Ra LIST OF TABLES TABLE 1 CN1 FRDM KL25Z DATA INTERFACE CONNECTOR eene TABLE 2 CN2 FRDM KL25Z POWER SUPPLY CONNECTOR eren TABLE 3 CN3 RPI INTERFACE CONNECTOR c ccsecccssseceeseceesessesesececsesecsesecsesesetsnsacsestsaceeaeess TABLE 4 CN4 UART INTERFACE CONNECTOR reete nt TABLE 5 MPL3115A2 INTERFACE LIST TABLE 6 MPL3115A2 0 TABLE 7 13115 2 STANDBY terere tette retten TABLE 8 MPL3115A2 INIT ALT c cccccccccsecessececseseceesesecsesececsesusecseceesecsrssecsesesersnsesessnsceeaeeess TABLE 9 MPL3115A2 INIT BAR ettet treten TABLE 10 SYSTEM OUTPUT DATA RATE SELECTION eere TABLE 11 MPL3115A2_SETOSR cccccccscsececsesecsesecsesesecscsucecsesusseseceesecetssecsesecersesesetsesceeaeess TABLE 12 MPL3115A2 SETSTEPTIME c cccccecsesececsesecseseceesesucseseceesecessececseseserseseceesescacaeess TABLE 13 13115 2 READ ALT eerte tette tret retten TABLE 14 13115 2 REA
4. IMAGE TO SUPPORT XTRINSIC SENSE BOARD 34 Embest and element14 are trademarks of Premier Farnell ple 2 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board Evaluation board for Freescale Xtrinsic Sensors element Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 S W EB APPLICATION TESTS 2215s ade qh edo da qui PARTIN T d FNERIT hr T 128 79 87 7 7 DRT ESD PRECAUTIONS AND PROPER HANDLING PROCEDURES LIST OF FIGURES FIGURE I SENSOR BOARD aon UR FIGURE 2 SENSOR BOARD TOP VIEW dementias FIGURE 4 PINOUTS OF I O HEADERS ON 1252 FIGURE 5 XTRINSIC SENSE BOARD W FRDM KL25Z FIGURE O RASPBERRY PILBOARD FIGURE 7 PINOUTS OF I O HEADERS ON RASPBERRY FIGURE 8 XTRINSIC SENSE BOARD W RASPBERRY FIGURE EErEE FIGURE 13
5. O fail 1 success Initialize MAG3110 Embest and element14 are trademarks of Premier Farnell plc 17 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Table 21 MAG3110 Delnit 63110 Prototype void MAG3110 Delnit void Void Return Value Void Deinitialize MAG3110 Table 22 MAG3110 ReadRawData x Void Raw data for x axis Table 23 MAG3110 ReadRawData y 63110 ReadRawData y Prototype uint32 t MAG3110 ReadRawData y void Void Return Value Raw data for y axis Read y axis data from MAG3110 Table 24 MAG3110 ReadRawData z MAG3110_ReadRawData_z Prototype uint32 t MAG3110 ReadRawData z void Param Return Value Raw data for z axis Read x axis data from MAG3110 Raw Data Structure and calculations X Axis data X axis 16 bit output sample data of the magnetic field strength is expressed as signed 2 s complement Table 25 X Axis data structure 3 2 2 1 1 1 4 3 6 5 X MSB X LSB Embest and element14 are trademarks of Premier Farnell plc 18 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exc
6. XTRINSICRPIUM Rev 0 4 01 09 2014 MPL3115 The MPL3115 is a high precision sensor used to provide accurate pressure and altitude data It features an adjustable sampling rate ultra low power consumption and intelligent functions suitable for applications such as mobile medical and security devices MPL3115 is able to provide digitized output two separated wake up interrupts minimum maximum threshold mechanism and autonomous data acquisition The self data processing ability of the MPL3115 reduces the need for communication with MCUs which reduces overall system power consumption MAG3110 The MAG3110 is a small low power digital 3 axis magnetometer featuring a wide measurement range It can measure magnetic fields the overlapped fields consisting of the geomagnetic field and the fields created by components on PCB on each of the 3 axes in the position where it is placed The MAG3110 features an I2C serial interface and is capable of measuring magnetic fields of up to 10 Gauss with an output data rate up to 80Hz The output data rate can vary depending on the sampling intervals and may be adjusted from 12ms to several seconds MMA8491Q The MMA8491Q is a low voltage 3 axis low g accelerometer housed in a 3 mm by 3 mm QFN package device can accommodate two accelerometer configurations acting as either an easy to implement 45 Tilt Sensor or a digital I2C output accelerometer In the 45 Tilt Sensor mode it offers
7. oul f HAG3110 2ul 13ul f 29ul H3631180 2 oul Figure 10 MAG3110 Demo 8 Press the Enter key on the keyboard to return the menu and type S to try out the MMA8491Q sensor SH Stream Polling MPL3115R82 1 03110 2 84910 MPL3115H2 52 Turn the board from side to side and from front to back to see the corresponding x y and z coordinates change as the board is tilted At the same time the RGB LED will begin blinking blue Embest and element14 are trademarks of Premier Farnell plc 24 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off XTRINSIC SENSE Board Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Exclusively from elementiu B8 E cT 13224424443 18 TAFEL nr y T a A rm E e ET 2 4444 84910 129mg Y 652mg 618mg 84910 220mg Y 989mg amp 79mg HMA84910 H 38mg Y 1136mg 458mg MMA84910 H 33mg Y 696mg f 593mg HMA84910 H 36mg Y 386mg 7 HMA84910 H Y 29 930mg 84910 H 18 881 486mg MMA84910 H l mg 1320 121mg HMA84910 H 120mg 12 HMA84910 H 99mg Y 491mg 506mg H
8. PTD3 10 PTD1 12 GND 14 VREFH 16 18 PTEO 20 11 Pct 9 9 P EJ 10 2 7 7 Pres PTE22 5 2 PrE21 3 224 PTE20 1 PTES 15 116 5 0 4 13 7114 GND PTE3 11 7112 GND 10 P5V USB PTB11 7 18 P3V3 PTB10 5 6 RESET PTA20 PTB9 3 E 4 Pav3 PTB8 11 2 5 PTD5 Figure 4 Pinouts of I O headers on FRDM KL25Z Embest and element14 are trademarks of Premier Farnell plc O 2014 Premier Farnell plc All Rights Reserved 10 Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 XTRINSIC Sense board and FRDM KL25Z Pin mapping Sensor Board FRDM KL25Z Sensor Board FRDM KL25Z N1 12 CN2 J9 1612 GND 10 P5V_USB VDD 1 8 C 1 Z2 Your 3 4 INT_U15 INT 026 GND 7 NC 8 SDA 9 SCL 10 0000000000 Figure 5 XTRINSIC SENSE Board w FRDM KL25Z Embest and element14 are trademarks of Premier Farnell plc 11 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off
9. extremely easy board implementation by using a single line of output per axis In the digital output mode 14 bit 8g raw data can be read from the device with high 1 mg LSB sensitivity The extreme low power capabilities of the MMA8491Q reduce the low data rate current consumption to less than 400 nA per Hz Embest and element14 are trademarks of Premier Farnell plc O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt Uu Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Pin Definition of Connectors This section will briefly introduce the connectors used on sensor board and the pins of these connectors in terms of definition function and application Board Top View 66 65mm IDuF CN2 37 34 1 11 4 e v E 7 2 2 24 nmn DEL DI GI HA RED DUX DD JUI GEI ED DE EA HD E DEM DH GS DD GE BED Heb GEN OE DD cmd Fun Gom Pep
10. pi raspberrypi rpi_sensor_board sudo python mma8491q py The expected console output will look similar to the following sudo python 16 mg 996 mg 22 mg 1051 mg 2 mg 1052 mg 15 mg 1070 mg 3 mg 1041 mg 10 mg 1046 mg 15 mg 1029 mg 11 mg 1031 mg 13 mg 1035 mg 2 1063 9 mg 1056 19 mg 1053 mg 12 mg 1039 mg A A Ao A A A A X A A Hi Hd Hi oH oH HM HM oH KOK Type Ctrl C to exit test and get back to terminal prompt Sensor Web Application Tests These following web application tests require the Raspberry Pi to have network connection to the same network as an available PC s local area network LAN 8 Oncethe Raspberry Pi is network connected obtain the IP inet address using the ifconfig command pi raspberrypi S rpi sensor board ifconfig The expected terminal display will similar to the following etho Link encap Ethernet gt HWaddir 95 58 55 ICE qos d ccs occ UP BROADCAST RUNNING IMULIT Vu vomer RX packets 5644 errors 0 dropped 0 overruns 0 frame 0 WX Packers 3620 errors 0 dropped 0 overruns 0 carrier 0 collisions 0 txqueuelen 1000 NOTE In this example case the Raspberry Pi s IP address is 192 168 2 138 We will use this example IP address in the rest of the demo examples described below For your testing use the IP address found for your specific case in place of this IP address Embest and e
11. will be configured after the driver installation eg COM6 in the example 4 Launch the terminal program eg Tera Term with the properties as follows Parity Flowcontrol None Sensor Module HyperTerminal mJ nl x File Edit View Call Transfer Help 5121 see Properties Port Settings Bits per second 11520 Jj Data bits 8 Parity 73 Stop bits ho mx Flow control Restore Defaults Apply Disconnected detect detect SCROLL CAPS NUM Capture Print echo 2 Embest element14 trademarks of Premier Farnell 21 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 5 Reset the board by pressing the reset button SW1 and you can see the information displayed below 1015 MA EXE 3 6 External Pin Reset 2580 Low Power Line with Cortex M0 SRAM Size 16 KB Silicon rev 15 Flash parameter version 0 0 8 6 Flash version ID 6 0 1 0 Flash size 128 KB program flash 4 KB protection region Running the blinky project xx Elementl4 amp Freescale MPL3315
12. will be controled by the board Vertical and Horizontal rotation will move the car correspondingly Your choice 19 Re direct the network connected PC s browser to the web address indicated above For this example that would be http 192 168 2 138 sensors gsensorr html 20 The following should be displayed in the PC s browser Move and tilt the Raspberry Pi board to affect position of the car displayed on the screen 92 168 2 138 21 Enter a choice of 0 or Ctrl C to exit the testing This completes the terminal and web application demonstration tests for the XTRINSIC SENSE BOARD with Raspberry Pi Embest and element14 are trademarks of Premier Farnell plc 33 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Make your own HPi image to support XTRINSIC SENSE BOARD connection The following sections provide instructions for editing and constructing a Raspberry Pi Flash image starting with an official RPi image file The instructions include details on how to manually update an official RPi image to support the same terminal and web applications demonstrations detailed in steps 5 thru 21 above This section assumes user knowledge on accessing an off
13. 8319016 alternate _ 82433 3417657 9960795 Preferred _ SAMTEC 1926586 8318997 alternate _ pmeemmsonseo Table 28 XTRINSIC SENSE Board BOM list Embest and element14 are trademarks of Premier Farnell plc 43 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 ESD PRECAUTIONS AND PROPER HANDLING PROCEDURES This section includes the precautions for mechanical handling and static precautions to be taken to avoid ESD damage Avoid carpets in cool dry areas Leave development kits in their anti static packaging until ready to be installed Dissipate static electricity before handling any system components development kits by touching a grounded metal object such as the system unit unpainted metal chassis f possible use antistatic devices such as wrist straps and floor mats Always hold a evaluation board by its edges Avoid touching the contacts and components on the board Take care when connecting or disconnecting cables A damaged cable can cause a short in the electrical circuit Prevent damage to the connectors by aligning connector pins before you connect the cable Misaligned co
14. A2 amp MAG3110 Demo Initializing to OSR 128 Time Step 2700 Mode Altimeter Sx Stream Polling 0 MPL311582 1 863110 2 MMA84910 MPL3115A2 gt So 0 00 20 115200 8 8 1 SCROLL Cars 6 Type SO into the terminal through the PC keyboard to try out the MPL3115A2 sensor The terminal will begin to display temperature readings Touch the sensor with your finger and notice that the temperature readings will start to rise At the same time the RGB LED will begin blinking red Touch here 4 44 44 Embest and element14 are trademarks of Premier Farnell plc 22 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Sx Stream Polling 0 MPL311582 1 863118 2 MMAB4910 MPL3115H2 50 3115 91 5625 Temp 24 0625 91 6875 Temp 24 0625 21 8 58 Temp 24 0625 LS iem ae emp ill ri 51 3750 26 4 The temperature will rise 24 25 3 25 1 when sensoristouched 63 5625 64 4975 Temp 26 2500 13 3758 Temp 26 3125 12 0625 Temp 26 3758 84 6290 Temp 26 5000 P P d P 9 H Figure 9 MPL3115 demo 7 Press the Enter key on the keyboard to quit the d
15. D BAR ccccceccssesecsesecsesesecseseceesesecsesececsesersesecsesesersusecsestsceeaeess Embest and element14 are trademarks of Premier Farnell plc O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board Evaluation board for Freescale Xtrinsic Sensors element Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 TABLE VPLS IID AZ READ TABLE 16 ALT RAW DATA STRUCTURE TABLE 17 RAW DATA haee TABLE 18 TEMPERATURE RAW DATA STRUCTURE aeta TABLE 19 MAGSLIOINTERFACE US TABLE INU m TABLE 2L MAGS3110 DENT TABLE 22 MAG3110 READRAWDATA TABLE 23 MAG3110 READRAWDATA TABLE 24 MAG3110 BEADRAWDRATB 2 TABLE 25 X AXIS DATA STRUCTURE RE ayer nmr TABLE 26 gt Y AXIS DATA STRUCT ORE c eie Ea d REPRE Spa uis RENI Og TRUCTUR TABLE 25 XTRINSIC SENSE BOARD BOM Embest and element14 are trademarks of Premier Farnell plc O 2014 Premier Farnell plc All Rights Reser
16. Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Raspberry Pi The Raspberry Pi features a BCM2835 SoC which includes an ARM1176JZF S 7OOMHz processor VideoCore IV GPU and 512 MB of RAM Model B It also includes two USB ports and a 10 100 Ethernet controller The Raspberry Pi has an easy access 26 pin GPIO 1 0 header 2x13 0 1 center Four additional GPIO available on P5 The board also features primary and secondary channels Raspberry Pi Model B Revision 2 0 a a I RG3 15 1 S cis 231017 v 218 wa the UK Gc E 24 P1 mig R23 ce C30 22011 1 R16 md C27 2 sta R28 c31 57 R2 tN Made in Figure 6 Raspberry Pi board Figure 7 Pinouts of I O headers on Raspberry Pi Embest and element14 are trademarks of Premier Farnell plc 12 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off XTRINSIC SENSE Board Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Exclusively from elementi4 XTRINSIC Sense board and Raspberry Pi Pin mapping Sensor Board Raspberry Pi Sensor Board Raspberry Pi CN3 P1 CN3 P1 3V3 1 3V3 2 2 5V0 SDA_SE
17. KL25Z board please refer to http www element14 com community docs DOC 46626 e For the Raspberry Pi board please refer to http www element14 com community docs DOC 42993 l raspberry pi single board computer Embest and element14 are trademarks of Premier Farnell plc O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off 37 Exclusively from XTRINSIC SENSE Board aa nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Schematic ape WV s x 2 m C3 lt Y n N 5 5 8 8 C 3 5 42 lt 16 j Q Figure 12 Sensor Board Schematic 1 Embest and element14 are trademarks of Premier Farnell plc 38 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 2 4 Sheet 04 Q3 44 Date 11 13 2013 7 Sensor_for_Kinetis L ra C 4 U C TITLE Figure 13 Sensor Board Schematic 2 Embest and element14 are
18. MA84910 17mg 11 MMAS4910 H omg Y Img f 909mg HMA84910 131mg Y 89mg 976mg HMA84910 A 184mg Y 29mg f 11 HMA84910 K Bing 904mg MMA84910 K 35mg 1826mg HMA84910 2 33mg 185 HMA84910 84mg Omg 1836mg 84910 88mg 33mg 1002 9 HMA84910 76mg Y 24 1815mg HMA84910 1mg Y 49mg 181 HMA84910 88mg 5Smg 986mg 84910 118mg Y 30mg 1823mg HMA84910 153mg Y 64mg 98 Figure 11 Embest and element14 are trademarks of Premier Farnell plc 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off BES 014 Babee 115200 8 8 1 SCROLL fears MMA8491Q Demo 25 Exclusively from XTRINSIC SENSE Board nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Demonstration w Raspberry Pi The demonstrations detailed below include set up and programming of the Raspberry Pi specifically for use with the XTRINSIC SENSE BOARD The demonstrations include terminal level demonstrations and web applications demonstrations Note the web application demonstrations require a network connection These demonstrations are enabled though a supplied custom image file for Ras
19. NSOR 3 50 1 4 4 5 0 SCL_SENSOR 5 SCL1 GND 6 6 GND 7 GPIO_GCLK 8 8 TXDO GND 9 GND 10 10 RXDO INT MPL3115 11 GPIO_GENO ZOUT 12 12 GPIO GEN1 XOUT 13 GPIO GEN2 GND 14 14 GND YOUT 15 GPIO GEN3 nc 16 16 GENA 3V3 17 3 3 INT MAG3110 18 18 GPIO GEN5 nc 19 5 MOSI GND 20 20 GND nc 21 5 22 22 GPIO_GEN6 nc 23 SPI_SCLK 24 24 SPI CEO N GND 25 GND nc 26 26 SPI CE1 N Figure 8 XTRINSIC SENSE Board w Raspberry Pi Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Drivers for Xtrinsic Sense Board Driver for MPL3115A2 Driver Interfaces The MPL3115A2 features three kinds of modes 8 different sample rates 16 different acquisition time steps 1 second to 9 hours and compensated direct reading of pressure 20 bit in Pascal or altitude 20 bit in meters The driver provides the following interfaces for implementing these features Table 5 MPL3115A2 Interface list void MPL3115A2 Active void Uint8 t MPL3115A2 Standby void Uint8 t 13115 2 Init Alt void Uint8 t MPL3115A2 Init Bar void void MPL3115A2_SetOSR uint8 t void MPL3115A2 SetStepTime uint8 t uint32 t MPL3115A2 Read Alt void Read raw data uint32 t MPL3115A2 Read Bar void uint32 t MPL3115A2 Read Temp void Operation Modes Modes of Op
20. Table 16 Alt raw data structure 3 2 2 1 1 1 4 3 6 5 ALT_MSB ALT_CSB ALT_LSB Integer part ALT_MSB x 2 ALT_CSB Decimal part ALT_LSB 2 x 0 0625 Embest and element14 are trademarks of Premier Farnell plc 16 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Bar raw data Table 17 Bar raw data structure 3 2 2 1 1 j 1 4 3 6 5 Invalid BAR_MSB BAR_CSB BAR_LSB Integer part BAR MSB x 2 BAR_CSB x 2 BAR LSB 2 Decimal part BAR_LSB BIT5 x0 5 BAR_LSB BIT4 x O 25 Temperature raw data Table 18 Temperature raw data structure 3 2 2 1 1 7 1 4 3 6 5 Invalid T_MSB T_LSB Integer part T MSB Decimal part T LSB 2 x 0 0625 Drivers for MAG3110 Driver Interfaces MAG3110 is a digital 3 5 magnetometer from which the data can be read using interfaces contained in Table 19 to Table 24 Table 19 MAG3110 Interface list Uint8 t MAG3110 Init void Initialize void MAG3110 Delnit void uint32 t MAG3110 ReadRawData x void ead raw data uint32 t MAG3110 ReadRawData y void uint32 t MAG3110 ReadRawData z void Table 20 MAG3110 Init Name MAG3110 Init Uint8 t MAG3110 Init void Void Return Value
21. USER MANUAL se gt freescale Enabled XTRINSIC SENSE Board Evaluation Board for Freescale Xtrinsic Sensors For use with Freescale FRDM KL25z and Raspbery Pi Host Platforms Exclusively from element iu Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Table of Contents KITOV ERV IE C cetera cet eet rs 5 NUN ONTEND css setae Busto TS 207 o0 5 FT 6 MAGS 6 6 eRe RTT eee RT Tee TCR TC TTT Ore URDU RIEN TAN TM 7 de NR 7 ire ioo errr eee Pre Pearce EINEN nap DM DD MEM 7 Freescale OM TV PIS PT r 10 ATRINSIC Sense board na JZRDMSKESOM Eee 11 a ET 12 AIRINSIC Sense board ana KISP ETY LA 13 Dm 13 DRIVERS FOR XIRINSIO SENSE BOARD
22. ame pi and password raspberry Sensor Terminal Tests These following tests are run by executing python demo scripts described here mag3110 py Test the Xtrinsic MAG3110 three Axis digital magnetometer console will output the three axis magnetometer value The mag3110 can be calibrated by first running the mag3110_calibrate py script Calibration data will be stored in mag_calibration data e mpl3115a2 py Test the Pressure Altitude and Temperature console will output the Temperature and Pressure Altitude mmas8491q py Test the Xtrinsic MMA8491Q 3 Axis multifunction digital accelerometer console will output the 3 axis accelerometer data 5 Test the MAG3110 sensor by entering the following at the Raspberry Pi s terminal prompt pi raspberrypi cd rpi_sensor_board Embest and element14 are trademarks of Premier Farnell plc 27 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off XTRINSIC SENSE Board Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 pi raspberrypi 1 sensor board sudo python mag3110 py The expected console output will look similar to the following rpi sensor board amp sudo python mag3110 py 20 uT 20 uT 20 uT 20 uT 20 uT 20 uT 20 uT 20 uT 19 uT 19 uT 19 uT 18 uT 56 57 57 57 uT 57
23. ar as a removable storage drive with a volume label of FRDM KL252 Note For more details setup of the FRDM KL25Z please refer to http www element14 com community docs DOC 49219 FRIM ELZSZ H USB connection 2 Open the FRDM KL25Z drive and drop the image sensors_freedom srec into it as seen below FSL_WEB Chrome HTML 1 LASTSTAT SDA_THFO SERCICGS Chrome Docu fig KB T KB SERCICEY sensors freedom ares mnc X 3 TOOLS Chrome Docu 1 3 The MSD Flash Programmer also includes a USB virtual serial port which requires an INF file for proper installation in Windows The necessary INF file is available as part of the P amp E OpenSDA USB Drivers and on the FRDM KL25Z removable drive e cro Freescale Serial Fort A ee m ee Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 File Action View Help miti 5 amp Jungo PEMicro OpenSDA Debug Driver 0 WinDriver gt lt 2 Keyboards p n Mice and other pointing devices gt Modems gt i Monitors gt i Network adapters gt Portable Devices 4 2 Ports COM amp LPT T9 ECP Printer Port LPT1 dy OpenSDA Serial Port http www pemicro com opensda COM The serial port
24. elemeit14 3 34mm Figure 16 Sensor Board PCB TOP View 42 Embest and element14 are trademarks of Premier Farnell plc O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt LU Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Bill of Materials Reference Description Manufacturer Part No Farnell Newark Priority P 2009084 6117697 Preferred _ REESCALE MAGSIIOFCRI 2080492 8312982 Preferred _ MMABA910 2291592 47w865 Preferred _ gt KtMET C003CIOSMSPACTU 1288201 860597 Preferred TANOYUDEN 1 07 06 1463375 3065476 Alternate _ 106 1867960 2070206 Alternate _ AV CMI0SXRIOAKIGAT 1216538 01 7218 Preferred _ 1 kemr CO603CIOAMRACTU 1650834 6AK2836 Alternate _ MULTCOMP 9406140 37K9922 alternate _ RL 83 8 4703 5 RCOGO3FR O7AK7L MULTICOMP 1576297 O1N6844 Preferred _ VSHAY CRCWOGOSIOKOFKEA 1469748 S2K8063 Alternate _ YAGEO RC0608FRO710KL 1117235 6880049 Alternate _ 9012200770 9733353 25 5816 Preferred _ 1929555
25. emo and go back to the menu Type S1 to try out the MAG3110 sensor Shake the board around and you can see the 3 D magnetic field measurement change At the same time the RGB LED will begin blinking green LL F Fy gj Embest and element14 are trademarks of Premier Farnell plc 23 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 H363110 ul 1lul f 3110 Iul Y f HAG3110 111 Y ul f 32ul H3631180 Y oul f 3110 Iul Y Bul f Jul HAG3110 oul lul f 33ul HAG3110 Sul 2ul f 32ul 3110 lul Y lul HAGS116 Oul Y Bul 2 HAG3110 lul 2ul H363110 lul Y lul f 3110 Oul Y Bul 2 28ul HAG3110 Jul Y Jul H3631180 Y lul f 3110 8 Y f HAG3110 amp f 29ul HAG3110 29ul H363110 12 f Jul 3110 2ul v 2 28ul HAG3110 lul Y f Jul H363110 2ul 12 211 3110 2 Y
26. eration MPL3115A2 has three operation modes Standby Active Altitude and Active Barometer These modes can be implemented using the following interfaces Table 6 MPL3115A2 Active Name MPL3115A2 Active void MPL3115A2 Active void Void Void Put MPL3115A2 into Active Mode Table 7 MPL3115A2 Standby Name MPL3115A2 Standby Uint8 t MPL3115A2 Standby void Void Return Value The value of CTRL REG1 before modification Put MPL3115A2 into Standby Mode Table 8 13115 2 Init Alt Name MPL3115A2 Init Alt Prototype Uint8 t MPL3115A2 Init Alt void Void Return Value O fail 1 success Initialize MPL3115A2 for Alt mode Embest and element14 are trademarks of Premier Farnell plc 14 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Table 9 MPL3115A2_Init_Bar MPL3115A2_Init_Bar Prototype Uint8 t MPL3115A2_Init_Bar void Void Return Value O fail 1 success Initialize MPL3115A2 for Bar mode Over Sampling Output Sample Rate can be set as shown in Table 10 System Output Data Rate Selection Table 10 and 11 contain the functions used for configuring over sampling parameters Table 10 System Output Data Rate Select
27. ev 0 4 01 09 2014 Temperature Application 15 At the Raspberry Pi s console output choose 2 to test the MPL3115 The console output should display the following output Your choice 2 13115 sensor data will upload to temper html Use browser to open http lt rpi IP sensors temper html temperature value Your choice 16 Re direct the network connected PC s browser to the web address indicated above For this example that would be http 192 168 2 138 sensors temper html 17 The following should be displayed in the PC s browser The temperature is displayed digitally in degrees C For example 25 144 C Touching or blowing on the MPL3115 refer to Figure 1 should cause the temperature displayed to change 192 168 2 138 sensors temper html Embest and element14 are trademarks of Premier Farnell plc 32 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off XTRINSIC SENSE Board Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Running Car Application 18 At the Raspberry Pi s console output choose 3 to test the MMA8491 The console output should display the following output Your choice 3 40 sensor will upload to gsengor html Use browser to open http lt rpi IP gt sengore gsengzor html The small car on the web
28. icial RPi image and programming it to Flash This detail is NOT covered in this document Set up 22 Follow step 1 3 and 4 in the previous section to set up connect and power the Raspberry Pi with XTRINSIC SENSE BOARD Terminal tests The XTRINSIC SENSE BOARD communicates with the Raspberry Pi using the I2C interface The I2C interface driver is included in later Raspbian distributions but is not enabled by default You can always enable the 12 driver or you can load it by hand when required To always enable the 12C driver 23 After logging into RPi edit etc modprobe d raspi blacklist conf bytyping sudo nano etc modprobe d raspi blacklist conf 24 Insert a hash at the start of the line blacklist i2c bcm2708 it should be read 03 Alternatively to load the 12 driver by hand will not be loaded reboot Ctrl X to save 25 Type in a terminal S cudo modprobe 120 26 Next you need to install the sensor drivers Download the driver and python test scripts from git clone http git oschina net embest rpi_sensor_board git 27 When the downloading finished reboot your Raspberry Pi 28 Then you can test the sensor from terminal Refer to steps 5 thru 7 above to run terminal demonstration tests Embest and element14 are trademarks of Premier Farnell plc 34 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semic
29. ion OSR OversampleRatio Minimum Time Between Data Samples 0 11 1 25m 202 o 2 1 4 108 3 8 208 4 4108 6 264 2 108 2 0 128 Table 11 MPL3115A2_SetOSR Table 12 MPL3115A2 SetStepTime MPL3115A2_SetStepTime Prototype void MPL3115A2_SetStepTime uint8_t step comple step ete Return Value Change sample step Embest and element14 are trademarks of Premier Farnell plc 15 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Data Acquisition Pressure 20 bit in Pascals Altitude 20 bit in meters and Temperature 12 bit in degrees Celsius can be read by functions contained in the following tables and be calculated using the formulas in section 0 Table 13 MPL3115A2 Read Alt Name MPL3115A2 Read Alt Prototype uint32 t MPL3115A2 Read Alt void Return Value The raw data for Altitude Read Altitude data from MPL3115A2 Table 14 MPL3115A2 Read Bar Name Table 15 MPL3115A2 Read Temp Name MPL3115A2 Read Temp Prototype uint32 t MPL3115A2 Read Temp void Return Value The raw data for temperature Read Temperature data from MPL3115A2 Raw Data Structure and Calculations Alt Raw Data
30. lement14 are trademarks of Premier Farnell plc 29 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m nt LU Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Upload the sensor data to the web application invoked later on a network connected PC by entering the following at the Raspberry Pl s terminal command prompt pi raspberrypi rpi sensor board sudo python3 sensor website py Console output pi razpberrypi rpi sensor board sudo python3 senzor website py Input your choice for sensor 1 3 110 mpl3llb l J exit Your choice Compass Application 10 Choose 1 to test the MAG3110 Note the console output Your choice mag3lll sensor data will upload to compass html Use browser to open http irpi IF sensors compass html Horizontally rotate your board you can see the compass rotation Your choice 11 On a network connected PC open a browser and enter in web address as instructed above For this example that would be http 192 168 2 138 sensors compass html Embest and element14 are trademarks of Premier Farnell plc 30 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off E
31. lusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Scale factor Data in uT unit Data Count x 0 1 Y Axis data Y axis 16 bit output sample data of the magnetic field strength is expressed as signed 2 s complement Table 26 Y Axis data structure 3 2 2 1 1 1 4 3 6 5 Y_MSB Y_LSB Z Axis data Z axis 16 bit output sample data of the magnetic field strength is expressed as signed 2 s complement Table 27 Z Axis data structure 3 2 2 1 1 7 1 4 3 6 5 7 MSB 2 158 Embest and element14 are trademarks of Premier Farnell plc 19 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Demonstration w FRDM KL25Z After the driver code is loaded onto the Freedom KL25Z the sensor features can be demonstrated with a command line interface of HyperTerminal or another UART tools Setup and Configuration 1 Plug in a USB cable from a USB host to the OpenSDA mini B USB connector of the FRDM KL25Z The FRDM KL25Z will be powered by this USB connection FRDM KL25Z comes with the mass storage device MSD Flash Programmer OpenSDA Application preinstalled It will appe
32. ment14 are trademarks of Premier Farnell plc 9 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from elementiu XTRINSIC SENSE Board Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Freescale Freedom FRDM KL25Z The FRDM KL25Z features a KL25Z128VLK a KL2 family device boasting a max operating frequency of 48MHz 128KB of flash a full speed USB controller and loads of analog and digital peripherals The FRDM KL25Z has an easy access to MCU I O via Arduino R3 compatible 1 0 connectors The board also features a programmable OpenSDA debug interface with multiple applications available including e Mass storage device flash programming interface e P amp E Debug interface provides run control debugging and compatibility with IDE tools e CMSIS DAP interface new ARM standard for embedded debug interface KL25Z 80 LQFP J1 Header J2 Header Reset KL25Z USB PIA1 2 2 41 PTD4 6 PTA12 8E PTA4 10 2012 FREESCALE Capacitive iM Touch Slider 210 J10 O 1000000 e x ce RGB LED J9 I O Header MMA8451Q Figure 3 FRDM KL25Z board PTA5 12 PEE 14 9 16 PTA13 2 PTD5 4 PTDO 6 PTD2 8
33. nnector pins can cause damage to system components at power on When disconnecting a cable always pull on the cable connector or strain relief loop not on the cable itself Embest and element14 are trademarks of Premier Farnell plc 44 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off
34. o are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Welcome to X 4 gt QC fi D 192 168 2 138 Welcome to nginx 33 Deploying the Web Application e Direct use symbolic links created via In s to complete the deployment typing sudo lid nome sensor ec ENS en sper rpi Sensors usr share nginx www sensors e Make proper access rights to the web app arde eS OPE cs C Ts ons Senora 34 Test the Web applications in the same manners as described in steps 8 thru 21 above Embest and element14 are trademarks of Premier Farnell plc 36 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Hardware This document includes the hardware design files for the XTRINSIC SENSE BOARD on the following pages of this document Details on the supported host platforms can be found as noted below Forthe Freescale FRDM
35. onductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board Evaluation board for Freescale Xtrinsic Sensors element Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Web application tests 29 Install the web server Install nginx web server by typing Suelo egere Start the nginx web server typing sudor Anise Woy The defualt server root is usr share nginx www 30 Install the php package Install php by typing sudo apt get update Edit the config file of nginx sudo nano etc nginx sites available default Find the line start with listen 80 delete the hash it should be read la sten 20 tt lieten Find the line start with index add index php then it should be read index index php index html index htm Find the definition of php only delete the hashs ahead of the following lines it should be read locacion e TEIL OPE hi pass Unix rin fom sock Php include params Do not touch the other definitions 31 Now reload the config of nginx server reload 32 Test if the web server is up by browser Should see something like the following screen Embest and element14 are trademarks of Premier Farnell plc 35 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale log
36. pberry Pi to support connection to the XTRINSIC SENSE BOARD The final section includes details on how a user can modify the standard default Raspberry Pi image in order to use the 12 connection to run the same terminal and web application demonstrations NOTE The setup and terminal demonstration tests covered in steps 1 thru 7 below are also provided in the QuickStart Guide A QuickStart Guide fold out accompanies the XTRINSIC SENSE BOARD kit and is also available on line here Setup and Configuration 1 Connect the XTRINSIC SENSE BOARD to the Raspberry PI board as shown below E E pe TT 1 4 L SW TEE ur ite P n 4 J 1 14 all EERE fi ER 2 ase we 0 ET is s Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 2 Download the custom operating system image offered and flash it to an SD card 4MB The custom Image for use with XTRINSIC SENSE BOARD is available here htto www element14 com mems sense 3 Power on Raspberry Pi with a USB cable connection as shown Provide additional connections for needed peripherals f 4 Once in Raspberry Pi console mode enter in usern
37. trademarks of Premier Farnell plc 39 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board Y nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Sheet 3 4 04 Q3 41 for Kinetis L Date 11 13 2013 7 Sensor Document Number TITLES Figure 14 Sensor Board Schematic 3 Embest and element14 are trademarks of Premier Farnell plc 40 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Sheet 4 4 04 Sensor_for_Kinetis Document Number Date 11 13 2013 7 41 03 PM TALE Figure 15 Sensor Board Schematic 4 Embest and element14 are trademarks of Premier Farnell plc 41 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off XTRINSIC SENSE Board Evaluation board for Freescale Xtrinsic Sensors Exclusively from Doc ID XTRINSICRPIUM elementiu Rev 0 4 01 09 2014 PCB Layout 66 65mm E 1OuF me
38. uT 57 uT 57 uT 57 uT 57 uT 57 uT 57 uT 57 uT 17 17 18 18 uT 18 uT 18 uT 18 18 18 18 18 uT 18 uT ee 4 Hi Mi Hd KKK oH o HH Type Ctrl C to exit test and get back to terminal prompt 6 Test the MPLA3115A2 sensor by entering the following at the Raspberry Pi s terminal prompt Pilkra pPesenscopebedgsd sudes onm db ey The expected console output will look similar to the following rpi_sensor board sudo python mpl3115a2 py Alt 52 0 Temp 21 192 Alt 52 0 Temp 21 192 Alt 52 0 Temp 21 192 Alt 52 0 Temp 21 192 Alt 51 888 Temp 21 176 Alt 51 888 Temp 21 176 Alt 51 888 Temp 21 176 Alt 51 888 Temp 21 176 Alt 51 888 Temp 21 176 Alt 51 888 Temp 21 176 Alt 51 888 Temp 21 176 Alt 51 888 Temp 21 176 Alt 51 888 Temp 21 176 Alt 51 2 Temp 21 176 Type Ctrl C to exit test and get back to terminal prompt 7 Test the MMA8491Q sensor by entering the following at the Raspberry Pi s terminal prompt Embest and element14 are trademarks of Premier Farnell plc 28 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014
39. ved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt Uu Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 Kit Overview The XTRINSIC SENSE board demonstrates the capabilities of Freescale s Xtrinsic sensors The Xtrinsic Sensor board includes interfacing and support for the following host platforms e Freescale FRDM KL25Z e Raspberry Pi Model The software drivers and code enable engineers to easily evaluate and demonstrate the performance of the sensors in a variety of applications including eCompass Mobile Phones Tablet Computers Remote Control Wireless Mouse Game Consoles Navigation Devices Medical Devices Kit Contents e Xtrinsic Sense Board e Quick Start Guide Xtrinsic Sense Board The sensor board comes equipped with three of Freescale s new generation XTRINSIC MEMS sensors The MPL3115 U1 is designed for accurate measurement of temperature and pressure the MAG3110 U2 for detection of magnetic fields and the MMA8491 U3 for measurement of physical positions 01 9 02 Landi 2 aO 491 IR EA wea MPL3115 element14 Figure 1 Sensor Board Exclusively from XTRINSIC SENSE Board nt Evaluation board for Freescale Xtrinsic Sensors Doc ID
40. xclusively from XTRINSIC SENSE Board m nt Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM Rev 0 4 01 09 2014 12 The following should be displayed in the PC s browser 192 168 2 138 sensors compa Manually rotate the Raspberry Pi board to see corresponding movement on the compass display KK SK CE CE GE K OK K OK CK OK K K CE OK K K K K OK K K K CE K K K K K K K K K K K K K K CK CK K K K K K CE K K K CK K K CE K CE K K K CK K K K K K CE K CE CE K K K K K K K K K K K K K K K K K K K K K K Tip optional 13 If the compass direction does not appear accurate try calibrating using the following steps Enter in the following at the command prompt pi raspberrypi 1 sensor board sudo python mag3110 calibrate py Console output sudo python mag3ll calibrate p Calibrate your mag3lll sensor Now horizontally rotate your board for 360 degrees 14 After exiting the calibration mode try manually turning the Raspberry Pi board again and note the compass direction indicated in the PC browser s display Check for better accuracy Embest and element14 are trademarks of Premier Farnell plc 31 O 2014 Premier Farnell plc All Rights Reserved Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Exclusively from XTRINSIC SENSE Board m e nt LU Evaluation board for Freescale Xtrinsic Sensors Doc ID XTRINSICRPIUM R
Download Pdf Manuals
Related Search
Related Contents
Tecumseh AEA1336AXA Performance Data Sheet Copyright © All rights reserved.
Failed to retrieve file