pimoroni / bmp280-python Goto Github PK
View Code? Open in Web Editor NEWPython library for the BMP280 temperature, pressure, and altitude sensor.
License: MIT License
Python library for the BMP280 temperature, pressure, and altitude sensor.
License: MIT License
So I want to know the static pressure in a room.
For this I'm using 2 bmp280's.
One inside and the other outside.
Per the bmp280.pdf I changed the sdo pin from pull down to pull up.
i2cdetect -a 1 brings it up just as expected, 70: -- -- -- -- -- -- -- 77 -- -- -- -- -- -- -- --
Instead of 0x76.
Could a possible 0x77 be incorporated in ??
As I get RuntimeError: Unable to find bmp280 on 0x76, IOError.
Which is right because it's on 0x77.
I've checked with two trusted local barometers and https://earth.nullschool.net - my unit seems to be off, it measures 1004.92hPa, whereas it should be at 1007.
Do you have any idea on what might be causing this? Unit faulty? Calibration wrong?
It is on a Joy-IT Explorer700 where everything else works fine, if that helps. Tested to see - by touching it for a temperature increase - if i read out the correct device.
Thanks in advance!
I hope this is appropriate to log here. Just a small issue when I was using the examples.
On python version 3.7.3 when running the examples/compensated-temperature.py file I got the following error:
File "compensated-temperature.py", line 28, in get_cpu_temperature return float(output[output.index('=') + 1:output.rindex("'")]) TypeError: argument should be integer or bytes-like object, not 'str'
After editing the line to return float(output[output.index(b'=') + 1:output.rindex(b"'")])
it then ran correctly.
Hi,
I have downloaded bmp280.py and placed it on the pico via Thonny - no problem. Also on the pico is v1.18(2022-01-17).uf2 from here
When I run the test examples I get stuck on
try: from smbus2 import SMBus except ImportError: from smbus import SMBus
with ImportError: no module named 'smbus'
I have tried to install the module using Thonny and have a /lib/smbus.cpython-38-x86_64-linux-gnu.so file on the pico which is almost certainly not what I want.
Any ideas as to where I have messed up as I seem unable to find an smbus.py file for micropython.?
Andrew
thonny: Thonny version: 3.3.14
Python :: 3.7']
I have a dual AHT20 and BM280 sensor. The BMP280 I2C address is 0x77 and not 0x76. How do I change the I2C address?
So I bought one of these nifty little breakouts and am currently using it in the office.
My problem now is that the temperature always comes back as something above 26°C, even when the windows are open and it's very much not above 26°C. When googling for a solution, I found this: letscontrolit/ESPEasy#164, which sounds like it might be the issue here.
Would it be possible to implement different sampling scenarios? I'd try to do it myself, but working with hardware stuff in Python is not my forte.
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.