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

Mandelstam

Well-Known Member
View Badges
Joined
Oct 29, 2017
Messages
630
Reaction score
1,009
Location
Malmö, Sweden
One is really a diy freak when you start to pick up random stuff off the street and think "Hmmm.. this connector looks interesting, wonder if I can use it in a reef-pi build..?"

I found a badly crushed run over controller for an ebike in the street the other day. The connectors looked interesting and I thought maybe I could save something from it so I took it home and did an autopsy. I saved a heatsink for 7 mosfets but otherwise no electronic parts. But the connectors looked really interesting, waterproof with a lot of pins. Sadly I only had female connectors.

I started to google the brand name I saw on one of them (Julet) and found a big world of ebike connectors opening up to me. IP67 connectors with up to 10 pins in a quite small form factor. For both signal and power. I haven't found a source for these connectors though, many seem to be OEM connectors not available for consumers but there seems to be a diy scene in the ebike community so all hope is not lost.

The one I'm holding in my hand has 6 pins. The larger two on the table has 10 pins. Everything is IP67 by the looks of it. Nothing is chassi mounted though, only in line (right term?).

I thought it was interesting and potentially useful if there are spare connectors available for a decent price. I'll keep looking. If anyone knows anything more please let me know! :)





 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,533
Reaction score
13,403
Location
Palo Alto, Bay Area
Hi @Ranjib - I had the latest 2.5 build up and running for a few weeks and today I changed some minor settings, hit reload through the UI, now I'm getting the following:
Code:
Process: 750 ExecStart=/usr/bin/reef-pi daemon -config /etc/reef-pi/config.yml (code=exited, status=1/FAILURE)
I tried resetting the database, and as soon as I added some settings and hit reload again the same thing happened.
What's the best way to troubleshoot?
Do I just need to reinstall?
Can you share the log , it may have details:
Code:
journalctl -u reef-pi.service
Sorry for your trouble, I really want to get rid of all such fatal failures that causes the controller to not even show UI
 

sfgabe

Active Member
View Badges
Joined
Sep 7, 2018
Messages
106
Reaction score
188
Can you share the log , it may have details:
Code:
journalctl -u reef-pi.service
Sorry for your trouble, I really want to get rid of all such fatal failures that causes the controller to not even show UI
So.... Has anyone actually tried re-addressing their PCA9685 on 2.5? I've been pulling my hair out troubleshooting my circuit. Adafruit's board at 0x40 worked but mine at 0x41 did not. Finally today, out of curiousity, I addressed Adafruit's PCA9685 to 0x41...and it errored out as well. Exact same error mentioning "mock I2C bus" in the journal. I'm reverting back to 2.4 now to see if it makes a difference.

Edit: No dice, 2.4 crashes with the same error as well. @Ranjib , is this a known issue with PCA9685 re-addressing?
As I'm looking at it closer it looks like @Schreiber and I are having the same issue. I can confirm that all was working with my current PCA9685 board at PWM 1500 until a reboot today. I removed the database, and started troubleshooting from scratch. Every time I enable the PCA9685 board and reload, reef-pi crashes and will not start again. I've tries setting the PWM to 1000 also with the same results.
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,533
Reaction score
13,403
Location
Palo Alto, Bay Area
One is really a diy freak when you start to pick up random stuff off the street and think "Hmmm.. this connector looks interesting, wonder if I can use it in a reef-pi build..?"

I found a badly crushed run over controller for an ebike in the street the other day. The connectors looked interesting and I thought maybe I could save something from it so I took it home and did an autopsy. I saved a heatsink for 7 mosfets but otherwise no electronic parts. But the connectors looked really interesting, waterproof with a lot of pins. Sadly I only had female connectors.

I started to google the brand name I saw on one of them (Julet) and found a big world of ebike connectors opening up to me. IP67 connectors with up to 10 pins in a quite small form factor. For both signal and power. I haven't found a source for these connectors though, many seem to be OEM connectors not available for consumers but there seems to be a diy scene in the ebike community so all hope is not lost.

The one I'm holding in my hand has 6 pins. The larger two on the table has 10 pins. Everything is IP67 by the looks of it. Nothing is chassi mounted though, only in line (right term?).

I thought it was interesting and potentially useful if there are spare connectors available for a decent price. I'll keep looking. If anyone knows anything more please let me know! :)





Thats awesome :) . Nothing like scavenging electronics and reuse. During the 2.0 to 3.0 upgrade process I realized I rarely need to buy any new electronics, as pretty much everything except the enclosure and may be some perma proto board is reusable :) . It turned out lot less expensive than I was anticipating.

Theres lot to learn just by observing different systems I feel.
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,533
Reaction score
13,403
Location
Palo Alto, Bay Area
As I'm looking at it closer it looks like @Schreiber and I are having the same issue. I can confirm that all was working with my current PCA9685 board at PWM 1500 until a reboot today. I removed the database, and started troubleshooting from scratch. Every time I enable the PCA9685 board and reload, reef-pi crashes and will not start again.
Ack. Let me test it out with 1500 frequency settings.
 
Legendary Corals

sfgabe

Active Member
View Badges
Joined
Sep 7, 2018
Messages
106
Reaction score
188
Ack. Let me test it out with 1500 frequency settings.
journalctl:
Code:
Oct 27 14:18:00 ReefControlPi systemd[1]: Started raspberry pi based reef tank controller.
Oct 27 14:18:00 ReefControlPi reef-pi[311]: 2019/10/27 14:18:00 Setting pca9685 frquency: 1500
Oct 27 14:18:00 ReefControlPi reef-pi[311]: 2019/10/27 14:18:00 ERROR: Failed to initialize pca9685 driver with mock i2c bus.
Oct 27 14:18:00 ReefControlPi reef-pi[311]: 2019/10/27 14:18:00 ERROR: Failed to initialize controller. Error:remote I/O erro
Oct 27 14:18:00 ReefControlPi systemd[1]: reef-pi.service: Main process exited, code=exited, status=1/FAILURE
Oct 27 14:18:00 ReefControlPi systemd[1]: reef-pi.service: Failed with result 'exit-code'.
 

sfgabe

Active Member
View Badges
Joined
Sep 7, 2018
Messages
106
Reaction score
188
Ack. Let me test it out with 1500 frequency settings.
I dont think that's the issue. I've downgraded to 2.3 and the issue is the same. It looks like the problem is coming from upgrading to the latest version of rasbian (Raspbian GNU/Linux 10 - buster) or some related module upgrades. This same 2.3 setup was working on Stretch Lite for almost a year, now with Buster + 2.3 it fails.
 

Schreiber

Active Member
View Badges
Joined
Jun 28, 2016
Messages
274
Reaction score
382
Location
Knoxville
@sfgabe , do you have any of the address pins soldered on your PCA9685 board? I was able to fix my issue by reverting to the default 0x40 address.
 
World Wide Corals - Quality Aqua-cultured Coral

Schreiber

Active Member
View Badges
Joined
Jun 28, 2016
Messages
274
Reaction score
382
Location
Knoxville

Looks Like version 2.x does not support an other adress then 0x40, maybe better to move to 3.0
Man, knowing that would've saved me a solid 10 hours of troubleshooting, lol. ;Blackeye Oh well, it works now! Note to self, 1% of the time, I'm *not* the problem! Is 3.0 stable, or are there known bugs at the moment I should know about?
 

Schreiber

Active Member
View Badges
Joined
Jun 28, 2016
Messages
274
Reaction score
382
Location
Knoxville
Tonight is just full of surprises. Hooked up one of @Michael Lane 's pH boards & I cannot get any readings from my probe. It's just stuck at 0.

pH Probe 0.PNG

I have both jumpers on the board & i2cdetect sees the board at 0x45. I'm using the PINPOINT Marine probe, brand new. Just unboxed it. Is there a way to verify the probe itself isn't the problem?

I calibrated it using 6.86 solution for the midpoint value & 9.18 as the high point. One bit of weirdness I noted was that when I typed those values in, it asked me to select a valid value. For example, for the midpoint, I typed 6.86, it highlighted the box red & said the closest valid values were 6.86 & another number, can't remember. The only way I could get it to proceed was if I used the arrows to increase to 7.86, then decrease back to 6.86.
 

Michael Lane

Active Member
View Badges
Joined
Aug 11, 2018
Messages
436
Reaction score
752
Tonight is just full of surprises. Hooked up one of @Michael Lane 's pH boards & I cannot get any readings from my probe. It's just stuck at 0.

pH Probe 0.PNG

I have both jumpers on the board & i2cdetect sees the board at 0x45. I'm using the PINPOINT Marine probe, brand new. Just unboxed it. Is there a way to verify the probe itself isn't the problem?

I calibrated it using 6.86 solution for the midpoint value & 9.18 as the high point. One bit of weirdness I noted was that when I typed those values in, it asked me to select a valid value. For example, for the midpoint, I typed 6.86, it highlighted the box red & said the closest valid values were 6.86 & another number, can't remember. The only way I could get it to proceed was if I used the arrows to increase to 7.86, then decrease back to 6.86.
I don't have anything to add to the calibration comment, but reef-pi uses decimal for the address instead of hex. Instead of 0x45, try using 69 instead.
 

hotdrop

Active Member
View Badges
Joined
Jan 29, 2019
Messages
330
Reaction score
392
is anyone selling custom reef Pi boards that are already setup for temperature and ph monitoring? I remember some pictures floating around this thread earlier.
 
World Wide Corals - Quality Aqua-cultured Coral

burningbaal

Active Member
View Badges
Joined
Aug 13, 2019
Messages
217
Reaction score
194
Location
Near Seattle
Okay, starting to get mine together, my adj strip is running!

Two questions: with multiple temperature sensors, can you have it alert when they differ by more than, say 1 degree c? If not, I may just set up one to control 77-80 and the other alert and control 76-81?

Second: mechanical relays are more prone to failure than solid state, right? Solid state struggle with low loads. So maybe I could add a solid state relay in addition to the adj strip to control my heaters? Low likelihood of failure and not a low load..seem good?
 

BenB

Member
View Badges
Joined
Jun 11, 2019
Messages
44
Reaction score
56
Tonight is just full of surprises. Hooked up one of @Michael Lane 's pH boards & I cannot get any readings from my probe. It's just stuck at 0.

pH Probe 0.PNG

I have both jumpers on the board & i2cdetect sees the board at 0x45. I'm using the PINPOINT Marine probe, brand new. Just unboxed it. Is there a way to verify the probe itself isn't the problem?

I calibrated it using 6.86 solution for the midpoint value & 9.18 as the high point. One bit of weirdness I noted was that when I typed those values in, it asked me to select a valid value. For example, for the midpoint, I typed 6.86, it highlighted the box red & said the closest valid values were 6.86 & another number, can't remember. The only way I could get it to proceed was if I used the arrows to increase to 7.86, then decrease back to 6.86.
Ok, so you are using the opensource ph board. This will not work on 2.4 and it requires 3.0 onwards. Support for this driver was done recently and its scheduled to be available for public release later this year. You can use the 3.0 testing builds to use the ph board but calibration is still not supported via the UI yet. @Michael Lane is working on this (calibration support via UI), but its not ready yet
It looks like you need reef pi 3.0 for @Michael Lane's pH boards.
 

Schreiber

Active Member
View Badges
Joined
Jun 28, 2016
Messages
274
Reaction score
382
Location
Knoxville
I don't have anything to add to the calibration comment, but reef-pi uses decimal for the address instead of hex. Instead of 0x45, try using 69 instead.
Just tried that... No luck. I'm getting this error every time I try to calibrate.

Write Error.PNG



Here's the journal
1572296911437.png

Still getting the please select a valid value error as well.
I've reset the database a few time now. Once I get back in about 30 minutes, I'll be downgrading to 2.4 & if that doesn't work, I'll try 3.0.0 v2.
 

Michael Lane

Active Member
View Badges
Joined
Aug 11, 2018
Messages
436
Reaction score
752
Yes, there was a calibration bug fixed in August. I don't believe it is packaged into a release yet, but I think a new alpha release it's coming soon.

In the meantime, calibration would have to be done via the command line.
 

On a scale of 1-10 how much do you love or hate your tank right now? Be honest!

  • 10 - SUPER LOVE

    Votes: 99 11.9%
  • 9

    Votes: 74 8.9%
  • 8

    Votes: 210 25.3%
  • 7

    Votes: 143 17.2%
  • 6

    Votes: 74 8.9%
  • 5 - I have mixed emotions...

    Votes: 171 20.6%
  • 4

    Votes: 18 2.2%
  • 3

    Votes: 14 1.7%
  • 2

    Votes: 7 0.8%
  • 1 - Hate It

    Votes: 20 2.4%

Online statistics

Members online
2,261
Guests online
7,523
Total visitors
9,784
LiquaGen Water Systems - RODI
Top