Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Shinyei PPD42NS particle sensor

    Scheduled Pinned Locked Moved MicroPython
    dust sensorppd42nsshinyei
    10 Posts 3 Posters 3.6k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RobTuDelftR Offline
      RobTuDelft
      last edited by

      Anyone tried to attach the Shinyei PPD42NS sensor to a Pycom device?
      It would be interesting to compare the results of this sensor with say a PMS5003 particle sensor on a Pycom device.

      It is a very cheap sensor that can be used to measure air quality in a crude way.

      alt text

      More info here and here.

      Without data you're just another person with an opinion.
      Hackster | About me

      RobTuDelftR 1 Reply Last reply Reply Quote 2
      • RobTuDelftR Offline
        RobTuDelft @RobTuDelft
        last edited by

        I have created a library for this particulate matter sensor based on the Arduino code if anyone is interested.
        You can find the code here.

        Sensor needs to be connected to 4.75 - 5.25 V and you need to drop the voltage for the input port.

        If you have any comments or questions let me know.

        Without data you're just another person with an opinion.
        Hackster | About me

        1 Reply Last reply Reply Quote 3
        • PiAirP Offline
          PiAir
          last edited by

          Cool, nice to collect other data than just temperature and humidity. I ordered one (two) from AliExpress, probably won't be here in time for Eindhoven, but maybe you can bring your setup and demonstrate it then? :)

          RobTuDelftR 1 Reply Last reply Reply Quote 0
          • RobTuDelftR Offline
            RobTuDelft @PiAir
            last edited by

            @PiAir Sure, will bring it :)

            Without data you're just another person with an opinion.
            Hackster | About me

            1 Reply Last reply Reply Quote 0
            • RobTuDelftR Offline
              RobTuDelft
              last edited by

              Fyi, I'm using a LD1117A voltage regulator on the digital PWM input signal. It drops it from 4.5V to about 2.5V, which is enough for it to be a high signal on the Lopy.

              My readings are around 400 pcs/0.01cf in the office.

              I have resolved a few bugs in the code, so be sure to use the latest version from my Github.

              @PiAir did you know you can also order them in the Netherlands under a different name?

              Without data you're just another person with an opinion.
              Hackster | About me

              PiAirP 1 Reply Last reply Reply Quote 0
              • PiAirP Offline
                PiAir @RobTuDelft
                last edited by

                @RobTuDelft not just different nane, but also different price. I ordered 2 for €8,88 incl. shipping via AliExpress.
                The grove connector is nice for the Marvin though.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  Shaun
                  last edited by

                  I have been running a unit for a couple of weeks now.
                  I hacked it onto an existing application PCB I developed around a WiPy.

                  The unit I use has 2x PWM outputs, one for larger particles and one for smaller particles

                  I am displaying real time readings, an exponential running average and a resettable peak hold.

                  0_1496567840949_20170604_110438.jpg

                  RobTuDelftR 1 Reply Last reply Reply Quote 1
                  • RobTuDelftR Offline
                    RobTuDelft @Shaun
                    last edited by

                    @Shaun The pulse width is also an indicator for particle size. So you could add counters based on the pulse length even with just one PWM output. Something I will test later.

                    Without data you're just another person with an opinion.
                    Hackster | About me

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      Shaun @RobTuDelft
                      last edited by

                      @RobTuDelft Hi Rob, if you want the added info of particle size, you really do need to monitor both PWM outputs, but if you only plan on monitoring a single pin, then monitor the small particles pin.

                      I do take the duration of low pulse width on each pin into account too, at a resolution of 1ms.
                      The Amphenol sensor that I am using, I have noticed does not produce pulses narrower than 1ms

                      1 Reply Last reply Reply Quote 0
                      • PiAirP Offline
                        PiAir
                        last edited by

                        0_1497383994430_20170613_215443_HDR_klein.jpg
                        Arrived in time for the hackaton this Saturday. :)

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 1 / 1
                        • First post
                          Last post

                        Pycom on Twitter

                        Pycom