milo
New Member
Posts: 18
|
Post by milo on Aug 6, 2017 12:19:40 GMT -8
Test the voltage on the JP4-BATTERY pin on the SunAirPlus board. It needs to be above ~3.9V before the USB Board will turn on. When you flip the switch, it turns on the USB board and then will not turn off until about ~3.4V or so. Hysteresis. Make sure you have connected the LIPOBATIN pin on the USB Power Control to the JP4-BATTERY pin on SunAirPlus. BP Do I understand correctly that the 3.9V threshold is not in use if I flip the switch?
|
|
milo
New Member
Posts: 18
|
Post by milo on Jul 26, 2017 20:37:56 GMT -8
How can I connect more than one battery pack to the system?
|
|
milo
New Member
Posts: 18
|
Post by milo on Jul 18, 2017 7:31:07 GMT -8
Sorry can't test it right now. I am suffering an other issue. After powering down due to lack of energy the system is not coming up automatically only if I switch it off an on again with the switch on the solar power board. Any idea?
|
|
milo
New Member
Posts: 18
|
Post by milo on Jul 16, 2017 4:06:21 GMT -8
Hello, now I get this always after the insert line
query=INSERT INTO PowerSystem(TimeStamp, batteryVoltage, batteryCurrent, solarVoltage, solarCurrent, loadVoltage, loadCurrent, batteryPower, solarPower, loadPower, batteryCharge) VALUES (UTC_TIMESTAMP (), 3.978, 177.200, 7.531, 125.600, 4.968, 216.000, 0.705, 0.946, 1.073, 83.826)
query=INSERT INTO Sunlight(TimeStamp, Visible, IR, UV, UVIndex) VALUES(UTC_TIMESTAMP(), 26752, 26754, 34974, 349.740)
rain in past 60 minute= 0.0
-----------------
Weather Sampling
-----------------
-----------------
[Errno 5] Input/output error
File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1058, in sampleSunAirPlus
busvoltage1 = sunAirPlus.getBusVoltage_V(LIPO_BATTERY_CHANNEL)
File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 149, in getBusVoltage_V
value = self._getBusVoltage_raw(channel)
File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 131, in _getBusVoltage_raw
value = self._read_register_little_endian(INA3221_REG_BUSVOLTAGE_1+(channel -1) *2)
File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 108, in _read_register_little_endian
result = self._bus.read_word_data(self._addr,register) & 0xFFFF
Temperature = 30.30 C
Humidity = 34.50 %
|
|
milo
New Member
Posts: 18
|
Post by milo on Jul 12, 2017 21:52:09 GMT -8
Honestly speaking - I don't know for 100% what happened.....I had some strange behaviour with various installation (or better spoken) flashing on the SD card....I flashed a SD card had problems with some "apt-get" procedures (libraries weren't found etc....)....removed them flashed again and everything was fine. My advice is 1 reflash a new system and do a new fresh install and then care about problems....
Sorry for no real advice or anything else but I do my projects between work/family stuff and I am not an excellent SW programming boy I am more involved/scaled in HW.
|
|
milo
New Member
Posts: 18
|
Post by milo on Jul 11, 2017 21:18:44 GMT -8
Thanks bad SD card installation
|
|
milo
New Member
Posts: 18
|
Post by milo on Jul 7, 2017 7:51:07 GMT -8
sorry for bothering you gain but new SW and I can't start
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73
Program Started at:2017-07-07 17:45:56
-----------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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 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: 03 -- -- -- -- -- -- -- -- -- -- -- --
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: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
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 -- -- -- --
-----------------------------------
-----------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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 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: 03 -- -- -- -- -- -- -- -- -- -- -- --
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: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
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 -- -- -- --
-----------------------------------
^CTraceback (most recent call last):
File "testSDL_Pi_TCA9545.py", line 122, in <module>
time.sleep(5.0)
KeyboardInterrupt
pi@weatherstation:~/SDL_Pi_GroveWeatherPi/SDL_Pi_TCA9545 $ cd ..
pi@weatherstation:~/SDL_Pi_GroveWeatherPi $ sudo python GroveWeatherPi.py
WXLink Reset
Traceback (most recent call last):
File "GroveWeatherPi.py", line 362, in <module>
bmp280 = BMP280.BMP280()
File "./Adafruit_Python_BMP/Adafruit_BMP/BMP280.py", line 46, in __init__
self._device = i2c.get_i2c_device(address, **kwargs)
File "./Adafruit_Python_GPIO/Adafruit_GPIO/I2C.py", line 65, in get_i2c_device
busnum = get_default_bus()
File "./Adafruit_Python_GPIO/Adafruit_GPIO/I2C.py", line 57, in get_default_bus
raise RuntimeError('Could not determine default I2C bus for platform.')
RuntimeError: Could not determine default I2C bus for platform.
|
|
milo
New Member
Posts: 18
|
Post by milo on Jun 30, 2017 0:33:25 GMT -8
Any news about the update?
|
|
milo
New Member
Posts: 18
|
Post by milo on Jun 24, 2017 7:55:00 GMT -8
Where do I need to plugin the sunlight sensor?
|
|
milo
New Member
Posts: 18
|
Post by milo on Jun 14, 2017 1:35:42 GMT -8
Any news about the update?
|
|
milo
New Member
Posts: 18
|
Post by milo on May 28, 2017 12:26:00 GMT -8
What else is than fixed?
|
|
milo
New Member
Posts: 18
|
Post by milo on May 27, 2017 13:56:38 GMT -8
When will the next revision released?
What is the size if the pin headers? 2.54mm?
|
|
milo
New Member
Posts: 18
|
Post by milo on May 25, 2017 21:00:56 GMT -8
I See the readings from sun air plus and everything is fine until the MySQL query than the error occurs always after that everything is fine again
|
|
milo
New Member
Posts: 18
|
Post by milo on May 24, 2017 8:55:23 GMT -8
Beginning
Bad SI1145 Installation Error accessing 0x48: Check your I2C address Error accessing 0x48: Check your I2C address Type Error WXLink Reset GroveWeatherPi Solar Powered Weather Station Version 2.$ Program Started at:2017-05-24 18:44:15 ---------------------- I2C Mux - TCA9545: Present BMP280: Not Present DS3231: Not Present HDC1080: Not Present HTU21DF: Not Present AM2315: Not Present ADS1015: Not Present ADS1115: Not Present AS3935: Not Present OLED: Not Present SunAirPlus: Present Sunlight Sensor: Not Present WXLink: Not Present UseMySQL: Present Check WLAN: Present WeatherUnderground: Present
After. While i get
SunAirPlus Sampling ----------------- trying database before query trying database global name 'bmp180Temperature' is not defined File "/usr/local/lib/python2.7/dist-packages/apschedu$ retval = job.func(*job.args, **job.kwargs) File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.p$ query = 'INSERT INTO WeatherData(TimeStamp,as3935Li$ before query query=INSERT INTO PowerSystem(TimeStamp, batteryVoltage$ local variable 'lastRainReading' referenced before assi$ File "/usr/local/lib/python2.7/dist-packages/apschedu$ retval = job.func(*job.args, **job.kwargs) File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.p$ addRainToArray(totalRain - lastRainReading) ----------------- Weather Sampling ----------------- ----------------- --Sending Data to WeatherUnderground-- --WeatherUnderground Data Send Failed [Errno 121] Remote I/O error File "/usr/local/lib/python2.7/dist-packages/apschedu$ retval = job.func(*job.args, **job.kwargs) File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.p$ busvoltage1 = sunAirPlus.getBusVoltage_V(LIPO_BATTE$ File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 149, $ value = self._getBusVoltage_raw(channel) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 131, $ value = self._read_register_little_endian(INA3221_R$ File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 108, $ result = self._bus.read_word_data(self._addr,regist$ ----------------- Local WeatherRack Weather Sensors Sampling ----------------- Rain Total= 0.00 in
Timing issue???
And
----------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: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
|
|
milo
New Member
Posts: 18
|
Post by milo on May 24, 2017 6:33:24 GMT -8
Next try
-----------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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- -- ----------------------------------- -----------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: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- -- ----------------------------------- ^CTraceback (most recent call last): File "./testSDL_Pi_TCA9545.py", line 105, in <module> time.sleep(5.0) KeyboardInterrupt
|
|