Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Possible mistake in the code of the exemple DustSensorDSM

Possible mistake in the code of the exemple DustSensorDSM

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 1 Posters 56 Views 1 Watching
  • 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.
  • Rodrigo PiedadeR Offline
    Rodrigo PiedadeR Offline
    Rodrigo Piedade
    wrote on last edited by
    #1

    The code shows that the concentration can be calculated by the expression:
    long concentration = 1.1pow(ratio,3)-3.8pow(ratio,2)+520ratio+0.62; // using spec sheet curve
    But the sheet curve, as we can see in the graph, we have the concentration in the x axis, not in y as in the code:
    ratio= 1.1
    pow(ratio,3)-3.8pow(ratio,2)+520ratio+0.62
    I didn't understand why, in every code i see of this sensor, is the same. Can someone explain?
    If it is a dumb question, sorry, but help me please.
    The graph of data sheet.
    ![0_1607407293081_1da48a38-62da-4af6-a352-a1cbd79b2201-image.png](Uploading 100%)
    @epierre

    1 Reply Last reply
    0
    • Rodrigo PiedadeR Offline
      Rodrigo PiedadeR Offline
      Rodrigo Piedade
      wrote on last edited by
      #2

      Corrections of the post:
      ratio= 1.1pow(concentrarion,3)-3.8pow(conccentration,2)+520*concentration+0.62
      the graph
      123.jpg

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      12

      Online

      11.7k

      Users

      11.2k

      Topics

      113.1k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular