ML8511 UV sensor

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

ML8511 UV sensor

#1 Post by manjh » 28 Apr 2016, 13:54

Unit ML8511 is a reasonably priced UV sensor.
Can I hook this up to a NodeMCU?
If not, any chance of getting this supported in EasyESP?

chrille
Normal user
Posts: 88
Joined: 26 Aug 2015, 15:11
Location: Horsens, Denmark

Re: ML8511 UV sensor

#2 Post by chrille » 28 Apr 2016, 20:01

manjh wrote:Unit ML8511 is a reasonably priced UV sensor.
Can I hook this up to a NodeMCU?
If not, any chance of getting this supported in EasyESP?
The ML8511 provides an analog output, so you can connect it to any of the supported A/D converters. Depending on which you choose you might need a voltage divider (two resistors). The characteristic is pretty linear, so you can use the formula to convert from voltage to UV index. See page 4 of https://cdn.sparkfun.com/datasheets/Sen ... 3-8-13.pdf

What kind of enclosure do you plan to use for the ML8511? More or less all transparent materials blocks UV light

- Jan
Jan Chrillesen, Denmark

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: ML8511 UV sensor

#3 Post by manjh » 28 Apr 2016, 22:32

Jan,
I haven't really thought about this yet. I bought a couple of these units just for fun, along with several other sensors.
So I even don't have a clue yet on how to interpret the output. Will see when I get there.

OK, so I can simply hook it up to a NodeMCU.
Then in EasyESP, select which sensor?
And in Domoticz, I assume use a virtual sensor selecting "UV"?

Do you have a suggestion for the enclosure?

chrille
Normal user
Posts: 88
Joined: 26 Aug 2015, 15:11
Location: Horsens, Denmark

Re: ML8511 UV sensor

#4 Post by chrille » 29 Apr 2016, 08:24

manjh wrote:Jan,
I haven't really thought about this yet. I bought a couple of these units just for fun, along with several other sensors.
So I even don't have a clue yet on how to interpret the output. Will see when I get there.

OK, so I can simply hook it up to a NodeMCU.
Then in EasyESP, select which sensor?
And in Domoticz, I assume use a virtual sensor selecting "UV"?

Do you have a suggestion for the enclosure?
The simplest solution is to use the internal ADC that's supported without additional A/D's. You need a voltage divider to bring the level down, since the ML8511 outputs ~3V at max UV and the internal ADC only goes to 1.024V. So if you reduce 3:1 you will see 0.1V at UV index 0 and 1V at 10. I haven't checked what kind of UV sensors domoticz support, but I'm sure there's one
Jan Chrillesen, Denmark

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: ML8511 UV sensor

#5 Post by Dylantje » 03 May 2016, 13:42

Sorry that i break in...
Only i do have a other Uv sensor.
And i wil get this working in Domoticz and ESP to..
So i hope this is no problem..

My sensor:
http://www.ebay.com/itm/321971504239?_t ... EBIDX%3AIT

Whit a pinout of:
Image

Just connect the ground and the power i understand.
Only the other 2 or 3?

In Domoticz did a make a uv sensor:
ScreenShot216.jpg
ScreenShot216.jpg (13.71 KiB) Viewed 17201 times
With the idx:
4448

What type sensor i must make in the ESP.
And what are the wire/pins that i can/must use..
I think:
[ why can i upload just 1 picture? :oops: :oops: :oops: ]
SDA:
SCL:
In my ESP




And is it possible to set this sensor in vertical position?


Ps..
For the enclosure...
There is uv open material..... like the zonnebank.... :lol: :lol: :lol:

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: ML8511 UV sensor

#6 Post by costo » 03 May 2016, 16:26

Dylantje wrote:Sorry that i break in...
Only i do have a other Uv sensor.
And i wil get this working in Domoticz and ESP to..
So i hope this is no problem..
For the moment this sensor is useless with ESPEasy, because there is no plugin under device for the VEML6070.
Also in the ESPEasyPluginPlayground there is no plugin for this chip.
A plugin is needed so the ESP can talk I2C to the sensor_chip VEML6070 http://www.vishay.com/docs/84277/veml6070.pdf
I doubt very much that you yourself will make this plugin. When you are lucky in future someone will write a plugin.

For simplicity you better buy yourself a simple UV_sensor module like this one: http://www.aliexpress.com/item/GUVA-S12 ... fa49ad77ab
This has a UV detector diode whose tiny output current is buffered with a opamp that converts it to a usable analogue voltage output so ESPEasy will have no problem with reading it.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: ML8511 UV sensor

#7 Post by Dylantje » 04 May 2016, 08:51

When i get this sensor...
What "module" do i need in the ESP?
Just the analog, shows no pin?
ScreenShot220.jpg
ScreenShot220.jpg (87.96 KiB) Viewed 17145 times
And i d'not now what to to use in that way

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: ML8511 UV sensor

#8 Post by Dylantje » 04 May 2016, 16:47

Dear all.
other sensor in the house... :-)
http://www.ebay.com/itm/221534090900?_t ... EBIDX%3AIT

Will give a try..
Only what pin do i need??? can i use?

User avatar
ManS-H
Normal user
Posts: 281
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: ML8511 UV sensor

#9 Post by ManS-H » 04 May 2016, 18:06

Left one is plus, middle data DC 0-1V, right the minus pin. Operating Voltage: DC 3-5V

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: ML8511 UV sensor

#10 Post by Dylantje » 04 May 2016, 18:16

Ok..

Only what device must i select in the esp

User avatar
ManS-H
Normal user
Posts: 281
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: ML8511 UV sensor

#11 Post by ManS-H » 04 May 2016, 19:18

https://www.mysensors.org/build/uv

It have a analog output, so what do you think of Analog input?

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: ML8511 UV sensor

#12 Post by Dylantje » 04 May 2016, 19:39

ManS-H wrote:https://www.mysensors.org/build/uv

It have a analog output, so what do you think of Analog input?

Thanks..
Only...
ScreenShot221.jpg
ScreenShot221.jpg (106.56 KiB) Viewed 15913 times
Then???

User avatar
ManS-H
Normal user
Posts: 281
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: ML8511 UV sensor

#13 Post by ManS-H » 04 May 2016, 22:18

Did you measure the output with a multimeter? what do you read then?

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: ML8511 UV sensor

#14 Post by Dylantje » 04 May 2016, 22:22

mmmm

Nope i am a domboo..
I build houses.... no sensors....
Sorry

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: ML8511 UV sensor

#15 Post by Dylantje » 16 May 2016, 19:33

Please some one??
What module do i need to use in the Espeasy

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: ML8511 UV sensor

#16 Post by Dylantje » 20 May 2016, 20:43

Guys....

Please..

Did it....
God find the A0 pin wher i do have to put the dat from the Ssensor...

Only now is killing the data my dummy sensor in Domotcz..
ScreenShot245.jpg
ScreenShot245.jpg (30.29 KiB) Viewed 15640 times
Try first 1 and then a second...

Is this a Domoticz issue or a Esp?

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: ML8511 UV sensor

#17 Post by Dylantje » 21 May 2016, 09:01

Can some one please tell me what data is sending the ESP to domoticz?
In what format?
The format should be:
UV;TEMP (10.2;18.5) or without temp: 10.2;0
I do not understand this,some one?

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: ML8511 UV sensor

#18 Post by Dylantje » 22 May 2016, 12:22

The output from the ESP is i think not compatible with Domoticz...
ScreenShot264.jpg
ScreenShot264.jpg (39.63 KiB) Viewed 15602 times
The lux is working great...
Is there option that the "Module" can work with this sensor icw Domoticz?

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: ML8511 UV sensor

#19 Post by tozett » 23 May 2016, 07:45

i followed the link from the first post,
mentioned there, that the sensor could work with 3.3 volt, but the user used a formula for the analog input:

uv = uv * (3300 / 1023.0); // millivolts

so you have to use a formula on the analog input, i guess...??

http://www.esp8266.nu/index.php/EasyFormula

(i never did this on the easeasy, so you have to try yourself...= :D

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: ML8511 UV sensor

#20 Post by Dylantje » 23 May 2016, 08:10

tozett wrote:i followed the link from the first post,
mentioned there, that the sensor could work with 3.3 volt, but the user used a formula for the analog input:

uv = uv * (3300 / 1023.0); // millivolts

so you have to use a formula on the analog input, i guess...??

http://www.esp8266.nu/index.php/EasyFormula

(i never did this on the easeasy, so you have to try yourself...= :D
.

mmmm

Should that be the solution....
I give it a try.
Only what is the good formula?
For Domoticz should this be the input:

UV;TEMP (10.2;18.5) or without temperature: 10.2;0

Only i do not have anything with math....

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: ML8511 UV sensor

#21 Post by tozett » 23 May 2016, 08:54

you should really measure the resistance of the module with a multimeter,
to see the values, the analog-input reads in.
than use a formula on the ESPeasy analog-input, to have correct values to send to domotics..
good luck!

Post Reply

Who is online

Users browsing this forum: No registered users and 59 guests