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

Information on Arduino code #42

Open
DeeTech opened this issue Mar 28, 2019 · 6 comments
Open

Information on Arduino code #42

DeeTech opened this issue Mar 28, 2019 · 6 comments

Comments

@DeeTech
Copy link

DeeTech commented Mar 28, 2019

Hello Sir,

I wanted to know about the following lines in code..

"const long double cal[] = {-9.085681659276021e-27, 4.6790804314609205e-23, -1.0317125207013292e-19,
1.2741066484319192e-16, -9.684460759517656e-14, 4.6937937442284284e-11, -1.4553498837275352e-08,
2.8216624998078298e-06, -0.000323032620672037, 0.019538631135788468, -0.3774384056850066, 12.324891083404246};"

How you decided these values & how to calculate them..
I am confuse as to how to explain these values...

Thanks.

@spenceraxani
Copy link
Owner

spenceraxani commented Mar 28, 2019 via email

@DeeTech
Copy link
Author

DeeTech commented Mar 28, 2019

Hello,
1st Thank you for reply.
I understand your point & I read above ref.

But what I don't understand is how this value come or calculated..

like "-9.085681659276021e-27" & others ..

did it display on Arduino after you inject pulses & measured ADC?

You calculated it & then put all 12 values in array cal[];???

Thanks.

@spenceraxani
Copy link
Owner

spenceraxani commented Mar 28, 2019 via email

@DeeTech
Copy link
Author

DeeTech commented Mar 29, 2019

Hello,
Thanks.
I understand theory point of view.
But????

As you said above "values in cal[] are coefficients of 11th order polynomial, that means
they are values of a0,a1....a11 in this right? " "f(x) = 1/1-x = a0+a1x^1+a2x^2+....a11x^11 ?????

So I want to know these values like -9.085681659276021e-27 are displayed on arduino or arbitory generator to put in cal[ ] ??
Or did you use some software or something to get these values...

because these values are +ve & -ve & increasing in exponential like e-27 then e-23 then so on & last value is ~12. which is also written as 12.324891083404246 . SO i want to know how these values come? Or how you calculated? or Where these values displayed? Or did you just do some maths to get these values & put them in cal [] array?

&
inject ~200 pulses then calculate the standard deviation of the measured ADC
values.
What is this? & how to calculate it?
Is this related to the values getting in cal[ ]?

Thanks.

Deepak.

@spenceraxani
Copy link
Owner

spenceraxani commented Mar 30, 2019 via email

@DeeTech
Copy link
Author

DeeTech commented Mar 31, 2019

Hello,

"If you plot the 11th order polynomial f(x) = a0+a1x^1+a2x^2+....a11x^11, with a0 - a11 from the cal[] array, you would get the blue line in the calibration plot that I sent in the previous email."

So this is how you get those values in cal []...
I understand now.

Thank you very much for your time.
I sincerely appreciate it @spenceraxani

Regards.
Deepak.

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

2 participants