-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Problem with bme280 sensor in V. 4.3.3 #722
Comments
Hm, I think you could create a small python script and test the sensor manually. Copy the code below and put it in a file. Call it test-bme280.py: import smbus2
import bme280
port = 1
address = 0x76
bus = smbus2.SMBus(port)
calibration_params = bme280.load_calibration_params(bus, address)
# the sample method will take a single reading and return a
# compensated_reading object
data = bme280.sample(bus, address, calibration_params)
# the compensated_reading class has the following attributes
print(data.id)
print(data.timestamp)
print(data.temperature)
print(data.pressure)
print(data.humidity)
# there is a handy string representation too
print(data) Save the file with Ctrl+X. Then you need to activate the Python source environment: Then run the test script: And what could also help is to shutdown the Pi, and take it of the power for a minute or so and then power it on again. Make sure all hardware is reset. |
Thanks!!! I think there is any problem with my rasp or wired, because I have problem with wired sensor too... It's very rare.. |
Did you try to shutdown and removed the power from the pi. So that there no power at all at any devices. This could sometimes fix it. Needs a 'hard' reset. It that does not help, I would suggest create a new SD card and install TP4 https://theyosh.github.io/TerrariumPI/install/ and copy the following files: https://theyosh.github.io/TerrariumPI/faq/which-files-to-backup/ Then you can just switch the SD card to see if that makes a difference. If that also fails, then you have to look at your hardware and wiring. And make sure everything is still connected correctly, and that all connections are clean. Maybe there is some dust of grease on it from using a long time. |
I think physical cables are fine, that is to say, the cables are connected and none are loose. However, I think some cables are possible that they have rust. I've changed SD with V3 and problem is same... I've always feared that this day would come, to check all the wiring... hehe |
You had a backup of TP3 on a different SD card? And that is also causing sensor issues. Then I am afraid that some wiring or maybe the sensor it self is broken. If you are going to re-wire, I think it is wise the clean all the GPIO pins with a nail polish remover fluid and swabs. That cleans is nicely and does not affect the electronics. And if you need to buy new hardware, always buy extra spare parts at the same time. I have about 10+ BME280 and some other sensors at home. Not all sensors are of the same quality, and always wise to have some extra spares. But this is sorry to hear. I hope you can fix it. For me, some sensors are not accessible for me if they brake. Keep my fingers crossed |
The original problem has been because I bougth some sensors BME280 and I wanted change old sensor bcs always showed 100% humidity... |
And what I also noticed with another project, when it can get humid, and therefore a bit wet, you could use a plastic spray to cover the connection with a small plastic rubber coating. Make sure you protect the actual sensor when spraying with a peace of sticky paper. Then the hole sensor and its connector should stay a bit more protect against moist and water. |
I also noticed you created new language Spanish in the TP3 version. I would suggest not to do, because TP3 is not supported anymore, and translating can take some time. I am thank full for everybody that wants do to some translating, but then it would be better to do it only in the 4.x.y.z version, which is TP4. |
Yes I've created a new language to try to help the community. |
Hello Again @theyosh I show you a screenshot, to see better I'm trying it, but I aren't sure really: |
Use the On and Off duration fields and clear the Power on and Settle time. |
Hello friend!!
Thanks |
I would suggest to upgrade to TP4. As TP3 is not supported or updated anymore. The save way to do is to use a new SDcard, and start installing TP4 on it. So you can swap SD cards as a backup. |
Ok, I close this issue as it is has been resolved. But I suggest to upgrade to TP4. As TP3 does not get any software updates. |
Hello
I've problem with bme280 sensor. I use these for humidity.
I can add sensors but they don't read nothing.
I can see i2c connections.
I can see that in log session:
INFO - terrariumEngine - Updated sensor bme280 humidity named 'HUMEDAD_COOL_ZONE' at address '77,4' with new value 0.00% in 0.05 seconds.
2022-07-16 17:44:59,881 - INFO - terrariumEngine - Updated sensor bme280 humidity named 'HUMEDAD_HOT_ZONE' at address '76,4' with new value 0.00% in 0.04 seconds.
I don't know what is the problem. Some help??
thanks
The text was updated successfully, but these errors were encountered: