reef-pi :: An opensource reef tank controller based on Raspberry Pi.

On XMAS day Santa brings me the stuff to start my build, but the thing that was a sticking point was my led lights which use common cathode to tie the channels together, which meant using p channel mosfets as high side switches and building custom circuitry to interface them...until now...

SCORE...a prebuild breakout board that uses the pca9685 signal(any 3.3 to 10v pwm) to run a p channel mosfet, optically isolated from the PCA and usable to 1khz.

https://www.dfrobot.com/product-156...XU8Rg8-TsePc0pT8DzzM6AxN8NvCdUOhoCGv8QAvD_BwE
 
Mrs. Santa was defensive about getting the mail today and wouldnt show me. Im thinking the ML reefkeepers reef pi hat arrived...thanks Mike L!!!

I will start my build thread once I see what all I get and get started, I gave Mrs Santa a list with options if she couldnt find something.

I should cross post my build on Planted tank.net forums as well, I am thinking we could get even more people interested in reef pi. I know I'm a freshwater guy but reef tanks and good planted tanks all could use a great controller and when the pH sensor works, it would be a great way to monitor and control CO2 for planted tanks.
 
@Ranjib

So now that the main 3 modules are done, I started setting up reef-pi to my likings.

With the lighting profile. I thought there was one hour increments instead of 2 hours? Has it always been 2 hour increments? Is there way to change that? Not complaining just wondering.
 
@Ranjib
Haven't been keeping up, so I haven't read all the pages for this thread. Not sure if you've seen this before or not but in case you haven't I posted here.

Peristaltic Pump DIY


Adding this in case you want to pursue:

Quad Doser With Improved Design
https://www.thingiverse.com/thing:1134817

He's dosing to his tank. Nice.
 
Last edited:
@Ranjib

So now that the main 3 modules are done, I started setting up reef-pi to my likings.

With the lighting profile. I thought there was one hour increments instead of 2 hours? Has it always been 2 hour increments? Is there way to change that? Not complaining just wondering.
It has always been 2 hrs interval. I intend to make it customizable in 3.0
 
It has always been 2 hrs interval. I intend to make it customizable in 3.0

Ok I must have been thinking about something else. Not a big deal though. You sir and the others who have programmed reef-pi have done an amazing job! Thank you for all your hard work!
 
@Ranjib I'm still working on diagnosing the high CPU and RAM on the latest install.
upload_2018-12-23_10-38-8.png

The big drop in the middle of the historic was from a restart. Then it looks like it was happy for a few days. I cant think of anything right now that caused it to start increasing a few days ago.
Looking at the journal, I think it was still unhappy setting 0 for all of the configured GPIO pins (all 16 from the PCA9685).
Would it be possible to have a disable button on the lighting tab, as there is for the timers, temp, etc...?

I removed most of the PWM pins and went to reload and I get this message in the journal.
I am holding off rebooting to see if you wanted me to test anything.

Code:
Dec 23 10:36:15 raspberrypi reef-pi[2888]: 2018/12/23 10:36:15 ERROR: Failed to reload reef-pi. Output:. Error: fork/exec /bin/systemctl: cannot allocate memory
Dec 23 10:36:15 raspberrypi reef-pi[2888]: 2018/12/23 10:36:15 ERROR: GET /api/admin/reload Failed to reload reef-pi. Output:. Error: fork/exec /bin/systemctl: cannot allocate memory
 
@Ranjib I'm still working on diagnosing the high CPU and RAM on the latest install.
upload_2018-12-23_10-38-8.png

The big drop in the middle of the historic was from a restart. Then it looks like it was happy for a few days. I cant think of anything right now that caused it to start increasing a few days ago.
Looking at the journal, I think it was still unhappy setting 0 for all of the configured GPIO pins (all 16 from the PCA9685).
Would it be possible to have a disable button on the lighting tab, as there is for the timers, temp, etc...?

I removed most of the PWM pins and went to reload and I get this message in the journal.
I am holding off rebooting to see if you wanted me to test anything.

Code:
Dec 23 10:36:15 raspberrypi reef-pi[2888]: 2018/12/23 10:36:15 ERROR: Failed to reload reef-pi. Output:. Error: fork/exec /bin/systemctl: cannot allocate memory
Dec 23 10:36:15 raspberrypi reef-pi[2888]: 2018/12/23 10:36:15 ERROR: GET /api/admin/reload Failed to reload reef-pi. Output:. Error: fork/exec /bin/systemctl: cannot allocate memory
thats does not look good. Whats the output of
Code:
ps aux
 
reef-pi has been bouncing up and down in CPU usage in top as well
Code:
pi@raspberrypi:~ $ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  1.2  27040  5628 ?        Ss   Dec18   0:17 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Dec18   0:00 [kthreadd]
root         4  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:0H]
root         6  0.0  0.0      0     0 ?        I<   Dec18   0:00 [mm_percpu_wq]
root         7  0.0  0.0      0     0 ?        S    Dec18   2:17 [ksoftirqd/0]
root         8  0.0  0.0      0     0 ?        S    Dec18   0:00 [kdevtmpfs]
root         9  0.0  0.0      0     0 ?        I<   Dec18   0:00 [netns]
root        11  0.0  0.0      0     0 ?        S    Dec18   0:00 [khungtaskd]
root        12  0.0  0.0      0     0 ?        S    Dec18   0:00 [oom_reaper]
root        13  0.0  0.0      0     0 ?        I<   Dec18   0:00 [writeback]
root        14  0.0  0.0      0     0 ?        S    Dec18   0:00 [kcompactd0]
root        15  0.0  0.0      0     0 ?        I<   Dec18   0:00 [crypto]
root        16  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kblockd]
root        17  0.0  0.0      0     0 ?        I<   Dec18   0:00 [watchdogd]
root        18  0.0  0.0      0     0 ?        I<   Dec18   0:00 [rpciod]
root        19  0.0  0.0      0     0 ?        I<   Dec18   0:00 [xprtiod]
root        22  0.0  0.0      0     0 ?        S    Dec18   0:00 [kswapd0]
root        23  0.0  0.0      0     0 ?        I<   Dec18   0:00 [nfsiod]
root        33  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kthrotld]
root        34  0.0  0.0      0     0 ?        I<   Dec18   0:00 [iscsi_eh]
root        35  0.0  0.0      0     0 ?        I<   Dec18   0:00 [dwc_otg]
root        36  0.0  0.0      0     0 ?        I<   Dec18   0:00 [DWC Notificatio]
root        37  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-slot/0]
root        38  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-recy/0]
root        39  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-sync/0]
root        40  0.0  0.0      0     0 ?        S    Dec18   0:00 [vchiq-keep/0]
root        41  0.0  0.0      0     0 ?        S<   Dec18   0:00 [SMIO]
root        42  0.0  0.0      0     0 ?        S    Dec18   6:02 [irq/86-mmc1]
root        45  0.0  0.0      0     0 ?        S    Dec18   0:32 [mmcqd/0]
root        46  0.0  0.0      0     0 ?        S    Dec18   0:08 [jbd2/mmcblk0p2-]
root        47  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ext4-rsv-conver]
root        48  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ipv6_addrconf]
root        84  0.3  1.5  28776  6860 ?        Ss   Dec18  24:22 /lib/systemd/systemd-journald
root       101  0.0  0.5  14324  2564 ?        Ss   Dec18   0:02 /lib/systemd/systemd-udevd
root       128  0.3  0.0      0     0 ?        S    Dec18  24:36 [w1_bus_master1]
root       137  0.0  0.0      0     0 ?        S    Dec18   0:00 [spi0]
root       153  0.0  0.0      0     0 ?        I<   Dec18   0:00 [cfg80211]
root       160  0.0  0.0      0     0 ?        I<   Dec18   0:00 [brcmf_wq/mmc1:0]
root       161  0.0  0.0      0     0 ?        S    Dec18   1:32 [brcmf_wdog/mmc1]
systemd+   186  0.0  0.8  17260  3700 ?        Ssl  Dec18   0:02 /lib/systemd/systemd-timesyncd
root       209  0.0  0.5   5288  2280 ?        Ss   Dec18   0:02 /usr/sbin/cron -f
root       210  0.0  0.6  22848  2932 ?        Ssl  Dec18   4:42 /usr/sbin/rsyslogd -n
nobody     216  0.0  0.4   5284  2216 ?        Ss   Dec18   0:08 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket
avahi      233  0.0  0.6   6500  3012 ?        Ss   Dec18   0:27 avahi-daemon: running [raspberrypi.local]
message+   235  0.0  0.7   6496  3160 ?        Ss   Dec18   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd
root       244  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:1H]
avahi      252  0.0  0.3   6384  1376 ?        S    Dec18   0:00 avahi-daemon: chroot helper
root       255  0.0  0.9   7400  4016 ?        Ss   Dec18   0:02 /lib/systemd/systemd-logind
root       387  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:0]
root       388  0.0  0.1   2080   552 ?        S    Dec18   0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:77:da:a4
root       390  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:2]
root       393  0.0  0.8   7064  3620 ?        Ss   Dec18   0:00 /usr/lib/bluetooth/bluetoothd
root       407  0.0  0.8  10124  3588 ?        Ss   Dec18   0:12 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,w
root       468  0.0  0.3   2868  1416 ?        Ss   Dec18   0:02 /sbin/dhcpcd -q -w
root       483  0.0  1.0  10188  4836 ?        Ss   Dec18   0:00 /usr/sbin/sshd -D
root       484  0.0  0.4   3956  1808 ttyS0    Ss+  Dec18   0:00 /sbin/agetty --keep-baud 115200,38400,9600 ttyS0 vt220
root       485  0.0  0.3   4180  1488 tty1     Ss+  Dec18   0:00 /sbin/agetty --noclear tty1 linux
root      2888  5.8 57.4 802356 254928 ?       Ssl  Dec20 298:16 /usr/bin/reef-pi daemon -config /etc/reef-pi/config.yml
root      6841  0.0  0.0      0     0 ?        I    02:46   0:02 [kworker/u2:1]
root      6876  0.0  0.0      0     0 ?        I    04:00   0:00 [kworker/0:0]
root      6943  0.0  0.0      0     0 ?        I    05:25   0:00 [kworker/u2:0]
root      7176  0.0  0.0      0     0 ?        I    06:43   0:00 [kworker/0:2]
root      7177  0.0  0.0      0     0 ?        I    06:50   0:00 [kworker/0:1]
root      7178  0.6  0.0      0     0 ?        I    06:51   0:00 [kworker/u2:2]
root      7179  1.8  1.2  11508  5656 ?        Ss   06:52   0:00 sshd: pi [priv]
pi        7184  1.1  1.3   9652  5796 ?        Ss   06:53   0:00 /lib/systemd/systemd --user
pi        7187  0.0  0.5  28704  2620 ?        S    06:53   0:00 (sd-pam)
pi        7194  0.0  0.9  11508  4140 ?        S    06:53   0:00 sshd: pi@pts/0
pi        7197  3.1  0.8   5824  3792 pts/0    Ss+  06:53   0:00 -bash
root      7212  4.0  1.2  11508  5688 ?        Ss   06:53   0:00 sshd: pi [priv]
pi        7222  1.7  0.9  11508  4124 ?        S    06:53   0:00 sshd: pi@pts/1
pi        7225 14.7  0.8   5824  3792 pts/1    Ss   06:53   0:00 -bash
pi        7240  0.0  0.6   7728  2960 pts/1    R+   06:53   0:00 ps aux

CPU spikes are better and RAM usage has stopped growing, since I deleted all of the other PCA9685 pins
upload_2018-12-24_6-59-24.png
 
reef-pi has been bouncing up and down in CPU usage in top as well
Code:
pi@raspberrypi:~ $ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  1.2  27040  5628 ?        Ss   Dec18   0:17 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Dec18   0:00 [kthreadd]
root         4  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:0H]
root         6  0.0  0.0      0     0 ?        I<   Dec18   0:00 [mm_percpu_wq]
root         7  0.0  0.0      0     0 ?        S    Dec18   2:17 [ksoftirqd/0]
root         8  0.0  0.0      0     0 ?        S    Dec18   0:00 [kdevtmpfs]
root         9  0.0  0.0      0     0 ?        I<   Dec18   0:00 [netns]
root        11  0.0  0.0      0     0 ?        S    Dec18   0:00 [khungtaskd]
root        12  0.0  0.0      0     0 ?        S    Dec18   0:00 [oom_reaper]
root        13  0.0  0.0      0     0 ?        I<   Dec18   0:00 [writeback]
root        14  0.0  0.0      0     0 ?        S    Dec18   0:00 [kcompactd0]
root        15  0.0  0.0      0     0 ?        I<   Dec18   0:00 [crypto]
root        16  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kblockd]
root        17  0.0  0.0      0     0 ?        I<   Dec18   0:00 [watchdogd]
root        18  0.0  0.0      0     0 ?        I<   Dec18   0:00 [rpciod]
root        19  0.0  0.0      0     0 ?        I<   Dec18   0:00 [xprtiod]
root        22  0.0  0.0      0     0 ?        S    Dec18   0:00 [kswapd0]
root        23  0.0  0.0      0     0 ?        I<   Dec18   0:00 [nfsiod]
root        33  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kthrotld]
root        34  0.0  0.0      0     0 ?        I<   Dec18   0:00 [iscsi_eh]
root        35  0.0  0.0      0     0 ?        I<   Dec18   0:00 [dwc_otg]
root        36  0.0  0.0      0     0 ?        I<   Dec18   0:00 [DWC Notificatio]
root        37  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-slot/0]
root        38  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-recy/0]
root        39  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-sync/0]
root        40  0.0  0.0      0     0 ?        S    Dec18   0:00 [vchiq-keep/0]
root        41  0.0  0.0      0     0 ?        S<   Dec18   0:00 [SMIO]
root        42  0.0  0.0      0     0 ?        S    Dec18   6:02 [irq/86-mmc1]
root        45  0.0  0.0      0     0 ?        S    Dec18   0:32 [mmcqd/0]
root        46  0.0  0.0      0     0 ?        S    Dec18   0:08 [jbd2/mmcblk0p2-]
root        47  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ext4-rsv-conver]
root        48  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ipv6_addrconf]
root        84  0.3  1.5  28776  6860 ?        Ss   Dec18  24:22 /lib/systemd/systemd-journald
root       101  0.0  0.5  14324  2564 ?        Ss   Dec18   0:02 /lib/systemd/systemd-udevd
root       128  0.3  0.0      0     0 ?        S    Dec18  24:36 [w1_bus_master1]
root       137  0.0  0.0      0     0 ?        S    Dec18   0:00 [spi0]
root       153  0.0  0.0      0     0 ?        I<   Dec18   0:00 [cfg80211]
root       160  0.0  0.0      0     0 ?        I<   Dec18   0:00 [brcmf_wq/mmc1:0]
root       161  0.0  0.0      0     0 ?        S    Dec18   1:32 [brcmf_wdog/mmc1]
systemd+   186  0.0  0.8  17260  3700 ?        Ssl  Dec18   0:02 /lib/systemd/systemd-timesyncd
root       209  0.0  0.5   5288  2280 ?        Ss   Dec18   0:02 /usr/sbin/cron -f
root       210  0.0  0.6  22848  2932 ?        Ssl  Dec18   4:42 /usr/sbin/rsyslogd -n
nobody     216  0.0  0.4   5284  2216 ?        Ss   Dec18   0:08 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket
avahi      233  0.0  0.6   6500  3012 ?        Ss   Dec18   0:27 avahi-daemon: running [raspberrypi.local]
message+   235  0.0  0.7   6496  3160 ?        Ss   Dec18   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd
root       244  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:1H]
avahi      252  0.0  0.3   6384  1376 ?        S    Dec18   0:00 avahi-daemon: chroot helper
root       255  0.0  0.9   7400  4016 ?        Ss   Dec18   0:02 /lib/systemd/systemd-logind
root       387  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:0]
root       388  0.0  0.1   2080   552 ?        S    Dec18   0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:77:da:a4
root       390  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:2]
root       393  0.0  0.8   7064  3620 ?        Ss   Dec18   0:00 /usr/lib/bluetooth/bluetoothd
root       407  0.0  0.8  10124  3588 ?        Ss   Dec18   0:12 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,w
root       468  0.0  0.3   2868  1416 ?        Ss   Dec18   0:02 /sbin/dhcpcd -q -w
root       483  0.0  1.0  10188  4836 ?        Ss   Dec18   0:00 /usr/sbin/sshd -D
root       484  0.0  0.4   3956  1808 ttyS0    Ss+  Dec18   0:00 /sbin/agetty --keep-baud 115200,38400,9600 ttyS0 vt220
root       485  0.0  0.3   4180  1488 tty1     Ss+  Dec18   0:00 /sbin/agetty --noclear tty1 linux
root      2888  5.8 57.4 802356 254928 ?       Ssl  Dec20 298:16 /usr/bin/reef-pi daemon -config /etc/reef-pi/config.yml
root      6841  0.0  0.0      0     0 ?        I    02:46   0:02 [kworker/u2:1]
root      6876  0.0  0.0      0     0 ?        I    04:00   0:00 [kworker/0:0]
root      6943  0.0  0.0      0     0 ?        I    05:25   0:00 [kworker/u2:0]
root      7176  0.0  0.0      0     0 ?        I    06:43   0:00 [kworker/0:2]
root      7177  0.0  0.0      0     0 ?        I    06:50   0:00 [kworker/0:1]
root      7178  0.6  0.0      0     0 ?        I    06:51   0:00 [kworker/u2:2]
root      7179  1.8  1.2  11508  5656 ?        Ss   06:52   0:00 sshd: pi [priv]
pi        7184  1.1  1.3   9652  5796 ?        Ss   06:53   0:00 /lib/systemd/systemd --user
pi        7187  0.0  0.5  28704  2620 ?        S    06:53   0:00 (sd-pam)
pi        7194  0.0  0.9  11508  4140 ?        S    06:53   0:00 sshd: pi@pts/0
pi        7197  3.1  0.8   5824  3792 pts/0    Ss+  06:53   0:00 -bash
root      7212  4.0  1.2  11508  5688 ?        Ss   06:53   0:00 sshd: pi [priv]
pi        7222  1.7  0.9  11508  4124 ?        S    06:53   0:00 sshd: pi@pts/1
pi        7225 14.7  0.8   5824  3792 pts/1    Ss   06:53   0:00 -bash
pi        7240  0.0  0.6   7728  2960 pts/1    R+   06:53   0:00 ps aux

CPU spikes are better and RAM usage has stopped growing, since I deleted all of the other PCA9685 pins
upload_2018-12-24_6-59-24.png

I suspect leaking Go routines here. Need to look at the code some.
 
The one in the above image is the very first version of the controller. Its using a wooden handmade housing (Im really bad at wood works), it powers one of my pico (fluval spec III). Here are some details:
- Main controller board: raspberry pi 2
- 8 channel sain smart relay, two of them are connected to two perstaltic pumps (mounted at right side of the housing), they are used of dosing/ATO
- There are 6 110V AC outlet mounted at the bottom. Return, powerhead (coralia pico evolution), stock LED, heater all are connected to the AC sockets.
- In the front, it has a 7" LCD screen (from Adafruit), can be switch on/off using the controller UI.

Below is the image of internals of the housing, Note: I have gutted a 6 port extension to repurpose its surge protection electronics. It also had two 5V 1 A USB outlets, which i use to power the raspberry Pi as well as the display. The ancillary breadboard on front panel hosts a MCP3008 and an L293D IC for sensor and high voltage PWM controls
20170101_161629.jpg
do
20170101_161633.jpg
Do you see any reason I can't just use my rpie2 and the 8 channel referenced to run my pumps, heater, and lighting?
 
reef-pi has been bouncing up and down in CPU usage in top as well
Code:
pi@raspberrypi:~ $ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  1.2  27040  5628 ?        Ss   Dec18   0:17 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Dec18   0:00 [kthreadd]
root         4  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:0H]
root         6  0.0  0.0      0     0 ?        I<   Dec18   0:00 [mm_percpu_wq]
root         7  0.0  0.0      0     0 ?        S    Dec18   2:17 [ksoftirqd/0]
root         8  0.0  0.0      0     0 ?        S    Dec18   0:00 [kdevtmpfs]
root         9  0.0  0.0      0     0 ?        I<   Dec18   0:00 [netns]
root        11  0.0  0.0      0     0 ?        S    Dec18   0:00 [khungtaskd]
root        12  0.0  0.0      0     0 ?        S    Dec18   0:00 [oom_reaper]
root        13  0.0  0.0      0     0 ?        I<   Dec18   0:00 [writeback]
root        14  0.0  0.0      0     0 ?        S    Dec18   0:00 [kcompactd0]
root        15  0.0  0.0      0     0 ?        I<   Dec18   0:00 [crypto]
root        16  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kblockd]
root        17  0.0  0.0      0     0 ?        I<   Dec18   0:00 [watchdogd]
root        18  0.0  0.0      0     0 ?        I<   Dec18   0:00 [rpciod]
root        19  0.0  0.0      0     0 ?        I<   Dec18   0:00 [xprtiod]
root        22  0.0  0.0      0     0 ?        S    Dec18   0:00 [kswapd0]
root        23  0.0  0.0      0     0 ?        I<   Dec18   0:00 [nfsiod]
root        33  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kthrotld]
root        34  0.0  0.0      0     0 ?        I<   Dec18   0:00 [iscsi_eh]
root        35  0.0  0.0      0     0 ?        I<   Dec18   0:00 [dwc_otg]
root        36  0.0  0.0      0     0 ?        I<   Dec18   0:00 [DWC Notificatio]
root        37  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-slot/0]
root        38  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-recy/0]
root        39  0.0  0.0      0     0 ?        S<   Dec18   0:00 [vchiq-sync/0]
root        40  0.0  0.0      0     0 ?        S    Dec18   0:00 [vchiq-keep/0]
root        41  0.0  0.0      0     0 ?        S<   Dec18   0:00 [SMIO]
root        42  0.0  0.0      0     0 ?        S    Dec18   6:02 [irq/86-mmc1]
root        45  0.0  0.0      0     0 ?        S    Dec18   0:32 [mmcqd/0]
root        46  0.0  0.0      0     0 ?        S    Dec18   0:08 [jbd2/mmcblk0p2-]
root        47  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ext4-rsv-conver]
root        48  0.0  0.0      0     0 ?        I<   Dec18   0:00 [ipv6_addrconf]
root        84  0.3  1.5  28776  6860 ?        Ss   Dec18  24:22 /lib/systemd/systemd-journald
root       101  0.0  0.5  14324  2564 ?        Ss   Dec18   0:02 /lib/systemd/systemd-udevd
root       128  0.3  0.0      0     0 ?        S    Dec18  24:36 [w1_bus_master1]
root       137  0.0  0.0      0     0 ?        S    Dec18   0:00 [spi0]
root       153  0.0  0.0      0     0 ?        I<   Dec18   0:00 [cfg80211]
root       160  0.0  0.0      0     0 ?        I<   Dec18   0:00 [brcmf_wq/mmc1:0]
root       161  0.0  0.0      0     0 ?        S    Dec18   1:32 [brcmf_wdog/mmc1]
systemd+   186  0.0  0.8  17260  3700 ?        Ssl  Dec18   0:02 /lib/systemd/systemd-timesyncd
root       209  0.0  0.5   5288  2280 ?        Ss   Dec18   0:02 /usr/sbin/cron -f
root       210  0.0  0.6  22848  2932 ?        Ssl  Dec18   4:42 /usr/sbin/rsyslogd -n
nobody     216  0.0  0.4   5284  2216 ?        Ss   Dec18   0:08 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket
avahi      233  0.0  0.6   6500  3012 ?        Ss   Dec18   0:27 avahi-daemon: running [raspberrypi.local]
message+   235  0.0  0.7   6496  3160 ?        Ss   Dec18   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd
root       244  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/0:1H]
avahi      252  0.0  0.3   6384  1376 ?        S    Dec18   0:00 avahi-daemon: chroot helper
root       255  0.0  0.9   7400  4016 ?        Ss   Dec18   0:02 /lib/systemd/systemd-logind
root       387  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:0]
root       388  0.0  0.1   2080   552 ?        S    Dec18   0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:77:da:a4
root       390  0.0  0.0      0     0 ?        I<   Dec18   0:00 [kworker/u3:2]
root       393  0.0  0.8   7064  3620 ?        Ss   Dec18   0:00 /usr/lib/bluetooth/bluetoothd
root       407  0.0  0.8  10124  3588 ?        Ss   Dec18   0:12 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,w
root       468  0.0  0.3   2868  1416 ?        Ss   Dec18   0:02 /sbin/dhcpcd -q -w
root       483  0.0  1.0  10188  4836 ?        Ss   Dec18   0:00 /usr/sbin/sshd -D
root       484  0.0  0.4   3956  1808 ttyS0    Ss+  Dec18   0:00 /sbin/agetty --keep-baud 115200,38400,9600 ttyS0 vt220
root       485  0.0  0.3   4180  1488 tty1     Ss+  Dec18   0:00 /sbin/agetty --noclear tty1 linux
root      2888  5.8 57.4 802356 254928 ?       Ssl  Dec20 298:16 /usr/bin/reef-pi daemon -config /etc/reef-pi/config.yml
root      6841  0.0  0.0      0     0 ?        I    02:46   0:02 [kworker/u2:1]
root      6876  0.0  0.0      0     0 ?        I    04:00   0:00 [kworker/0:0]
root      6943  0.0  0.0      0     0 ?        I    05:25   0:00 [kworker/u2:0]
root      7176  0.0  0.0      0     0 ?        I    06:43   0:00 [kworker/0:2]
root      7177  0.0  0.0      0     0 ?        I    06:50   0:00 [kworker/0:1]
root      7178  0.6  0.0      0     0 ?        I    06:51   0:00 [kworker/u2:2]
root      7179  1.8  1.2  11508  5656 ?        Ss   06:52   0:00 sshd: pi [priv]
pi        7184  1.1  1.3   9652  5796 ?        Ss   06:53   0:00 /lib/systemd/systemd --user
pi        7187  0.0  0.5  28704  2620 ?        S    06:53   0:00 (sd-pam)
pi        7194  0.0  0.9  11508  4140 ?        S    06:53   0:00 sshd: pi@pts/0
pi        7197  3.1  0.8   5824  3792 pts/0    Ss+  06:53   0:00 -bash
root      7212  4.0  1.2  11508  5688 ?        Ss   06:53   0:00 sshd: pi [priv]
pi        7222  1.7  0.9  11508  4124 ?        S    06:53   0:00 sshd: pi@pts/1
pi        7225 14.7  0.8   5824  3792 pts/1    Ss   06:53   0:00 -bash
pi        7240  0.0  0.6   7728  2960 pts/1    R+   06:53   0:00 ps aux

CPU spikes are better and RAM usage has stopped growing, since I deleted all of the other PCA9685 pins
upload_2018-12-24_6-59-24.png
This is with pi 3 or pi zero ? I am assuming you are running headless. I'll try to reproduce this, soon i get some time to work on the code side. It will be very helpful to know your reef-pi setup, if you have a build thread, i'll dig it up, else just share some summary information here. It looks like a memory leak , but I am not sure.
 
Do you see any reason I can't just use my rpie2 and the 8 channel referenced to run my pumps, heater, and lighting?
Yeah, this should be fine.
Welcome to reef2reef :-)
 
This is with pi 3 or pi zero ? I am assuming you are running headless. I'll try to reproduce this, soon i get some time to work on the code side. It will be very helpful to know your reef-pi setup, if you have a build thread, i'll dig it up, else just share some summary information here. It looks like a memory leak , but I am not sure.
Pi zero running headless, using an Adafruit Motor Hat and running the custom version 2.0-2-gae06032 to allow addressable PCA9685.
I dont have a build thread, though I probably should have started one along the way.
Thanks for the help, let me know if you need any specs or any testing on my end.
 

TOP 10 Trending Threads

Back
Top
Home
Post thread…
Market
What's new