Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


rmt38

320 posts

Ultimate Geek
Inactive user


#201286 11-Aug-2016 21:58
Send private message

After my cheap Dick Smith Tesa WS1151 weather station threw a fit leading me to think it was broken, I've been looking into software defined radio USB dongles and decoding the signal from the sensor outside.

 

I ended up buying the nooelec smart USB dongle, which came with 3 aerials.  Tonight I loaded up some SDR software and completely failed to work out how to see the signal at 433Mhz in them - it just looked like a waterfall of white noise.  So I took a look at the open source rtl_433 tool which has dozens of protocols for different weather sensors already.  Someone has kindly set up a daily build for Windows, saving me the trouble of building it and it's dependencies.

 

Running rtl_433 in blind scan mode where it tries out all the known protocols, and eventually I saw this:

 

2016-08-11 21:47:03 : Fine Offset Electronics, WH2 Temperature/Humidity sensor
ID: 195
Temperature: 3.8 C
Humidity: 52 %

 

Bingo, that matches the readout on the limited overly complicated display sitting on the bench.  And leads to this protocol implementation.  In theory, I could buy a few more sensors and plant them around the place and this tool would I guess spit out all the different readings for all the different sensors with their random ids.  I could probably buy a cheap wireless rainfall/wind thing and it would pick that up as well.

 

I imagine the next step will be looking into raspberry pi development so I don't have to have it hooked up to my laptop, and I can have a log of the temperatures and graph them and all sorts of similar things.  Anyone played with this sort of cheap home-brewed set up?


View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2
blakamin
4431 posts

Uber Geek
Inactive user


  #1610370 11-Aug-2016 22:30
Send private message

Hmmm... You've got me thinking now...I have a bunnings "Holman" wireless weather station. It has rain, wind (speed and direction), temp, humidity ... I might have to look into something for my laptop.


Affiliate link
 
 
 

Affiliate link: You will find anything you want at MightyApe.
richms
25281 posts

Uber Geek

Trusted
Subscriber

  #1610381 11-Aug-2016 23:19
Send private message

Must give this a go. I think the station outside is still broadcasting even tho the inside part will not sync with it.





Richard rich.ms

richms
25281 posts

Uber Geek

Trusted
Subscriber

  #1610397 12-Aug-2016 00:33
Send private message

OK, its working for the weather station, which is actually inside because I took it down when I was taking down the rattling VHF antenna sometime last year.

 

It gets the WH2 sensor for my outdoor temperature/humidity display.

 

Doesnt seem to show any of the 6 fine offset WH3 sensors which are just temperature however.

 

Now to see if I can get a pi doing it and then doing something useful with the output.





Richard rich.ms



rmt38

320 posts

Ultimate Geek
Inactive user


  #1610467 12-Aug-2016 09:12
Send private message

richms:

 

OK, its working for the weather station, which is actually inside because I took it down when I was taking down the rattling VHF antenna sometime last year.

 

It gets the WH2 sensor for my outdoor temperature/humidity display.

 

Doesnt seem to show any of the 6 fine offset WH3 sensors which are just temperature however.

 

Now to see if I can get a pi doing it and then doing something useful with the output.

 

 

Where did you get the WH3 sensors from?  From what I understand these should show 0xFF in the signal for the humidity, and be picked up by the same algorithm.


richms
25281 posts

Uber Geek

Trusted
Subscriber

  #1610636 12-Aug-2016 12:22
Send private message

eBay. One of them comes up as some other brand temperature sensor but the rest are not.

I got part way thru a decoder in arduino but it was too unreliable with the crap cheap OOK 433mhz module I had which just constantly output noise. And putting a rfm12 (from memory) on a pi was even worse.




Richard rich.ms

meesham
973 posts

Ultimate Geek


  #1610659 12-Aug-2016 12:43
Send private message

Thanks for this, the outdoor part of my weather station is fine but the base station locks up about once a week (a known issue with my model). I've played with cheap 433Mhz receivers before and never had much success, this looks promising.


frankv
5114 posts

Uber Geek

Lifetime subscriber

  #1610682 12-Aug-2016 12:58
Send private message

I'm planning on using a Wemos D1 mini (ESP8266-based device) to run my weather station (the up-the-pole electronics died a while ago). If the ESP8266 isn't up to it, maybe some other Arduino with a Wifi shield. Or a Raspberry Pi.

 

Whatever, I'll use WiFi to send the data to my desktop, or a NAS, or whatever... no need for that base station, nor the unreliable 433MHz link. 

 

 




SumnerBoy
1889 posts

Uber Geek

ID Verified
Subscriber

  #1610685 12-Aug-2016 13:13
Send private message

I am using a Moteino as my DIY weather station. They are relatively cheap (around $US20) and Arduino compatible. They are designed to operate in low-power modes so perfect for battery driven projects. I have one Moteino out in the garden with a DHT22 + BMP180 + a rain tipper (from an old WS-1080) and then another inside wired up to an ethernet connected Arduino acting as the RF gateway. I have a cheap solar panel and little LiPo battery and this is enough to power the station without ever needing to recharge the batteries.

 

You might find that LiPo + solar will be enough to run a Wemos D1 mini as well? 


rmt38

320 posts

Ultimate Geek
Inactive user


  #1610693 12-Aug-2016 13:36
Send private message

If you've got a device it doesn't recognise, rtl_433 also intercepts the raw data and prints it as a bit string.

 

When I restrict it to only parsing a device I don't own, it sits there and detects and outputs the following:

 

Detected OOK package
Analyzing pulses...
Total count: 48, width: 24406 (97.6 ms)
Pulse width distribution:
[ 0] count: 22, width: 127 [126;130] ( 508 us)
[ 1] count: 26, width: 371 [370;374] (1484 us)
Gap width distribution:
[ 0] count: 47, width: 253 [252;256] (1012 us)
Pulse period distribution:
[ 0] count: 22, width: 381 [380;384] (1524 us)
[ 1] count: 25, width: 625 [623;627] (2500 us)
Level estimates [high, low]: 15922, 214
Frequency offsets [F1, F2]: 19732, 0 (+75.3 kHz, +0.0 kHz)
Guessing modulation: Pulse Width Modulation with fixed gap
Attempting demodulation... short_limit: 249, long_limit: 257, reset_limit: 257, demod_arg: 0
pulse_demod_pwm(): Analyzer Device
bitbuffer:: Number of rows: 1
[00] {48} ff 4c 30 91 24 d4 : 11111111 01001100 00110000 10010001 00100100 11010100

 

And this is the pretty much the packed data for preamble, type, random id, temperature, humidity, crc, for the WH2.  It also detects my car key, but that's a rolling code, so randomesque.


floydbloke
2852 posts

Uber Geek

ID Verified

  #1611398 14-Aug-2016 15:47
Send private message

rmt38:

 

 

 

.....

 

I imagine the next step will be looking into raspberry pi development so I don't have to have it hooked up to my laptop, and I can have a log of the temperatures and graph them and all sorts of similar things.  Anyone played with this sort of cheap home-brewed set up?

 

...

 

 

I wouldn't know where to start myself, but reading your posts I would expect you're clever enough to be able to interface (write a driver??) it to WeeWX.  That would mean all the heavy lifting on archiving, databases, graphing, etc. is already done for you.





I've joined a carpenters course.  Haven't made anything yet....we've only just begun.

 

 


rmt38

320 posts

Ultimate Geek
Inactive user


  #1611845 15-Aug-2016 11:36
Send private message

I also bought a cheap $9 USD SDR receiver, which finally arrived this morning.  It doesn't do too badly even with it's smaller aerial, it picks up the same FM stations vaguely.  And it easily picks up the fine offset weather readings with rtl_433.exe.

 

If anyone is thinking of buying one and doesn't want to spring for one of the better models as they'll only be reading 433MHz device signals, one of these would likely be fine.  It was noticeably warmer than the cold nooelec model which I think has passive cooling, but I think that's a known issue with the cheaper models along with other things.


richms
25281 posts

Uber Geek

Trusted
Subscriber

  #1611851 15-Aug-2016 11:41
Send private message

I have had the tuner die after a few months on all the cheapies I got in one lot of them. Once dead they will claim to be tuning ok but nothing happens.





Richard rich.ms

blakamin
4431 posts

Uber Geek
Inactive user


  #1611863 15-Aug-2016 11:53
Send private message

rmt38:

I also bought a cheap $9 USD SDR receiver, which finally arrived this morning.  It doesn't do too badly even with it's smaller aerial, it picks up the same FM stations vaguely.  And it easily picks up the fine offset weather readings with rtl_433.exe.




Same as the one I ordered off eBay the other day.

rmt38

320 posts

Ultimate Geek
Inactive user


  #1612639 16-Aug-2016 18:33
Send private message

This is another one which I'd consider buying as a low cost, reliable option at $25USD with free international shipping and antennas.  What I like about them is the open way they release new models with tweaks.


richms
25281 posts

Uber Geek

Trusted
Subscriber

  #1612666 16-Aug-2016 19:23
Send private message

I might grab a couple of the metal fancy ones, since I think that the problems I had in the past were overheating related causing the tuner to die.

 

In anycase, tuning them to 315000000 also gets the little keychain remotes I got for some other purpose appearing in there as well, which is great.

 

Has anyone found any details of getting this running on a pi or something and sending the data to something useful? If I could get cheap 315MHz aliexpress motion sensors being recieved it would be a good alternative to the ugly bulky wemo ones I have at the moment.





Richard rich.ms

 1 | 2
View this topic in a long page with up to 500 replies per page Create new topic





News and reviews »

Belkin Screenforce Tempered Glass Screen Protector and Bumper - Apple Watch
Posted 15-Aug-2022 17:20


Samsung Introducing Galaxy Z Flip4 and Galaxy Z Fold4
Posted 11-Aug-2022 01:00


Samsung Unveils Health Innovations with Galaxy Watch5 and Galaxy Watch5 Pro
Posted 11-Aug-2022 01:00


Google Bringing First Cloud Region to Aotearoa New Zealand
Posted 10-Aug-2022 08:51


ANZ To Move to FIS Modern Banking Platform
Posted 10-Aug-2022 08:28


GoPro Hero10 Black Review
Posted 8-Aug-2022 17:41


Amazon to Acquire iRobot
Posted 6-Aug-2022 11:41


Samsung x LIFE Picture Collection Brings Iconic Moments in History to The Frame
Posted 4-Aug-2022 17:04


Norton Consumer Cyber Safety Pulse Report: Phishing for New Bait on Social Media
Posted 4-Aug-2022 16:50


Microsoft Announces New Solutions for Threat Intelligence and Attack Surface Management
Posted 3-Aug-2022 21:54


Seagate Addresses Hyperscale Workloads with Enterprise-Class Nytro SSDs
Posted 3-Aug-2022 21:50


Visa Launching Eco-friendly Payment Solutions in New Zealand
Posted 3-Aug-2022 21:48


NCR Delivers Services to Run Bank of New Zealand ATM Network
Posted 30-Jul-2022 11:06


New HP Portfolio Supports New Era of Hybrid Work
Posted 28-Jul-2022 17:14


Harman Kardon Launches Citation MultiBeam 1100 Soundbar
Posted 28-Jul-2022 17:10









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.







GoodSync is the easiest file sync and backup for Windows and Mac