Need help on PPD42NJ SPI sensor


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2013
    Posts
    31

    Default Need help on PPD42NJ SPI sensor

    I have been experiment with the PPD42NJ SPI particle sensor,I can read the pulse width from the sensor output,but how can I convert the reading to a meaningful figure,at least it can give me some figure like the SPI figure publish by the environment department,the Datasheet didn't mention anything about the convertion

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,520


    Did you find this post helpful? Yes | No

    Default Re: Need help on PPD42NJ SPI sensor

    I had a quick look at the datasheet and the acual particle concentration is encoded in the dutycycle of the pulsed output, not just in the pulse width. So, you need to measure and calculate the dutycycle to begin with.

    Once you have that the way forward depends on the what kind of accuracy and resolution you need.

    The curve looks pretty linear from 0 to 4000 particles per cubic foot but then it tapers off slightly but lets say it didn't and that your dutycycle value ranges from 0 to 10000 representing 0-100% in 0.01% steps. At the 4000 particles Count the dutycycle for an average sensor is around 6.5% or the value 650. You need to multiply 650 by 6.1538 . Here's one way: ParticleCount=DutyCycleValue */1575.

    If you need to take the slightly unlinear response into consideration then a lookup table of values (say at every 500 counts) and linear interpolation between those will probably work.

    /Henrik.

  3. #3
    Join Date
    Jun 2013
    Posts
    31


    Did you find this post helpful? Yes | No

    Default Re: Need help on PPD42NJ SPI sensor

    Thank you,I can manage to get some meaningful figure now,thanks a lot

Similar Threads

  1. Need to use SPI but I'm already using the SPI port
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th December 2012, 09:52
  2. Using SPI
    By The Master in forum Serial
    Replies: 6
    Last Post: - 14th March 2010, 15:37
  3. Replies: 6
    Last Post: - 18th January 2008, 08:17
  4. Spi
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd October 2007, 18:59
  5. SPI on a pic without hardware SPI?
    By modifyit in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th April 2006, 13:29

Members who have read this thread : 1

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