Это видео недоступно.
Сожалеем об этом.
Arduino Prototyping Inputs #42: Ultraviolet Sensor
HTML-код
- Опубликовано: 13 авг 2019
- Even though you can’t see UV light, an Arduino can with this breakout board and simple-to-implement code. We will look at how to convert an analog voltage and convert it to a UV index. 👉 Leave a tip via cryptocurrency if I've helped you out:
Bitcoin: bc1q2whh7h7nddf6lzzsns6phxdf2pyr6z0pvgy98t
Doge: DDgFpxEsBTdjgJDg3vxwuagia9UU5UmSVL
Etherium: 0x952e75561491951C50561b76eCFFFE1AC493d495
XRP: rPVaL4TNr3aMPhwgYsWZdgirM99S9QnfCA
Polkadot: 15pNwwPAsMwi59cMJC441P6KwYzCsq9WqQu156FF8KffRaee
UV Sensor -- amzn.to/2X6heQD
NEW! Learn to Solder Course (Free to LinkedIn Pro users) - bit.ly/2ILSzx3
Prototyping Supplies:
• Inexpensive Arduino Compatible Kit -- amzn.to/2Dfqs5U
• A More Deluxe Starter Kit -- amzn.to/3g9nFtR
• Jumper Wire Kit - amzn.to/3f9rtK4
• Breadboard Kit - amzn.to/3hIEPib
• WaveShield Kit -- amzn.to/3g9vMq6
• Motor Shield Kit -- amzn.to/3hISQfL
• Adafruit Circuit Playground Kit -- amzn.to/39yBfo9
My Camera Equipment:
• Primary Camera -- amzn.to/3fewxgA
• Camera Kit -- amzn.to/3jQvaI8
• Primary Lens -- amzn.to/3jQvaI8
• Macro Probe Lens -- amzn.to/3jQvaI8
• Main Light -- amzn.to/2X1SwB6
• Secondary (RGB) Lights -- amzn.to/3jQvaI8
• Mini Lights -- amzn.to/3jQvaI8
A few other FREE sensor tutorials you might like: (I have 100's!)
• Cellular Data shield - • Arduino Prototyping Te... z
• Capacitive Sensing - • Arduino Prototyping In...
• Luminosity Sensors - • Arduino Prototyping In...
• Thermocouples - • Arduino Prototyping In...
• Sensing Vibration - • Arduino Prototyping In...
A few other sensor tutorials you might like: (I have 100's!)
• Cellular Data shield - • Arduino Prototyping Te... z
• Capacitive Sensing - • Arduino Prototyping In...
• Luminosity Sensors - • Arduino Prototyping In...
• Thermocouples - • Arduino Prototyping In...
• Sensing Vibration - • Arduino Prototyping In...
And some playlists on prototyping with Arduino:
• The Basics - • Arduino Prototyping: T...
• Inputs - • Arduino Prototyping: I...
• Outputs - Arduino Prototyping, Techniques - • Arduino Prototyping Ba...
• Complete Prototyping Series! - • Arduino Prototyping: T...
Instagram - / marcdevinck
Twitter - / devinck
Don't forget to like and subscribe if you'd like me to make more videos!
My company, Panoptic Labs - www.panopticlab...
How do you connect the device to your computer and how does the code work? Would it detect UV if you shine a light through fabric?
The Arduino only needs to be connected to program. Otherwise it runs the code standalone. I guess some UV would go through fabric. Depends on the fabric and the light.
hi engineer excuse. where can i find the datasheet about this sensor? have a nice Day i am your fan and if i want to convert their units for W/m2 is posible following this form:mW/cm2= 10 W/m2?
I used this sensor -- www.adafruit.com/product/1918
The formula you use will be dependent on the sensor.
Hi! Thanks for the video. However, I have a question, can you plug directly the uv sensor to the arduino or do you really need the white thing where you used the wires? I do have wires but not this white thing...
Thanks again.
In this case, you could wire the breakout board directly to the Arduino since it doesn’t need any additional components. But in most cases you’ll want a breadboard to add more components like resistors, etc.
@@MarcdeVinck thanks a lot!
Hello Mark. I built the exact rig as you did except with a Maker Nano board (practically a spitting image of the Arduino Nano). But when i ran the script, the sensor was throwing out some really high voltage, around 1.1-3 under regular indoor light setting. My attempt at trouble shooting has gotten me stuck. This include disconnecting the sensor from the processor, but even than it was throwing out the same voltage reading of 1.1-3. Several friends of mine diagnose the board to be fine. Do you have any insight in possibly fixing this problem? Thanks for your time.
What specific sensor did you use?
@@MarcdeVinck thanks for replying ! Utilizing Analog UV Light Sensor Breakout - GUVA-S12SD. Held in place with breakaway headers. On top of a half size breadboard.
@@calvinwong3515 According to their site "The output voltage is: Vo = 4.3 * Diode-Current-in-uA. So if the photocurrent is 1uA (9 mW/cm^2), the output voltage is 4.3V." I would remove the arduino and take some voltage measurements.
@@MarcdeVinck thanks very much Mark! Will give that a try.
hmm not too sure if i am doing this right. Used a volt meter and the sensor is reading out 0.4 volts when i put the contact on the + and the output terminal. I had to leave the arduino board on because i dont have any other way of powering the sensor.
i also tried changing input from A0 to A1, but left the code at A0. I am still getting a volt reading of 1-1.3 Should this be normal since i should not be having any volt reading coming in at all.
Hi can we serial print uv intensity also?
Of course. And it's simple! Look up serial printing with Arduino.
Hi, Can you put the type of Censor used here? The link you pointed to no long works. Considering how old your vid probably to be expected so that's why perhaps it's easier to put the type in your vid comment.. Greetings from The Netherlands.
Update: read the comments below. it's probably the "GUVA-S12SD-M"
The concepts presented are still relevant. You can find many different ones, but I always look at Adafruit's selection first. www.adafruit.com/product/1918?main_page=product_info&cPath=61&products_id=1918
Hello sir, if I may ask, can we also accomplish this project with an Arduino UNO kit?
There are many kits out there, so I don't know. This is a simple sensor and readily available. It can be found in many kits.
Great video :) how do you than convert voltage to "nm" which UV radiation is measured by?
Thanks! That's the catch with an inexpensive and uncalibrated sensor. You can convert the voltage to any range you want by using a function like "map(value, fromLow, fromHigh, toLow, toHigh)". Just keep in mind that any specific sensor is not necessarily linear or accurate, but it could be, you need to check the specific sensor's data sheet to know. Here is an example data sheet for a GUVA-S12SD UV sensor -- cdn-shop.adafruit.com/datasheets/1918guva.pdf In this case the UV index and UV power are linear, but the response to the wavelength is not. Good luck, and thanks for commenting, sharing and subscribing!
nm is NOT the unit for UV light intensity.
@@mareksumguy1887 right , but how can we identify the wavelength of uv . Does it need another sensor.
Which type of home light you have which shows zero UV index please reply is it LED,CFL, or tube light
LED lights typically don't emit UV radiation, all florescent lamps emit very low levels of UV light. Check the manufacturers data sheet as they all differ.
hello sir, can we use LDR Module to measure UV Index? if yes, can you do a tutorial for it?
No, but a UV sensor can! Enjoy! -- ruclips.net/video/vJct0vD6WWg/видео.html
Hi sir, how did you know that the voltage has to be divided by 0.1 to get the UV index? Where can I get the references? Also, is the calculation valid for all types of UV sensors?
s per the data sheet. The output voltage is: Vo = 4.3 * Diode-Current-in-uA. So if the photocurrent is 1uA (9 mW/cm^2), the output voltage is 4.3V. You can also convert the voltage to UV Index by dividing the output voltage by 0.1V. So if the output voltage is 0.5V, the UV Index is about 5. You can learn more about this specific breakout board by looking at the product page. www.adafruit.com/product/1918
Hello sir thank you for your explanation , Can we detect infrared radiation the same way we detect UV radiation ?
Sure! There are sensor for that too! You can even detect distance using an IR sender/receiver. I created a video on that topic. ruclips.net/video/D0WquihUdek/видео.html
Sir, can i use UV sensor for triger lamp on/off use fuzzy Logic?
I guess it depends on if the light source emits UV energy As far as fuzzy logic? Sure, but to generate the non-binary response to UV light would be an exercise in code and no dependent on the sensor.
Is there a way to know if the sunlight has UV-A and UV-B?
Yes, but you need a specific sensor for each wavelength. Search online for the type you need. UVB sensors look expensive?
Where can we get this code
The manufacturer should have code. Mine is from Adafruit, they supply the code for the specific sensor.
Hi Marc, what would be the units of the UV index when calculated, is it J/m2?
You are reading the voltage out. ruclips.net/video/vJct0vD6WWg/видео.html You can relate that to a specific UV index.
@@MarcdeVinck How would i be able to calculate the value of irradiance from this? would i use P = I * V
@@Ivyqh I think you need a pyranometer for accurate measurements. I have also seen it measured via a solar cell for general estimations.
@@MarcdeVinck Sorry i have one more question, how would you change it so it logs a voltage and index value every 15 minutes instead of seconds?
@@Ivyqh Use --> delay(insert the amount of milliseconds you want here)
I use similar built sensor with the same type chip on board (GUVA-S12SD-M), the wiring same, the VCC is +3.0V (battery operation). My problem is that, the readout from analog output (signal) is from 0.0V (inside the room) to 3,0V (clear sky, no need direct sunlight). It seems to me my sensor is use the whole VCC range, but it is really strange. Is there any other info other than Adafruit datasheet? Everywhere in the whole web this one page is circulating. I use Micro:bit, but everything is same on this microcontroller as on your. Thanks for any info. My sensor is: arduinolearning.com/wp-content/uploads/2016/10/S12SD.jpg
Sorry, I can't help without knowing more about the sensor. That looks like an op-amp and a similar sensor. Here is the data sheet for the UV sensor. Since it's analog, you can always map the values to match what you need. (Won't increase resolution, just help manage values) Keep in mind, this is not a calibrated UV sensor. -- cdn-shop.adafruit.com/datasheets/1918guva.pdf
can you test how much UV led strips make?
Sure. You can measure any UV that falls within the range of the sensor.
What kind of the UV sensor did you used
I used the Adafruit Analog UV Light Sensor Breakout -- www.adafruit.com/product/1918
Can we have the Arduino program please, thank you
The Arduino program (IDE) can be downloaded from the Arduino website. If you are looking for the code I used, I show you in the video. The code is found in examples > basic > analog input. It's part of the Arduino IDE. More details at 1:17
Hello, can you converter the voult at W, please
I'm sorry, can you clarify your question? Can you convert the voltage reading? If so, yes, easily with a simple math formula, or you can use the Map function to get a specific range.
@@MarcdeVinck my question is, can you convert from volts to watts?
@@cris_Mahe From the sensor? You can convert volts to watts as long as you know the amps. DC conversion from Volts (V) to Watts (W) formula is P(w)=V(v) x I(A) ---- The Power [P] in watts (W) is equal to the voltage [V] in volts (V), times the current [I] in amps (A). Hope this helps! You can find calculators online too!
For Example: 5V DC at 0.5 Amps = 2.5 Watts
Hi sir how can i found this code to this program?
The product is from Adafruit (www.adafruit.com/product/1918) and the code is found in examples>basic>analog input. It's part of the Arduino IDE. Go back and watch 1:17 for more details.
@@MarcdeVinck thank you for the response sir...
Can i add... Led screen?
@@rizyurf6651 Yes, and it's not that difficult either. Here is some referece to look at -- ruclips.net/video/EW0Pfof7Prk/видео.html
@@rizyurf6651 Yes, and fairly easily too! -- ruclips.net/video/EW0Pfof7Prk/видео.html
Hi sir can you reply me and list all the materials in this project . And sa link were I can find your codes. Pls notice me. Thank you
I used the Adafruit Analog UV Light Sensor Breakout -- www.adafruit.com/product/1918, a standard Arduino, breadboard and jumper wires. The code is found in examples>basic>analog input. It's part of the Arduino IDE. More details at 1:17
Hello sir, I have a Project to do on UV measurements, I just saw your video, there are things I Don't Understand, I contacted you on your Instagram account , you can answer me please, concerning the assembly much more , think you
Please ask you questions here so other can learn from the answer too! (If I have them!). Thanks!
@@MarcdeVinck I wanted to ask you if another sensor can work in the same way but finally I bought a sensor like yours, and can you give us the arduino program please, thank you
@@ouizabenatsou1158 As described in the video, the code is found in examples>basic>analog input. It's part of the Arduino IDE. More details at 1:17