Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Oct 25 23:27:29 control1 reef-pi[995]: 2019/10/25 23:27:29 ERROR: Failed to initialize pca9685 driver with mock i2c bus. Error: remote I/O error
@Schreiber The error message seems a bit suspicious.
Is this on the same reef-pi as the adafruit board? Which version of reef-pi are you running? Can you make sure DevMode is not enabled?
I had a similar issue if an intermittent wifi connection. I had to move the pi away from any of the magnets holding pumps etc to the back of the tank. Have you tested a different placement?@Ranjib I recently moved. At my old house I had my reefpi hardwired via Ethernet and had no issues. At the new place WiFi is my only option. On very random occasions I am unable to access reefpi via the web browser. I can pull the plug on the reefpi box to reset it and it always works fine after that. I suspect it’s the WiFi connection needing a rest everyonce in awhile. Have you experienced this at all? Is there some way to have the raspberry reset the WiFi adapter Avery couple days or something along those lines?
I had a similar issue if an intermittent wifi connection. I had to move the pi away from any of the magnets holding pumps etc to the back of the tank. Have you tested a different placement?
@Ranjib I recently moved. At my old house I had my reefpi hardwired via Ethernet and had no issues. At the new place WiFi is my only option. On very random occasions I am unable to access reefpi via the web browser. I can pull the plug on the reefpi box to reset it and it always works fine after that. I suspect it’s the WiFi connection needing a rest everyonce in awhile. Have you experienced this at all? Is there some way to have the raspberry reset the WiFi adapter Avery couple days or something along those lines?
I experienced this with an older rpi using a USB wifi dongle, and more recently with rpi 3. In my case, it seemed to be a power related problem. The wifi modules weren't able to pull enough power to stay connected to the weak wifi signal. I upgraded my power supply and no longer experience that issue.I honestly think it’s hardware related. It only happens once every 2-3 weeks and my box is pretty far from any pumps. I can try moving it further.
Connecting directly to ground is fine. The 10k pull down is only required if you might use a jumper to connect to 5v.I tested with the adafruit board, but this is an entirely separate PCA9685 chip. I don't have the adafruit board connected anymore, just this one. DevMode is not enabled & I'm running 2.5.
EDIT: @Michael Lane , I just downloaded the schematic for the adafruit board & the only real differences I see between my setup & their is for the address jumpers...
For my address pins A0-A5, they have 10k ohm resistors between them & ground... Are these actually necessary? I simply have mine connected straight to ground. I have A1-A5 connected directly to ground & A0 connected directly to VCC.
Connecting directly to ground is fine. The 10k pull down is only required if you might use a jumper to connect to 5v.
That's fine. I don't expect that to be an issue. It's essentially the same thing that happens on the breakout board when you bridge an address pin.I have A0 connected directly to 5V... Based in this, I'm assuming that was a bad idea & it needs the pulldown resistor for A0? Could that be causing my issue?
Process: 750 ExecStart=/usr/bin/reef-pi daemon -config /etc/reef-pi/config.yml (code=exited, status=1/FAILURE)
I went from 2.2 to 2.5 and had some minor problems with my pca (leds didnt turn off). I found that 2.3 works best for me. Not sure if it is relevant to you though.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?
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?
journalctl -u reef-pi.service
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?
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.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! :)
![]()
![]()
![]()