|
Post by madeindortmund on Apr 26, 2020 16:38:49 GMT -8
Hello all!
After 3 years of continously running the WeatherPi with Lightning Board, suddenly I got strange readings off the included BMP280 on the Weatherboard - the temperature was extremely low (-120°C) as were the pressure readings (around 600 hpa) reported by my software (I am located in germany, so its degree celsius and hpa). I bought a spare bmp280 and included it via a different i2c adress than the fried one, edited the address in the config.py and it seemed everything was running again. Then I noticed, that the Lighning Boards was reported to be "not present". So I ordered a different AS3935 board from a german electronics shop and tried to get it running (2 days now). I then found out (after 2 days of frustration), that every time I connected the Weatherboard to the i2c bus, the AS3935 on the mux board stopped working. So it seems that the fried bmp280 is disturbing the i2c channel and made the AS3935 stop communicating over the i2c bus. What is strange: all other sensors work without any problems, it only affects the lightning board. I tried simply removing the smd BMP280 on the WeatherBoard, but that did not help - the lightning board still stops working as soon as I connect the WeatherBoard to the i2c bus. Is there anything I can try by soldering or removing anything from the WeatherBoard? Because all other things work greatly and since I added a spare bmp280 externally, I do not need the integrated one. Any idea how to completly remove / disable it and make the lightning detector work again?
|
|
|
Post by SDL on Apr 30, 2020 15:42:30 GMT -8
|
|
|
Post by madeindortmund on May 5, 2020 2:04:07 GMT -8
Hi SDL, thanks for your quick reply! I already ordered the new one with the 0x02-address. I wonder if I have to connect the IRQ-Port to Pi-GPIO or is it enough to only connect the i2c pins? If IRQ port is required, which GPIO-port is the WeatherPi Software listening to for interrupt requests from the AS3935?
|
|
|
Post by SDL on May 5, 2020 9:15:39 GMT -8
What exact software and version are you running?
If I remember right, the GWP uses the Interrupt port. Check out the "testAS3935.py" program. You can see the GPIO port in the software.
BP
|
|
|
Post by madeindortmund on May 29, 2020 11:32:13 GMT -8
Hello, I received the WeatherBoard and all other stuff I ordered today and changed the WeatherBoard because of the fried BMP280 on the old one. After having everything hooked up and starting the Pi I am now getting this:
----------------- BMP280 Barometer ----------------- Traceback (most recent call last): File "GroveWeatherPi.py", line 1392, in <module> sampleAndDisplay() File "GroveWeatherPi.py", line 977, in sampleAndDisplay print 'Temperature = \t{0:0.2f} C'.format(bmp280.read_temperature()) File "./Adafruit_Python_BMP/Adafruit_BMP/BMP280.py", line 120, in read_temperature raw_temp = self.read_raw(BMP280_TEMPDATA) File "./Adafruit_Python_BMP/Adafruit_BMP/BMP280.py", line 99, in read_raw raw = self._device.readU16BE(register) File "./Adafruit_Python_GPIO/Adafruit_GPIO/I2C.py", line 185, in readU16BE return self.readU16(register, little_endian=False) File "./Adafruit_Python_GPIO/Adafruit_GPIO/I2C.py", line 159, in readU16 result = self._bus.read_word_data(self._address,register) & 0xFFFF IOError: [Errno 5] Input/output error pi@raspberrypi:~/SDL_Pi_GroveWeatherPi $
with the new Board.
After this error occurs, the BMP280 i2cadress (0x77) is not showing up anymore via i2cdetect and it only returns after multiple reboots of the pi.
So I now spent lots of money and waited 21 days to finally receive another broken board?
|
|
|
Post by SDL on May 29, 2020 12:11:04 GMT -8
Hmm. I don't think it is broken.
run "sudo i2cdetect -y 1" and print the results.
Also, send a picture of the new WeatherBoard and post it. Let's make sure we know what you have!
BP
|
|
|
Post by madeindortmund on May 29, 2020 13:05:12 GMT -8
<abbr>I am experiencing the exact same issues as before.</abbr> <abbr>When I hook up ONLY the NEW ORDERED lightning board, it gets picked up and works great.</abbr> <abbr>As soon as I hook up THE NEW Weatherboard, the lightning board stops working.</abbr> <abbr>the bmp280 is not working at all and gives i/o errors all the way.</abbr> <abbr>When I connect the lightning board to the mux, I can not pick it up at all, not in the software, not via i2cdetect, nothing.</abbr> <abbr> </abbr> <abbr>When I run i2cdetect, I can see the bmp280 under 0x77 but it doesnt work. As soon as I start the GroveWeatherPi.py, I get the error and it stops and even i2cdetect can't find it anymore after that!</abbr> <abbr> </abbr> <abbr>When I check with another BMP280 (other distributor, with adress 0x76) and change the software to listen on port 0x76, it works and I can see correct measures.</abbr> <abbr> </abbr> <abbr>1. Question, because this gets really frustrating now, since I thought my other WeatherBoard was fried and I put it in the trash bin and now it seems it wasnt because the new one is showing the same issues: is it possible, that the pi2grover is defective? I did not change this one - all other parts are new parts now.</abbr> <abbr> </abbr> <abbr>2. Question: what do I have to set here:</abbr> <abbr> </abbr> <abbr># BMP280 default address. BMP280_I2CADDR = 0x77 BMP280_CHIPID = 0xD0</abbr> <abbr> </abbr> <abbr>maybe the CHIPID is wrong for the new board?</abbr>
|
|
|
Post by madeindortmund on May 29, 2020 13:23:00 GMT -8
Here are pictures of the wireing.
|
|
|
Post by madeindortmund on May 29, 2020 13:53:23 GMT -8
I switched to the Adafruit_BMP directory and deleted the .pyc file in the BMP280 directory, after that I started GroveWeatherPi and it ran for 1 loop and even gave me the readings of the bmp280 sensor, after the first loop I stopped again and the error message was displayed again. Via i2cdetect I could not see the bmp280 anymore, after a restart the file .pyc was in the directory again, after deleting it, the program ran again for 1 loop. Is there any problem with how the .pyc files are generated? I really don't know what to do anymore.
|
|
|
Post by SDL on May 29, 2020 14:29:54 GMT -8
Let's restart this problem.
Demetri,
There is nothing wrong with the replaced BMP280 unless the boards are physically damaged. Let's start the debug process again.
1) What Raspberry Pi are you using?
2) What are the results of "sudo i2cdetect -y 1"?
3) Remove all I2C devices except for the WeatherBoard. Re do your i2cdetect command. If you see the BMP280, run your software test.
4) Are you using our SDCard or your own installation?
5) If own, what version of the Raspberry PI OS are you using?
6) what weather software and version are you running?
6) Are you in a high static (dry) environment? Could you be zapping the boards?
I'm thinking you have loaded the main i2c bus down somehow and that is the problem. Break down the problem to one device at a time to figure out the offensive connection or device.
BP
|
|
|
Post by madeindortmund on May 29, 2020 15:12:20 GMT -8
ok lets go...
I disconnected EVERYTHING from the pi and only connected the Weatherboard i2c port (see picture). i2cdetect gives me:
0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- 77
so bmp280 is the only device present.
now I run the GroveWeatherPi Software. It says BMP280 not present.
I run i2cdetect again:
0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
bmp280 gone.
Here is my software info:
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="Raspbian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
GroveWeatherPi Version:
GroveWeatherPi Solar Powered Weather Station # Version 2.1 August 18, 2016
Raspberry:
Raspberry Pi 3 Model B Rev 1.2
Attachments:
|
|
|
Post by madeindortmund on May 29, 2020 15:41:47 GMT -8
I tried the new software version, but I am getting
root@raspberrypi:/home/pi/SDL_Pi_GroveWeatherPi# python GroveWeatherPi.py Traceback (most recent call last): File "GroveWeatherPi.py", line 64, in <module> from apscheduler.schedulers.background import BackgroundScheduler ImportError: No module named schedulers.background
|
|
|
Post by madeindortmund on May 29, 2020 16:08:19 GMT -8
I could install it with pip install apscheduler and ran the software. Output see picture. BMP280 again not found and stopped being detected via i2cdetect -y 1 Attachments:

|
|
|
Post by madeindortmund on May 29, 2020 16:16:45 GMT -8
after hard reset I can find the bmp via i2cdetect again, after running the GroveWeatherPi-Software I again get the error and i2cdetect stops finding the bmp280.
So I guess bmp280 is again fried and I have to put it in the trash bin...
Attachments:
|
|
|
Post by madeindortmund on May 29, 2020 16:27:35 GMT -8
I can not start the test now. It gives me ImportError: No module named Adafruit_BMP.BMP280 is it a python version problem? How can I solve this?
|
|