waagsociety / making-sensor

Creative Commons Zero v1.0 Universal
14 stars 3 forks source link

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

Open ruihangdu opened 7 years ago

ruihangdu commented 7 years ago

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

Ray

sbocconi commented 7 years ago

Hi Ray,

There are 2 methods you can use, or at least that were known to us. The first is to use the parameters of the factory to calculate the concentration, but there are some assumptions which I am not aware now and we have not followed that path.

The second is to assume that NO2 = a OUT1 + b OUT2 + c Temp + d Humidity + offset

Meaning that the NO2 concentration is a linear combination of the 2 outputs of the Alphasense, the temperature and the humidity (we had another sensor measuring those), and an offset.

To calculate a,b,c,d, and offset (calibration) you need to have reliable data and apply linear regression. In our case we put all the sensors near a measuring station of the Dutch Health Organisation (GGD) to get reliable data about the NO2 concentration, and then did the math.

Basically if you cannot access reliable data to perform the calibration, you need to use the parameters from the factory, but I would not suggest this,

I hope it makes sense to you.

Regards,

Stefano

On 24 Jul 2017, at 21:39, Ruihang Du notifications@github.com wrote:

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

Ray

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/waagsociety/making-sensor/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AC4taD7wI5dD8rW7u3-0__8T8axGYqZnks5sRPLkgaJpZM4OhpOb.

P992 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Yes thank you. If is possible share it. Thank you again

Il lun 27 mag 2019, 10:27 Stefano Bocconi notifications@github.com ha scritto:

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.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/waagsociety/making-sensor/issues/1?email_source=notifications&email_token=AME34YFG3C3VTMG4RD6NXX3PXOLOJA5CNFSM4DUGSON2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWJEY7Q#issuecomment-496127102, or mute the thread https://github.com/notifications/unsubscribe-auth/AME34YELVVVEHBIJ2IJCH23PXOLOJANCNFSM4DUGSONQ .

P992 commented 5 years ago

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 commented 5 years ago

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

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

P992 commented 5 years ago

Thank you for help