User Tools

Site Tools


howto:usbtemp

This is an old revision of the document!


USB Temp

Details for the USB Temperature Probe from usbtemp.com

https://usbtemp.s3.amazonaws.com/manuals/usb-thermometer_installation-en.pdf

dmesg | tail

sudo vi /etc/udev/rules.d/usbtemp.rules
SUBSYSTEM!="tty", GOTO="serial_end"
ENV{ID_SERIAL_SHORT}=="", GOTO="serial_end"
SYMLINK+="serial/by-serial/$env{ID_SERIAL_SHORT}"
LABEL="serial_end"

sudo udevadm control --reload-rules
sudo udevadm trigger

sudo apt-get install digitemp

?
sudo apt-get install owfs

sudo usermod -a -G dialout wuff
wuff@gondor:~/Downloads/digitemp$ newgrp dialout

#initialisation
digitemp_DS9097 -i -s /dev/ttyUSB0

#read temp
digitemp_DS9097 -t 0

Python scripting example:

#sudo pip install DS18B20 pydigitemp
git clone https://github.com/mcsakoff/pydigitemp
digitemp.py
from pydigitemp.digitemp.master import UART_Adapter
from pydigitemp.digitemp.device import DS18B20
import time
bus = UART_Adapter('/dev/ttyUSB0')
sensor = DS18B20(bus)
while True:
    print(sensor.get_temperature())
    time.sleep(1)
howto/usbtemp.1685888833.txt.gz · Last modified: 2023/06/04 15:27 by Wulf Rajek