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 <s...@lassitu.de> Fon +49 151 14070811
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hacke...@freebsd.org"