TEMPer USB Thermometer

Stefan Bethke stb at lassitu.de
Fri Jan 1 20:57:30 UTC 2010


Various outfits including Brando are selling a cheap-ish USB thermometer named “TEMPer”. (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

-- 
Stefan Bethke <stb at lassitu.de>   Fon +49 151 14070811






More information about the freebsd-hackers mailing list