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

PaulJ2303

Community Member
View Badges
Joined
Sep 30, 2018
Messages
76
Reaction score
172
Rating - 0%
0   0   0
Default hexidecimal code for PCA9685 is 0x40, in decimal that wil be 64.

Thanks Ben that worked :)
just for my own future reference how did you know the hex code for pca9685 is 40 / 64 ?

and something for @Michael Lane ... i'm afraid i've still got the dosing pump whine, tbh i wouldn't care but it stops the motors from turning at all.

edit:
just did a further test and all three pumps run fine at 100% .. i only get the whine at a percentage value.
 
Last edited:

burningbaal

Active Member
View Badges
Joined
Aug 13, 2019
Messages
232
Reaction score
252
Location
Near Seattle
Rating - 0%
0   0   0
i2c issue happens when i2c bus is not enabled. raspi-config is used to set it. Once done it does not need to tweaked till reimage.
The second issue is one wire/ temperature probe. Thats different than the i2c issue. Nothing physical changed?
ok, so I2C isn't related, darn. I was hoping I was getting close to root cause.
Nothing changes between working and not working. I don't have things tidy, so I suppose something might be flinching and causing an issue (like the voltage doohicky that powers the ADJ relays, which is just floating right now), but with everything just sitting there (3 lighting timers, ATO is on a timer for 5m every hour, that's about as interesting as it gets except when I raise the lights for feeding). It'll work for an hour or 5, then dies with these errors...weird, right?
 
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
Thanks Ben that worked :)
just for my own future reference how did you know the hex code for pca9685 is 40 / 64 ?

and something for @Michael Lane ... i'm afraid i've still got the dosing pump whine, tbh i wouldn't care but it stops the motors from turning at all.

edit:
just did a further test and all three pumps run fine at 100% .. i only get the whine at a percentage value.
40 is hexadecimal , translated to 4x16 + 0x16 =64 in decimal. the ui takes decimal number. I think we should improve the ui to support hexadecimal natively.
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
Thanks Ben that worked :)
just for my own future reference how did you know the hex code for pca9685 is 40 / 64 ?

and something for @Michael Lane ... i'm afraid i've still got the dosing pump whine, tbh i wouldn't care but it stops the motors from turning at all.

edit:
just did a further test and all three pumps run fine at 100% .. i only get the whine at a percentage value.


See : Adressing the boards

You can hook up to 62 pca9685s when you change the adress by connecting solderpoints on the board :-)
 

PaulJ2303

Community Member
View Badges
Joined
Sep 30, 2018
Messages
76
Reaction score
172
Rating - 0%
0   0   0
I think we should improve the ui to support hexadecimal natively.
[/QUOiys all@Ranjib you don't have to account for my abject stupidity
I think we should improve the ui to support hexadecimal natively.
It's all good @Ranjib you don't have to account for my abject stupidity
 

hhaase

Active Member
View Badges
Joined
Nov 11, 2019
Messages
418
Reaction score
344
Rating - 0%
0   0   0
Well, I had to sign up for a new forum due to this one. I've only had a chance to do a quick overview, but looks like this project is alive and kicking, and I'm ready to dig deeper.

I've got a background in electronics manufacturing, so hopefully I can contribute to the overall project as needed. I may have to finally figure out how to use github (always found it a really annoying file system to be honest).

Anyway, back to reading and trolling to see where things are, where I can help, and where I can pick up and start building one of these.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
Thanks Ben that worked :)
just for my own future reference how did you know the hex code for pca9685 is 40 / 64 ?

and something for @Michael Lane ... i'm afraid i've still got the dosing pump whine, tbh i wouldn't care but it stops the motors from turning at all.

edit:
just did a further test and all three pumps run fine at 100% .. i only get the whine at a percentage value.
What frequency are you using...you may have to tweak that to get decent results
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
thanks Ben ... every day's a school day. I'll check that out :)

No wories, you can find a lot of info if you read trought the reef-pi tread, I can advice you doing the same, I myself started reading halfway and it helped me a lot. Secondly Google is your best friend! And of course you can always ask!
 

ambientaquatics.adam

2500 Club Member
View Badges
Joined
Jul 10, 2012
Messages
3,890
Reaction score
2,256
Location
Janeville
Rating - 100%
4   0   0
Has any one experienced their pi crashing in the middle of dosing? I heard the pump kick on last night and about 2 minutes later it was still running. It dumped probably 200ml of vinegar but it's not a big deal since I currently dose close to 100ml. While it was running I could not access the local or vnc connection so I power cycled it and regained connection. Glad I was doing long term testing with a 250ml container and only vinegar but regardless I would like to find the root of the issue.
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
Thanks Ben that worked :)
just for my own future reference how did you know the hex code for pca9685 is 40 / 64 ?

and something for @Michael Lane ... i'm afraid i've still got the dosing pump whine, tbh i wouldn't care but it stops the motors from turning at all.

edit:
just did a further test and all three pumps run fine at 100% .. i only get the whine at a percentage value.
There was an issue with out PCA9685 driver that would cause a whine when at 0%. I thought we had that resolved. The DC motors will tend to whine at lower percentages. I think I found the minimum duty cycle to be a bit over 50% for my pumps.
 
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
Well, I had to sign up for a new forum due to this one. I've only had a chance to do a quick overview, but looks like this project is alive and kicking, and I'm ready to dig deeper.

I've got a background in electronics manufacturing, so hopefully I can contribute to the overall project as needed. I may have to finally figure out how to use github (always found it a really annoying file system to be honest).

Anyway, back to reading and trolling to see where things are, where I can help, and where I can pick up and start building one of these.
Welcome to reef2reef :-)
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
Has any one experienced their pi crashing in the middle of dosing? I heard the pump kick on last night and about 2 minutes later it was still running. It dumped probably 200ml of vinegar but it's not a big deal since I currently dose close to 100ml. While it was running I could not access the local or vnc connection so I power cycled it and regained connection. Glad I was doing long term testing with a 250ml container and only vinegar but regardless I would like to find the root of the issue.
That sounds like some bad timing! Can you check for any errors or clues in the logs?

Code:
sudo journalctl -fu reef-pi.service
 

PaulJ2303

Community Member
View Badges
Joined
Sep 30, 2018
Messages
76
Reaction score
172
Rating - 0%
0   0   0
What frequency are you using...you may have to tweak that to get decent results
ok thanks @Bigtrout i'ts set at the default of 1500 .. i guess that's the duty cycle in hz i'll have a play with that thanks

There was an issue with out PCA9685 driver that would cause a whine when at 0%. I thought we had that resolved. The DC motors will tend to whine at lower percentages. I think I found the minimum duty cycle to be a bit over 50% for my pumps.
funnily enough i was running them at just on 50% ... in conjunction with the duty cycle i'll try changing this.
i'm thinking that if it runs fine at 100% i.e full power i'm wondering if it's a torque thing when i'm trying to run it at a smaller percentage of the duty cycle.

It'll be interesting to see what turns up.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
ok thanks @Bigtrout i'ts set at the default of 1500 .. i guess that's the duty cycle in hz i'll have a play with that thanks


funnily enough i was running them at just on 50% ... in conjunction with the duty cycle i'll try changing this.
i'm thinking that if it runs fine at 100% i.e full power i'm wondering if it's a torque thing when i'm trying to run it at a smaller percentage of the duty cycle.

It'll be interesting to see what turns up.
It may be worth playing with both duty cycle percentage and frequency. The coil on a motor will have a certain inductance that will tend to react somewhat like capacitance, that is tending to average a signal. Higher frequencies may not work as well as lower ones. It may not make any torque at 20 percent duty cycle on a frequency of 1500hz but it may well run on a 20 percent duty cycle on a frequncy of lets say 200hz
 

ambientaquatics.adam

2500 Club Member
View Badges
Joined
Jul 10, 2012
Messages
3,890
Reaction score
2,256
Location
Janeville
Rating - 100%
4   0   0
That sounds like some bad timing! Can you check for any errors or clues in the logs?

Code:
sudo journalctl -fu reef-pi.service
I'll check the logs. It weird because it's been working fine for the past 1.5-2 mos
 
Last edited:

ambientaquatics.adam

2500 Club Member
View Badges
Joined
Jul 10, 2012
Messages
3,890
Reaction score
2,256
Location
Janeville
Rating - 100%
4   0   0
It looks like logs reset last night after the crash.
Screenshot_20191111-202306.jpg
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
I'm struggling to get Adafruit IO Telemetry working.

I've followed the instruction here - https://reef-pi.github.io/additional-documentation/telemetry/

I get the key, copy into the correct field , update and reload. When I go back to the telemetry tab, the Aio key is gone, but username is still there. I get no feeds in Aio.

I'm obviously missing something fundamental.
 
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'm struggling to get Adafruit IO Telemetry working.

I've followed the instruction here - https://reef-pi.github.io/additional-documentation/telemetry/

I get the key, copy into the correct field , update and reload. When I go back to the telemetry tab, the Aio key is gone, but username is still there. I get no feeds in Aio.

I'm obviously missing something fundamental.
Sensitive fields like adafruit is key and password are not shown in the ui intentionally. Unless you see an error , they are set. Reload and reef-pi should start sending data to adafruit.io, unless there’s other issues (internet or rate limit)
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
Sensitive fields like adafruit is key and password are not shown in the ui intentionally. Unless you see an error , they are set. Reload and reef-pi should start sending data to adafruit.io, unless there’s other issues (internet or rate limit)

OK. That makes sense.

I rechecked Adafruit and I am getting some info.

But not getting any of my temp info. Now I look closer and realise that two of my temp probes aren't working including the main "Tank" temp. I'm going to try delete and reinstall.

2019-11-12 (1).png
 

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