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

alphacustomization

New Member
View Badges
Joined
Feb 16, 2019
Messages
9
Reaction score
12
Rating - 0%
0   0   0
I am having the same problem adding the pca9685, had it running fine on 2.3 but updated to 3.0 alpha 2 and keeps giving error messages. Not sure if these images are what you need to help diagnose this problem but here are some
Screenshot (2).png
Screenshot (3).png
Screenshot (4).png

guess I should add I have tried restarting several times and have even wiped the sd card and started new
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I am having the same problem adding the pca9685, had it running fine on 2.3 but updated to 3.0 alpha 2 and keeps giving error messages. Not sure if these images are what you need to help diagnose this problem but here are some
Screenshot (2).png
Screenshot (3).png
Screenshot (4).png

guess I should add I have tried restarting several times and have even wiped the sd card and started new
You have to delete your reef-pi database if you are planning to upgrade to 3.0, and do the configuration again. In 3.0 you have to create a driver first, and then associate jacks with it. One the plus side you can use pca9685 as outlet , other than typical jacks
 

alphacustomization

New Member
View Badges
Joined
Feb 16, 2019
Messages
9
Reaction score
12
Rating - 0%
0   0   0
@Ranjib if you are talking about this then it has already been done
Sudo apt-get remove reef-pi -y --purge
Sudo rm -rf /var/lib/reef-pi
Is there something or somewhere I'm forgetting?
I did both of those, restarted, downloaded and installed 3.0, restarted again. Had to put in EVERYTHING fresh
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib if you are talking about this then it has already been done
Sudo apt-get remove reef-pi -y --purge
Sudo rm -rf /var/lib/reef-pi
Is there something or somewhere I'm forgetting?
I did both of those, restarted, downloaded and installed 3.0, restarted again. Had to put in EVERYTHING fresh
Yes, that’s it.

By the way, a very warm welcome to reef2reef :)
 

alphacustomization

New Member
View Badges
Joined
Feb 16, 2019
Messages
9
Reaction score
12
Rating - 0%
0   0   0
Thank you for the welcome
Any idea why it won't load the pca9685? I was going to try to format the sd card again tomorrow and reinstall from scratch to see if that will take care of the problem, maybe I made a mistake the first time
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Thank you for the welcome
Any idea why it won't load the pca9685? I was going to try to format the sd card again tomorrow and reinstall from scratch to see if that will take care of the problem, maybe I made a mistake the first time
What error you are getting? I2c is enabled ? Do you see the address via i2cdetect ? Does the chip shows red led light on ?
 

Alaa

Community Member
View Badges
Joined
Nov 28, 2018
Messages
74
Reaction score
80
Rating - 0%
0   0   0
HI
still in the testing phase
i was getting (ERROR {"error":"Failed to create. Error: write /sys/class/pwm/pwmchip0/pwm0/period: invalid argument"} | HTTP 500) when i tried to add jack at channel 0
running reef-pi 2.4 pi3 on raspberry pi 3b+
after i searched for answers and couldn't get a clear one i upgraded to pi 3.0.0 pre-alpha 2
i was able to add the jack and run the test OK
then noticed that in the config page under setting i don't have pca9685 anymore
when i tried to add it from driver tab using the default poar 68 and frequency 1500 i got
error":"Failed to create. Error: remote I/O error"} | HTTP 500

any help would be appreciated
 

Alaa

Community Member
View Badges
Joined
Nov 28, 2018
Messages
74
Reaction score
80
Rating - 0%
0   0   0
Hi
Still during the testing phase
was running reef-pi 2.4 on raspberry pi 3B+ and got error http 500 while trying to create jack at channel 0 after finding no clear solution i upgraded to pi 3.0.0 pre-alpha 2 and was able to add the jack easily and tested the PWM successfully. however i noticed there is no pca9685 support in the setting by default so i tried to add from the driver tab using the suggested address 68 and frequency of 1500 then i got this error
error":"Failed to create. Error: remote I/O error"} | HTTP 500
any help would be appreciated
thanks
 

Alaa

Community Member
View Badges
Joined
Nov 28, 2018
Messages
74
Reaction score
80
Rating - 0%
0   0   0
Still having the same error, Alaa?

Yes
The first error occur with pi 2.3 and 2.4 and not corrected with updates and reboot
The second one with pi 3.0.0 alpha 2 and not only with pca9685 but with other drivers as well
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
112
Reaction score
155
Rating - 0%
0   0   0
You have the Pca9685 board connected to the pi?
I think Max frequency for pca9685 is 1000, see backside of the board
 

Alaa

Community Member
View Badges
Joined
Nov 28, 2018
Messages
74
Reaction score
80
Rating - 0%
0   0   0
You have the Pca9685 board connected to the pi?
I think Max frequency for pca9685 is 1000, see backside of the board
Will check ASAP
Having the default at 1500 and the same in previous versions didn't make me think about it
Thanks
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0

Alaa

Community Member
View Badges
Joined
Nov 28, 2018
Messages
74
Reaction score
80
Rating - 0%
0   0   0
Hi
thanks for the feed back
still no progress
i reinstalled raspberry pi from scratch, followed all the steps in the guides to update and installed reef-pi 2.4 pi3
i got the three GPIO working as equipment to test connections and were all (Pic attached)
i removed outlets 18 and 19 and tried to add Jack at channel 0 or 1 but both give me error
i added lights but are not working
i attached the log running (sudo journalctl -fu reef-pi.service)

1- GPIO 18-19-24 working as outlets.jpg


2- GPIO 18-19-24 LED on.jpg


3- adding Jack failed at 0 channel.jpg


4- adding Jack failed at 1 channel.jpg


5- blue light added but not working.jpg


6- journal output.jpg
 
Back
Top