For english text, see middle of file
**********************************************************
** SHT11.EXE - einfache Temperatur- und Feuchte-Anzeige **
**********************************************************
** sht11_nt.exe - dito fr Windows NT/2K/XP **
**********************************************************
Dieses Programm realisiert den Betrieb des SHT11-Sensors inklusive seiner
(recht verkorksten) seriellen Ansteuerung am Druckerport des PCs oder Laptops.
Es ist fr DOS, Win16 und Win32 (ungetestet: Win32-Unicode) bersetzbar.
Anschluss am Parallelport (nur LPT1) mit Selbstversorgung:
SHT11-Pin | SubD25-Pin
------------------------------
GND 1 | 22 GND
DATA 2 | 10 ACK
SCLK 3 | 8 D6
VDD 4 | 7 D5
Weiterhin eine Diode (Typ beliebig, bspw. SAY32 oder 1N4148):
Dioden-Pin | SubD25-Pin
------------------------------
Katode (1) | 9 D7
Anode (2) | 10 ACK
[Nach Raimund Schuitz <schuitz@tbs1.de> ist diese Diode
vorteilhaft durch einen Widerstand 330..560 Ohm ersetzbar]
und ein Kondensator 100 nF als Betriebsspannungssttze:
Kondensator-Pin | SubD25-Pin
------------------------------
(1) | 7 D5
(2) | 22 GND
(sonst liefert die Temperaturmessung zu groáe Werte)
Ein Pullup-Widerstand wird nicht ben”tigt, dieser ist schon im Druckerport.
Ein Foto eines solchen Adapters kann man sehen unter:
http://www-user.tu-chemnitz.de/~heha/bastelecke/Rund%20um%20den%20PC/Wetterstation/sht11.jpg
Fr den Betrieb unter Windows NT/2K/XP nehme man sht11_nt.exe und
eine c't-kompatible Portfreigabe, bspw. "PortTalk22.zip" (Freeware).
Um den Neustart zu vermeiden, der bei Ausfhrung der Datei "porttalk.reg"
f„llig w„re, kopiere man "porttalk.exe" und "porttalk.sys" neben die
"sht11_nt.exe" und starte "porttalk.exe sht11_nt.exe".
Man ben”tigt grunds„tzlich Administrator-Rechte fr die Installation
des Treibers.
Unter Windows XP l„uft die 16-bit-Version auch ca. 30 Sekunden auch
ohne Portfreigabe; dann scheint das Parallelport zu klemmen. Das ist
das Verhalten von Windows XP! Vermutlich fr alte Programme mit Dongle.
*** BEZUG ***
Die Sensoren SHT11 gab es einzeln als Muster unter
http://www.sensirion.com/de/sampling
Die bessere Version (mit 2% statt 5% Feuchte-Abweichung) SHT17
gibt es bei Farnell (www.farnell.de) fr rund 20 Euro.
*** DDE ***
Diese letzte Version von SHT11.EXE hat eine einfache DDE-Schnittstelle zur
Abfrage von Temperatur und Feuchtigkeit, mit automatischer Benachrichtigung.
DDE-Service: SHT11
DDE-Topic: SHT11
DDE-Item Temperatur: T
DDE-Item Feuchte: F
Zwischenablageformat: CF_TEXT
Zum Anlegen einer Log-Datei bedarf es eines geeigneten DDE-Log-Programms.
********************************************************************
** SHT11.EXE - A program demonstrating the Sensirion SHT11 sensor **
********************************************************************
** sht11_nt.exe - same for Windows NT/2K/XP using PortTalk **
********************************************************************
This program shows temperature and humidity measured by an SHT11 sensor,
and with source code, you can see how to program its serial interface.
The .EXE file is a combined DOS and Windows application.
Connection to parallel port (LPT1 only); the sensor is powered by LPT1:
SHT11 Pin | SubD25 Pin
------------------------------
GND 1 | 22 GND
DATA 2 | 10 ACK
SCLK 3 | 8 D6
VDD 4 | 7 D5
Furthermore, you need one diode (all types, eg. 1N4148):
Diode Pin | SubD25 Pin
------------------------------
Katode (1) | 9 D7
Anode (2) | 10 ACK
and a capacitor 100 nF near SHT11 chip for EMI suppression:
Cap Pin | SubD25 Pin
------------------------------
(1) | 7 D5
(2) | 22 GND
(otherwise, temperature measured is too high)
No pullup resistor is required because it is inside the parallel port.
A photo where you can see a sample adapter is at:
http://www-user.tu-chemnitz.de/~heha/bastelecke/Rund%20um%20den%20PC/Wetterstation/sht11.jpg
For proper work in Windows NT/2K/XP you need sht11_nt.exe and a German
computer magazine ¯c't® compatible port access driver, google for
"PortTalk22.zip" (another freeware)
To avoid rebooting using the "porttalk.reg", put "porttalk.exe" and
"porttalk.sys" in the same directory as "sht11_nt.exe", and execute
"porttalk.exe sht11_nt.exe".
You need administrator privileges to do this first step.
The 16bit version SHT11.EXE seems to run in Windows XP for about 30 seconds,
even without any access enabler - then - the LPT port seems to lock up.
This is the behaviour of Windows XP! Seems to be some piece of code
for supporting old programs accessing a dongle at startup.
*** HOW TO GET SHT11 ***
You can't get an SHT11 sample when filling out the following form:
http://www.sensirion.com/sampling
A more precise sensor (with 2% instead of 5% humidity deviation) SHT17
you may order at Farnell (www.farnell.com) for about 20 Euro.
*** DDE ***
This new version of SHT11.EXE has a simple DDE interface for
querying of temperature and humidity, with DDEADVISE.
DDE service: SHT11
DDE topic: SHT11
DDE item temperature: T
DDE item rel. humidity: F (from German "Feuchte")
clipboard format: CF_TEXT
For a log file you need a suitable (and simple) DDE log program.
*************
haftmann#software, 08/04
henrik.haftmann@e-technik.tu-chemnitz.de
Detected encoding: UTF-8 | 0
|