Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 25, 2013 5:09 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 74 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: 1-wire info and recommendations
PostPosted: Tue Nov 23, 2010 2:11 pm 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
Useful site that :) I've bought a book on weather stations, sensors and the 1-wire system http://www.amazon.co.uk/gp/product/0470040467/ref=oss_product which uses the HobbyBoard modules modules and kits in their examples. From a quick look through it (only came this morning) it seems to be a useful book :) OK I dare say all the info is on-line but a book is easier to read.

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Tue Nov 23, 2010 2:31 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17612
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Oooh - I've seen that book before and thought about buying it... :)

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Tue Nov 23, 2010 3:30 pm 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
I think it's good value for a book. 450 pages. Covers general info about how weather is/was measured, shows a couple of weather stations including the Davis Vantage Pro 2 and goes on to talk about 1-wire principles, circuits and systems and the software to run them. It looks like 1-wire should be cheap and reasonably easy to implement. The latter will be a case of "the proof of the pudding is in the eating" :lol:

I have ordered a couple of things from HomeChip. Their prices seem very reasonable and ordering from their UK site avoids any problems with international delivery. I've ordered their low cost serial to 1-wire adaptor, some DS18B20 1-wire temperature sensors and a DS2450S+ 1-wire quad A/D converter. That should do to get me going :)

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Tue Nov 23, 2010 4:28 pm 
Offline

Joined: Mon Jan 25, 2010 1:55 pm
Posts: 623
Location: Brighton, UK
Weather Station: Watson W-8681
Operating System: Vista
Gina,

Remember your forum chums when you go to market and make £millions, won't you? ;)

_________________
Paul

http://www.greatcollegestreet.co.uk -Online
http://www.lehamel.eu - Online

Image Image


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Tue Nov 23, 2010 5:56 pm 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
Synewave wrote:
Gina,

Remember your forum chums when you go to market and make £millions, won't you? ;)
But of course :) What a lovely thought :lol:

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Fri Nov 26, 2010 10:41 pm 
Offline

Joined: Mon Jan 04, 2010 10:01 pm
Posts: 180
Location: Stevenage, UK
Weather Station: WH1081
Operating System: Vista 32bit bus edit
I've just completed a project to maintain the temperatures in my reptile enclosures, this uses the DS18B20 one wire temperature sensor (well 4 actually as it's a multi channel device) which communicates to the PIC micro.

Image

I used PicBASIC PRO to write the code for the PIC, but there are loads of other language examples on the net. I have been looking at the more expensive temperature / humidity sensors, but they use a different protocol and have two data lines (SLC and SDA). I did however come across one page I bookmarked which uses a cheap one wire sensor and PIC micro as a data logger to record temperatures and then upload them to a PC all in a neat package

Image

Full details can be found http://www.compendiumarcana.com/datalog/

_________________
Regards

Malcolm
http://www.micro-heli.co.uk/

Image


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Fri Nov 26, 2010 10:43 pm 
Offline

Joined: Mon Jan 04, 2010 10:01 pm
Posts: 180
Location: Stevenage, UK
Weather Station: WH1081
Operating System: Vista 32bit bus edit
Synewave wrote:
Gina,

Remember your forum chums when you go to market and make £millions, won't you? ;)


Is that after it's cost nearly as much to get the thing fully tested to be able to sign off the CE declaration :(

_________________
Regards

Malcolm
http://www.micro-heli.co.uk/

Image


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Fri Nov 26, 2010 11:13 pm 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
malc-c wrote:
I've just completed a project to maintain the temperatures in my reptile enclosures, this uses the DS18B20 one wire temperature sensor (well 4 actually as it's a multi channel device) which communicates to the PIC micro.
---
Full details can be found http://www.compendiumarcana.com/datalog/
Thanks Malcolm, that's very interesting :) I've bookmarked your link to study later.

I hope to be experimenting soon - my 1-wire stuff came today :)

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Fri Nov 26, 2010 11:37 pm 
Offline

Joined: Mon Jan 04, 2010 10:01 pm
Posts: 180
Location: Stevenage, UK
Weather Station: WH1081
Operating System: Vista 32bit bus edit
Gina,

Sounds like you're gonna have some fun... Those modules seem a good starting point... Whilst it's taken me around 9 months on and off to get my thermostat project to the stage it's at now, it's been fun taking the thing from the development board, through breadboarding, on to the stripboard prototype and finally to the stage where I designed the PCB and had half a dozen made in Hong Kong. I don't intend to retail them due to the costs and legalities of selling no CE marked items in the EU, but at least making up the remaining 5 units gives me the opportunity of recovering my costs by selling them to close friends, which according to trading standards is acceptable as it couldn't be classed as a business venture and thus doesn't need CE marking. However like all law it's open to interpretation, so if something did happen and it was one of my units at fault and I found myself before a judge, it would be dependent on what side of bed he /she got out of bed on the day :)

At the end of the day I set out to build myself a 4 channel pulse proportional thermostat with lighting controllers built into one unit -I've achieved that so I'm happy and anything more has been a bonus. I hope you get the same thrill and result with your project as I am with mine.

_________________
Regards

Malcolm
http://www.micro-heli.co.uk/

Image


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Fri Dec 17, 2010 10:59 am 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
Another useful link for 1-wire weather station sensors :- http://www.sensorsmag.com/sensors-mag/1-wire-addressable-digital-instruments-environmental-monitor-1065

1-wire is still a secondary project after getting my current system reliable - I think my anemometer froze up in the night, it's very rare to get so little breeze that it doesn't move at all in several hours (and the vane did). I'm building a thermostatic heater circuit for the rain gauge and looking into same for the wind sensors (as mentioned elsewhere).

I'm doing odd little bits towards 1-wire and following various links on-line to get myself into it. I have OWFS (One Wire File System) installed in Linux and it recognises both the ID in the serial to 1-wire adaptor and the ID in the temperature sensor chip so the hardware is working (as far as it goes). Next step is to sort out the software so that I can read the temperature. Once I get sorted out for temperature I can start adding other sensors. The latter seems quite straight forward. OWFS is also available for Windows so I expect my software solution to be multi-platform. It might also provide an interface that Steve could use to extend Cumulus to 1-wire. I would like to contribute to Cumulus if I can as thanks to Steve for the use of these forums.

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Wed Dec 22, 2010 11:42 am 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
I now have a very simple 1-wire setup - serial adapter(DS9097U) and temperature chip(DS18B20) connected. Running on AMD64X2 system Linux Mint. I have installed OWFS (One Wire File System) which mounts all the sensors etc. as files and allows access to all their properties through simple file system commands. These may be manual through a terminal or using any programming language. (OWFS is free multi-platform software and available from SourceForge.)

Here is an example of access from the terminal :-
Quote:
gina@AMD64-Mint-9 ~ $ sudo cat /mnt/1wire/28.0F516B020000/temperature
17.375
And here is my complete terminal run including mounting the devices, listing their IDs and properites, and finally reading the temperature.
Quote:
gina@AMD64-Mint-9 ~ $ sudo /opt/owfs/bin/owfs -d /dev/ttyS0 /mnt/1wire
[sudo] password for gina:
gina@AMD64-Mint-9 ~ $ sudo ls /mnt/1wire
09.82CD79060000 28.0F516B020000 alarm bus.0 settings simultaneous statistics structure system uncached
gina@AMD64-Mint-9 ~ $ sudo ls /mnt/1wire/09.82CD79060000
address alias crc8 family id locator memory pages r_address r_id r_locator type
gina@AMD64-Mint-9 ~ $ sudo ls /mnt/1wire/28.0F516B020000
address crc8 family id power r_id temperature temperature11 temperature9 templow
alias errata fasttemp locator r_address r_locator temperature10 temperature12 temphigh type
gina@AMD64-Mint-9 ~ $ sudo cat /mnt/1wire/28.0F516B020000/temperature
17.375
The other device ID is in the serial adapter - they're available with or without ID.

I haven't used a high level language to access it as yet.

P.S. I created the directory /mnt/1wire first.

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Wed Dec 22, 2010 12:40 pm 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
Trying to sort out permissions now so that I can use it as gina rather than root.

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Wed Dec 22, 2010 8:13 pm 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
Not managed to sort out permissions but I do have temperature logging set up now using Python. The script reads the temperature and logs it to a text file together with the current date/time. This may be run as a cron job at whatever interval desired. Additional temperature sensors may be added easily and other sensors by simply replacing "temperature" with the appropriate property. The system will be highly modular.

Now to link the log file to GnuPlot to produce temperature plots like my F.O. station. I'll also do processing to produce plots over various time scales etc.

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Thu Dec 23, 2010 10:14 am 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
Here's the link to the SourceForge page for OWFS giving details :- http://sourceforge.net/projects/owfs/
and OWFS home page :- http://www.owfs.org/

For MS Windows, OWFS runs under Cygwin :- http://en.wikipedia.org/wiki/Cygwin I hope to check out this implementation on my Windows XP machine once I have things running in Linux.

I also expect to test it in Mac OS X.

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
 Post subject: Re: 1-wire info and recommendations
PostPosted: Tue Dec 28, 2010 11:11 pm 
Offline

Joined: Sat Feb 21, 2009 12:41 pm
Posts: 1859
Location: Devon UK
Weather Station: FO WH1081PC (Maplin)
Operating System: OS X, Linux Mint, Win7 & XP
Just a minor update... I have connected the DS18B20 with about 10 metres of CAT5 cable to the adapter and placed the sensor outside. (I had a bit of fun persuading two wires from the CAT5 cable - blue for data and blue/white for ground - to go into the right holes in an RJ11 plug for crimping). The sensor end was soldered and the joints separated and protected with insulation tape. A proper job would be to encapsulate the connections in a thermosetting plastic. That would make the sensor weatherproof.

I tested this with the Python logger software mentioned above. It showed a nice smooth drop in temperature as the sensor cooled from room temperature down to the outside temperature.

_________________
Gina

Sorry, no banner - weather station out of action. Hoping to be up and running with a new home-made one soon.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 74 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group