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

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
Question regarding the 2.3 pwm fix, my dosing pumps don't move fluid below 50% via the PCA 9685 at the default 1500 Hz, so if I run the update and drop the frequency to say 100 or 200 Hz if my theory is correct, I can expect the pump to work at lower speeds?
I really dont know, I'll let @theatrus or someone else who is more knowledgable on these things speak. All I can say is that now pca9685 will respond to frequency changes correctly (you have to reload reef-pi everytime you change it ).
Generally it depends upon what type of circuit you are using to feed this pwm and then drive the dosing pumps. Its like a constrain of the intermediate ic /mosfet etc. So depending upon your exact circuit this will vary..
I just prefer to try stuff and fail spectacularly till i succeed.
 
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
meanwhile... relocated the lepto
DSC_1472.jpg

DSC_1475.jpg
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Havent tried metering yet to check frequencies...but with 2.3 loaded, im seeing no behavior changes on the PWM for the pca9685...all settings of frequency from 10 to 1500 yield the same behavior like its stuck at 1500hz.

Checking with my meter confirms it stuck at 1500hz

I am on the latest raspbian
Pi zero w
Reef pi 2.3

I tried deleting the jacks and lights, reloaded then rebuilt them and reloaded.
Everything else about the pca9685 works, but the 100 percent setting bug is still present.

I even purged reef pi and reinstalled 2.3 with no luck although i did keep my reef pi database file.

To confirm its not related to my hardware if i switch a channel to a pi pwm pin set at 100hz, my lighting dims as its supposed to.
 
Last edited:

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,123
Rating - 0%
0   0   0
Havent tried metering yet to check frequencies...but with 2.3 loaded, im seeing no behavior changes on the PWM for the pca9685...all settings of frequency from 10 to 1500 yield the same behavior like its stuck at 1500hz.

Checking with my meter confirms it stuck at 1500hz

I am on the latest raspbian
Pi zero w
Reef pi 2.3

I tried deleting the jacks and lights, reloaded then rebuilt them and reloaded.
Everything else about the pca9685 works, but the 100 percent setting bug is still present.

I even purged reef pi and reinstalled 2.3 with no luck although i did keep my reef pi database file.

To confirm its not related to my hardware if i switch a channel to a pi pwm pin set at 100hz, my lighting dims as its supposed to.
I just confirmed similar behavior on a Pi3. My cheap meter reads 1.6 kHz regardless of the setting. I manually changed the frequency using a test script and was able to confirm a frequency change in the pca9685. However, it reverted back to 1.6 kHz after I reloaded reef-pi...

I'm sure we're just overlooking something simple in the software, and I'm confident we'll get it sorted soon.
 
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 just confirmed similar behavior on a Pi3. My cheap meter reads 1.6 kHz regardless of the setting. I manually changed the frequency using a test script and was able to confirm a frequency change in the pca9685. However, it reverted back to 1.6 kHz after I reloaded reef-pi...

I'm sure we're just overlooking something simple in the software, and I'm confident we'll get it sorted soon.
Havent tried metering yet to check frequencies...but with 2.3 loaded, im seeing no behavior changes on the PWM for the pca9685...all settings of frequency from 10 to 1500 yield the same behavior like its stuck at 1500hz.

Checking with my meter confirms it stuck at 1500hz

I am on the latest raspbian
Pi zero w
Reef pi 2.3

I tried deleting the jacks and lights, reloaded then rebuilt them and reloaded.
Everything else about the pca9685 works, but the 100 percent setting bug is still present.

I even purged reef pi and reinstalled 2.3 with no luck although i did keep my reef pi database file.

To confirm its not related to my hardware if i switch a channel to a pi pwm pin set at 100hz, my lighting dims as its supposed to.
dang , let me look into this ASAP. I’ll re publish the builds soon. We know for sure this is fixed, let me check why it’s not working on 2.3
 

jhoop

Active Member
View Badges
Joined
Jan 10, 2014
Messages
156
Reaction score
179
Location
Cleveland Ohio
Rating - 0%
0   0   0
I have the ADJ-SRP8 for the AC outlets. Does anyone have a clear drawing of pin outs from the chip outputs to the DB9 male. Can not find any documentation on the SRP8. Just want to verify connections before I power up.

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
Does this mean I can re-install 2.3 and test it out?
I tested, Its not working. I know we have fixed the code , but due to some glitch it’s not being picked up in 2.3 release build. I was looking into that .., but a different situation unfolded and got busy with that
24A655C6-8781-4B81-A452-D2D9D3AB3FD9.jpeg
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
I tested, Its not working. I know we have fixed the code , but due to some glitch it’s not being picked up in 2.3 release build. I was looking into that .., but a different situation unfolded and got busy with that
24A655C6-8781-4B81-A452-D2D9D3AB3FD9.jpeg
Lol, I remember those situations, I have them with the grandkids now ;)
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
I tested, Its not working. I know we have fixed the code , but due to some glitch it’s not being picked up in 2.3 release build. I was looking into that .., but a different situation unfolded and got busy with that
24A655C6-8781-4B81-A452-D2D9D3AB3FD9.jpeg

Thats priceless, you made me laugh, I remember those days, enjoy them while you can they go way to fast :)
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,123
Rating - 0%
0   0   0

crusso1993

7500 Club Member
View Badges
Joined
Oct 21, 2018
Messages
8,671
Reaction score
44,651
Location
SW, FL, USA
Rating - 0%
0   0   0
I tested, Its not working. I know we have fixed the code , but due to some glitch it’s not being picked up in 2.3 release build. I was looking into that .., but a different situation unfolded and got busy with that
24A655C6-8781-4B81-A452-D2D9D3AB3FD9.jpeg

This is great but you know he's going to need more track!
 
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
@Bigtrout i just tested out the 2.3 builds, i think its fixed now. Can you test it out(just download the debian file and re-install) when you have time, and let me know if its still not working.

There was two different issues intermingled.. one involving the core pca9685 driver (i2c stuff), and the other around the reef-pi<-> pca9685 integration that was modified during the HAL work,.
 
Back
Top