UM1479 User manual STEVAL-IPR002V1: M24LR64-R based data logger and event logger Introduction The M24LR64-R is a dual interface EEPROM which targets a wide range of applications such as industrial or medical equipment and consumer electronics. RFID (13.56 MHz) and I2C serial communication are the two interfaces available with the EEPROM. This user guide describes how to use the "M24LR64-R data logger/event logger", an autonomous battery-powered RFID tag with logging capability for recording and storing the sensor data of the following sensors: Temperature sensor Humidity sensor Vibration Freefall Tamper Light The value of different sensors is stored inside the EEPROM and these logged values can then be retrieved over the RFID interface for evaluation at a later stage. This data logger can be inserted along with any transported article and this article can then be tracked throughout the supply chain, and the data can be scanned at any point using an RFID reader. This system can operate in two modes: Data logger mode Event logger mode In data logger mode, the system reads all the sensor values once every second and stores them inside the EEPROM. The system stops logging the data when the allocated memory for a particular sensor is filled. In event logger mode, the system configures the threshold limits for each sensor. Whenever the sense value is outside the set threshold limits, it is stored in the EEPROM. Figure 1. April 2012 M24LR64 EEPROM-based data logger Doc ID 022381 Rev 1 1/28 www.st.com Contents UM1479 Contents 1 2 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1 Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2 System set-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2/28 System prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2.2 CR95HF demo board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2.3 Startkit-M24LR-A RFID reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2.4 STEVAL- IPR002V1 event logger board . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2.5 Graphical user interface for the system . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.2.6 Data logger GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.2.7 Event logger GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.2.8 Starting the data logger application . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.2.9 Pre-data logger stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.2.10 Data logger stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 1.2.11 Post data logger stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 1.2.12 Starting the event logger application . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 1.2.13 Pre-event logger stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 1.2.14 Event logger stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 1.2.15 Post event logger stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 System overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.1 3 1.2.1 Hardware design description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.1.1 Temperature sensor for temperature data logging . . . . . . . . . . . . . . . . . 20 2.1.2 MEMS for freefall and vibration data logging . . . . . . . . . . . . . . . . . . . . . 21 2.1.3 Humidity sensor for percentage humidity data logging . . . . . . . . . . . . . 21 2.1.4 Photo sensor for light data logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.1.5 Switch press for tamper event simulation . . . . . . . . . . . . . . . . . . . . . . . 22 2.2 Hardware layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.3 Hardware schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 2.4 Bill of materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Doc ID 022381 Rev 1 UM1479 List of figures List of figures Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16. Figure 17. Figure 18. Figure 19. Figure 20. M24LR64 EEPROM-based data logger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 CR95HF demo board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 STARTKIT M24LR-A RFID reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Data logger components on TOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Data logger components at bottom side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Event/data logging GUI window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Start data logger GUI window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Download from DataLogger/EventLogger GUI window . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Graph plot GUI window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Event logger GUI Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 SW4 downward position to disconnect the coin cell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 RFID reader with data logger board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Information message - board is connected to GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 SW4 upward position for connecting the coin cell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Download from the DataLogger/EventLogger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Graph plot window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Hardware layout: data logger top . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Hardware layout: data logger bottom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Doc ID 022381 Rev 1 3/28 Getting started UM1479 1 Getting started 1.1 Package The contents of the complete package are: Hardware content: - - User manual (this document) - Schematics, Gerber files, BOM Firmware: - 1.2 Demonstration board: STEVAL-IPR002V1 Documentation: Pre-programmed STM8L microcontroller soldered on the demo board GUI installation file. System set-up This is a 3 V coin cell operated system. Sensor values are logged inside the EEPROM and are evaluated using the graphical user interface which retrieves the data over RF. 1.2.1 System prerequisites This system has three different stages: 1. Pre-data/event logging stage 2. Data/event logging stage 3. Post data/event logging stage The pre-data/event logging stage is used to select the mode of the system. The system can be selected in data logger mode or event logger mode. This selection is done using the GUI. When selected in data logger mode, all the sensors are enabled for logging every one second. When selected for event logger mode, the boundary limits for different sensors are configured using the GUI. These boundary conditions are the threshold values for sensors. When the sensor measured value is outside these values, they are logged inside the EEPROM. Data/event logging stage is the run-time stage of the system where sensor values are stored inside the EEPROM. The post data/event logging stage is the retrieval stage in which the logged values are read by the RFID reader and evaluated on the GUI. Therefore, the prerequisites to evaluate the data logger are the following: 4/28 CR95HF demo board or STARTKIT-M24LR-A RFID reader STEVAL-IPR002V1 data logger board CR2032 - 3 V coin cell (MAXELL or equivalent) Data logger graphical user interface for connecting the RFID reader to the computer and for the handling of the data logger board. Doc ID 022381 Rev 1 UM1479 1.2.2 Getting started CR95HF demo board The CR95HF demo board is a demonstration kit for the ST CR95HF 13.56 MHz multiprotocol contactless transceiver. The CR95HF-A demo board is powered through the USB bus and no external power supply is required. It includes a CR95HF contactless transceiver, a 47 x 34 mm 13.56 MHz inductive etched antenna, and its associated tuning components. Figure 2. 1.2.3 CR95HF demo board Startkit-M24LR-A RFID reader The STARTKIT-M24LR-A reader is connected to the host-computer USB port. It manages RF ISO 15693 commands (high-level inventory and transparent commands) and M24LR64R-based transponders. This is a medium range RFID reader (see Figure 3). Figure 3. STARTKIT M24LR-A RFID reader Doc ID 022381 Rev 1 5/28 Getting started 1.2.4 UM1479 STEVAL- IPR002V1 event logger board This is a data logger board with the following major components: STM8L microcontroller STTS751 temperature sensor M24LR64-R EEPROM with onboard antenna for RF communication LIS3DH MEMS Humidity sensor Photo sensor 3 V coin cell. Figure 4 and 5 show different components available on the board. Figure 4. Data logger components on TOP Temperature sensor SW4 for selecting 3 V coin cell Reset switch MEMS M24LR64 EEPROM STM8L micro Antenna for RF interface of M24LR64-R AM10706v1 6/28 Doc ID 022381 Rev 1 UM1479 Figure 5. Getting started Data logger components at bottom side 37 FOR ANTI TAMPER (UMIDITY SENSOR 6 COIN CELL 0HOTOSENSOR 37 FOR CHECKING IF ANY DATA IS LOGGED !-V 1.2.5 Graphical user interface for the system This system can be configured as data logger or event logger using a GUI. Figure 6 shows the GUI window for the application. Figure 6. Event/data logging GUI window Connect button Event logging selecting button Data logging selection button AM10708v1 Doc ID 022381 Rev 1 7/28 Getting started UM1479 Click on the "Event Logger" button to configure the event logger application or on the "Data Logger" button to select the data logger application. 1.2.6 Data logger GUI The data logger graphical user interface has 3 windows: 1. Start datalogger 2. Download from the Event/Data Logger 3. Graph Plot Start DataLogger is used to enable all the sensors for data logging. Click on the "Data Logger" button, as shown in Figure 6. Figure 7 shows the Start the Datalogger GUI window. The "Download from the Data/Event Logger" option is used to read the logged data from the EEPROM. Click on "Download from the "Data Logger/Event Logger" button as shown in Figure 7. Figure 8 shows the window for downloading the logged data. "Graph Plot" is used to plot the logged data on the graph and store it in .xls format. Click on "Graph Plot" as shown in Figure 7. Figure 9 shows the window for this. Check the sensors to choose which plots to see. Figure 7. 8/28 Start data logger GUI window Doc ID 022381 Rev 1 UM1479 Getting started Figure 8. Download from DataLogger/EventLogger GUI window Figure 9. Graph plot GUI window Doc ID 022381 Rev 1 9/28 Getting started 1.2.7 UM1479 Event logger GUI The event logger GUI window has 3 areas: 1. Set event logger 2. Download from the Event/Data Logger 3. Graph plot "Set Event Logger" is used to select and configure the threshold limits of sensors. Click on the "Event Logger Selection" button as shown in Figure 6. Figure 10 shows the Set EventLogger GUI window. The Download from DataLogger/EventLogger is used to read the logged data from the EEPROM. Click on "Download from the DataLogger/EventLogger" button as shown in Figure 7. Figure 8 shows the window for downloading the logged data. Graph Plot is used to plot the logged data on the graph and storing it in .xls format. Click on "Graph Plot" as shown in Figure 7. Figure 9 shows the window for this. Check the sensors to choose which plot to see. Figure 10. Event logger GUI Window 10/28 Doc ID 022381 Rev 1 UM1479 1.2.8 Getting started Starting the data logger application Install the event/data logging GUI using the GUI exe. There are two GUI installation set-ups; one for the STARTKIT-M24LR-A RFID reader and another for the CR95HF demo board. Install the GUI according to the e-reader available. The data logger system has 3 stages: 1.2.9 1. Pre-data logger stage 2. Data logging stage 3. Post data logging stage Pre-data logger stage This stage is for enabling all the sensors for logging the data. In this stage the board power comes from the RFID reader and no external cell is needed. Below are the steps for the pre-data logger stage configuration: 1. Connect the RFID reader (CR95HF demo board/STARTKIT-M24LR-A reader) to the computer. 2. Put the switch SW4 into the downward position, as shown in Figure 11. 3. Place the data logger board (STEVAL-IPR002V1) on the reader, as shown in Figure 12. 4. Open the event/data logger GUI application. 5. Press the "Connect" button on the GUI, as shown in Figure 6. An information message for board connection is seen on the GUI as shown in Figure 13. If the message shows "Board is not connected" then again place the data logger board properly near the RFID reader and press the "Connect" button. 6. Click on the "Data Logger Selection" button as shown in Figure 6. The GUI window for data logger opens as shown in Figure 7. 7. The time for starting the logger can be changed using the dropdown in the "Time" section. This time is used to configure the RTC of the STM8L which is used for time stamping of logged data. 8. Press the "Start the Datalogger" button to configure the board for data logging. 9. If the GUI shows the error message "Board is not connected", close the GUI and open it again and start with step 3 above. 10. If the board is configured for data logging then the "Data Recorded" message is displayed on the GUI. Click on "OK". Doc ID 022381 Rev 1 11/28 Getting started UM1479 Figure 11. SW4 downward position to disconnect the coin cell SW4 slided in downward direction for disconnecting the coin AM10713v1 Figure 12. RFID reader with data logger board 12/28 Doc ID 022381 Rev 1 UM1479 Getting started Figure 13. Information message - board is connected to GUI 1.2.10 Data logger stage This stage is the logger stage of the system. In this phase the STEVAL-IPR002V1 board logs all sensor values every one second. Below are the steps for starting the data logger stage: 1. Put the switch SW4 into the downward position, as shown in Figure 11. 2. Insert a 3 V coin cell (CR2032) into the connector, as shown in Figure 5. 3. Put the switch SW4 into the upward position, as shown in Figure 14, the board is powered up by the coin cell. This starts the data logger application. The start time is taken as the time which was configured in the pre-data logger stage. 4. All the selected sensor data is logged inside the EEPROM every one second. 5. To stop the data logging, put the switch SW4 into the downward position, as shown in Figure 11. Note: Once the data logger is stopped using switch SW4, then starting it again through SW4 reinitializes the internal clock reference of the data logger. Therefore, on restarting the data logger the new start time should be configured using the "Start the Data logger" GUI window. SW4 is used to connect/disconnect the coin cell from the system. Note: Data is logged at an interval of 1 second. Once the memory for a particular sensor is full, no more data is written inside the EEPROM for that sensor. Doc ID 022381 Rev 1 13/28 Getting started UM1479 Figure 14. SW4 upward position for connecting the coin cell 37 IN SLIDED IN UPWARD DIRECTION FOR CONNECTING COIN CELL TO SUPPLY THE BOARD !-V 1.2.11 Post data logger stage The post data logger stage is used to download the logged data in the computer and compare this data. Below are the steps for the post data logger stage: 1. Put the switch SW4 into the downward position, as shown in Figure 11. 2. Connect the RFID reader to the computer. 3. Place the STEVAL-IPR002V1 on the RFID reader, as shown in Figure 12. 4. Open the GUI application. 5. Press the "Connect" button as shown in Figure 6. It shows the message "Board is connected", If the board is not connected, close the GUI, reopen it, and press the "Connect" button again. 6. Click on the "Download from the Data logger/Event Logger" tab as seen in the bottom of the GUI window, as shown in Figure 15. The GUI window, as seen in Figure 8, opens. 7. Press the "Get DataLogger/EventLogger" button on the GUI window. 8. The window shows the values for different sensors on the GUI. These values, as seen on the GUI, are the last stored values of the sensors. Each sensor also has a log count which shows the number of values logged for that sensor. 9. Figure 8 shows the condition. 10. Click on the "Graph Plot" tab at the bottom of the GUI window. 11. This opens the plotter window shown in Figure 16. Select the sensor whose plot is to be seen and then click the "Plot" button. 12. Double click on the plot to expand it. To exit from expanded plot, again double click on it and it returns to step 10. 14/28 Doc ID 022381 Rev 1 UM1479 Getting started 13. To zoom in, use the scroll up on the mouse or the '+' button on the keyboard, and to zoom out use the scroll down on the mouse or the '-' button on the keyboard. To slide the graph right or left, click on graph, left click on the mouse and slide to the right side or left side. 14. To store the data in .xls, click on the "Save Plot" button and save the xls file. Figure 15. Download from the DataLogger/EventLogger Doc ID 022381 Rev 1 15/28 Getting started UM1479 Figure 16. Graph plot window Note: In the data logger plot there are no threshold limits for the sensor and so these are not seen inside the plot window. Therefore, there is no marking for maximum and minimum temperature and maximum and minimum humidity on the plot. 1.2.12 Starting the event logger application The GUI installed for the data logger also has the option for an event logger application. As with the data logger, the event logger system also has 3 stages: 1.2.13 1. Pre-event logger stage 2. Event logging stage 3. Post event logging stage Pre-event logger stage This stage is for selecting the sensors for logging the data and configuring the boundary conditions for different sensors. In this stage the board power is coming from the RFID reader and no external cell is needed. Below are the steps for pre-data logger stage configuration: 16/28 1. Connect the RFID reader (CR95HF demo board/STARTKIT-M24LR-A reader) to the computer. 2. Put the switch SW4 into the downward position, as shown in Figure 11. Doc ID 022381 Rev 1 UM1479 Getting started 3. Place the data logger board (STEVAL-IPR002V1) on the reader, as shown in Figure 12. 4. Open the event/data logger GUI application. 5. Press the "Connect" button on the GUI, as shown in Figure 6. The information message for board connection is seen on the GUI, as shown in Figure 13. If the message is "Board is not connected" then again place the data logger board properly near the RFID reader and press the "Connect" button. 6. Click on the "Event Logger Selection" button, as shown in Figure 6. The GUI window for the event logger opens as shown in Figure 10. 7. Select the sensors whose values are to be logged in the "Select" section of the GUI. Click on the check box to select the sensor. 8. Enter the maximum and minimum values for the temperature sensor and the humidity sensor. Light and vibration can have 5 different levels for the thresholds which can be selected from the dropdown menu. If the sensors are not selected in the "Select" section, their value cannot be configured. 9. The time for starting the logger can be changed using the dropdown in the "Time" section. This time is used to configure the RTC of the STM8L which is used for time stamping of logged data. 10. Click the "Write EventLogger" button to configure the boundary values for different selected sensors. 11. If the GUI shows the error message "Board is not connected", close the GUI, open it again and start with step 3 above. 12. If the board is configured for data logging, the "Data Recorded" message is displayed on the GUI. Click on "OK". 1.2.14 Event logger stage This is the logger stage of the system. In this phase the STEVAL-IPR002V1 board logs the sensor values which are outside the boundary limits configured in pre-event logger stage. Below are the steps for staring the event logger stage: Note: 1. Put the switch SW4 into the downward position, as shown in Figure 11. 2. Insert a 3 V coin cell (CR2032) into the connector, as shown in Figure 5. 3. Put the switch SW4 into the upward position, as shown in Figure 14, the board is powered up by the coin cell. This starts the event logger application. The start time is taken as the time which was configured in the pre-event logger stage. 4. If a sensor is selected and its value exceeds the boundary limit which is configured in the pre-event logger stage, then it is logged inside the EEPROM. In the case of tamper, data is logged only when the tamper switch(SW3) is pressed. 5. To stop the data logging, put the switch SW4 into the left position, as shown in Figure 11. 6. To stop the data logging, put the switch SW4 into the downward position as shown in Figure 11. Once the event logger is stopped using switch SW4 then starting it again through SW4 reinitializes the internal clock reference of the data logger. Therefore, on restarting the data logger the new start time should be configured using the "Set Event Logger" GUI window. SW4 is used to connect/disconnect the coin cell from the system. Doc ID 022381 Rev 1 17/28 Getting started 1.2.15 UM1479 Post event logger stage The post event logger stage is used to download the logged data in the computer and compare this data. Below are the steps for the post event logger stage: 1. Put the switch SW4 into the downward position, as shown in Figure 11. 2. Connect the RFID reader to the computer. 3. Place the STEVAL-IPR002V1 on the RFID reader, as shown in Figure 12. 4. Open the GUI application. 5. Press the "Connect" button, as shown in Figure 6. It shows the message "Board is connected". If the board is not connected, close and reopen the GUI, and press the "Connect" button again. 6. Click on the "Download from the DataLogger/EventLogger" tab, as seen in the bottom of the GUI window, as shown in Figure 15. A GUI window, as seen in Figure 8, opens. 7. Press the "Get DataLogger/EventLogger" button on the GUI window. 8. The window shows the values for different sensors on the GUI. These values, as seen on the GUI, are the last stored values of the sensors. Each sensor also has a log count which shows the number of values logged for that sensor. 9. Figure 8 shows the condition. 10. Click on the "Graph Plot" tab at the bottom of the GUI window. 11. This opens the plotter window shown in Figure 16. Select the sensor whose plot is to be seen and then click the "Plot" button. 12. 13. Double click on the plot to expand it. To exit from the expanded plot, again double click on it and it returns to step 10. 14. To zoom in, use the scroll up on the mouse or the '+' button on the keyboard, and to zoom out use the scroll down on the mouse or the '-' button on the keyboard. To slide the graph right or left, click on the graph, left click on the mouse and slide to the right side or left side. 15. To store the data in .xls, click on the "Save Plot" button and save the xls file. Note: 18/28 The event logger mode logging time is recorded as hours and minutes only. Seconds are not recorded inside the EEPROM. Therefore the plot shows values on a minute scale only. Doc ID 022381 Rev 1 UM1479 2 System overview System overview This data logger demo is used to log the data of 6 sensor parameters inside the EEPROM using the I2C communication. This logged data is retrieved from the EEPROM over the RF interface using the RFID reader. The M24LR64-R EEPROM has 8 Kbyte (8192 bytes) of memory. In this data logger application, EEPROM memory is partitioned as follows: 1. RTC date and time: 8 bytes 2. Temperature sensor: 3064 bytes 3. Humidity sensor: 1024 bytes 4. Freefall: 1024 bytes 5. Vibration: 1024 bytes 6. Light: 1024 bytes 7. Tamper: 1024 bytes Total values which can be logged in the EEPROM along with time stamping for each value are: 1. For temperature: maximum 764 values 2. For humidity: maximum 254 values 3. For freefall: maximum 255 values 4. For vibration: maximum 255 values 5. For light: maximum 255 values 6. For tamper: maximum 255 values If the log count for any sensor has reached its maximum value, the data logging for that sensor stops. There is no overwriting of data for any sensor. Doc ID 022381 Rev 1 19/28 System overview 2.1 UM1479 Hardware design description Figure 17. Block diagram &RLQ &HOO 9LEUDWLRQ ,54 9LEUDWLRQ,54 670/ , 5 4 6KRFN,54 7HPS,54 9% 9%DW /(' *3,2 6 LW K 6ZLWFK 3KRWR6HQVRU $'& $'& *3,2 ,& *3,2 9&& 6&/ +XPLGLW\ VHQVRU 6'$ 9&& 9%DW 7HPS6HQVRU 9%DW 0(06 6776 7HPS ,54 /,6'+ 6KRFN 6K N ,54 ((3520 0/55 $QWHQQD 9LEUDWLRQ 9LE WL ,54 !-V The SW4 is used to connect and disconnect the 3 V coin cell to/from the system. Battery connection is needed for the data logging stage. For the pre-data/event logging and post data/event logging stage, power is supplied by the RFID reader and the battery is not needed in the system. The SW2 switch is used to check if any of the data is logged in the EEPROM or not. Below are the steps to follow: 2.1.1 1. After the data/event logging stage, slide SW4 to the downward position and then back to the upward position, i.e. power-on reset the system. 2. Press switch SW2. 3. If any of the sensors have logged the data inside the EEPROM, the LED D1 blinks on the data logger board. 4. Logged data can be read using the RFID reader. Temperature sensor for temperature data logging The STTS751 temperature sensor is used in this application. This is a digital temperature sensor having an I2C communication interface for interfacing with the microcontroller. In the case of Event Logger mode: Temperature thresholds are set for maximum and minimum temperature limits using the GUI and RFID reader. When the measured temperature is outside these limits the value is logged inside the EEPROM along with the date, hour and minute of logging. In the case of Data Logger mode: The temperature value is measured every second and is recorded inside the memory along with a time stamp. 20/28 Doc ID 022381 Rev 1 UM1479 2.1.2 System overview MEMS for freefall and vibration data logging The LIS3DH is the MEMS device used in this application. The LIS3DH MEMS device has been used to identify a freefall event and a vibration level event for the data logger board. Whenever the data logger board undergoes a freefall, the date, hour, and minute of that instance is logged inside the EEPROM as a freefall event. For a vibration event, 5 levels are defined based on the empirically observed results of the MEMS output for shaking the data logger board. These levels are defined as: highest sensitivity, high sensitivity, medium sensitivity, low sensitivity and lowest sensitivity. In the case of Event Logger mode: The threshold for the vibration level is defined using the GUI and the RFID reader. When the vibration seen by the data logger board is equal to or greater than this threshold, the value is logged as a vibration event along with the date, hour, and minute of the event. In the case of Data Logger mode: At every second, board vibration is checked and the value is logged inside the EEPROM. If there is no vibration on the board, it is logged as no vibration level in the EEPROM. 2.1.3 Humidity sensor for percentage humidity data logging The HIH-5030 is the humidity sensor from Honeywell. Output of this sensor is analog voltage which is measured using ADC of the STM8L microcontroller and then converted into percentage humidity. In the case of event logger mode: Maximum and minimum threshold values for percentage humidity are configured using the GUI and the RFID reader. In the event logger system, the humidity value is calculated every 1 second, and if this value is outside the configured threshold values, it is logged inside the EEPROM along with the date, hour, and minute of that instance. In the case of data logger mode: At every second, the humidity value is calculated and stored inside the EEPROM. 2.1.4 Photo sensor for light data logging The APDS-9004 is a photo sensor which is used to sense the ambient light in the data logger application. Output of the photo sensor is an analog voltage which is measured using ADC of the STM8L microcontroller. For light intensity logging, 5 levels are defined based on an empirically observed voltage level output of the photo sensor circuit. These levels are defined as: dark, semi dark, normal, bright, and very bright. In the case of event logger mode: The threshold for the light level is defined using the GUI and the RFID reader. When the light intensity as seen by the data logger board is equal to or greater than this threshold, the value is logged as an event along with the date, hour, and minute inside the EEPROM. After every second, this comparison of threshold light intensity and present light intensity is done and then, accordingly, the event is logged inside the EEPROM. This logging of count for light intensity is checked every 1 second. In the case of data logger mode: At every second, the light intensity value is calculated and stored inside the EEPROM. Doc ID 022381 Rev 1 21/28 System overview UM1479 If the photo sensor output is lower than the level defined as DARK level, it is logged as NO LIGHT in the EEPROM. 2.1.5 Switch press for tamper event simulation The SW3 is a pushbutton switch which is used for the simulation of tamper detection. In the case of event logger mode: Whenever this switch is pressed, an event is logged inside the EEPROM as tamper event. In the case of data logger mode: At every second, the system checks for switch press. If the switch is pressed then it is logged as tamper, or else no tamper is logged inside the EEPROM. 2.2 Hardware layout Figure 18 and 19 below show the component layout to help the user locate different components/sections on the board. Figure 18. Hardware layout: data logger top 22/28 Doc ID 022381 Rev 1 UM1479 System overview Figure 19. Hardware layout: data logger bottom Doc ID 022381 Rev 1 23/28 24/28 Doc ID 022381 Rev 1 2ECTANGULAR !.4%..! !# 37 0$4 '.$ !# 6OP% 6OP% 6BAT 3$! 3#, "539% 6## 2 2 K 2 # N& 2 K 37 0#?3$! 0#?3#, 0$?"USY% 6##?%%02/- 6$$ 6$$ 0! ?37)'.$ 0! ?.234 37)- #ONNECTOR * -,2%-,2% '.$ !# !# 6OP% 5 #/. * 37)- 3ECTION 2 K /0 6## !0$3 .# 6## /PTIONAL 6$$ 0#?3#, 2 6$$ 2 /PTIONAL K '.$ # N& 6$$ 6). 5 # N& 6$$ !$# '.$ ).4 2%3 ).4 '.$ 2 '.$ 6$$ '.$ 0#?3$! 0#?3#, 6$$?)/ .# .# 3#, '.$ 5 ,)3$( 3443?5$&. , 3#, 3$! %6%.4 '.$ 6$$ !DDR 5 6$$ 2 /54054 '.$ ()( 0"?!$#).(UMIDITYSENSOR 4EMPERATURE 3ENSO R /PTIONAL 2 K '.$ 0! ?6IBRATION)21 '.$ 0! ?3HOCK)21 6$$ -%-3 3ECTION # N& 0! ?4EMPERATURE)21 6$$ 2 K 6$$ "!4* 0"?4)-#( # N& $ (UMIDITY3ENSOR0WR %%02/- 3ECTION '.$ 6$$ 0$?%%02/-0WR 0"?4)-#( $ 0#?28 ,%$ 0#?48 0#?#,+ 5 0"?0HOTO$IODE0WR 0"?!$#).(UMIDITYSENSOR 0"?3TATUS#HECK)21 P& # $ "!4* 6$$ (UMIDITY 3ENSOR 3$! 3! #3 "4 "!44%29 #2 6##?%%02/- 37 '.$ 0$?%%02/-0WR 0$?"USY% 0"?!$#).,$2 P& # 2 K 2 !$# !$# 6$$ 6BAT 2 K 2 0$ 0$ 0$ 0$ 0" 0" 0" 0" 0#?3$! 0#?3#, 2 K 6$$ 0OWER 3ECTIO N !NTI4AMPER 37 6$$ 0" 0" 0" 0" 0$ 0$ 0$ 0$ '.$ # N& 0! ?6IBRATION)21 0! ?3HOCK)21 0! ?4EMPERATURE)21 '.$ 6$$ .2340! 0! 0! 0! 34-, 0! 0! 633 6$$ 2 0! ?)#0WR $/ ./4 -/5.4 2 0# 0# 0# 0# 0# 0# 0# 0! 5 0! ?)#0WR '.$ 0! ?37)- 9 K(Z # P& 0#?28 0#?48 0#?#,+ # U& 6$$ 0! ?.234 # 2%3%4 N& /PTIONAL 6$$ '.$ # P& 2 0#?3$! 2.3 37 2 K -)#2/ 3ECTIO N System overview UM1479 Hardware schematic The following figures represent the schematic diagrams for the board. Figure 20. Schematic !- V Bill of materials Table 1. Bill of material Category ST devices Doc ID 022381 Rev 1 Reference designator Component description Package Manufacturer Manufacturer's order code / orderable part number or equivalent U2 Microcontroller LQFP32 STMicroelectronics STM8L151K4T6 U3 Temperature sensor UDFN-6L STMicroelectronics STTS751-0DP3F U4 MEMS LGA16 STMicroelectronics LIS3DH U5 EEPROM TSSOP8 STMicroelectronics M24LR64-DW6T/2 D2, D3 Diode SOD323 STMicroelectronics BAT54J U1 Humidity sensor SMD Honeywell HIH5030 U6 Photo sensor SMD Avago Technologies US Inc. BT1 Coin cell connector Through hole J1 SWIM connector J2 25/28 Supplier Supplier ordering code APDS-9004-020 Digi-Key 516-1716-1-ND Tyco Electronics 796136-1 Digi-Key A99327CT-ND SMT, 4-pin, 1.27 mm pitch ERNI 284697 ERNI 284697 Berg strip 4x1-pin Berg strip Any Samtec TSW-104-23-G-S C1,C2 12 pF SMD0805 AVX Corporation or equivalent 08051A120JAT2A Digi-Key 478-5011-1-ND C3,C4 22 pF SMD0805 AVX Corporation or equivalent 08051A220JAT2A Digi-Key 478-1280-1-ND C5,C6,C8, C9,C10,C11, C12 100 nF SMD0805 Panasonic - ECG or equivalent ECJ-2VF1C104Z Digi-Key PCC1843CT-ND C7 1 F SMD0805 Panasonic - ECG or equivalent ECJ-2FF1E105Z Digi-Key PCC2230CT-ND Comments System overview Capacitors UM1479 2.4 Bill of material (continued) Category Reference designator Component description Package Manufacturer Manufacturer's order code / orderable part number or equivalent LEDs D1 LED, red color SMD0805 Lite-On Inc LTST-C170CKT Digi-Key 160-1176-1-ND R1 4.7 k SMD0805 Panasonic - ECG or equivalent ERJ-6GEYJ472V Digi-Key P4.7KATR-ND R2,R3,R6, R7,R9,R11, R12,R13 10 k SMD0805 Panasonic - ECG or equivalent ERJ-6ENF4221V Digi-Key P4.22KCTR-ND R8 100 SMD0805 Panasonic - ECG or equivalent ERJ-6GEYJ101V Digi-Key P100ACT-ND R10 100 k SMD0805 Panasonic - ECG or equivalent ERJ-6GEYJ104V Digi-Key P100KACT-ND R4,R5,R14, R15,R16, R17,R18, R19 0 SMD0805 Panasonic - ECG or equivalent ERJ-6GEY0R00V Digi-Key P0.0ACT-ND SW1,SW2, SW3 Pushbutton SMD MULTICOMP DTSM-32S-B Farnell 9471898 SW4 DPDT Switches Through Hole C&K Components JS202011AQN Digi-Key 401-2000-ND Y1 32.768 kHz Through hole ECS Inc ECS-3X8X Mouser X1123-ND Resistors Supplier Supplier ordering code Comments System overview 26/28 Table 1. R11,R12,R13 not mounted Doc ID 022381 Rev 1 Mount one out of R4/R5 Switches Crystal Not mounted UM1479 UM1479 3 Revision history Revision history Table 2. Document revision history Date Revision 24-Apr-2012 1 Changes Initial release. Doc ID 022381 Rev 1 27/28 UM1479 Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries ("ST") reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST's terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST'S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER'S OWN RISK. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. (c) 2012 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com 28/28 Doc ID 022381 Rev 1