Hello Core. Well I feel that I am getting somewhere as I can detect my BME280 on port 77 and I can see this below, but I still cant get the bloody thing to work, syntax errors and all sorts when I use scripts downloaded on from the net. Any ideas?
We’re sorry to hear you’re running into some issues. Just to confirm, what specific BME280 module were you using and what scripts were you running on the Pi?
All my PI 4 stuff I have bought off Core, the BME280 is your part number P2652. As mentioned before on the command prompt I can see it on port 77 and when I run sudo i2cdump I can see the codes being sent from the BME280. My problem is all of the scripts I find are coming up with various errors like syntax and attribute and to be honest I have tried heaps of scripts. Being very new to PI and its something I want to learnt and I have read the Official Beginners Guide for PI that I bought off Core I sort of get it but I am obviously missing something. Any help would be very appreciated and no doubt lead to more orders to Core.
Sad to hear your BME280 is giving you problems! Could you post some screenshots/photos of the errors you’re getting with your code? (And maybe attach the code so we can have a look)
Keen to get to the bottom of this one!
-James
P.S. Since this forum is open to the whole internet, we strongly recommend not putting your phone number up on your posts
Hi Greg.
Don’t know much about the hardware, especially Pi.
Just a thought, how long is the I2C connecting cable???
No mention of this so far.
Cheers Bob
Hi Greg
Bill Gates may have his hooks in here too
Try changing these to .doc or .docx
I too use software that produces .odt files but I can save to Microsoft format to keep old Bill happy. Or if this fails PDF links seem to be OK.
Cheers Bob
In regards to the images/code, you should be able to paste them directly into a forum post if you are on a PC. Python is interpreted line by line so just the text will do!
Since the PiicoDev driver is written for the same device, with the same default address - the guide linked by @James should work out of the box.
Adafruit’s guide, linked by @Liam, uses CircuitPython - which requires additional steps to get working on a Raspberry Pi (namely, using adafruit_blinka)
Hi Greg.
I did ask earlier about the length of the I2C connecting cable and to date there has been no reply. I suggest this because others have come unstuck trying to communicate over too long a distance with this protocol.
Have you thought about this re your instability.
Cheers Bob