Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert NO-B43F OP1 and OP2 readings to concentration data #1

Open
ruihangdu opened this issue Jul 24, 2017 · 7 comments
Open

Convert NO-B43F OP1 and OP2 readings to concentration data #1

ruihangdu opened this issue Jul 24, 2017 · 7 comments

Comments

@ruihangdu
Copy link

Hello,
How did you convert the voltage difference to NO2 concentration? Much appreciated!

Ray

@ruihangdu ruihangdu changed the title Convert NO-B43F OP1 and OP2 readings from ADS1115 to concentration data Convert NO-B43F OP1 and OP2 readings to concentration data Jul 24, 2017
@sbocconi
Copy link
Contributor

sbocconi commented Jul 26, 2017 via email

@P992
Copy link

P992 commented May 24, 2019

Can you explain better how you calculate a, b, c, d and offset? Do You have an excel that make it? Thank you so much for your share

@sbocconi
Copy link
Contributor

We used some Python code to perform the linear regression. I am not the owner of the code, so I cannot share it without asking, if this is an option for you I can ask the author if he allows to share it and possibly upload it here.

@P992
Copy link

P992 commented May 27, 2019 via email

@P992
Copy link

P992 commented May 31, 2019

Hy if is not possibile to share the original code can you share a tutorial that explain how to calculate No2 without use alphasense aglorithm ? thank you

@Tessatino
Copy link

Hi, so we used a python code to do the following:

  • Create a pandas Dataframe with the data (this includes 'true' no2 data from official measurements, and from our own sensor: no2a, no2b, temp, humidity)
  • Then the Ordinary Least Squares '.ols' statsmodel function is used to calculate the parameters of the formula, by getting the formula and the data as input. See more information about the .ols function here: http://www.statsmodels.org/dev/examples/notebooks/generated/ols.html
  • The parameters can then be obtained by the function '.params', for example: a = results.params['no2a']

Hope this helps you further! If it is possible for us to share the code we will let you know.

@P992
Copy link

P992 commented Jun 5, 2019

Thank you for help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants