Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jan 2010 21:28:30 +0100
From:      Stefan Bethke <stb@lassitu.de>
To:        freebsd-hackers@freebsd.org
Subject:   TEMPer USB Thermometer
Message-ID:  <8E9BCE63-C37A-438C-94D8-7AA86B9F6597@lassitu.de>

next in thread | raw e-mail | index | archive | help
Various outfits including Brando are selling a cheap-ish USB thermometer =
named =93TEMPer=94. (I need one to monitor my home server closet.)

I've put together a small command line utility that reads out the =
temperature from the LM75 sensor in the TEMPer: =
http://wiki.zs64.net/TEMPer_USB_Thermometer

To run it, you will need to have the driver for WinChipHead =
USB-to-serial controller loaded (uchcom(8) on FreeBSD).
It puts the LM75 into 12-bit resolution mode (about one measurement per =
second) and outputs temperature data once per second in degrees Celcius.

The LM75 thermostat is connected to an LED, so you can use that as an =
indicator of temperature. Note that driving the LED dissipates enough =
power (probably through the current-limiting resistor) that the measured =
temperature rises by two degrees.

usage: temper [-d device] [-h high] [-l low] [-n count]
    -d device   USB serial port of the TEMPer
    -h high     thermostat on temperature
    -l low      thermostat off temperature
    -n count    number of readings to take, <0 is infinite
If the high temperature is below the low temperature, operation of the
thermostat is reversed, and the output is turned on when the measured
temperature is below the threshold.

Enjoy!


Stefan

--=20
Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8E9BCE63-C37A-438C-94D8-7AA86B9F6597>