Author Topic: About the UV Sensor  (Read 8956 times)

0 Members and 1 Guest are viewing this topic.

Offline DW7240

  • Senior Contributor
  • ****
  • Posts: 225
    • The Vicarage Weather Feed
Re: About the UV Sensor
« Reply #25 on: January 07, 2015, 06:29:12 PM »
If anybody is interested (and I am) you may like to visit the link below, this company does a uv sensor with a max 3v analogue output, sounds much like the Davis model, but at a fraction of the price, you just have to provide a suitable housing etc.  Also amongst the items they sell is a analogue light sensor with the same max 3v output, sounds like an ideal solar sensor.

http://www.adafruit.com/products/1918

http://www.adafruit.com/products/1384

Any thoughts............

Nick. DW7240.com


Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1140
    • Wilmslow Astro
Re: About the UV Sensor
« Reply #26 on: January 07, 2015, 06:48:04 PM »
The UV could be interesting, but the light sensor has a logarithmic output.
Mark

Offline K8POS

  • Senior Member
  • **
  • Posts: 58
    • Melvin Local Weather
Re: About the UV Sensor
« Reply #27 on: January 12, 2015, 10:28:02 PM »
Ordered one of these to play with.
http://www.thanksbuyer.com/a24b-uvm-30a-uv-sensor-module-analog-default-0-3v-voltage-output-w-signal-amplification-linear-output-29218
Pictures are not that great, but looks very similar to what Davis is using.
Don't like my weather
Get you'r own weather stick!




Offline K8POS

  • Senior Member
  • **
  • Posts: 58
    • Melvin Local Weather
Re: About the UV Sensor
« Reply #28 on: January 24, 2015, 11:55:44 AM »
My sensor board arrived.
I used a 3 volt battery pack to power it and applied the Spectrum light we have at the lab to it.
The specs state that it is responsive to 200-370nm, actual is 205-372nm, it appears pretty blind to anything else.
I have not figured out just what the 2 trimmer/multiturn pots are for but working on that now.  Hooking it up to the ISS was pretty straight forward, but it still thinks the UV index is 2.0 in the dark.
I have it back on my battery pack to decipher what the trim pots are for.  I am sure one is output gain, but not sure about the other.  The board is painted so it is very hard to see where the traces go, and I have no schematic for it.
Still to work out:
1) Getting to read zero in total darkness.
2) Finding a opaque cover that will not block all the UV.  Guys at the college physics lab said to try a ping pong ball?
3) Making a suitable housing.
4) Calibration.
5) Checking the angular response.

But hey, only cost me $16.00 and gives me something to do.
Don't like my weather
Get you'r own weather stick!




Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1140
    • Wilmslow Astro
Re: About the UV Sensor
« Reply #29 on: January 24, 2015, 12:42:30 PM »
Guys at the college physics lab said to try a ping pong ball?
It  may work, be aware they degrade quite quickly in outdoor UV light - you may have to replace it quite often.
Mark

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1140
    • Wilmslow Astro
Re: About the UV Sensor
« Reply #30 on: January 24, 2015, 12:43:35 PM »
Is the 3 V output tied to the input ground rail as reference?
Mark

Offline K8POS

  • Senior Member
  • **
  • Posts: 58
    • Melvin Local Weather
Re: About the UV Sensor
« Reply #31 on: January 24, 2015, 01:06:04 PM »
I do not think so.
Looks like a simple sensor into an amp type circuit.
No matter how or where I trim the pots to I can never get it to go below 27mv in the dark.
When hooked to the ISS this is giving me a UV index of 2.0 when hooked to the ISS.  I know at 27mv this should be near zero.
Going to try putting a pull down resistor between the signal and ground to see what affect that has.  My peek hold meter is broken so I can not see what the actual MV reading is when hooked to the ISS.
Have to go get my scope back.
Don't like my weather
Get you'r own weather stick!




Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1140
    • Wilmslow Astro
Re: About the UV Sensor
« Reply #32 on: January 24, 2015, 01:38:01 PM »
Hmm, the Davis input has a zero offset on the input of 70mV, then 14.3mV per 0.1 UVI, up to 2.395V which gives 16 UVI, anything above 2.395V gives a reading of 16. So your 27mV should be OK

When it reads the sensor the SIM switches in a 100k pull-up to 3.3V on the signal line. This may be causing your problems.
Mark

Offline linuxfreak

  • Hamilton Central Mountain Weather
  • Senior Contributor
  • ****
  • Posts: 188
  • Wink, wink!
    • Hamilton Central Mountain Weather
Re: About the UV Sensor
« Reply #33 on: January 24, 2015, 01:40:26 PM »
Wish people would read!! #-o ](*,)

Check the other thread from Wxtech, I mentioned in there that Davis uses a switching regulator to get a negative supply voltage for a ground reference!

You are using a unipolar supply, it has to be bipolar. ;)

George
George
Davis VP2/FARS, VVP, WD, WL, WSWin, Cumulus, NexStorm, StrikeStar, NSLog, XPort(GPS), WASP2, DigitalAtmosphere, ScannerCast(WUradio), Intel Atom N330 dual-core, 2Gig ram, Windows XP Home SP3  #-o
CWOP - DW3112, PWS & WU - IONHAMIL2, AWEKAS - 5112, COWN, WML - WD01901

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1140
    • Wilmslow Astro
Re: About the UV Sensor
« Reply #34 on: January 24, 2015, 01:45:36 PM »
Got a link George?
Mark

Offline linuxfreak

  • Hamilton Central Mountain Weather
  • Senior Contributor
  • ****
  • Posts: 188
  • Wink, wink!
    • Hamilton Central Mountain Weather
Re: About the UV Sensor
« Reply #35 on: January 24, 2015, 02:08:05 PM »
George
Davis VP2/FARS, VVP, WD, WL, WSWin, Cumulus, NexStorm, StrikeStar, NSLog, XPort(GPS), WASP2, DigitalAtmosphere, ScannerCast(WUradio), Intel Atom N330 dual-core, 2Gig ram, Windows XP Home SP3  #-o
CWOP - DW3112, PWS & WU - IONHAMIL2, AWEKAS - 5112, COWN, WML - WD01901

Offline K8POS

  • Senior Member
  • **
  • Posts: 58
    • Melvin Local Weather
Re: About the UV Sensor
« Reply #36 on: January 24, 2015, 02:45:35 PM »
Thank you George.
That would explain the pull UP resistor not a pull down.  Would also explain why I get different readings between the ISS powered and battery powered.
May have to strip the paint off this thing so I can follow the traces.
Uses a 4130A amp, found a data sheet for that so it will help.

Don't like my weather
Get you'r own weather stick!




Offline K8POS

  • Senior Member
  • **
  • Posts: 58
    • Melvin Local Weather
Re: About the UV Sensor
« Reply #37 on: January 24, 2015, 02:53:59 PM »
Oh well, see from the data sheet this thing really wants 5 volts input not the 3 volts.
Back to the drawing board.
Don't like my weather
Get you'r own weather stick!




Offline linuxfreak

  • Hamilton Central Mountain Weather
  • Senior Contributor
  • ****
  • Posts: 188
  • Wink, wink!
    • Hamilton Central Mountain Weather
Re: About the UV Sensor
« Reply #38 on: January 24, 2015, 03:33:47 PM »
Davis uses 6v, +3v & - 3v on the amp. ;)

George
George
Davis VP2/FARS, VVP, WD, WL, WSWin, Cumulus, NexStorm, StrikeStar, NSLog, XPort(GPS), WASP2, DigitalAtmosphere, ScannerCast(WUradio), Intel Atom N330 dual-core, 2Gig ram, Windows XP Home SP3  #-o
CWOP - DW3112, PWS & WU - IONHAMIL2, AWEKAS - 5112, COWN, WML - WD01901

Offline K8POS

  • Senior Member
  • **
  • Posts: 58
    • Melvin Local Weather
Re: About the UV Sensor
« Reply #39 on: January 24, 2015, 04:01:16 PM »
I know there has to be a simple (I hope) way to make this work.
I think I am just brain dead from reading all the post here and on other forums, including the ones Mark put on the sandaysoft forums.
It will end up being one  of those in the middle of the night eureka moments.

Bob
Don't like my weather
Get you'r own weather stick!




Offline kobuki

  • Forecaster
  • *****
  • Posts: 838
Re: About the UV Sensor
« Reply #40 on: January 24, 2015, 09:24:52 PM »
My sensor board arrived.
I used a 3 volt battery pack to power it and applied the Spectrum light we have at the lab to it.
The specs state that it is responsive to 200-370nm, actual is 205-372nm, it appears pretty blind to anything else.
I have not figured out just what the 2 trimmer/multiturn pots are for but working on that now.  Hooking it up to the ISS was pretty straight forward, but it still thinks the UV index is 2.0 in the dark.
I have it back on my battery pack to decipher what the trim pots are for.  I am sure one is output gain, but not sure about the other.  The board is painted so it is very hard to see where the traces go, and I have no schematic for it.
Still to work out:
1) Getting to read zero in total darkness.
2) Finding a opaque cover that will not block all the UV.  Guys at the college physics lab said to try a ping pong ball?
3) Making a suitable housing.
4) Calibration.
5) Checking the angular response.

But hey, only cost me $16.00 and gives me something to do.

Nice equipment you have access to! That makes things easy  8-)

I'd suggest using a small disc made from a Teflon sheet as diffusor to improve the cosine response, as I've previously suggested in one of your threads on this subject. I think you also mentioned this DIY Pyranometer solution - it provides a good description of the diffusor and how to make one using a small teflon disc. A ping-pong ball won't hold for too long in direct sunlight, as it has been mentioned.

About the circuit output. Isn't this possible to just shift the values in  the console? It'd be nice to avoid designing a completely new circuit.

There's this thread about a similar subject - it's about injecting additional solar sensor data into existing transmitted packets by relaying them with a different station ID. Maybe you could even work together on a combined solution.

Offline K8POS

  • Senior Member
  • **
  • Posts: 58
    • Melvin Local Weather
Re: About the UV Sensor
« Reply #41 on: January 24, 2015, 10:44:39 PM »
I am on a wired station.  As far as I can tell, and I have tried, there is no way to change the calibration of the UV sensor using the console.  The Cumulus software does allow for this.
I want to get the electronics working before I worry about the rest of it.
Don't like my weather
Get you'r own weather stick!




Offline kobuki

  • Forecaster
  • *****
  • Posts: 838
Re: About the UV Sensor
« Reply #42 on: January 25, 2015, 06:19:54 AM »
Yes, of course. But I think it's worth mentioning that the injection scheme is very much workable on a cabled station too, but on the RS-485 bus.

Offline K8POS

  • Senior Member
  • **
  • Posts: 58
    • Melvin Local Weather
Re: About the UV Sensor
« Reply #43 on: February 06, 2015, 11:47:41 AM »
My sensor arrived some time ago and I have been playing with the output of it.
The amplifier has a 1.5K multiturn trim pot on the output that is way to high.  Just looking through my side window (non uv coated) I can read 10 times what the UV actually is being reported by other near by stations.
It is kind of hard due to the station only checking the sensor every minute.  Wish I had a recording dc volt meter.
I ordered a 500K trim pot to replace it with and see If I can  dumb down the output some.  I have also considered putting a 1.5 or so trim pot on the actual output and see where that leads me.
The sensor is responding to the correct UV wave lengths, just puts out almost 10X what I should be getting.  Once I can get the output under control I will work on a housing and calibration.
Don't like my weather
Get you'r own weather stick!




Offline kobuki

  • Forecaster
  • *****
  • Posts: 838
Re: About the UV Sensor
« Reply #44 on: March 22, 2015, 07:40:37 PM »
Returning back to the original topic a bit. The datasheet specifies 3V ±10% as supply voltage on the yellow wire. On paper it should be fine, but would a regulated 3.3V supply cause any difference in the output? The sensor has been dissected in this thread but I can't identify anything that resembles an onboard voltage reference or a regulator. So the question is, would output sensitivity change according to supply voltage or not? I'm hoping to hook up the sensor to an MCU that already has a 3.3V regulator onboard. I'd need to know if i have to scale the sampled output values or not.

Offline K8POS

  • Senior Member
  • **
  • Posts: 58
    • Melvin Local Weather
Re: About the UV Sensor
« Reply #45 on: March 22, 2015, 08:01:36 PM »
I do not think it will affect it.  The actual sensor produces current that is then amplified into voltage that the ISS/Console reads.
I had thought about using a picmicro and program it to send out the correct voltage, but then one would need a regulated constant voltage supply.  I have decided to take just the senor from the UV sensor I had bought, and I am making my own amplifier circuit that has known amplification and better adjustment than what I bought has.  The one I have incorporates a 5 volt amplifier that does not give reliable readings on 3 volts.  The OpAmp I will be using will operate from a min of 2 volts.
Don't like my weather
Get you'r own weather stick!




Offline kobuki

  • Forecaster
  • *****
  • Posts: 838
Re: About the UV Sensor
« Reply #46 on: March 22, 2015, 08:35:24 PM »
Yes, after giving it some thought that's my own assumption as well. The opamp scales the voltage detected on a shunt and in essence the output should not be affected by its voltage rails (within specs, of course).

Offline K8POS

  • Senior Member
  • **
  • Posts: 58
    • Melvin Local Weather
Re: About the UV Sensor
« Reply #47 on: March 22, 2015, 09:09:34 PM »
Would be so much easier if I could alter the program in the console that figures out the UV index.
Don't like my weather
Get you'r own weather stick!




Offline ct

  • Contributor
  • ***
  • Posts: 101
Re: About the UV Sensor
« Reply #48 on: December 04, 2016, 06:19:25 PM »
Why does the UV sensor have 2 ground wires (black and red) ?

When connecting to a MCU do I connect both black and red wires to the MCU ground, or just one of them?

Offline kobuki

  • Forecaster
  • *****
  • Posts: 838
Re: About the UV Sensor
« Reply #49 on: December 04, 2016, 06:23:58 PM »
You can connect both or only one of them, they're internally connected. Though if you run the cable on extended lenghts I think it's a good idea not to leave one of the pair floating.

 

anything