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

trackerit

Community Member
View Badges
Joined
Apr 11, 2019
Messages
71
Reaction score
137
Rating - 0%
0   0   0
I don’t think there’s any issue with your pi or raspbian version, can you share a screenshot of you reef-pi configuration /settings page ?
I have reinstalled everything again and it doed not work
1555169841529.jpeg
1555169821656.jpeg


Sent from my MHA-L09 using REEF2REEF mobile app
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Can you try yoursefl? I dont know what to do, i try all.. Http://200.124.25.203 user and password by default
I think exposing your server to the internet even briefly is a really bad idea, here is the section that he was referring to, you need to enable the lighting option from the configuration page, here is a screenshot.

Screenshot at 2019-04-13 11-21-36.jpg


Then you can go into connectors and add your jacks which then can be configured from the lighting section.

:)
 

trackerit

Community Member
View Badges
Joined
Apr 11, 2019
Messages
71
Reaction score
137
Rating - 0%
0   0   0
I think exposing your server to the internet even briefly is a really bad idea, here is the section that he was referring to, you need to enable the lighting option from the configuration page, here is a screenshot.

Screenshot at 2019-04-13 11-21-36.jpg


Then you can go into connectors and add your jacks which then can be configured from the lighting section.

:)
it's just for tests, so it does not matter if it's posted on the internet, the steps that I'm saying are obvious, and I've tried them before
 
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
Can you try yoursefl? I dont know what to do, i try all.. Http://200.124.25.203 user and password by default
This is super unsafe, please dont open up your firewall like that :-) .

I just browsed through your setup, it looks good. I created a jack , associated it with pi pwm pins (0,1), created a light (test light) , associated the light with the jack and set it to 50% intensity. Lets see if the error persist
 
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
This is super unsafe, please dont open up your firewall like that :) .

I just browsed through your setup, it looks good. I created a jack , associated it with pi pwm pins (0,1), created a light (test light) , associated the light with the jack and set it to 50% intensity. Lets see if the error persist
I have also disabled the adafruit.io integration, as from the errors it appears you have reached the free account limit. I have triggered a reboot. Can you check if the pwm error is still there?
 

trackerit

Community Member
View Badges
Joined
Apr 11, 2019
Messages
71
Reaction score
137
Rating - 0%
0   0   0
I have also disabled the adafruit.io integration, as from the errors it appears you have reached the free account limit. I have triggered a reboot. Can you check if the pwm error is still there?
Hi, same problem, same error, can be version of raspbian? I installed lite version
1555196783981.jpeg
 
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
Hi, same problem, same error, can be version of raspbian? I installed lite version
1555196783981.jpeg
Can you check the content of that folder ? /sys/class/pwm/.../period and duty_cycle . I’ll try to reproduce it tonight .
 

ChrisNH

Active Member
View Badges
Joined
Mar 21, 2019
Messages
306
Reaction score
251
Rating - 0%
0   0   0
Is this what you are looking for:

Code:
pi@reefpi:/sys/class/pwm/pwmchip0/pwm0 $ ls -l
total 0
-r--r--r-- 1 root root 4096 Apr 14 20:58 capture
-rw-r--r-- 1 root root 4096 Apr 14 20:58 duty_cycle
-rw-r--r-- 1 root root 4096 Apr 14 20:58 enable
-rw-r--r-- 1 root root 4096 Apr 12 17:06 period
-rw-r--r-- 1 root root 4096 Apr 14 20:58 polarity
drwxr-xr-x 2 root root    0 Apr 14 20:58 power
-rw-r--r-- 1 root root 4096 Apr 14 20:58 uevent

They are files. With mine both are files that contain "0"

The log error is
Code:
Apr 14 20:57:08 reefpi reef-pi[294]: 2019/04/14 20:57:08 ERROR: lighting-subsystem: Failed to set pwm value. Error: write /sys/class/pwm/pwmchip0/pwm0/duty_cycle: invalid argument

I thought when I had looked before that the kernel version was 4.9 something but since the reinstall I am getting 4.14.98-v7+

I also went through the cycle of creating the jack, restarting, creating my light, etc.. to no avail.
 
Last edited:
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
Got a handful of things done this weekend. RAP was awesome. Tank in it’s full glory after today’s water change
7FCE0C4B-473A-479F-86FD-64340AAF63CE.jpeg


Testing out the pico base boards ph driver (Learning should be equally applicable to ph board as well ) . More on that later ..
Got a few things done on The model railroad layout as well. Rock wall , where reef tank will be located is done
2DC71CB1-8123-4B9B-AE4C-19A5C52D0F80.jpeg

Grass cover is finished as well
90130C10-9A22-4E9A-B99A-E55E5C705813.jpeg

Here is how it will look (tentatively )
AC400C5F-5394-4913-B5F5-E0FBC2CC9140.jpeg


Had to readjust the maker beam based stand (thank you @rushbattle for sponsoring this :-) , again)
D9A32F01-47B8-4A89-8A10-C1B062300005.jpeg


Sunday evening was spend bursting bubble :-)
CF955858-E543-4740-A9D4-7D9F8C6BA182.jpeg
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Got a handful of things done this weekend. RAP was awesome. Tank in it’s full glory after today’s water change
7FCE0C4B-473A-479F-86FD-64340AAF63CE.jpeg


Testing out the pico base boards ph driver (Learning should be equally applicable to ph board as well ) . More on that later ..
Got a few things done on The model railroad layout as well. Rock wall , where reef tank will be located is done
2DC71CB1-8123-4B9B-AE4C-19A5C52D0F80.jpeg

Grass cover is finished as well
90130C10-9A22-4E9A-B99A-E55E5C705813.jpeg

Here is how it will look (tentatively )
AC400C5F-5394-4913-B5F5-E0FBC2CC9140.jpeg


Had to readjust the maker beam based stand (thank you @rushbattle for sponsoring this :) , again)
D9A32F01-47B8-4A89-8A10-C1B062300005.jpeg


Sunday evening was spend bursting bubble :)
CF955858-E543-4740-A9D4-7D9F8C6BA182.jpeg



Bursting bubbles are the Best, cute picture, best one yet!!! :)
 

Young_Reefer

Community Member
View Badges
Joined
Jan 4, 2019
Messages
42
Reaction score
42
Location
Nashville
Rating - 0%
0   0   0
@Ranjib Turns our the Koralia Nano 12V is a 12V AC motor... I’ve got it running on a 12V AC transformer and plugged into an outlet. Alternating on and off every 10 seconds... guess we’ll see how long it lasts. I got the DROK motor controller to work too so I may buy a 12 V DC Pump and implement an ATO. Lots of head scratching this weekend haha
 
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 Turns our the Koralia Nano 12V is a 12V AC motor... I’ve got it running on a 12V AC transformer and plugged into an outlet. Alternating on and off every 10 seconds... guess we’ll see how long it lasts. I got the DROK motor controller to work too so I may buy a 12 V DC Pump and implement an ATO. Lots of head scratching this weekend haha
see.. i told ya :-/ . I did extensive research while working on the wave maker stuff. And my conclusion was we can do jebao or gyre style controls, but given most gyre comes with its own controller, i felt this is not probably the most important thing, and dropped wavemaker from 2.0 priority list.
But I'll get back to this, I have a BLDC unit and a few power heads... its just i want to wrap up the pH stuff first, its been pending for really long 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
Is this what you are looking for:

Code:
pi@reefpi:/sys/class/pwm/pwmchip0/pwm0 $ ls -l
total 0
-r--r--r-- 1 root root 4096 Apr 14 20:58 capture
-rw-r--r-- 1 root root 4096 Apr 14 20:58 duty_cycle
-rw-r--r-- 1 root root 4096 Apr 14 20:58 enable
-rw-r--r-- 1 root root 4096 Apr 12 17:06 period
-rw-r--r-- 1 root root 4096 Apr 14 20:58 polarity
drwxr-xr-x 2 root root    0 Apr 14 20:58 power
-rw-r--r-- 1 root root 4096 Apr 14 20:58 uevent

They are files. With mine both are files that contain "0"

The log error is
Code:
Apr 14 20:57:08 reefpi reef-pi[294]: 2019/04/14 20:57:08 ERROR: lighting-subsystem: Failed to set pwm value. Error: write /sys/class/pwm/pwmchip0/pwm0/duty_cycle: invalid argument

I thought when I had looked before that the kernel version was 4.9 something but since the reinstall I am getting 4.14.98-v7+

I also went through the cycle of creating, the jack, restarting, creating my light, etc.. to no avail.
Your issue is not related to raspbian or linux. This is something related to reef-pi or the way we are setting the frequency (hard to say , I am not able to reproduce this). can you manually set the frequency. Run this as root.
Code:
echo 10000000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle

and reload reef-pi.
Im really sorry for the trouble, I understand this can be frustrating :-/
 
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
Its been almost two weeks since I rolled out the prometheus integration. That has opened up lot more powerful graphing, charting possibilities with grafana and promql. I am using it for a host of usecases. Here is one, comparing two ds18b20 in my garage (not tank), two week pattern:
Screen Shot 2019-04-14 at 10.31.17 PM.png


They are fairly close, here is a more detailed snapshot
Screen Shot 2019-04-14 at 10.31.37 PM.png

The reading difference is almost 0.3 F . Not too bad for aquarium use cases. It will be interesting to see how calibration impacts this, in future.
 

trackerit

Community Member
View Badges
Joined
Apr 11, 2019
Messages
71
Reaction score
137
Rating - 0%
0   0   0
Your issue is not related to raspbian or linux. This is something related to reef-pi or the way we are setting the frequency (hard to say , I am not able to reproduce this). can you manually set the frequency. Run this as root.
Code:
echo 10000000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle

and reload reef-pi.
Im really sorry for the trouble, I understand this can be frustrating :-/
Hi again, i have tried to modify the file duty_cycle and when saving says: error writing duty_cycle: invalif argument
1555333965497.jpeg
 

trackerit

Community Member
View Badges
Joined
Apr 11, 2019
Messages
71
Reaction score
137
Rating - 0%
0   0   0
and in the console with root
root@raspberrypi:/sys/class/pwm/pwmchip0/pwm0# echo 10000000 > duty_cycle
bash: echo: write error: Invalid argument
 

ChrisNH

Active Member
View Badges
Joined
Mar 21, 2019
Messages
306
Reaction score
251
Rating - 0%
0   0   0
So the plot thickens..

When I try run the line provided above I got a permissions issue which really shouldn't happen with pi and sudo.

I opened it with pico using sudo and when I try to save I get:

[ Error writing /sys/class/pwm/pwmchip0/pwm0/duty_cycle: Invalid argument ]

I also tried stopping the reef-pi service and that did not help.

So something is preventing us from updating the file.

Im really sorry for the trouble, I understand this can be frustrating :-/

No worries at all, we appreciate the work that went into this and the ongoing support. It is the nature of Pi projects to have occasional problems!
 

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.4%
  • 100% dry rock + 100% live sand

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

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

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

    Votes: 11 7.6%
Free Phyto Promo
Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed
Shop Now Code: FREEPHYTO
Back
Top