-
Notifications
You must be signed in to change notification settings - Fork 678
library for talking to the MPL115A2 #54
Conversation
Thanks for submitting the pull request and apologies it wasn't looked at sooner. I gave it a quick try with a demo that calls getPT every second, but am getting a lot of noisey values back with temperature values varying wildy. Code I'm using to test:
Example of some of the output:
To rule out a sensor issue I wired the same sensor up to an Arduino and see consistently good values with temps around 22C as expected. I'll come back later to look closer at the code. Perhaps the conversion from register value to numeric value isn't working as expected and causing the incorrect values to be returned. |
Ha! And I didn't notice this reply for three months. My code's working stably for me (of course; I wouldn't have sent the pull request otherwise). I'll see if I can spend some time on it soon and see what might be going wrong. |
We are talking MPL3115A2 here, aren't we? In the opposite to MPL115A2 as stated in title and issue. Any news/progress here? |
What I have is an MPL115A2. I ordered it from here: https://www.adafruit.com/products/992 |
Yeah, MPL115A2 is different to MPL3115A2. Thx for pointing that out. There does not seem to be raspi-code around for the latter. Will see that I get my stuff uploaded, I at least have it running "somehow" ... But it seems the Adafruit repository is not really getting much love, is it? Your request is from 2013, you got a reaction in 2014, and I think we might have 2015 now? |
@tdicola This code still works (apparently) correctly for me on my MPL115A2, which is wired exactly the way you describe yours. Can you update to my latest code, rerun your tests with the MPL115A2 class's |
@asciiphil I tested your code today. I used a very plain and clean setup for testing but I got the same problems which @tdicola got. This is the output of the temperature values: 22.0093457944 |
@unic8s Can you initialize the MPL115A2 class with |
Hi, I'm new to Pi world, but is there the library for the MPL3115A2 ? Thanks |
I found the python library for MPL3115A2 |
This library has been deprecated in favor of our python3 Blinka library. We have replaced all of the libraries that use this repo with CircuitPython libraries that are Python3 compatible, and support a wide variety of single board/linux computers! Visit https://circuitpython.org/blinka for more information CircuitPython has support for almost 200 different drivers, and a as well as FT232H support for Mac/Win/Linux! |
I wrote a library for the MPL115A2. I thought it might be nice to get the code into the upstream repo.
My code is released under a CC0 waiver (http://creativecommons.org/publicdomain/zero/1.0/), so you can do whatever you'd like with it.