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

sector9

Active Member
View Badges
Joined
Jun 26, 2017
Messages
129
Reaction score
189
Rating - 0%
0   0   0
I finally got my computer to build reefpi from the master so I could test out the pH circuit. So it looks like 3.0 requires a new database right? I upgraded on top of my reefpi 2.3 and it isn't working right as all the connectors are messed up which I presume is from my database?

"Something went wrong.

Details
TypeError: e.drivers.filter(...)[0] is undefined
in t in div in div in div in t in Connect(t) in div in div in t in div in t in t in div in div in div in div in t in Connect(t) in t in o"
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
The light I have if you don’t give it a signal it is at full power. So when the Raspberry Pi is booting the light is on full blast. I’m worried that if the Raspberry Pi ever crashed that the light would be on. Is there a way to circumvent this?
You can usually fix this problem with a pull down resistor (for each channel). That would be some high value resistor between your signal pin and ground. That way, if the signal is left floating while reef-pi is booting or otherwise disconnected, the light would see ground as the signal and stay off. Once reef-pi starts sending a signal, it would be much stronger than the pull down resistor.
 

sector9

Active Member
View Badges
Joined
Jun 26, 2017
Messages
129
Reaction score
189
Rating - 0%
0   0   0
I finally got my computer to build reefpi from the master so I could test out the pH circuit. So it looks like 3.0 requires a new database right? I upgraded on top of my reefpi 2.3 and it isn't working right as all the connectors are messed up which I presume is from my database?

"Something went wrong.

Details
TypeError: e.drivers.filter(...)[0] is undefined
in t in div in div in div in t in Connect(t) in div in div in t in div in t in t in div in div in div in div in t in Connect(t) in t in o"
Never mind, answered my own question by finding an older post by Ranjib confirming that you have to start with a new database for 3.0
 
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 just want to sanity check my thinking that I can add the Adafruit guide PH probe circuit to the power/temp/ato circuits on the same pi & hat since it uses sda and scl pins..?

I finally finished and tested the power circuit up through the DB9. I have to do the part I am not looking forward to (cutting the box) then on to the other circuits.
yes. Be careful with your power requirement, and remember you may need extra passives when combining these circuits
 
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
1 = 10 kHz
50 = 200 Hz
100 = 100 Hz
1000 = 10 Hz
10000 = 1Hz
Thank you for reporting this. The pi pwm thing got some bugs due to recent changes, I'll get back to this soon after cutting a beta release for ph board testing
 
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
The above frequencies I got with the rpi hardware pwm output. I had trouble composing a reply earlier but the frequency setting goes in the wrong direction.

@Ranjib I installed drive and it works with my google account now but I'm still getting the drive is not in path error. Could you show me how to fix that? It's odd because I can run drive from other directories but reef-pi can't it seems. Thank you.
what user you have configured as? reef-pi runs as root,
 
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 Does the go path have to be "\home\pi\gopath"? I have it set to "\home\pi\go" but reef-pi can't find drive for some reason even though I can run it anywhere else it seems.

I tried running the command that it says it was having an error:

drive push -quiet -destination reef-pi-images -files /var/lib/reef-pi/images/08-32-19-Thu-May-23-2019.png

no drive context found; run `drive init` or go into one of the directories (sub directories) that you performed `drive init`

I did "drive about" and it shows my gdrive information but it still gives me that error.

Update:
It seems you need the -m option then it will work, like "pi@reef-pi:~/gdrive $ drive push -m /var/lib/reef-pi/images/08-32-19-Thu-May-23-2019.png".

I also tried drive init in /var/lib/reef-pi/images but it says permission denied so I tried sudo drive init but then it says sudo: drive: command not found.

Update 2:
So the root didn't have the path for go. Fixed that by running "sudo ~/go/bin/drive init" in /var/lib/reef-pi/images. Then I had to change the folder permissions by running "sudo chown -R $USER images" in /var/lib/reef-pi.
OK, don't perform the second part of update 2 if anyone else is having this problem. You will still most likely need to run "drive init" in /var/lib/reef-pi/images but you do not need to change the permissions.

The way to fix this is when you declare the go path to not set it only for your profile. So just run something like this: "echo 'export GOPATH=$HOME/go'" and echo 'PATH="$HOME/go/bin:$PATH"'.

Well, after all that and a reboot I still get the same error that it can't find the executable.

sudo echo $PATH
/home/pi/go/bin:/home/pi/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/local/go/bin

You got this running? I am curious how you think about this feature. Its not very popular use case, I had built it to see my tank images during vacation, when Im out of home. Looking at how complex this for new users, I am thinking if its worth keeping this in 3.0. Users can setup the drive based upload as separate cron job, outside reef-pi,
 
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
new build,
WhatsApp Image 2019-05-22 at 3.37.45 PM.jpeg

WhatsApp Image 2019-05-22 at 3.37.25 PM.jpeg
WhatsApp Image 2019-05-22 at 3.37.35 PM.jpeg


I'm waiting the driver for the ph on my pico board, i buy the pihat of michael lane, and i have skipped many welds. its a very work!
Looking good :-)
 
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
It's not pretty yet, but my Temp probes and power controller are tested and 100% functional! Thanks again for the awesomeness! Looking forward to the next steps in the project. - Putting it into a pretty case is next on my list.. then we'll see where things go.

The first pic, 2 DB9's run to the temp probes btw. 2 up top, and 2 underneath - Just figured DB9's for everything as a standard connector as they're cheap.

reef-pi1.jpg
reef-pi2.jpg
reef-pi3.jpg
W00t :-) . Keep us posted
 
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
The light I have if you don’t give it a signal it is at full power. So when the Raspberry Pi is booting the light is on full blast. I’m worried that if the Raspberry Pi ever crashed that the light would be on. Is there a way to circumvent this?
I think you can control the power of such lights with a normally open relay (like the one configured in adj powerstrip)
 

Schreiber

Leviathan
View Badges
Joined
Jun 28, 2016
Messages
475
Reaction score
594
Location
Knoxville
Rating - 0%
0   0   0
So, I've been moving along & ran into an...interesting issue. I've got 12 relays in my setup & they all work just fine. I can turn them on or off with no problem. But when I have 10 on at once, a barely perceptible high-pitch whine comes out of the 5V buck converter. 11 on results in a loud whine. 12 on results in a sound I can only describe as "distressed", where it jumps between the high pitched whine & a low pitch one quickly.

These converters are rated for 3a & the relays should only pull 20 ma max. The RPi Zero takes ~250 ma max. The only other thing on the 5V converter is the PWM driver, which doesn't have anything hooked up to it yet. But either way, I'm sure it couldn't suck up the remaining ~2a the converter is rated for.

I think I'll just re-wire a couple of the relays to be normally open, so to have all the equipment on or off, I'll never have more than 10 relays triggered. But that's more of a work-around than a real solution. Just wondering if anyone has experienced anything similar.

~`~

On a different note, so everything I post here isn't just issues, here's the state of my desk right now. I'm getting close to being complete & having my desk back!

Desk.jpg
 

Schreiber

Leviathan
View Badges
Joined
Jun 28, 2016
Messages
475
Reaction score
594
Location
Knoxville
Rating - 0%
0   0   0
Its the buck convertor quality...some use better matched passives than others...

Is there a known supplies that has better quality converters? In the mean time, would it hurt anything to run these, or will it just be annoying until I get new ones?
 
Last edited:

ChrisNH

Active Member
View Badges
Joined
Mar 21, 2019
Messages
306
Reaction score
251
Rating - 0%
0   0   0
yes. Be careful with your power requirement, and remember you may need extra passives when combining these circuits
I am using a 12v 2amp ps. I will consider powering the pi separately if I run into trouble. I probably should add up the current requirements of what I plan to add. I am not sure what I would do as far as adding passives (I assume for filtering?) but will cross that bridge later if I need to.
 
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 there a known supplies that has better quality converters? In the mean time, would it hurt anything to run these, or will it just be annoying until I get new ones?
Do you have to power all of your electronics from a single lm2596 board? I would recommend using multiple lm2596 units powering different parts of the build
 
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
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 using a 12v 2amp ps. I will consider powering the pi separately if I run into trouble. I probably should add up the current requirements of what I plan to add. I am not sure what I would do as far as adding passives (I assume for filtering?) but will cross that bridge later if I need to.
I have always had issues with pwm annd all in one circuits. My learning was I need to add capacitors to smooth out my power signals at individual junction. This may be due to the fact that my light/pwm controllers involve 10v signal in addition to regular 12 and 5v
 
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 all,

Can anyone help with how the dinural setting works - how long between each % does it ramp up? e.g. I have set Lights to come on at 10:30am to 21:30pm - With a min of 0 and a max of 80 - How long does it take to get to 80 and what are the increments.

Sorry if its already been published.
Diurnal cycle works by exponential ramp up and ramp down. It employs a mathematical formula that is codified here. Expect your lights to reach peak intensity (80% in your case) within the first couple of ours,, but not exactly linearly little smooth ..more like elongated "S", the same applies for ramp down. The intensity stays at peak for most part (3/4th) of the entire period. Here is an example of the intensity curve. You should be able to observe this in adafruit io or promethus dashboard, if you setup.
Screen Shot 2019-05-25 at 6.46.22 PM.png
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Is there a known supplies that has better quality converters? In the mean time, would it hurt anything to run these, or will it just be annoying until I get new ones?

I have purchased some buck converters based on a XL4015 chipset for another project, they are rated for 5amps and look a little better than the lm2596. They probably will not support 5amp but should be better than the lm2596. I posted pictures of them earlier in the thread, if I can find my posting with the picture I will link it so you can see the difference. :)

Found the link - https://www.reef2reef.com/threads/r...-on-raspberry-pi.289256/page-548#post-6021768
 

Schreiber

Leviathan
View Badges
Joined
Jun 28, 2016
Messages
475
Reaction score
594
Location
Knoxville
Rating - 0%
0   0   0
Do you have to power all of your electronics from a single lm2596 board? I would recommend using multiple lm2596 units powering different parts of the build

I guess I don't necessarily. Just tested it out & I actually have enough room in my enclosure to fit 3 more if needed. Tomorrow, I'll install a second in there solely to power the relays & go from there!
 

TOP 10 Trending Threads

Back
Top