cloudy

Author Topic: Calculation of sunshine hours from UV sensor?  (Read 2476 times)

0 Members and 1 Guest are viewing this topic.

Offline PinkyCZ

  • Posts: 91
  • Jirkov, Czech Republic
    • Weather in Jirkov, CZ
Calculation of sunshine hours from UV sensor?
« on: November 01, 2010, 12:00:20 PM »
Hi,

have 10.37Q b00 in trial mode still. Connected to WMR200 and its UV sensor. I do get reading from UV sensor recorded and roughly converted to sun radiation in W/m2.
What so when UV reads 1, 2, graph is recording this as well as 100 or 200 Watts per sq.m resoectively.
However, the sunshine hours counter does not count any time and it stays 0:00.

Few days ago I had the same and then I disconnected the WMR unit from WD, while WD has been still running. WD has been updating the graphs and drawing linear lines of each of the measured values as if the reading from the unit would continue, just the values remain unchanged. And at this very moment, the sunshine hours counter started to be updated and during the station disconnected, I got som 5 or 7 minutes updated. Upon reconnection of the station, the update has stopped again.

Can the sunshine hours be derived from UV sensor? The transaltion of solar radiation is so rough so I consider it of no use, but an indication of sun time from any UV reading above 0 would be usefull.

Tried to search whole manuel about "sunshine hours", but other than several tags using this, there is no better exlanation whether this is possible.

Thanks for your advice,
Jan

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 9,496
  • Davis Vue/iMac/Parallels/WinXP
  • Truckee, California
    • Traveling RV Weather
Re: Calculation of sunshine hours from UV sensor?
« Reply #1 on: November 01, 2010, 03:50:41 PM »
You could try lowering the percentage required for "SUNNY" conditions in the summary image setup screen.

Offline PinkyCZ

  • Posts: 91
  • Jirkov, Czech Republic
    • Weather in Jirkov, CZ
Re: Calculation of sunshine hours from UV sensor?
« Reply #2 on: November 01, 2010, 05:23:54 PM »
Thanks for your advice! will certainly try that. I didn't know counting of sunshine hours is linked to the "sunny" status determined by the percentage reached! Thanks!

Offline Rosswm

  • Posts: 109
  • Pietermaritzburg, South Africa
Re: Calculation of sunshine hours from UV sensor?
« Reply #3 on: November 01, 2010, 06:44:47 PM »
Hi, I have set mine to 75% as I am having the same / similar problem. Is 75% sufficient and should the other settings also be reduced?
Thanks Ross

Offline PinkyCZ

  • Posts: 91
  • Jirkov, Czech Republic
    • Weather in Jirkov, CZ
Re: Calculation of sunshine hours from UV sensor?
« Reply #4 on: November 02, 2010, 12:01:57 PM »
Hi Ross,
I have set mine to just a 20% as I wan tthe couting to be triggered as soon as even UV 1 is reported (at this time of year when sun is low I do get 1 and rarely 2 around th enoon. The other statuses I have lowered to be below 20%, just in case the logic deterimining the the sun state is making a hierarchical check of all values reached. Can't see th eresult yet, cloudy today... I however tried to reproduce the solar graph from logfile and it had no effect of the sunshine hours so it migh need to run online.
So with 20% set, when unit reads UV 1 it translates to 100W/m2. if the max sun power at that moment is less than 500 W/m2, it should be interpretted as "sunny" and counted.
I guess with 75% you may miss a big part of the day (in my case you would, I do get reads of ! or 2 and these are about 50-60% of the max indicated fo the given time), unless you position your UV directly to sun which gives you higher (and biased) UV reads. I found out max 10 degrees tilt towards the sun (south on my hemisphere) is Ok and gives me indication that reflecting the actual professinal values of meteo institute in my area. So this way I can have reliable UV indication and hopefully somewhat correct sunshine hours counted..
I'm also almost ceratin why I got the counting after my station got disconnected and steady "last values" reported on timeline. This has happened when I had an UV of 3 and the changes were not updated. Looking at the graph, the peak sun power line has been much higher than translated 300 W/m2 so I wasn't reaching the 75% defined.... but as time was passing by, the max sun line has been descending and I eventually reached the percentage defined for sunny. By coincidance it has been in very short time so I thought the counting was triggered when unit detached, didn't thought of the statuses....

Will let you know when some sun is up again  :D

« Last Edit: November 02, 2010, 12:09:09 PM by PinkyCZ »

Offline Rosswm

  • Posts: 109
  • Pietermaritzburg, South Africa
Re: Calculation of sunshine hours from UV sensor?
« Reply #5 on: November 02, 2010, 06:57:38 PM »
Hi, I have tried that and somehow still cannot get the sunshine hours to work. It would be great if someone can go through the exact settings in the solar sensor setup. At one stage some 7 days ago I had a line from sunrise to sunset showing the solar value from this max reading for lat/lon ticked and now after the upgrade to build 01, I cannot get the settings to work at all.
Can anyone advise please? Thanks Ross

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 9,496
  • Davis Vue/iMac/Parallels/WinXP
  • Truckee, California
    • Traveling RV Weather
Re: Calculation of sunshine hours from UV sensor?
« Reply #6 on: November 03, 2010, 12:12:25 AM »
I can't help with the UV-Solar stuff...I can tell you that the daily sun hours is derived from the "sunny" threshold.  It will increment if the previous 6 minutes was above the set threshold.

I would recommend saving the headaches and get a solar sensor.  If you're using the WMR100/200,  the solar modification of the THGR800/810 is very easy to accomplish.

Offline Rosswm

  • Posts: 109
  • Pietermaritzburg, South Africa
Re: Calculation of sunshine hours from UV sensor?
« Reply #7 on: November 03, 2010, 04:26:13 AM »
Thanks for that, I will try this out and see if I am able to build it up. Do I jyst follow exactly what the link says with regards  this at: http://www.weather-watch.com/smf/index.php/topic,39559.msg323536.html#msg323
Thanks

Offline PinkyCZ

  • Posts: 91
  • Jirkov, Czech Republic
    • Weather in Jirkov, CZ
Re: Calculation of sunshine hours from UV sensor?
« Reply #8 on: November 03, 2010, 04:26:43 PM »
I can't help with the UV-Solar stuff...I can tell you that the daily sun hours is derived from the "sunny" threshold.  It will increment if the previous 6 minutes was above the set threshold.

I would recommend saving the headaches and get a solar sensor.  If you're using the WMR100/200,  the solar modification of the THGR800/810 is very easy to accomplish.
You mean the thermo sensor in jar setup?? I did some calculatin and will try to modify it to be sun direct. According to the calculations I did, it should be posible with properly choosen optical resistor and a simple trimming to caliber "zero"... Will report the result.

**EDIT
Ok, now clear, so you refer to direct sun modification. Looked at the guide at german site and it is a good how-to. I just don't like the idea of using photodiode as it's response curve is steeper than photo resistor... anyway will see how succesfull I get with my modification  :roll:
**EDIT2
Checked the recommended BPW21 photodiode and actually its chracteristics is just perfect. Good sensitivity in the visible range of spectrum, similar to human eye and nicely looking response curve. A bit strange is why the reported values from modified thermometers have such steep ramp going to max 100%, it is far from curve that would reflect the gradual increase of sunshine towards the noon. Maybe different resistors in teh circuit and calibration... I look forward for the parts to arrive and start playing with them  :D
« Last Edit: November 03, 2010, 09:31:39 PM by PinkyCZ »

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 9,496
  • Davis Vue/iMac/Parallels/WinXP
  • Truckee, California
    • Traveling RV Weather
Re: Calculation of sunshine hours from UV sensor?
« Reply #9 on: November 04, 2010, 01:06:24 AM »
Thanks for that, I will try this out and see if I am able to build it up. Do I jyst follow exactly what the link says with regards  this at: http://www.weather-watch.com/smf/index.php/topic,39559.msg323536.html#msg323
Thanks

Yep.  Just get some cds and replace the temp sensor with them.  I did add a variable resistor to my circuit so I could fine tune to keep the readings in the range of the sensor.  I adjusted mine during solar noon to make sure I was getting max readings.


You mean the thermo sensor in jar setup?? I did some calculatin and will try to modify it to be sun direct. According to the calculations I did, it should be posible with properly choosen optical resistor and a simple trimming to caliber "zero"... Will report the result.

No, the modification will replace the temp sensor in the THGR800/810 with resistors that are sensitive to light, hence the solar readings.  The temp sensor in a jar a completely different animal that uses a thermal sensor to measure the actual temp inside a jar to figure out the solar condition.  More heat, less clouds.

Offline PinkyCZ

  • Posts: 91
  • Jirkov, Czech Republic
    • Weather in Jirkov, CZ
Re: Calculation of sunshine hours from UV sensor?
« Reply #10 on: November 05, 2010, 01:49:10 PM »
The advice given works for me. Had to lower the percentages for different thresholds and I got my first couints from UV today. I lowered significantly as now the UV reads 1, max 2 on a sunny day and I want to make sure that even 1 (hence 100W/m2 interpretted) is detected as sunshine with regad to max solar possible for the given moment. See enclosed screenshots.

Offline PinkyCZ

  • Posts: 91
  • Jirkov, Czech Republic
    • Weather in Jirkov, CZ
Re: Calculation of sunshine hours from UV sensor?
« Reply #11 on: December 06, 2010, 09:46:47 AM »
Yep.  Just get some cds and replace the temp sensor with them.  I did add a variable resistor to my circuit so I could fine tune to keep the readings in the range of the sensor.  I adjusted mine during solar noon to make sure I was getting max readings.


No, the modification will replace the temp sensor in the THGR800/810 with resistors that are sensitive to light, hence the solar readings.  The temp sensor in a jar a completely different animal that uses a thermal sensor to measure the actual temp inside a jar to figure out the solar condition.  More heat, less clouds.

Hi NorCalDan,

I've completed the modification suggested addding a photodiode and two resistors and knowing little about electricity, I'm not happy with the result. Some of the weak parts of this solution you have already mentioned in another thread. The main problems I see today with this solution is that the output seem not to be linear but logaritmic - the unit is very sensitive to low light conditions and goes up steeply, then it does change very little during the full day different light conditions. This is why it is dificult to setup cloud condition thresholds and they are very close to each other and more importantly it is totally biasing the WD interpretted irradiance figures.

I've used Siemens BPW21 photodiode. This is very precise silicon based photodiode with a built/in filter that corrects the silicon natural responsivity in order to achieve the sensitivity similar to the human eye. This is actually the part recomended at the german site.
There are some fundamental doubts about using this part at all
 - first, we want to measure iirradiation not illumination. This part would be just pefect for measuring light intensity (meaning the light is what we see by eye), but it would ignore important part of the spectrum in the IR zone. The conversion of illumination to irradiation can not be correctly made unless the spectrum composition is known and the spectrum is changing under different conditions (clouds for example). Not a simple formula conversion.
 - Second the BPW21 seem to be limited somewhere around 30klux according to its datasheet, the question remains if the lienarity is there for higher illuminations. I will check this when calibrated luxmeter arrives, but my guess is it will not work correctly. For this range, there is another type made by Vishay BPW21R that should be performing linearly up to 200klux, where full summer day noon should be around 100-120 klux.
 - reading the other posts where people are adding various photodiodes, often several (connecting them linearly, paralelly?) the result is a mix of completely different opto characteristics and thus very biased results that in my opinion are far from any proper measurement. We are mixing apples and bananas in a hunt to have solar sensor, the question really is what do we have in the end.

So I decided to start a project that would arrive with standard solution for solar radiation measurement using modified THGR800/810. The output should be reasonably precise so that the measured values can be correctly converted into W/m2

- Choosing the right photodiode
I've looked for several photodiodes and the most apropriate one seems Siemens BPW34.
http://www.datasheetcatalog.com/datasheets_pdf/B/P/W/3/BPW34.shtml
This photodiode registers even the infrared part and its current characteristics is calibrated towards the W/m2. The range goes above 2mW/cm2 which should be 2000 W/m2, sufficient sensitvity in full operation range. It is also about 10x cheaper than the original BPW21, good for budget!

- Checking for built/in original termistor linearity corrections in THGR sensor
The original termistor in THGR810 looks very strange to me, it appears to be actually two extremely small parts connected in parallel. The tip deffinitely is the termistor, fast reacting to the ambient temperature. The middle part I'm still unceratin what it does.. Will post a picture if someone has an idea.
Neverteless the original part is termistor, ie the part that changes it's resistance with changing temperature. Termistors tend to be non-linear and there might be a built in software compensation in the THGR to actually deliver temperature values that are in line with the used termistor charcteristics. This built in compensation could interfere with linearly performing optocell / photodiode.
Logical choice would be to use photoresistor, BUT - photorestistors are non linear to the light conditions too (similar to thermistors) and they are very dependent on the ambient temperature. The same light/irradiation measured in the summer morning and winter noon can be interpretted as two resistance values far from each other. They are also slowly reacting nad have a "memory" effect... not good for us.

- designing the circuit that would transform measured values into output that THGR could interpret
Well this will not be an easy one. Already the basic modification is suggesting the photodiode is connected opposite to its photoconductive mode, i.e. positive voltage on the cathode. This is standrad setup in most of photodiode aplications - photodiode is installed reversally and it is the reverse bias current measured (and amplified). It is fast, current linear to the light conditions etc...
BUT
The HGR seem not to have positive and negative volatge on the two conections. Did some measuring using osciloscope and it is clear that shortly before diode blinks, there is a frequency applied (could be electronics switching on and preparing for taking the sample) and then there are number of impulses going each with different polarity.
I'll try to enclose the signal I got if someone can verify.
If you have modified your THGR, you can try this yourself - any direction you connect your photdiode, you get almost identical reading. photodiode can be used in both directions but to keep the linearity, reverse biased configuration is the best. zero-bias operation actually makes it work in photovoltaic mode (light striking the PN junction creates bias)
There is probably only one direction of the THGR signal used for measurement, the question is which one. Could be that tiny little part at the termistor is there because of the signal used??

- calibrate the electronics
Using a proper solar radiation meter should be easy but hopefully arrive to a simple hwo to that can be then used by any weather amateur to reasinably calibrate his/her device, so that the data gathered are comparable.

- Check for data acquired by WD
I did get some data and I believe the current configuration solar in jar settings in WD does not allow for correct conversion to radiance values. The range defined should be for full summer soltice, ie.e the max the unit can indicate. It is normal that winter days we will be 50-60% of the summer values, yet on clear winter day it shoul be interpretted as nearly 100% of the day max. I thought that this is taken care of by disabling "update the solar value from its max reading for his lat/lon" but it had no effect over the graph and interpretted irradance. In this way, having perfectly calibbrated sensor with linear response would not help as WD would recalculate the value to its percentage using th eactual value / annual max. value in stead of daily max value...
More about this here...
http://www.weather-watch.com/smf/index.php/topic,48510.msg392434.html#msg392434


Any of your experience gathered during your experiement are wellcome.
I would just love to have a decently precise solar radiation measurement using a wireless units, I do have very limited possibilities for cabled solutions using 1-wire or labjack.
« Last Edit: December 06, 2010, 10:55:09 AM by PinkyCZ »

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 22,157
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: Calculation of sunshine hours from UV sensor?
« Reply #12 on: December 07, 2010, 09:56:48 PM »
Where to start? I don't have time to respond to your whole post line by line so here are some FWIW comments.

The BPW21 pin diode (a great choice in the right circuit and with a correct optical design) isn't a good choice in this case where you are trying to reverse engineer a sensor based on change of resistance. Based on your observation of pulses on the thermistor I would bet that the designers of this device are measuring something like pulse width rather than resistance directly. That's a very simple and frequently used trick if you have a very simple processor and don't want the complication of an A/D. Works great with a pure resistance, not so great with a semiconductor.

Yes, the thermistor will be non-linear. Not sure if the compensation for that is in the TX, or maybe in the console, but it will happen somewhere. Personally I don't think you can convert this unit into an accurate sensor no matter how hard you try, but if you want to go that route your first step should be to plot the temp/resistance curve of the existing thermistor. (Or the resistance to displayed temp curve of the sensor, which may be simpler.)

The original cds photocell modification is very adequate to get an indication of solar radiation for the purposes of "sunshine hours" estimation (which so many PWS users seem to love). The cds's variable non-semiconductor resistance interfaces well with the circuitry and the resistance can be gotten easily into the correct range by adding more cds's or series/parallel resistance.

The WD sunshine calculation does take the measured value as a percentage of the predicted value for the location/date/time to determine "sunshine" so I don't understand the point that you are making about that.


Offline Weather Display

  • Posts: 65,573
Re: Calculation of sunshine hours from UV sensor?
« Reply #13 on: December 08, 2010, 01:27:00 AM »
Quote
The WD sunshine calculation does take the measured value as a percentage of the predicted value for the location/date/time to determine "sunshine" so I don't understand the point that you are making about that.

yes, me too...

Offline PinkyCZ

  • Posts: 91
  • Jirkov, Czech Republic
    • Weather in Jirkov, CZ
THGR 810 termistor curve - nonlinearity check
« Reply #14 on: December 08, 2010, 04:37:30 PM »
Below is the result of my test for termistor nonlinearity compensation in the Oregon Scientific THGR 810 unit.

There has been a potentimeter attached instead of the original termistor. Various resistances were set on the potentiometer and the temperasture dispalyed by the unit has been recorded. The potentiometer has been detached after each sample taken by the unit and measured for the resistance.

Below is the graph showing the correlation.

Niko, I believe the compensation is done in the unit itself as it has an LCD and dispalys the values measured, identical are transmitted to the main station unit WMR 200 in my case.
I belive that this sensor can not be properly modified to serve as indication of the irradiation intensity because of the unit being adopted to this curve and the sensor replaced with an photodiode where is a linear realtion between current / illumination (irradiation). That's why Nor Cal sufers similar problem I had with my first mod - unit being very sensitive in low light conditions and less sensitive during daytime so setting the tresholds is tricky - the linear diode output is biased by the built in compensation.

Well, I will do some simple opamp to the BPW21/34 and will need to look for a good A/D conversion. Looked at labjack but they're not sold locally so will see if I could get one. Or 1-wire...
And a cable  :?
I would just love to have that circuit wireless one day  :D But the values I would be getting using this mod would be more than questionable I'm afraid...