Reef-pi 5.3 Error message when trying to add additional PCA9685 driver

Wolfw28

Active Member
View Badges
Joined
Mar 13, 2022
Messages
201
Reaction score
139
Location
Myakka City
What state or country do you live in
Florida
Rating - 0%
0   0   0
Hi me again im having a problem setting up an additional driver on my Reef-Pi/Robo-Tank for PCA9685 getting error message {"errer":"Failed to create.Error: remote I/O error"}|HTTP 500. ihave tried setup from my PC with Chrome and Explorer, and Chromuim on pi using pi 192 address and 127.0.0.0:80 with no luck. Verified pi is seeing and there are no other devices on the same I2C network so it appears to be a problem with reef-pi. Need hep above my paygrade @Ranjib ,@robsworld78
After getting it config still may not be able to use it based on the distance from pi that i need to run cable I2C is limited on distance.
With advanced Tasmota driver i would not need PCA9685 i could use a ESP32/8266 with even more function's IMG_0690.JPEG IMG_0691.JPEG .
 
Might as well add error message for MQTT {"error":"json: cannot unmarshal string into Go struct field MQTTConfig.mqtt.retained of type bool"} | HTTP 400 @Ranjib @robsworld78
 
Sorry not really sure why it's not working, can you add a different driver just as a test or do they all fail?
 
Sorry not really sure why it's not working, can you add a different driver just as a test or do they all fail?
i add Tasmota driver ok will try another thank you for response
 
Hi, I'm assuming the addresses are:
  • 0x40 / #64 (no jumpers)
  • 0x41 / #65 (A0 bridged)
As those show up in your i2cdetect.

Did you enter address 41 for the new PCA9685 driver ? That is "incorrect" since it is actually 0x41, so hexadecimal for the decimal number #65. Reef-Pi is however expecting a decimal there, so you should try entering number 65 as address.
 
@Sral yeah made that mistake at first doesn’t matter what I enter same error message plus the MQTT error setup adafruit.Io for monitoring on getting half of info. Setup email and text messages was trying to see how fare I could extend temp sensor wire lost connection with sensor got 5 text messages ever hour for a week 2 hours after unplugging temp sensor. I literally have over 500 messages and still get them. Now the only way I can get into Reefpi is to use my monitor chromium and address 127.0.0.1:80 it will not even let me use my pi IP address to access. I’m really starting to wish I never heard of reef pi saved up a little money and bought an Apex system can’t getting it all running without something going wrong at least with Apex there is custom support. With Reefpi I’m at the mercy of this forum and hoping someone will help. I decided to setup a controller so I could spend more time enjoying watching my fish and corals grow but now I spend all my time in front of a computer reading forums and search the internet because there is no support for Reefpi. It’s a good thing it free
 
@Sral yeah made that mistake at first doesn’t matter what I enter same error message plus the MQTT error setup adafruit.Io for monitoring on getting half of info. Setup email and text messages was trying to see how fare I could extend temp sensor wire lost connection with sensor got 5 text messages ever hour for a week 2 hours after unplugging temp sensor. I literally have over 500 messages and still get them. Now the only way I can get into Reefpi is to use my monitor chromium and address 127.0.0.1:80 it will not even let me use my pi IP address to access. I’m really starting to wish I never heard of reef pi saved up a little money and bought an Apex system can’t getting it all running without something going wrong at least with Apex there is custom support. With Reefpi I’m at the mercy of this forum and hoping someone will help. I decided to setup a controller so I could spend more time enjoying watching my fish and corals grow but now I spend all my time in front of a computer reading forums and search the internet because there is no support for Reefpi. It’s a good thing it free
Well, I would test a few things.

Since you are using Robo-Tank the
first PCA9685 is build in, right ?
The second one is connected through the I2C port. How long is the wire to the External PCA9685 ?
Does the pH circuit work properly ?
Secondly I would write you a short c++ script to see whether that can establish a connection.
 
Last edited:
Well, I would test a few things.

Since you are using Robo-Tank the
first PCA9685 is build in, right ?
The second one is connected through the I2C port. How long is the wire to the External PCA9685 ?
Does the pH circuit work properly ?
Secondly I would write you a short c++ script to see whether that can establish a connection.
Yes first one is built in.
second one is connected to the I2C explanation port on the front of the robo-tank controller.
Current wire length is 3in or 75mm
Ph circuit works fine can add addition ph drivers without sensor
can add additional drivers for most item listed without having them
I2Cdetect shows it there and gone when removed.
Problem is in reef-pi software
 
Alright, that sounds interesting and I tend to agree with you.

I'll still send you a test script for the PCA9685, just to be sure. I'll probably try to fetch a board ID or the current frequency through I2C so you wont even need a multimeter for that.
 
Alright, that sounds interesting and I tend to agree with you.

I'll still send you a test script for the PCA9685, just to be sure. I'll probably try to fetch a board ID or the current frequency through I2C so you wont even need a multimeter for that.
Thank you I’ll try it when I get it between you and @robsworld78 u 2 have been my only help.
 
Alright, I have uploaded the code to my GitHub. It's based on @robsworld78's pH script again ^^
Here's the code to dowload, compile and execute:

Code:
sudo wget -c https://github.com/Sral931/reefPi/raw/main/scripts/pca9685_test.cpp

g++ pca9685_test.cpp -o pca9685_test

./pca9685_test

The result should look like this:
Code:
PCA9685 Test Script
Using i2cAddress        64
------------------------
preScaler = XX
Using i2cAddress        65
------------------------
preScaler = YY

Sadly I have my PCA9685 not set up yet, so I can't test that. I have therefore written the script that it tests the default PCA9685 address first. Since you know that this one works, it should give you a value there if my script communicates correctly.
 
Last edited:
Hm, seems like your circuit might be broken. Strange, since it does show up on I2C.

I’ll write another script that tries to set the value first.
 
Hm, seems like your circuit might be broken. Strange, since it does show up on I2C.

I’ll write another script that tries to set the value first.
I don’t think that’s the case because my ph probe works and the built in pca9685 works. I get that error message if it hooked up or not. Did you look at any of the other stuff I sent you on alternative? Thank you again for your help.
 
I don’t think that’s the case because my ph probe works and the built in pca9685 works. I get that error message if it hooked up or not. Did you look at any of the other stuff I sent you on alternative? Thank you again for your help.
I meant that your second PCA9685 might be broken. It's address shows up but the further functionality might be damaged.

About the other stuff I probably wont look at it too soon, since I am most of the times happy when I even find enough time to work on my own setup :grinning-face-with-sweat:
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top