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.
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.
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.
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:
SD card shield bill of materials:
Energia code (Git Hub…Coming soon-ish)