PDA

View Full Version : Dallas/Maxim 1-wire sensors.



danward79
August 20th, 2004, 03:00 PM
Hi

I am wondering if it is possible to use the dallas semiconductors 1-wire sensors, with girder?

They have a serial adapter, which you can use to connect various sensors to.

This is the serial adapter:-
http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2983
http://pdfserv.maxim-ic.com/en/ds/DS9097U-009-DS9097U-S09.pdf

This is the temp IC's
http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2815

Reason I am wondering, is I would like to be able to monitor my new Aquarium temps with one of them, and perhaps latter a few other temps.

Any clues?

Dan

Promixis
August 20th, 2004, 04:24 PM
I would think so.

I have just started playing with Phidgets. So far, I think they are going to work very well with Girder.....

They have a temp sensor.

danward79
August 21st, 2004, 12:24 AM
The Phidgets look very cool.

But the reason the 1-wire stuff is good, is because, you can run then on a telephone wire and easily setup a network of devices. They are also very cheap.

And if you use a DS18S20, for example, it is very acurate. for the cost.

How do you think I would be able to communicate with these? Via LUA, or the serial plugin?

Dan

mhwlng
August 21st, 2004, 03:07 AM
Via LUA, or the serial plugin?

nope....


the protocol is complicated and timing critical.
you need to examine all the datasheets...

If you're not an electronics engineer, you'd probably want to forget it :D ...

instead, you need to get a tmex driver, which exposes a COM interface

http://www.ibutton.com/software/tmex/index.html

unfortunately the COM interface doesn't work with luacom

so you'd have to use vb/vbscript/c++ to get the data and then transfer it to girder

also beware for incompatibilities between different versions of the DS1820 and serial adapters.

also, note that getting the temperature from the DS1820 takes about a 2 seconds, so you'd want to do that as a background job.

I am using an DS9097U with one DS1820
I slightly modified TempVC32 from the SDK examples to transfer the data to MRTG
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/
the resulting temperature chart, I then transfer to Netremote using girder.

Marcel

MMcM
August 21st, 2004, 07:11 AM
The LCD plug-in supports those Matrix Orbital and Crystalfontz displays that have a DOW interface. The hardware is more expensive, of course, but you get the LCD as well. Also, it looks like Maxim wants you to buy at least a thousand of the serial interfaces from them direct. Perhaps you already located a source for hobbyist quantities.

mhwlng
August 21st, 2004, 07:19 AM
Perhaps you already located a source for hobbyist quantities

you can buy any maxim part on line in quantities of one

see http://www.ibutton.com/ -> buy online

also have a look at the tini board

http://www.ibutton.com/TINI/index.html

it has One-wire, 2xrs232, ethernet

you program the device in java


Marcel

rogerrabbit10
August 22nd, 2004, 12:21 AM
hello ,
i use the same temp wire : "i am using an DS9097U with one DS1820 " the usb apdater..

you receive the "temp" into girder ??

i m not a programmers ... please help me to config like this ...

you use netremonte plugins in girder ?

if exact please send ..or explique me .. for execute this . prefere end files ..please .


thanks.
excuse my language i'm french !!

danward79
August 22nd, 2004, 01:25 AM
Hi everyone,

Thanks for all the info.

Marcel, it is not the electronics that worries me. :wink: It's the programming. I am a complete LUA novice, supported by everyone on the forum. What sort of VB level are we talking here, I know it is not basic, but, do you think it would be possible to get the data with a little help from the forums!

MMcM, I don't want an LCD. I got know were to put it! :(

Dan

mhwlng
August 22nd, 2004, 01:43 AM
I know it is not basic

It's pretty advanced stuff...

download the sdk from the url above and look at the vb/vbscript examples...
If they scare you, then run away :D

Marcel

danward79
August 22nd, 2004, 02:36 AM
Arrrrh :cry: , I see what you mean!

rogerrabbit10
August 23rd, 2004, 06:54 AM
Hie it's very difficult for me ........

i not find the correct source .. vb ...TempVC32 the file is in the sdk version 4.0 ?
the compiler ?? MRTG ?? it 's one compiler ? the install is bad .... no execute file ... :roll: in the folder.

after 4 hours ... bouhhhhhhhhhhhhhhhhh !! very hardy !!!

please help me ... send the file is very difficult for you ???

mhwlng
August 23rd, 2004, 07:11 AM
the example file that I use is in :


C:\Program Files\Dallas Semiconductor\1-Wire SDK V4.00 Beta\Examples\TMEX\C\TempVC32

you need microsoft c++ to compile..
If you don't know how to do that, and if you don't understand the source code you should forget it...

1-wire bus is just very complicated !

also MRTG (see URL above) is a program to generate a web page with historical charts of different information (mainly SNMP data). it has nothing to do with girder/netremote....

I simply send the generated JPG file to netremote to put it on the screen.


Marcel

danward79
August 23rd, 2004, 10:13 AM
Perhaps Phigets are the way to go!

Dan

rogerrabbit10
August 23rd, 2004, 10:39 AM
ok thanks ....

new problem : i launch the tempvc32.exe ..in windows command (xp pro)....
find the ds9490 ok .. and dll correct :v3.21 3/15/04 ib90ub.dll.....ok

not find the ds1820 ...... i look the source tempvc32.c ... i find the ds1820 is 0x10 type of ibutton .... it's good ?? i not get the type of .......

bouhhhh ... very hardy ......

i return in the c ++ book !!! ...after 10 year ...

thank for help me .

Amppa
August 26th, 2004, 11:21 AM
I use Thermometer program with dallas 1-wire sensors

http://www.elektroniikka.org/thermometer/?page=mainpage

You can set upper and lower limits for each sensor and execute actions when limits are reached, like send event to girder with event.exe. Program can also write log and save temperature graphs.

And it is almost free, just a postcard and a stamp :D

danward79
August 26th, 2004, 11:38 AM
Thanks for the link, will check it out.

Dan :wink:

danward79
August 26th, 2004, 11:49 AM
Hi

I have had a look, I think I need more time to look, and some sensors, what do you use with yours?

Is there any better doc's?!

Thanks again dan

Amppa
August 26th, 2004, 12:22 PM
Not much yet :D
My target is to control room temperature with Girder. I have a heatpump (or air conditioner) that has IR control. First I set up a patch files that send alarms to girder, but I think I can make better control If I take into account exact outdoor and Indoor temperatures and how they are changing. So now Iam learning how to do file access with LUA.
Iam not aware of any documentation, but this program is quite easy to take into use. Only problem that I had was finding out which type of adapter my DIY adapter matches. And also you need to install 1-wire drivers from Dallas semiconductors.

There is also another free program if you are interested
http://www.mrsoft.fi/ohj01en.htm

Haven't really used that one, but I will take a look

- Amppa -

danward79
August 26th, 2004, 12:28 PM
Cool, will check that out latter thanks again

Dan

control2you.com
August 4th, 2005, 05:09 PM
I am using an "intelligent" interface, works perfectly. with simple ASCII commands.

Are controlling/monitoring: Temp, humidity, rain, wind, light, dimmers, switches, and power sensors.

Intelligent Bus Masters relieve the host from the burden of generating the time-critical 1-Wire communication waveforms while supporting all Dallas 1-Wire and iButton devices with simple ASCII commands that can be easily generated. This enables 1-Wire networks to be used by nearly any device that can read/write ASCII data via any of the following interfaces: RS232 / RS485 / TTL.

I have tried the "dumb" interfaces, and that's a NIGTHMARE!!!!!

Dallas 1wire rules

danward79
August 8th, 2005, 01:03 AM
Any Links to the stuff you use?

:D

control2you.com
August 8th, 2005, 03:21 AM
The unit I use.
http://embeddeddatasystems.com/page/EDS/PROD/HA/HA7E

Other nice 1-wire stuff.
http://www.aagelectronica.com/