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

The temperature values are meaningless. How to accumulate that info? #2

Closed
mozcelikors opened this issue Jan 22, 2014 · 3 comments
Closed

Comments

@mozcelikors
Copy link

When the code is executed, the temperature values are around 450 to 600. How do I change it in order to obtain Celcius degrees?

@jensnielsen
Copy link
Owner

I don't really remember this but you should find the resolution of the
ds18b20 in the data sheet. I'm pretty sure it's in celsius already though.

Are you running this in room temperature? You have a very large
variation, so unless you are changing the temperature my guess is that
you're not reading it properly from the ds18b20...

On 2014-01-22 19:19, mozcelikors wrote:

When the code is executed, the temperature values are around 450 to
600. How do I change it in order to obtain Celcius degrees?


Reply to this email directly or view it on GitHub
#2.

@mozcelikors
Copy link
Author

Hello, thanks for the fast reply.

I have to say after shifting through a precision of 9 bits , I got the right results. I would like to contribute to that part when I have time.

@jensnielsen
Copy link
Owner

There's now a float member representing the actual temperature

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