|
Post by justin on Aug 20, 2018 17:56:11 GMT -8
Triggerfish I just went through the whole issue of trying to download scipy by following the tutorial online. I never could get it to work, even after doing -j1 at the end. What did work was this. sudo apt-get install python-scipy Then run... sudo apt-get install python-scipy --fix-missing Then run... sudo pip3 install scipy I just followed this tutorial ( raspimint.blogspot.com/2016/11/install-scipy-scikit-learn-raspberrypi.html ) except I skipped the installation of the Scikit-Learn and the Pywavlets sections.
|
|
|
Post by triggerfish on Aug 20, 2018 22:58:12 GMT -8
Hi Justin,
Will try that first thing when I come home tonight!
|
|
|
Post by SDL on Aug 21, 2018 7:24:34 GMT -8
Justin,
Now that is something I had not tried. Thank you. It makes sense (well, not completely, but hey, it works)
One more thing: Run this before you try installing MatPlot Lib (this is general advice):
sudo apt-get update && sudo apt-get upgrade BP
|
|
|
Post by triggerfish on Aug 21, 2018 9:05:14 GMT -8
So, I am home, did the thing and as a bit of a anti-climax... I am ready in five minutes, after the hours and hours hanging and crashing... pi@IBADHOEV14:~/SDL_Pi_GroveWeatherPi $ sudo apt-get update && sudo apt-get upgrade pi@IBADHOEV14:~/SDL_Pi_GroveWeatherPi $ sudo apt-get install python-scipy Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: python-decorator Suggested packages: python-scipy-doc The following NEW packages will be installed: python-decorator python-scipy 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. pi@IBADHOEV14:~/SDL_Pi_GroveWeatherPi $ sudo apt-get install python-scipy --fix-missing Reading package lists... Done Building dependency tree Reading state information... Done python-scipy is already the newest version (0.18.1-2). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. pi@IBADHOEV14:~/SDL_Pi_GroveWeatherPi $ sudo pip3 install scipy pi@IBADHOEV14:~/SDL_Pi_GroveWeatherPi $ sudo pip3 install scipy Collecting scipy Downloading https://www.piwheels.org/simple/scipy/scipy-1.1.0-cp35-cp35m-linux_armv6l.whl (36.5MB) 100% |████████████████████████████████| 36.5MB 2.2kB/s Requirement already satisfied: numpy>=1.8.2 in /usr/lib/python3/dist-packages (from scipy) Installing collected packages: scipy Successfully installed scipy-1.1.0 pi@IBADHOEV14:~/SDL_Pi_GroveWeatherPi $ And thats it
|
|
|
Post by triggerfish on Aug 21, 2018 10:42:34 GMT -8
Well EUREKA!!! I had to build the lighting stuff still, but after that I was able to start de GroveWeatherPi ! So all the stuff together (stil "in progress" offcourse ) What's in the tiny screen What's on the big screen Now I can work on the rest. There is progress again! Thanks Justin! Thanks SDL!
The build continues
|
|
|
Post by triggerfish on Aug 21, 2018 11:44:09 GMT -8
too soon After running for a while, suddenly the thing crashes again and won't start again. I rebooted, power-cycled, but I always et the error: pi@IBADHOEV14:~/SDL_Pi_GroveWeatherPi $ sudo python GroveWeatherPi.py Traceback (most recent call last): File "GroveWeatherPi.py", line 428, in <module> tca9545.write_control_register(TCA9545_CONFIG_BUS0) File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 74, in write_control_register self._write(TCA9545_REG_CONFIG, config) File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 52, in _write self._bus.write_byte_data(self._addr, register, data) IOError: [Errno 121] Remote I/O error pi@IBADHOEV14:~/SDL_Pi_GroveWeatherPi $ As far as I can tell, it's about the mux-board, but what?
|
|
|
Post by SDL on Aug 22, 2018 6:32:52 GMT -8
Triggerfish,
Do two things for me.
1) post the results of "i2cdetect -y 1"
2) take a picture and post it of the I2C Mux board while it is still wired up.
BP
|
|
|
Post by triggerfish on Aug 22, 2018 9:12:47 GMT -8
Hi BP,
The output is:
pi@IBADHOEV14:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- -- pi@IBADHOEV14:~ $ And it looks like:
After the error, Led4 seems to light up.
|
|
|
Post by triggerfish on Aug 22, 2018 9:19:02 GMT -8
For the record I have listed all commands I have ran to come to this point. As far as I can recall, this is what I did:
sudo raspi-config sudo apt-get update sudo apt-get upgrade sudo apt-get install screen git clone https://github.com/switchdoclabs/SDL_Pi_GroveWeatherPi.git cd SDL_Pi_GroveWeatherPi cd SDL_Pi_TCA9545 sudo python testSDL_Pi_TCA9545.py sudo apt-get install build-essential python-pip python-dev python-smbus git git clone https://github.com/adafruit/Adafruit_Python_GPIO.git cd Adafruit_Python_GPIO sudo python setup.py install git clone https://github.com/adafruit/Adafruit_Python_PureIO.git cd Adafruit_Python_PureIO sudo python setup.py install sudo apt-get install python-pip sudo apt-get install libi2c-dev sudo pip install tentacle_pi sudo pip install --upgrade setuptools pip sudo pip install setuptools --upgrade sudo pip install apscheduler sudo apt-get install mysql-server python-mysqldb sudo mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 15 Server version: 10.1.23-MariaDB-9+deb9u1 Raspbian 9.0 Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> CREATE DATABASE GroveWeatherPi; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> use GroveWeatherPi; Database changed MariaDB [GroveWeatherPi]> CREATE USER 'monitor'@'localhost' IDENTIFIED BY 'W33rst@t10n'; Query OK, 0 rows affected (0.01 sec) MariaDB [GroveWeatherPi]> GRANT ALL PRIVILEGES ON temps.* TO 'monitor'@'localhost'; Query OK, 0 rows affected (0.00 sec) MariaDB [GroveWeatherPi]> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) MariaDB [GroveWeatherPi]> quit sudo mysql -u root -p GroveWeatherPi< GroveWeatherPi.sql sudo apt-get install libblas-dev liblapack-dev python-dev libatlas-base-dev gfortran python-setuptools python-matplotlib sudo easy_install scipy <<<<<===== FAILFAILFAIL REPLACED BY: sudo apt-get update && sudo apt-get upgrade sudo apt-get install python-scipy sudo apt-get install python-scipy --fix-missing sudo pip3 install scipy cd RaspberryPi-AS3935/ pip install RPi_AS3935
After this, initially I ran the system for a couple of hours I think, before the error.
|
|
|
Post by SDL on Aug 23, 2018 17:51:19 GMT -8
Peter,
Go in the SDL_Pi_TCA9545 directory and run the test software in there and post the values. That will show us all 4 i2c busses.
BP
|
|
|
Post by triggerfish on Aug 24, 2018 5:26:14 GMT -8
Hi,
I disconnected the rain and wind stuff for portability. This is the output now:
pi@IBADHOEV14:~/SDL_Pi_GroveWeatherPi/SDL_Pi_TCA9545 $ sudo python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73 Program Started at:2018-08-24 15:24:40
-----------BUS 0------------------- tca9545 control register B3-B0 = 0x1 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- 40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- 77
-----------------------------------
-----------BUS 1------------------- tca9545 control register B3-B0 = 0x2 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 2------------------- tca9545 control register B3-B0 = 0x4 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 3------------------- tca9545 control register B3-B0 = 0x8 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
|
|
|
Post by SDL on Aug 25, 2018 15:25:18 GMT -8
The Pi Zero has 1/2 the memory of the Raspberry Pi 3, so that is probably the issue.
We have to figure out how to get the -j1 switch to work on the Raspberry Pi Zero.
BP
|
|
|
Post by triggerfish on Aug 26, 2018 9:45:20 GMT -8
The Pi Zero has 1/2 the memory of the Raspberry Pi 3, so that is probably the issue. Never realised that I choose the Zero for its low power consumption, not needing a lot of USB and ethernet interfaces. Checking the Pi comparison charts, GroveWeatherPi will only run on the Pi3 then, since all other pi's have the same or less memory as the Zero. We have to figure out how to get the -j1 switch to work on the Raspberry Pi Zero. Please let me know if I can contribute anything in this. Beside this problem, my only other option is installing a Pi3?
|
|
|
Post by SDL on Aug 26, 2018 10:31:46 GMT -8
No, you just have to install and compile on a Pi3.
You can swap out the card and run on a Raspberry Pi Zero. That's what we did with Project Curacao2.
BP
|
|
|
Post by triggerfish on Aug 26, 2018 12:12:45 GMT -8
No, you just have to install and compile on a Pi3. You can swap out the card and run on a Raspberry Pi Zero. That's what we did with Project Curacao2. BP So if I install and compile everything on a Pi3, I can just swap the card to my Zero and it will run???
|
|