Это видео недоступно.
Сожалеем об этом.

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...

Комментарии • 72

  • @mickeymooze
    @mickeymooze 10 месяцев назад +1

    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?

    • @MarcdeVinck
      @MarcdeVinck  10 месяцев назад +1

      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.

  • @danielabarca2311
    @danielabarca2311 4 месяца назад

    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?

    • @MarcdeVinck
      @MarcdeVinck  4 месяца назад

      I used this sensor -- www.adafruit.com/product/1918
      The formula you use will be dependent on the sensor.

  • @cecilefrancois1518
    @cecilefrancois1518 2 года назад +1

    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.

    • @MarcdeVinck
      @MarcdeVinck  2 года назад +1

      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.

    • @cecilefrancois1518
      @cecilefrancois1518 2 года назад +1

      @@MarcdeVinck thanks a lot!

  • @calvinwong3515
    @calvinwong3515 3 года назад +1

    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.

    • @MarcdeVinck
      @MarcdeVinck  3 года назад

      What specific sensor did you use?

    • @calvinwong3515
      @calvinwong3515 3 года назад

      @@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.

    • @MarcdeVinck
      @MarcdeVinck  3 года назад

      @@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.

    • @calvinwong3515
      @calvinwong3515 3 года назад +1

      @@MarcdeVinck thanks very much Mark! Will give that a try.

    • @calvinwong3515
      @calvinwong3515 3 года назад

      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.

  • @dessiereapoderado4639
    @dessiereapoderado4639 3 месяца назад

    Hi can we serial print uv intensity also?

    • @MarcdeVinck
      @MarcdeVinck  3 месяца назад

      Of course. And it's simple! Look up serial printing with Arduino.

  • @samdeur
    @samdeur 2 года назад +1

    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"

    • @MarcdeVinck
      @MarcdeVinck  2 года назад

      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

  • @KiRA-ku6yw
    @KiRA-ku6yw 7 месяцев назад

    Hello sir, if I may ask, can we also accomplish this project with an Arduino UNO kit?

    • @MarcdeVinck
      @MarcdeVinck  7 месяцев назад

      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.

  • @AlizadehMa
    @AlizadehMa 4 года назад +1

    Great video :) how do you than convert voltage to "nm" which UV radiation is measured by?

    • @MarcdeVinck
      @MarcdeVinck  4 года назад +1

      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!

    • @mareksumguy1887
      @mareksumguy1887 3 года назад +1

      nm is NOT the unit for UV light intensity.

    • @gamersujal8956
      @gamersujal8956 2 года назад +1

      @@mareksumguy1887 right , but how can we identify the wavelength of uv . Does it need another sensor.

  • @rajatsharma273
    @rajatsharma273 3 года назад

    Which type of home light you have which shows zero UV index please reply is it LED,CFL, or tube light

    • @MarcdeVinck
      @MarcdeVinck  3 года назад

      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.

  • @tinamohdanuar5075
    @tinamohdanuar5075 9 месяцев назад

    hello sir, can we use LDR Module to measure UV Index? if yes, can you do a tutorial for it?

    • @MarcdeVinck
      @MarcdeVinck  9 месяцев назад

      No, but a UV sensor can! Enjoy! -- ruclips.net/video/vJct0vD6WWg/видео.html

  • @anasakasyah8908
    @anasakasyah8908 4 года назад

    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?

    • @MarcdeVinck
      @MarcdeVinck  4 года назад +1

      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

  • @tarekhossamabdelatysarhan2056
    @tarekhossamabdelatysarhan2056 2 года назад

    Hello sir thank you for your explanation , Can we detect infrared radiation the same way we detect UV radiation ?

    • @MarcdeVinck
      @MarcdeVinck  2 года назад

      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

  • @bodoamat8065
    @bodoamat8065 2 года назад

    Sir, can i use UV sensor for triger lamp on/off use fuzzy Logic?

    • @MarcdeVinck
      @MarcdeVinck  2 года назад

      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.

  • @santhoshkumar87
    @santhoshkumar87 2 года назад

    Is there a way to know if the sunlight has UV-A and UV-B?

    • @MarcdeVinck
      @MarcdeVinck  2 года назад

      Yes, but you need a specific sensor for each wavelength. Search online for the type you need. UVB sensors look expensive?

  • @shrutikagiri
    @shrutikagiri 4 месяца назад

    Where can we get this code

    • @MarcdeVinck
      @MarcdeVinck  4 месяца назад +1

      The manufacturer should have code. Mine is from Adafruit, they supply the code for the specific sensor.

  • @Ivyqh
    @Ivyqh 2 года назад

    Hi Marc, what would be the units of the UV index when calculated, is it J/m2?

    • @MarcdeVinck
      @MarcdeVinck  2 года назад

      You are reading the voltage out. ruclips.net/video/vJct0vD6WWg/видео.html You can relate that to a specific UV index.

    • @Ivyqh
      @Ivyqh 2 года назад

      @@MarcdeVinck How would i be able to calculate the value of irradiance from this? would i use P = I * V

    • @MarcdeVinck
      @MarcdeVinck  2 года назад +1

      @@Ivyqh I think you need a pyranometer for accurate measurements. I have also seen it measured via a solar cell for general estimations.

    • @Ivyqh
      @Ivyqh 2 года назад

      @@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?

    • @MarcdeVinck
      @MarcdeVinck  2 года назад

      @@Ivyqh Use --> delay(insert the amount of milliseconds you want here)

  • @TizedesCsaba
    @TizedesCsaba 4 года назад

    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

    • @MarcdeVinck
      @MarcdeVinck  4 года назад

      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

  • @mantasookinavicius5154
    @mantasookinavicius5154 Год назад

    can you test how much UV led strips make?

    • @MarcdeVinck
      @MarcdeVinck  Год назад

      Sure. You can measure any UV that falls within the range of the sensor.

  • @user-my7pw8gp7b
    @user-my7pw8gp7b 4 года назад

    What kind of the UV sensor did you used

    • @MarcdeVinck
      @MarcdeVinck  4 года назад

      I used the Adafruit Analog UV Light Sensor Breakout -- www.adafruit.com/product/1918

  • @ouizabenatsou1158
    @ouizabenatsou1158 Год назад

    Can we have the Arduino program please, thank you

    • @MarcdeVinck
      @MarcdeVinck  Год назад

      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

  • @cris_Mahe
    @cris_Mahe 2 года назад

    Hello, can you converter the voult at W, please

    • @MarcdeVinck
      @MarcdeVinck  2 года назад +1

      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.

    • @cris_Mahe
      @cris_Mahe 2 года назад

      @@MarcdeVinck my question is, can you convert from volts to watts?

    • @MarcdeVinck
      @MarcdeVinck  2 года назад

      @@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!

    • @MarcdeVinck
      @MarcdeVinck  2 года назад

      For Example: 5V DC at 0.5 Amps = 2.5 Watts

  • @rizyurf6651
    @rizyurf6651 4 года назад

    Hi sir how can i found this code to this program?

    • @MarcdeVinck
      @MarcdeVinck  4 года назад +1

      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.

    • @rizyurf6651
      @rizyurf6651 4 года назад

      @@MarcdeVinck thank you for the response sir...
      Can i add... Led screen?

    • @MarcdeVinck
      @MarcdeVinck  4 года назад +2

      @@rizyurf6651 Yes, and it's not that difficult either. Here is some referece to look at -- ruclips.net/video/EW0Pfof7Prk/видео.html

    • @MarcdeVinck
      @MarcdeVinck  4 года назад +1

      ​@@rizyurf6651 Yes, and fairly easily too! -- ruclips.net/video/EW0Pfof7Prk/видео.html

  • @YtubeReel
    @YtubeReel 4 года назад

    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

    • @MarcdeVinck
      @MarcdeVinck  4 года назад

      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

  • @ouizabenatsou1158
    @ouizabenatsou1158 Год назад

    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

    • @MarcdeVinck
      @MarcdeVinck  Год назад

      Please ask you questions here so other can learn from the answer too! (If I have them!). Thanks!

    • @ouizabenatsou1158
      @ouizabenatsou1158 Год назад

      @@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

    • @MarcdeVinck
      @MarcdeVinck  Год назад

      @@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