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

Hi when you do dpkg -i there is no url: only the downloaded file name.reef-pi-2.0.0-beta-5-pi3.deb. try to do ls enter than you could see you have downloaded file or not.

(edit) Janos

Thanks. I fiddled a bit and I got it to install! Awesome!

Finally running on 2.0.0 beta 5
 
Last edited:
Harry

Thanks. I fiddled a bit and I got it to install! Awesome!

Finally running on 2.0.0 beta 5

BE528344-137D-420A-8559-BAFD33A9604E.jpeg
 
I’ve tried installing onto my a however after following the instructions and attempting to install the latest beta for the 0 I keep getting the message: unit reef-pi.service could not be found.
Any help appreciated.

Harry

I had a similar problem, and battled for a while. Finally I logged into the Pi and ran "ls -alh" which showed me that the file was downloaded because it was in the tree / list. I then ran "sudo dpkg -i xxxxxxx" where xxxxxxx was the filename I saw in the tree/list and it worked. I could then chgeck if the service was running using the command in the tutorial. The method outlined in the tutorial would not work for me to load 2.0, but worked perfectly when I installed 1.5.

No. I don't know why :-)
 
if you have ui running you can go to
https://github.com/reef-pi/reef-pi/releases with browser

click correct file ,download it ,then click on it and ui will ask to install.

Once downloaded you can use the file browser to browser to user/ download and click on the file to install...

I Find from command line better but its just a option.. ALSO In latest pi (not reef-pi) I had a dpkg issue.... I cant find the command right now but i had to repair it..

sudo dpkg --configure -a .. GOOGLE This is its wrong and should get you correct syntax....
 
Upgraded my doser build today, since it’s two channel ,decided to put the pi pwm in actual use.
Build: pi zero, perma proto board, l293d, one lm2596 (for 12v to 5v conversion), two 12v peristaltic pump, 12v 2amp power adapter

Housing : uxcell enclosure , nylon standoff’s
308AFC02-40AA-4DFE-A2FF-987EFF041B9E.jpeg



Circuit closeup : I can control the speed, duration and direction of both peristaltic pumps using a single l293d chip. Pi prvoided two pwm input and 4 gpio for direction control . Green wires are pi pwm in, blue are gpio , yellow are doser pwm our
B61FAAE7-919E-40FF-85EE-22A6410EFB6C.jpeg

Pi zero is hidden below the perma proto board

Dosers
7C861BD6-39D9-4567-8AF3-A50AA6B6A615.jpeg

Looks so much better than the old wooden enclosure. I’ll put it to use back again, and let you know how it went. Initial testing are all green. There was a bug in pi pwm, @philshel pointed our earlier, fixed that as well


So.....what did you do to correct the pwm issue? Is it something that will require another update?
 
So.....what did you do to correct the pwm issue? Is it something that will require another update?
The order of setting pwm frequency and then duty cycle during initialization was wrong . This will require a code change for permanent fix.
But this should unblock you , without any upgrade (it won’t be permanent)
Code:
sudo -i
echo 100000 > /sys/class/pwm/pwmchip0/pwm0/period

Do the same for pin 1 as well (gpio19)
 
I've had enough. since having to upgrade to 2. Beta...whatever I can't get things to work that were previously running fine, My relays chatter and twitch the lights don't ramp up or down any more and the temp control's are all but programmable I've got it working but just cant enter any thing into the boxes.
So I'm putting every thing back to timers and normal on off switches, I'm going to sell my pi's and touch screen and may be invest in some more live stock.

Thanks for all the help Ranjib but its all to much hassle when a simple £5 timer will do the same job.
I wish you all the best in you venture for a usable controller and look forward to seeing the finished article.

Joe
 
The order of setting pwm frequency and then duty cycle during initialization was wrong . This will require a code change for permanent fix.
But this should unblock you , without any upgrade (it won’t be permanent)
Code:
sudo -i
echo 100000 > /sys/class/pwm/pwmchip0/pwm0/period

Do the same for pin 1 as well (gpio19)

Thanks, I will give it a try.
 
I've had enough. since having to upgrade to 2. Beta...whatever I can't get things to work that were previously running fine, My relays chatter and twitch the lights don't ramp up or down any more and the temp control's are all but programmable I've got it working but just cant enter any thing into the boxes.
So I'm putting every thing back to timers and normal on off switches, I'm going to sell my pi's and touch screen and may be invest in some more live stock.

Thanks for all the help Ranjib but its all to much hassle when a simple £5 timer will do the same job.
I wish you all the best in you venture for a usable controller and look forward to seeing the finished article.

Joe
I understand . There’s been lot of bugs in beta. Appreciate your honest feedback
 
Ranjib I have downloaded the file onto the pi and when trying to install this it doesn’t move past waiting for authentication, any ideas?
 
Last edited:
The order of setting pwm frequency and then duty cycle during initialization was wrong . This will require a code change for permanent fix.
But this should unblock you , without any upgrade (it won’t be permanent)
Code:
sudo -i
echo 100000 > /sys/class/pwm/pwmchip0/pwm0/period

Do the same for pin 1 as well (gpio19)

Does not seem to work for me. I set the pwm "jacks" and lighting controls up, rebooted and then input
Code:
sudo -i
echo 100000 > /sys/class/pwm/pwmchip0/pwm0/period
echo 100000 > /sys/class/pwm/pwmchip0/pwm1/period
Here is the error I get,
Jul 09 11:04:34 reef-pi-test reef-pi[331]: 2018/07/09 11:04:34 lighting-subsystem: Setting PWM value: 36 at channel: 0
Jul 09 11:04:34 reef-pi-test reef-pi[331]: 2018/07/09 11:04:34 ERROR: lighting-subsystem: Failed to set pwm value. Error: write /sys/class/pwm/pwmchip0/pwm0/duty_cycle: invalid argument
Jul 09 11:04:34 reef-pi-test reef-pi[331]: 2018/07/09 11:04:34 lighting-subsystem: Setting PWM value: 33 at channel: 1
Jul 09 11:04:34 reef-pi-test reef-pi[331]: 2018/07/09 11:04:34 ERROR: lighting-subsystem: Failed to set pwm value. Error: write /sys/class/pwm/pwmchip0/pwm1/duty_cycle: invalid argument

Also 0 voltage at gpio18.
 
@Ranjib I have to ask for help yet again! I'm starting to feel disheartened here. Setting aside the issue I have been having with the rpi pwm which is on a pi3 that I am using as a testing platform for a complete controller. I also have a pi-zero that I use strictly to run my Kessils over my tank. Now that setup is not working. It is running 1.3 and has the PCA9685 board and the dimming circuit. Suddenly it is refusing to show the "lighting" tab. This happened a couple of weeks ago and I removed and replaced reef-pi and it came back. Now I have R&R several times and nothing is working, no errors, just no tab and no control of the lights. What if the breakout board died, would reef-pi refuse to display the controls under that failure?

Edit: I just got the first error in the logs.

Jul 09 15:28:30 Reef-Pi reef-pi[216]: 2018/07/09 15:28:30 ERROR: Failed to initi alize lighting subsystem
Jul 09 15:28:30 Reef-Pi reef-pi[216]: 2018/07/09 15:28:30 ERROR: Failed to load lighting sub-system. Error: remote I/O error
 
Last edited:
I've had enough. since having to upgrade to 2. Beta...whatever I can't get things to work that were previously running fine, My relays chatter and twitch the lights don't ramp up or down any more and the temp control's are all but programmable I've got it working but just cant enter any thing into the boxes.
So I'm putting every thing back to timers and normal on off switches, I'm going to sell my pi's and touch screen and may be invest in some more live stock.

Thanks for all the help Ranjib but its all to much hassle when a simple £5 timer will do the same job.
I wish you all the best in you venture for a usable controller and look forward to seeing the finished article.

Joe
The thing is 2. x is beta software. a lot of changes were made in the code and being worked out.. You can go back to 1.5 (I think was the latest actual release ) and wait out until 2x final release are at least to a pre RELEASE State...
 

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 14 58.3%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 10 41.7%
Back
Top
Home
Post thread…
Market
What's new