The purpose of this article is to present a method for creating a low-cost temperature sensor that can communicate over an RS232 serial connection with a Trimble GPS receiver. The temperature data can then be logged to the receiver’s internal memory or streamed on a TCP port via the BINEX or RT27 formats. This sensor is intended to be used with a Trimble NetRS/NetR5/NetR8/NetR9 receiver by enabling the Tilt/Met logging feature on the receiver. It may be possible to use this device with other receivers if they support met sensors.
This article will document the following: the materials needed to build the project; how to program the sensor to communicate with the receiver; and how to set up the receiver to communicate with the sensor. The main application for this sensor is to log temperature data at a GPS site. Previous knowledge of basic soldering/electronics skills are required.
This tutorial does not include instruction on how to build an enclosure for this device. The size of the sensor could be reduced by choosing smaller components (e.g. Arduino Nano, Arduino Mini).
The wiring diagram for the Arduino Uno, DS18S20 1-wire temperature sensor and the RS232 shifter board is shown below. The size of each component is not to scale. In this configuration, the DS18S20 temperature sensor requires a pull-up resistor (1/4W 4.7kOhm) between the 5V (red) and Data (blue) wires.
Once both the Arduino and the Receiver are configured correctly, connect the two devices with a serial cable. The Arduino will need to be powered by a 7-12V DC power source using a center positive barrel plug. The Arduino will automatically run the uploaded sketch when powered up. The temperature sensor design shown in this report will consume ~0.4W. The Met data from the sensor will be included in logged session files (T00, T01, T02), or if selected, in RT17/RT27/BINEX streaming formats. The DS18S20 temperature sensor has an operating temperature range of -55°C to +125°C and is accurate to ±0.5°C over the range of -10°C to +85°C. In this example the DS18S20 has a resolution of 9-bits.
Article ID: 743
Created: March 12, 2012
Last Updated: November 23, 2015
Author: Henry Berglund
Online URL: https://kb.unavco.org/article/how-to-build-a-simple-digital-temperature-sensor-with-rs232-serial-interface-743.html