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

eggi55

Community Member
View Badges
Joined
Sep 18, 2022
Messages
63
Reaction score
52
Location
germany
Rating - 0%
0   0   0
If anyone is interested, if I set up moon fahse and set up e.g. lunar (moon phase), I can switch from auto to manual but no longer to auto. I have to delete moonlight and set it up again means re-enter lunar. use 5.3
 

geekengineer

Active Member
View Badges
Joined
Feb 10, 2019
Messages
427
Reaction score
538
Location
South Aurora
Rating - 0%
0   0   0
If anyone is interested, if I set up moon fahse and set up e.g. lunar (moon phase), I can switch from auto to manual but no longer to auto. I have to delete moonlight and set it up again means re-enter lunar. use 5.3
So is that for reef-pi? like a macro?
 

DWKDiver

Community Member
View Badges
Joined
May 18, 2021
Messages
44
Reaction score
42
Location
Georgia
Rating - 0%
0   0   0
Generallg reload reef-pi should be enough , any configuration change requires reef-pi software reload . Sometime this (software reload ) does not work , hence we reboot pi. But that’s should not be common , if so, it’s a bug and I should look into it.
I deleted the db and reprogrammed. It works fine now.

But my pi3b+ seems to disconnect from wifi every few days. Trying to track that down.

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
I deleted the db and reprogrammed. It works fine now.

But my pi3b+ seems to disconnect from wifi every few days. Trying to track that down.

Thanks
Power ? Does it show under voltage warnings ?
 
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
If anyone is interested, if I set up moon fahse and set up e.g. lunar (moon phase), I can switch from auto to manual but no longer to auto. I have to delete moonlight and set it up again means re-enter lunar. use 5.3
this Is a bug ? If so, I should get it fixed before 6.0 release
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
985
Reaction score
1,325
Location
Edmonton, Canada
Rating - 0%
0   0   0
does anyone know if stepper driver board is needed to run stepper pump? Or can reef pi handle it. Trying to figure out what is needed and how to wire. I looked at the video posted on here but am still confused. I see the driver in reef pi but am unsure how it works. Appreciate any help or guidance. I have robo tank v3 if that makes any difference with the latest version of reef pi.

@Ranjib and @robsworld78,
Yeah you'll need to add a stepper motor driver, the drv8825 is what's been tested so far. This will require 5 GPIO's, on the main controller if you have a DB9 connector not being used you can get 5 GPIO's from it. Here's a link to a guide showing how to connect the stepper motor to the GPIO's, instead of connecting directly to the Pi header you go the DB9 as those are direct.


Here's a link showing the pinouts of the DB9's on the controller and a table at the bottom of the page showing which GPIO number they are.


In reef-pi you setup those GPIO's as an "outlet connector", if you ran my install script they'll already be set like that so you can go directly to the doser tab and add it.
 

eggi55

Community Member
View Badges
Joined
Sep 18, 2022
Messages
63
Reaction score
52
Location
germany
Rating - 0%
0   0   0
I tested in the lighting.
only in the lunar setting can you no longer switch to auto. I took a picture.

1665709573255.png
 

DWKDiver

Community Member
View Badges
Joined
May 18, 2021
Messages
44
Reaction score
42
Location
Georgia
Rating - 0%
0   0   0
Got it. Thank you so much for reporting this. I’ll get it fixed. Much appreciated
Ranjib

Thanks for all your efforts. Most of what I use is working just fine all the time. I can even graph all lights on same graph now INCLUDING LUNAR!

Not sure how you approach lunar on and off times but it seems that the moon on/off time pretty much stays at the time you put in lunar start/end time. At least it seems that way for me. I look at the moon rise time and it hasn't changed from the start time in over a week. So I change the full moon schedule every month.

I had a DIY controller I made and I modified some online code I found and created a function to calculate the actual luminance, rise and set times using Lat and Long of your location. It would be likely not possible without a lot of work on your part to incorporate this C++ code (I did find some Python code once though online if interested).

However, I learned a couple of things to easily incorporate for a simple moon rise/set:

1. The moon averages 12 hours up and 12 hours down throughout its 29.5 day cycle. It gets complicated if you
you try to change from 8 hours to 16 hours and then back to 8 hours over the 29.5 day cycle, but it is not too
difficult.
2. Moon rises 53 minute cycle later every day. So just changing the rise and set times emulates the moon more
accurately.
3. Luminance just goes from 0% to 100% then back to 0% every 29.5 days.

I broke it all down to minutes to even more accurately estimate the cycle times (the 29.5 and 53 are rounded).

If you want to more accurately emulate the moon rise and set times you may consider this. This helps spawning for some sea creatures.

Keep up the good work!

PS I'm watching the esp32 thread that seems very interesting to me.
 

geekengineer

Active Member
View Badges
Joined
Feb 10, 2019
Messages
427
Reaction score
538
Location
South Aurora
Rating - 0%
0   0   0
Is that the robo-tank controller? or something different? I guess I thought that was his but now that I think about it I wonder if he had different things.

EDIT: I found his selling site. Looks like he hasn't been on since Jan and said something about moving out of state and bringing down his tank.
 
Last edited:
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
Is that the robo-tank controller? or something different? I guess I thought that was his but now that I think about it I wonder if he had different things.
No Michael had a few different pcb boards, and not any full controller , like Robo tank.
 

weilerda

New Member
View Badges
Joined
Aug 17, 2021
Messages
4
Reaction score
2
Location
missouri
Rating - 0%
0   0   0
Yeah you'll need to add a stepper motor driver, the drv8825 is what's been tested so far. This will require 5 GPIO's, on the main controller if you have a DB9 connector not being used you can get 5 GPIO's from it. Here's a link to a guide showing how to connect the stepper motor to the GPIO's, instead of connecting directly to the Pi header you go the DB9 as those are direct.


Here's a link showing the pinouts of the DB9's on the controller and a table at the bottom of the page showing which GPIO number they are.


In reef-pi you setup those GPIO's as an "outlet connector", if you ran my install script they'll already be set like that so you can go directly to the doser tab and add it.
Thank you @robsworld78. You’ve pointed me in the right direction.
 

eggi55

Community Member
View Badges
Joined
Sep 18, 2022
Messages
63
Reaction score
52
Location
germany
Rating - 0%
0   0   0
I am a bit late to the discussion but i had the exact same issue. "Nous A1T "sockets from Amazon are cheaper than HS110, run on Tasmota, have power measurement and statistics etc, can have simple programming running on them as a backup if reefpi fails, and most importantly are barely bigger than a full sized grounded plug so you can put a bunch of them in a normal power bar next to each other. (Has to be A1T, not A1, and not from other brands that look exactly the same either, most of those can't run Tasmota anymore sadly, but the A1T do and already have Tasmota on them, not the chinese cloud software)

if money isn't as much of an object you can get Shelly S, which can also run on Tasmota and are higher quality, but also almost double the price.

There's a sad lack of individually controllable powerbars with power measurement and enough slots in Germany that aren't GHL or even more expensive. The most there is are ones with 3 or 4 sockets, and those are more expensive than getting the individual plugs.
so now I got the nuos a1t yesterday now would you please help me to set them up?
I would be very grateful.
and I have switched sockets from energie EG-PMS in USB and Lan but are not supported in reef-pi. just like the radio module, the receiver sockets can be coded. so theoretically 154 connect. I use them in the pond software that runs on the raspberry.
 

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,591
Reaction score
1,590
Rating - 0%
0   0   0
so now I got the nuos a1t yesterday now would you please help me to set them up?
I would be very grateful.
and I have switched sockets from energie EG-PMS in USB and Lan but are not supported in reef-pi. just like the radio module, the receiver sockets can be coded. so theoretically 154 connect. I use them in the pond software that runs on the raspberry.
I had EG-PM2 running in reefpi via usb, the filedriver, and a scheduled script that called "sispmctl", but the relays in mine stopped working after a while. I can try to dig up that script if you want. Had a delay between pulling the switch in reefpi and the outlet actually switching off though, because of polling.

for the A1T, plug them in, connect to them via wifi and set them up, then figure out what local ip address they have, if you know how to, give them a fixed IP address, and then in reef-pi, add a "tasmota-http" driver per socket with the corresponding ip address. Then outlets from those drivers in the connectors menu.

In the console menu of the plug itself you can do custom programming of the plugs behaviour in addition to the commands it gets from outside, look up the Commands section in the Tasmota Documentation if you want to do that.
 
Back
Top