Public Lab Research note


Stand Alone Data Logger for Field Use

by bhickman | March 05, 2015 07:26 05 Mar 07:26 | #11654 | #11654

Purpose:

Many project require that instruments be left in the field for extended periods of time to collect data. Many of these instruments do not log data, but have an analog output that must be recorded by some other device. Previously Dr. Summers has developed a couple boards (here and here) that, once connected to a computer, will log an analog instrument’s output as well as display the data in real time. This note demonstrates how to take the board developed by Dr. Summers and use it without the need for a computer.

Attempts and Results:

In order to log data without a computer another means of data storage was needed. Dr. Summers has written a program that stores data internally on the Tiva microcontroller, and a further description may or may not be coming soon. However, in this note a SD card was used for data storage. The first step was to design a shield for a SD card that was compatible with Dr. Summers’s data logger boards (a few minor discrepancies remain, but are being worked out). This shield is available here, and the bill of materials for this shield can be found at the bottom of the page. This SD shield allows you to read and write data to files on a SD card, as well as providing breakout connections intended to be used with either a real time clock (RTC) or a GPS unit.
. Dr. Summers’s previous data loggers are designed to take parameters that a user enters into a GUI to adjust the gain, offset, number of runs, and number of channels to log. In order to avoid the need to bring a computer into the field, these parameters are stored in a text file that can be edited on the SD card. Once the microcontroller is turned on, it reads these parameters and starts a logging program as prescribed in the parameters file. An example file is shown below.

params.png
Example txt file for setting data logger parameters.

In this note, for an example use of the data logger setup, a thermocouple attached to an AD595CQ chip was used as the analog instrument. The AD595CQ takes a thermocouple signal and amplifies it so that the output increases by 10mV per degree Celsius. The output of the AD595CQ was then connected to the positive input of Dr. Summers’s data logger board (There are supposed to be BTA connectors on the data logger board, but I forgot to order them…). The parameters file on the SD card was adjusted so that the data logger collects data every ten seconds and would do so continuously. The data logger setup was then connected to a +5 volt power supply via the usb cable, and left for about a day (21.8 hours) to collect data.

WP_20150220_002_EDITED.png
Components of data logger setup.

WP_20150220_009.jpg
Data logger setup ready to go.

At the end of the day 7852 temperature readings, consisting of 86,136 bytes of data, were collected and stored on the SD card. The results of the data are shown below.

Temp_v_time.png
21.8 hours worth of temperature data collected every 10 seconds stored on the data logger's SD card.

Questions and Next Steps:

Detailed instructions on how to set up the software and hardware for the data logger. Small adjustment in circuit. Put the setup in a weather tight box and log some instruments in the field. Create GUI for adjusting parameters file.

Things you will need:

  1. SD card shield bill of materials:

  2. Data logger board

  3. Tiva LaunchPad

  4. Energia code (Git Hub…Coming soon-ish)

  5. Energia libraries:

    • Dr. Summers's AltSPI (Git Hub…Coming soon-ish)
    • SD
    • RTC

2 Comments

Hi, do you have a sense of the cost of the bill of materials?

Is this a question? Click here to post it to the Questions page.

Reply to this comment...


The per unit cost is about about $35 if you are buying everything (microcontroller, PCBs, components...) and you are using the real time clock. The GPS unit itself is about $35, so if you need to know where you are at, its bit more expensive. Also I should say the PCB fabricator (OSH Park) has a three board minimum for each type of board ordered, and each set of three cost about $20.

Reply to this comment...


Login to comment.