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

Question about sampling #1

Open
leonardo979 opened this issue Jun 15, 2018 · 1 comment
Open

Question about sampling #1

leonardo979 opened this issue Jun 15, 2018 · 1 comment

Comments

@leonardo979
Copy link

Hi,
I'm doing something similar on nodeMCU and Maverick ET-73 probe.
Only 1 probe and sampling for now.
I used same resistor 22kOhm, and same coefficient and approach, but i'm struggling on scale resistor probe and coefficients...

Can you clarify why here:
SumTemp += (int) (maverick_temp((ads1015.readADC_SingleEnded(analogpin) * 0.003 / voltage) * 1023));

you adjust reading with ... * 0.003 / voltage) * 1023)
instead of go directly the analogpin read value? In the end having 3.3v it's adjusted of 0,93 but i don't understand why.

thanks

@NicoDupont
Copy link
Owner

Hi,
If I remember, it's because of the gain with the ads1015.
https://learn.adafruit.com/adafruit-4-channel-adc-breakouts?view=all
1bit = 3mv by default.
I do that to not change the maverick_temp function.
It can be improved ?

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