WH1080 Weather Station Integration

81 replies [Last post]
steve
Offline
Joined: 28 Feb 2011
Looks identical to mine,

Looks identical to mine, except the LCD bezzle colour, should be good to go..

You could also try your luck on fleebay there's a few available over the next few days http://www.ebay.co.uk/itm/WH1080PC-Wireless-Weather-Station-PC-USB-Inter...

and this one has solar UV and LUX sensor :0... more rf packets to decode !!!

http://www.ebay.co.uk/itm/W-8681-SOLAR-Wireless-Weather-Station-with-Sol...

 

Steve

AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012
Maplin WH1080 has arrived and

Maplin WH1080 has arrived and it is indeed labelled as 433.9mhz....

from what i can tell some units were also supplied as 433mhz as well as 868mhz despite the possible incorrect labelling

steve
Offline
Joined: 28 Feb 2011
Hi AndrewLet's hope it's a

Hi Andrew

Let's hope it's a Maplin mistake

Have you managed to take a screw driver to the RX and confrm it is 433 or are you sending it back ?

@derek, from earlier post's, did you receive your weather station as the same from Maplin? was it 433 or 868?

as for the code...

DHT22 is intergrated and recording indoor temp and humidity but needs a 2 second wait time.....

so I have started at look at what will be needed to switch between OOK and FSK which could be done with a 2 second window, and afterall it's not mission cirtical.

will post the DHT22 code later just catching up on a busy week.

Steve

AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012
Hi Steve,I did indeed - and

Hi Steve,

I did indeed - and it does appear to be a 433mhz module Amplitude-Shift keying (OOK) - https://www.dropbox.com/s/74cljlrsiqmz5h3/2013-03-02%2019.45.09.jpg?m

I will get myself a DHT22 from Ebay with the rest of the kit to play around with

I would say the dual node use OOK / FSK isnt too much of an issue for us with the 433mhz versions as i wont be able to use them as Roomnodes using the 868mhz RFM12B modules

one thought, what mods do i need to make to your code for 433mhz use? just the below?

CONFIGURATION EL,EF,868 band,12.5pF      // iT+ 915  80f8
rf12_xfer(0xA67c); // a67c FREQUENCY SETTING 868.300

thanks

Andrew

steve
Offline
Joined: 28 Feb 2011
I posted this some time ago

I posted this some time ago so with a little rewrite this may be your answer http://www.homeautomationhub.com/content/oregon-scientific-sensors

I used an Aurel 433 receiver with excellant results, never looked into using the RF12B module.

Why waste a Jeenode, My thoughts would be to aim at intergrating into the exisisting HAH micro, afterall it's mainly sitting there waiting to do somthing.

I'll take a look and see what mods will be needed but here's a link to the RF12B data sheet http://www.hoperf.com/upload/rf/RFM12B.pdf if you look at page 19 and the top of page 3 these should explane the configuration settings.

Just noticed The Jeenode wiki has the answer http://jeelabs.net/projects/cafe/wiki/Receiving_OOKASK_with_a_modified_R...

Steve

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Still in the box

> @derek, from earlier post's, did you receive your weather station as the same from Maplin? was it 433 or 868?

I did buy one of these from Maplin earlier last year. sadly, it's still in the box. The box is in the basement (somewhere) ... probably smothered by a load of other boxes of 'stuff'.

This is an intresting thread. I hope that everything here might be distilled into a 'project writeup'. 

Cheers,
Derek.


steve
Offline
Joined: 28 Feb 2011
It seems that the fineoffset

It seems that the fineoffset (WH1080) protocol has switched to FSK for newer units, link here http://www.sevenwatt.com/main/wh1080-protocol-v2-fsk/

Edit

Attached is my latest 868 OOK code with indoor temp and humidity provided by a DHT22, along with wind chill calc.

@ Andrew, have you received your parts or made a start ?

@ Derek, with a wet and cold Sunday ahead, what better excuse to pop down the celler and dig that box out ;-)

 

Steve

AttachmentSize
WH1080Applet.lua 1.63 KB
fineoffset_868_ook_rx.ino_.txt 10.34 KB
mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
Nice work

Nice bit of code, unfortunately mine is the older 433MHz OOK unit. The code is handy fo showing what data is being whizzed arounf the house though :)

AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012
Hi Steve, thanks for the

Hi Steve,

 

thanks for the update - Mine is the same as Marks (we purchased the same model - 433mhz) i hope to make a start in a few weeks

 

Andrew

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Mine is 433MHz

Just dug out the box. It's marked as a Maplin Part #N96GY

Instruction book says it uses 433MHz.

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
WH1080 decoder

I finally got some code to work on a roomnode with an OOK 433MHz receiver module attached to one of the analog ports. This is now decoding the WH1080 transmissions. I have the transmissions decoded to give me temperature, humidity, avg wind speed, gust wind speed and rain fall.

Just testing the code for leaks before I release it.

Got a full packet stream. State change to 3
State (should be four): 4
Spacing: 48 secs
This Packet count: 10
Total Full Packets: 42
A3 B2 49 38 00 00 00 00 80 crc: GOOD
Sensor ID: 0xA3B
Humidity: 56%
Wind Speed 0 m/S
Wind Direction N
Temperature: 18.5 C

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Sounds great

Good job Mark. With this lot decoded, it sould be relatively straightforward to create a xAP endpoint to publish this info.

Reckon it's past time where there should be a page on the wiki to capture what is known about the WH1080. I'll get this done soon. Any code that you can share will be most welcome.

Cheers,
Derek.

AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012
Great work Mark :) Will you

Great work Mark :)

 

Will you be looking to add the DHT22 for internal pressure and temp? and Wind Chill / Dew point calcs?

 

Andrew

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
Internal sensors

We would only really need air pressure. I'm not sure how useful the temperature would be. If the receiving node is in a normal room environment then ok but mine will be mounted inside the HAH box and I already have a temperature sensor in there. It can be added easily enough though.

As for calculating the windchill, that could be done in the node or as part of a lua script.

steve
Offline
Joined: 28 Feb 2011
Hello MarkIt's nice to see

Hello Mark

It's nice to see this idea progressing to the next level by intergrating it into a node, look forward to seeing your code and modding it for the 868 frequency ;-)

I have attached my latest 868 serial code, as with the last few days being chilly and in the minus figures I found a small miscalculation in the outside temperature / wind chill calc all is now well and I have also added a dew point calc, just need time to confirm it's working as expected.

Both the wind chill and dew point calcs in the code should be transferable to Lua (I did look at doing the calcs in Lua but decided to go the Arduino root not sure why), other wise that side is done.

Keep up the good work

Steve

Edit - sorry forgot to attach the code...

AttachmentSize
fineoffset_868_ook_rx.ino_.txt 10.25 KB
mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
code so far

Here's the working code so far, it needs a little more tidying but it works for me.

Here's a screenshot of work in progress

work in prgress

AttachmentSize
WH1080_decoder.ino_.txt 8.72 KB
paulsbiz
Offline
Rugby, United Kingdom
Joined: 19 Apr 2012
Thanks for sharing your code

Thanks for sharing your code Mark.

I've tested it with my $33MHz OOK WH1081 from Maplin and it works fine.

Paul

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
If only....

I had the transmitter near to the mac while writing the code but now it's outside, I get nothing. The range on the receiver is quite poor despite having an aerial.

So my question is do I go down the route of trying it with an RFM in OOK mode and switching between OOK for WH1080 and normal mode for CC decoding?

Or does anyone know of a good 433MHz OOK receiver?

steve
Offline
Joined: 28 Feb 2011
I did wonder if you were

I did wonder if you were using an RFM12B without the OOK mod... you can try playing with the frequency, but it's more down to timming hence the capcitor mod.

I can recommend the Aurel RX 4M50RR30SF as per an earlier post, I had great succes with it receiving my oregon 433 sensors in the house over a good range, other than that a 200pf capacitor, steady hand and a soldering iron and switching between modes.

Steve

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
multitasking :)

Hi Steve

I intend to use the node to receive both WH1080 and CC transmissions. To do that I either need a separate module for the WH1080 or switch the RFM over every 48secs to pick up the next transmission. I would rather miss a transmission from the WH than the CC so I would have to build up a list of CC transmissions and try to judge if switching to OOK for the WH would cause me to loose a CC pulse.

That is why I thought of using separate modules and using interrurpts to catch all data.

I have tried a 433MHz RFM and can pick up CC stuff and have also managed to pick up and decode the HAH RF transmissions using the RFM in OOK mode.

My third option would be to use a node with RFM modified for OOK to pick up WH1080 and HAH RF transmissions (the HAH transmissions are more of a check that something has been sent) plus another node for the CC.

Mark

steve
Offline
Joined: 28 Feb 2011
Mission Critical ?

Hi Mark

Thought the reciever range was your issue not multitasking I would have to ask SWMBO about effective multitasking ;)

 

My thoughts,

Why log the WH every 48 sec it sends data, most fixed stations and software stations (weather display, etc.) average the data and display every X mins, again this must be the same for the CC X data burst every Y seconds, and how often does it change? watchong my CC display it's not instant.

So why worry about a missed packet the next one will be along within in a minute so unless your trying to run a nuclear power station whats a missed packet or 4.

 

 

 

 

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
Range

Hiya Steve

The range is the issue. If the module was working well I would be happy to use that and an RFM12 for the CC on the same node. But the range is not good so I need to change something, I just can't decide which way to go yet.

I'll keep playing with the RFM12 ook mod and see if I can get any better results with that

steve
Offline
Joined: 28 Feb 2011
OOK Model

Hi Mark

Do you have any details on the OOK reciever you are using

If it has an variable inductor in the tuning circuit, mark it's tuned position, then try tweaking it in either direction, it could be slightly off the 433 frequency the WH is transmitting on

GaryP
Offline
Joined: 9 Jan 2014
433 OOK code

Mark

Is your receiver still working well as it looks to be just what I need for a start?  I am hoping to use your code as a basis for then passing on the info to a standard Jeenode based network.  I have found a sketch for a 868mhz for the FSK version of the weather station and the plan is to "bolt" the 2 togther if possible - time to start learning some C.

I have downloaded the code you posted but it seems to have lots of "\"s in it.  Would you mind reposting a clean version as I am sure I will miss some of these/dleet something else in cleaning them out and then.

Many thanks

Gary

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
More info here

Gary, there is a more up to date forum here http://www.homeautomationhub.com/content/wh1080-integration

There is code for the jeenode and a LUA script for the plugboard too.

GaryP
Offline
Joined: 9 Jan 2014
Thank you

much appreciated

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
No problem

No problem Gary and welcome to the forum. Any questions, feel free to ask. We're all beginners here (except Brett, Derek and a few others) :)

GaryP
Offline
Joined: 9 Jan 2014
Lots of background signals

Andrew / Mark

It looks like I am having the same issue as Mark with background signals swamping the weather station (I wonder if it is my neighbour's weather station - sadly not managing to grab their signal - yet!)

I have dropped the sensitivity to -14dB and I seem to be able to grab a few more packets but am missing quite a few transmissions.  Mark - I have attached a text file with some sample data if you fancied having a look to see what you think the issue might be.  I seem to be getting a burst of possibly valid data but then it goes "out of range".

I have also attached my current working copy of the sketch in which I have:  added in some #if/#endif compile instructions to cut out code I will not need on the final version (I suspect I might start running out of space when I bolt in the RF and some sleep code); and updated to the latest Adafruit BMP085 driver code (have cropped the altitude calc to save some space).  You will see I have a power pin defined for the BMP085 as the eventual goal is to to get this battery powered so every uA saved will help - I have not yet implemented turning the BMP085 on and off for readings or trying to sleep for, say, 30-40 seconds from a vaild transmission until the next which should be 48 secs later.

I have had a chance to check that I can transmit with the modded RFM12B using normal Jeelib messages and that seems to work (at least at short range).  The next step is seeing if I can flip from listening with the modified RFM12B set up, to setting up the RFM12B for transmitting and then flipping back to listening.  It seems possible - time to knock together a quick sketch and play with flipping the modes on the RFM12B and sending out a test signal.

Gary

AttachmentSize
WH1080weather_BMP085_2014_02_08v2.txt 13.85 KB
WH1080_test_data_2014_02_08.txt 29.01 KB
mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
Gary, looking at the txt file

Gary, looking at the txt file you sent, I would say you are doing well with receiving data. Turn off debugging and serial and all you should see is the data that is intended for the WH1080 lua script.

Yes you get a lot of noise but you are 'listening' on the 433MHz spectrum and there are lots of things there (my car keyfob is, as is AndrewJ's doorbell)

If you get a data stream every 48seconds then you are doing well, the weather isn't going to change too quickly anyway.

P.S. when (if) you manage to get the code to switch from receive to transmit, you may want to incorporate the CurrentCost code in  there as well ;)

P.P.S. nice bit of modding there, especially like the DEBUGMAX and it works for me too :)

AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012
Hi Gary,Mark has already

Hi Gary,

Mark has already mentioned but that is a fairly clean log, not much in the way of noise in there at all.

before i decreased my gain to 14db i was picking up noise from not only the door bell and car key fobs but also baby monitors (we have 2) and probably much much more, the sheer signal flood was enough to miss any WH1080 transmission

just a thought on increasing your range, can you prehaps upgrade from a 1/4 to 1/2 or full wave lengh aerial ? or a proper whip

Thanks

Andrew

GaryP
Offline
Joined: 9 Jan 2014
slow progress

Mark/andrew

Many thanks.  I might need to jump ship on using the Adafruit library for the BMP as I just cannot seem to get the payload data sent using the Jeelib library.  I have just been trying a pure sending of BMP data using the OOK modded RFM12B.

Looks like I will need to use the Jeelabs PortsBMP version as there are quite a few examples of this kicking aorund but noone it seems is using Adafruit and a RFM12B to send on the data.  Initial results are looking encouraging though but it will mean some serious rewriting

Gary

Hardware Info