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

Jonathan Troutt

Well-Known Member
View Badges
Joined
Apr 1, 2018
Messages
974
Reaction score
1,177
Location
Indianapolis, IN
Rating - 0%
0   0   0
@Ranjib

Well i think i have a bug. Ive experienced this a couple times. I noticed today that my lights were not changing in intensity. Not sure when it started everything else is working fine. So i test to make sure the pca was getting signal from pi. It was.
Well maybe my pca9685 is bad put a new one on still nothing. Well let me go delete it and re add it. Well i forgot to delete the jacks before deleting the driver.


The picture is what i get now under the connectors tab. Cannot get past it unless i delete database and start over. Ideas?

D11E36A7-5F67-487F-B52D-15C0A18CFA1E.png
 

Auto-pilot

Valuable Member
View Badges
Joined
Aug 25, 2018
Messages
1,175
Reaction score
1,321
Location
Minneapolis
Rating - 0%
0   0   0
Hey guys I was hoping someone can help me with PWM stuff. I can't seem to figure out how to make it work using reef pi. Here's what I've done. I did a fresh install. Noobs 3.1.1, reef pi 2.4. I updated everything before I installed reef pi. I went into config.txt and configured the pwm by adding code into the text. I am using the raspberry and I get this code and nothing works, thanks for the help

20190705_215048.jpg
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hey guys I was hoping someone can help me with PWM stuff. I can't seem to figure out how to make it work using reef pi. Here's what I've done. I did a fresh install. Noobs 3.1.1, reef pi 2.4. I updated everything before I installed reef pi. I went into config.txt and configured the pwm by adding code into the text. I am using the raspberry and I get this code and nothing works, thanks for the help

20190705_215048.jpg
Can you reboot ? And if the issue persist share the log
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib

Well i think i have a bug. Ive experienced this a couple times. I noticed today that my lights were not changing in intensity. Not sure when it started everything else is working fine. So i test to make sure the pca was getting signal from pi. It was.
Well maybe my pca9685 is bad put a new one on still nothing. Well let me go delete it and re add it. Well i forgot to delete the jacks before deleting the driver.


The picture is what i get now under the connectors tab. Cannot get past it unless i delete database and start over. Ideas?

D11E36A7-5F67-487F-B52D-15C0A18CFA1E.png
Yes, if I understand correctly this is a bug related to missing validation, reef-pi should not allow deleting drivers without deleting the associated connectors
 

alphacustomization

New Member
View Badges
Joined
Feb 16, 2019
Messages
11
Reaction score
13
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,876
Reaction score
16,680
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
11
Reaction score
13
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,876
Reaction score
16,680
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
11
Reaction score
13
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,876
Reaction score
16,680
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 ?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
In 3.0 you have to create a driver first , then associate that with jacks
 

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
118
Reaction score
152
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
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 38 26.6%
  • 100% dry rock + 100% live sand

    Votes: 48 33.6%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 32 22.4%
  • 75% live rock, 25% live sand

    Votes: 15 10.5%
  • 25% live rock, 75% live sand

    Votes: 10 7.0%
Back
Top