UV sensor ML8511


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Default Re: UV sensor ML8511

    Quote Originally Posted by visnja30 View Post
    ADC is not a problem, measure & scale result (1v -> 0, 3v -> 1023, 10-bit ADC) ...... Yes it is problem
    This is my problem I can measure voltage from sensor but how to scale it to UV intensity from datasheet.
    In Lapis website, they have graph including UV-index.
    1V = 0 UV-Index
    3V = 15 UV-Index

    Don't know how they have calculated that, but lets take it as it is.

    Scaling ADRaw: 310 (1V) - 925 (3V) to UVIndex: 0 -15
    Code:
    If AD_Raw < 310 THEN AD_Raw = 310
    UVIndex = (((AD_Raw * 4)/17)-71)/10
    Name:  Clipboard02.jpg
Views: 3730
Size:  42.8 KB

    Above is approximation for accurate calculation formula. It should be close enough, but if it is not then alternate parameters...
    Remember that intermediate results (step by ste) must remain as an integer value
    Last edited by Gusse; - 8th January 2016 at 12:44.

Similar Threads

  1. Oxygen Sensor
    By sammy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th January 2009, 16:25
  2. Replies: 6
    Last Post: - 18th January 2008, 08:17
  3. Touch Sensor
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 26th September 2007, 16:44
  4. ultrasonic sensor
    By PoTeToJB in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th May 2006, 20:26
  5. distance sensor
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th January 2006, 10:37

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts