|
Post by intihuatana on Mar 6, 2020 5:47:16 GMT -8
hello values forum,
i have a Pi Zero and the Solarpackage with 3,7V LiPo.
Q1: is it correct that according to the instructions the wiring is done once into the I2C bus and once (disconnected white cable) into the D4 digital input? In the manual there were two possible channels D6...
Does "pat the dog" work automatically within the SkyWeather scripts or does "pat the dog" belong into rc.local?
Q2: how is the hysteresis set or can it be adjusted? My LiPo package has an additional BMS. (I'm afraid that both might get in the way and the BMS will cut the current directly at the battery before the SkyWeather BMS will shut down the Pi cleanly).
many greetings Joe
|
|
|
Post by SDL on Mar 7, 2020 14:28:25 GMT -8
Joe, Which Solar package? SolarMAX LiPO? Q1: Please give me some more information and specifics about where you are looking? Pat the dog is built into SkyWeather. Are you talking about patting the dog in SolarMAX LIPO? Q2: Hysterisis where? In which package? What do you mean by BMS? Sorry to answer your questions with more questions!  BP
|
|
|
Post by intihuatana on Mar 9, 2020 17:04:58 GMT -8
hello BP, Q1: i think i got it... "pat the dog" is a function in the SkyWeather scripts and if i disconnected white cable = enables the use of d4/d5 and d5/d6 - english is not my mother tongue and I had read it wrong in the pdf... everything works better in peace and quiet. The following connections (besides the power supply) are occupied: - Grove USB Control - PulseHi / RESETIN - Grove I2C - PiWeather BUS2 - Grove WatchDog done wake - D4/5
Is that right? Q2: no SolarMax - I use a Li-Ion battery 3.7V 8400mAh with onboard battery management system (BMS): 3.7V nominal voltage, 4.2V charge cut-off, 2.65V discharge cut-off. Which values are used by the suncontrol board? These are permanently programmed or stored in a configuration file? many greetings Joe
|
|
|
Post by SDL on Mar 10, 2020 16:11:35 GMT -8
Not following your connections on Q1.
Q2: SunControl has hysteresis build in for on at ~3.7V and off at ~3.2V. Fixed. No way to program.
BP
|
|
|
Post by intihuatana on Mar 11, 2020 8:09:27 GMT -8
hello BP, Q1 description of the three compounds: Suncontrol board :: Suncontrol board Grove USB Control - PulseHi / RESETIN Suncontrol board :: PiWeather board Grove I2C - PiWeather BUS2 SunControlBoard :: "Piggyback board" on RaspberryPiZero Grove WatchDog done wake - D4/5 all connections are required, this is the right wiring? Q2: great! so I have another protection in case the hysteresis of the board fails. 4.2V charge cut-off <- "on at ~3.7V and off at ~3.2V" -> 2.65V discharge cut-off (now I have also discovered the pdf: www.switchdoc.com/wp-content/uploads/2017/07/SunControl_070517-V1.2.pdf)many greetings Joe
|
|
|
Post by SDL on Mar 11, 2020 17:47:49 GMT -8
Still not following your Q1 descriptions. Please tell me exactly what wiring you are asking for.
BP
|
|
|
Post by intihuatana on Apr 3, 2020 11:41:40 GMT -8
Hello BP,
Q1 is the question of the correct wiring of the individual components. I guess it's OK.
Q3: So far I have started SkyWeather manually from the console. Now I want to start the station automatically while booting. Unfortunately the following happens now. The station boots up, but is slowed down exactly after 64 seconds and starts again. I know that it is the WatchDog. But it is fed too late. At what point can I feed it so that the station does not run into the timeout and thus into the reset?
Best regards Joe
|
|
|
Post by SDL on Apr 4, 2020 8:32:50 GMT -8
Joe,
If you are using the Dual Watchdog board, Turn the watchdog adjustment potentiometer to allow a longer timeout.
If you are using the SunControl WatchDog timer, then add this to the beginning of your local.rc file:
sudo python /home/pi/SDL_Pi_SkyWeather/doWatchdogPat.py &
before:
nohup sudo python SkyWeather.py &
BP
|
|
|
Post by intihuatana on Apr 4, 2020 11:27:42 GMT -8
Hello BP, thx, it works! I'll keep the weather station running overnight now. The first overnight test yesterday was aborted at 7:00 am. Are there LogFiles to read out why there was a problem? Furthermore I see under the query: ps aux | grep python following:
root 335 0.0 0.8 8240 3156 ? S 21:20 0:00 sudo python doWatchdogPat.py root 336 0.0 0.8 8240 3368 ? S 21:20 0:00 sudo python SkyWeather.py root 366 0.3 2.1 12636 8300 ? S 21:20 0:00 python doWatchdogPat.py root 367 15.6 14.4 207428 54592 ? S 21:20 0:28 python SkyWeather.py
Is this okay with the two instances? Best regards Joe
|
|
|
Post by SDL on Apr 6, 2020 15:09:39 GMT -8
Definitely not. Somehow you have started the files twice. Look backhand figure out what you have done!
The log files is "nohup.out" under the SkyWeather directory. You will have to use "sudo" to read it.
BP
|
|
|
Post by intihuatana on Apr 7, 2020 0:41:20 GMT -8
Hello BP, the following is written in the rc.local: pigpiod cd /home/pi/SDL_Pi_SkyWeather sudo python doWatchdogPat.py & nohup sudo python SkyWeather.py &
exit 0 if I kill a double instance, they both disappear! sudo kill <PID>
Best regards Joe
|
|
|
Post by SDL on Apr 7, 2020 7:09:09 GMT -8
Reboot your machine and check your ps xaf | grep python again
Post results please!
BP
|
|
|
Post by intihuatana on Apr 7, 2020 7:21:15 GMT -8
ps xaf | grep python 287 ? S 0:00 sudo python doWatchdogPat.py 325 ? S 0:00 \_ python doWatchdogPat.py 288 ? S 0:00 sudo python SkyWeather.py 321 ? Sl 0:24 \_ python SkyWeather.py 709 pts/0 S+ 0:00 \_ grep --color=auto python
|
|
|
Post by SDL on Apr 7, 2020 15:46:46 GMT -8
Boy, somewhere you are starting two copies of the code. Post the contents of rc.local
BP
|
|
|
Post by intihuatana on Apr 8, 2020 0:58:20 GMT -8
Hello BP, the following is written in the rc.local: pigpiod cd /home/pi/SDL_Pi_SkyWeather sudo python doWatchdogPat.py & nohup sudo python SkyWeather.py &
exit 0 if I kill a double instance, they both disappear! sudo kill <PID>
Best regards Joe
This is rc.local - where can i start also scripts?
|
|