thefekete / lm75 Goto Github PK
View Code? Open in Web Editor NEWArduino library for the LM75 I2C temperature sensor
License: GNU General Public License v3.0
Arduino library for the LM75 I2C temperature sensor
License: GNU General Public License v3.0
Hello!
First, let me thank you for uploading your library! :)
There seems to be a little problem with the power down mode on the LM75B from TI.
After enabling the shut down and then disabling it it will not update the temperature annymore.
The Thyst and Tost registers cann still be read and be written to though.
As far as i can make it out, it should work just fine, but i am not that smart ;^^
Maybe you can have a look, i am using the demo code from the library without anny changes.
Greetings,
Peter
Doesn't take negative temperature
Transformation isn't correctly executed
Hi,
First of all thank you very much for this library.
I think the library shows incorrect temperature when the temp is negative. According the LM75 datasheets the most significant bit (D15) contains 1 when value is negative.
In your case the temp value should be subtracted by 0x100 to get the right (negative) value.
float LM75::regdata2floattemp (word regdata)
{
float temp = ((float)(int)regdata / 32) / 8;
if (regdata >> 15) temp -= 0x100;
return temp;
}
Also think that D0..D6 (don't care bits) should be masked. Not sure though...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.