Tuesday, October 25, 2005

My Desktop Thermo


I made this cool desktop thermo using DS1820 which is plugged into DS9097U – DB9 Com Port adapter. I got these samples from Maxim Dallas Semiconductors a long time ago but couldn’t find enough time to play around. The program is done using C# after so many trial and error efforts. It is based on the OneWireAPI.dll which can be downloaded here. The program nicely sits inside the system tray and displays the temperature when the mouse pointer hovered on to the icon. (the icon is made by me which is not in great shape…).


I have two units of DS1820s at home which are plugged into the same port, one is on the CRT (it heats up a lot; so that I can turn on the fan) and the other one lying on the desk monitoring the room temperature. The one shown in the picture is the unit in my office. (otherwise, how could I be at 23.94 Celsius; normally it’s 28-30 Celsius outside). If anyone interested about this, I am willing to share my knowledge. (even the software).

2 comments:

Anonymous said...

Hello I've read about You've written some software using api from dallas
i'am having some issues with it, using Visual Basic. have you got any idea how to write som temp.reader under VB?my address: mmrado[a.t.]wp.pl

Chandana said...

Nice to see that you are also interested in thermos and Dallas stuff. I did that particular project a long time back ( almost three years) therefore can't remember anything at all :-) It took a couple of days to search the code since it was dumped somewhere. Anyway, I did all the coding in C#, and technically it can be done in VB.Net too. I'm not too sure about VB6 (if that is what u meant by VB) but even with VB6, you could be able to do it since it supports external dll handling. The core of the system is OneWireAPI.dll which you can download from Dallas site. Write a wrapper class around the dll to call it from your main program. I've send the full coding of my project to the email mentioned and I'm sure it'll help you to understand the internals.