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

More precise temperature #2

Open
RuslanasMobOn opened this issue May 23, 2018 · 4 comments
Open

More precise temperature #2

RuslanasMobOn opened this issue May 23, 2018 · 4 comments

Comments

@RuslanasMobOn
Copy link

Hi, is there a possibility for quick fix to read more precise temperature from DS18B20? For now i'm getting just integer. It would be great to get double value.

@davemckelvie
Copy link
Owner

Yep, can be done. Probably the easiest way is to return the raw value from the DS18B20 as two bytes then do the temperature conversion in the I2C master.

@RuslanasMobOn
Copy link
Author

I'm not that much familiar with c/c++ and converting raw data to data types (even more i don't know how to debug ATTiny with Platformio) . It would be great if you give me more clearer hints

@davemckelvie
Copy link
Owner

what are you trying to achieve? what can you tell me about your project?

@RuslanasMobOn
Copy link
Author

I have raspberry pi with android things, i need to get temperature from my waterproof ds18b20, so i read your article, bought ATTiny85 and now i’m getting temperature via ATTiny as slave. But temperature is two digit integer, but i want to get float with more precise value. I’m not familiar with c/c++ , i just use your code and diagrams. So i will be greatful if you help me to get that float value from ds18b20

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