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

Mandelstam

Well-Known Member
View Badges
Joined
Oct 29, 2017
Messages
688
Reaction score
1,066
Location
Malmö, Sweden
Rating - 0%
0   0   0
hmm.. we already have the ability to specify min and max threshold per channel. I'll add the % changes per day feature in my todo list, it will be released as acclamation factor, where use will get to choose the number of days, and reef-pi will calculate the delta and increase it accordingly over the specified number of days.

Oooh, then excellent work lol! I was just looking through the website and must have missed that part. :rolleyes: My mistake.

You should probably have a little prepared script for support questions but instead of "have you tried switching off and on your computer, sir/mam?" you should start with "Have you read the full documentation on Reef-Pi's website, sir/mam?" :D
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Oooh, then excellent work lol! I was just looking through the website and must have missed that part. :rolleyes: My mistake.

You should probably have a little prepared script for support questions but instead of "have you tried switching off and on your computer, sir/mam?" you should start with "Have you read the full documentation on Reef-Pi's website, sir/mam?" :D
:-) The documentation is still not very good . I like interacting with fellow reefers, particularly how they are using/intend to use the controller etc. Also, several other folks here lend a hand in support/answering question. Kudos to the community
 

mhp1972

Community Member
View Badges
Joined
Dec 18, 2017
Messages
27
Reaction score
33
Rating - 0%
0   0   0
Hi i have a question ragerding lightning controller setup up. I have everything running and able to control my light manual. But i will not control in 24 hour light cycle automatic. I get the picture where i can set brightness at different time of day. I'am using only 1 channel for one 12v light strip controlled by mosfet and PCA9685 board
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi i have a question ragerding lightning controller setup up. I have everything running and able to control my light manual. But i will not control in 24 hour light cycle automatic. I get the picture where i can set brightness at different time of day. I'am using only 1 channel for one 12v light strip controlled by mosfet and PCA9685 board
Can you elaborate a bit, when you say it will not control 24 hour light cycle,
  • Have you set time in your raspberry pi? You can check the current time in the dashboard (at bottom). Raspberry Pi defaults to UTC. Setting timezone is described in the install guide
  • Can you share a screen shot of the lighting tab
  • Can you check logs (sudo journalctl -fu reef-pi.service), once automatic light cycle is enabled? and share it here
 

mhp1972

Community Member
View Badges
Joined
Dec 18, 2017
Messages
27
Reaction score
33
Rating - 0%
0   0   0
IMG_20171228_201721.jpg
 

mhp1972

Community Member
View Badges
Joined
Dec 18, 2017
Messages
27
Reaction score
33
Rating - 0%
0   0   0
Here is my log file. I think this line is looking suspicios Telemetry disabled. Skipping emitting 29 on j1-channel-1

ec 28 20:25:02 raspberrypi reef-pi[343]: 2017/12/28 20:25:02 health check: Used memory: 35.51 Load5: 0.18
dec 28 20:25:03 raspberrypi reef-pi[343]: 2017/12/28 20:25:03 Temperature sensor value: 72.27
dec 28 20:25:03 raspberrypi reef-pi[343]: 2017/12/28 20:25:03 Telemetry disabled. Skipping emitting 72.27 on temperature
dec 28 20:25:03 raspberrypi reef-pi[343]: 2017/12/28 20:25:03 Current temperature is below minimum threshold. Executing warm up routine
dec 28 20:25:03 raspberrypi reef-pi[343]: 2017/12/28 20:25:03 Temperature subsystem: cooler is not set. Skipping action: false
dec 28 20:25:03 raspberrypi reef-pi[343]: 2017/12/28 20:25:03 Telemetry disabled. Skipping emitting 1 on heater
dec 28 20:25:32 raspberrypi reef-pi[343]: 2017/12/28 20:25:32 lighting-subsystem: Setting PWM value: 71 at channel: 0
dec 28 20:25:32 raspberrypi reef-pi[343]: 2017/12/28 20:25:32 Telemetry disabled. Skipping emitting 29 on j1-channel-1
dec 28 20:26:02 raspberrypi reef-pi[343]: 2017/12/28 20:26:02 Reading temperature from device: /sys/bus/w1/devices/28-031682ab6dff/w1_slave
dec 28 20:26:02 raspberrypi reef-pi[343]: 2017/12/28 20:26:02 Telemetry disabled. Skipping emitting 0.14 on system-load5
dec 28 20:26:02 raspberrypi reef-pi[343]: 2017/12/28 20:26:02 lighting-subsystem: Setting PWM value: 70 at channel: 0
dec 28 20:26:02 raspberrypi reef-pi[343]: 2017/12/28 20:26:02 Telemetry disabled. Skipping emitting 35.83 on system-mem-used
dec 28 20:26:02 raspberrypi reef-pi[343]: 2017/12/28 20:26:02 health check: Used memory: 35.83 Load5: 0.14
dec 28 20:26:02 raspberrypi reef-pi[343]: 2017/12/28 20:26:02 Telemetry disabled. Skipping emitting 30 on j1-channel-1
dec 28 20:26:03 raspberrypi reef-pi[343]: 2017/12/28 20:26:03 Temperature sensor value: 72.27
dec 28 20:26:03 raspberrypi reef-pi[343]: 2017/12/28 20:26:03 Telemetry disabled. Skipping emitting 72.27 on temperature
dec 28 20:26:03 raspberrypi reef-pi[343]: 2017/12/28 20:26:03 Current temperature is below minimum threshold. Executing warm up routine
dec 28 20:26:03 raspberrypi reef-pi[343]: 2017/12/28 20:26:03 Temperature subsystem: cooler is not set. Skipping action: false
dec 28 20:26:03 raspberrypi reef-pi[343]: 2017/12/28 20:26:03 Telemetry disabled. Skipping emitting 1 on heater
dec 28 20:26:32 raspberrypi reef-pi[343]: 2017/12/28 20:26:32 lighting-subsystem: Setting PWM value: 70 at channel: 0
dec 28 20:26:32 raspberrypi reef-pi[343]: 2017/12/28 20:26:32 Telemetry disabled. Skipping emitting 30 on j1-channel-1
dec 28 20:27:02 raspberrypi reef-pi[343]: 2017/12/28 20:27:02 Reading temperature from device: /sys/bus/w1/devices/28-031682ab6dff/w1_slave
dec 28 20:27:02 raspberrypi reef-pi[343]: 2017/12/28 20:27:02 lighting-subsystem: Setting PWM value: 70 at channel: 0
dec 28 20:27:02 raspberrypi reef-pi[343]: 2017/12/28 20:27:02 Telemetry disabled. Skipping emitting 0.13 on system-load5
dec 28 20:27:02 raspberrypi reef-pi[343]: 2017/12/28 20:27:02 Telemetry disabled. Skipping emitting 35.62 on system-mem-used
dec 28 20:27:02 raspberrypi reef-pi[343]: 2017/12/28 20:27:02 health check: Used memory: 35.62 Load5: 0.13
dec 28 20:27:02 raspberrypi reef-pi[343]: 2017/12/28 20:27:02 Telemetry disabled. Skipping emitting 30 on j1-channel-1
dec 28 20:27:03 raspberrypi reef-pi[343]: 2017/12/28 20:27:03 Temperature sensor value: 72.27
dec 28 20:27:03 raspberrypi reef-pi[343]: 2017/12/28 20:27:03 Telemetry disabled. Skipping emitting 72.27 on temperature
dec 28 20:27:03 raspberrypi reef-pi[343]: 2017/12/28 20:27:03 Current temperature is below minimum threshold. Executing warm up routine
dec 28 20:27:03 raspberrypi reef-pi[343]: 2017/12/28 20:27:03 Temperature subsystem: cooler is not set. Skipping action: false
dec 28 20:27:03 raspberrypi reef-pi[343]: 2017/12/28 20:27:03 Telemetry disabled. Skipping emitting 1 on heater
dec 28 20:27:32 raspberrypi reef-pi[343]: 2017/12/28 20:27:32 lighting-subsystem: Setting PWM value: 70 at channel: 0
dec 28 20:27:32 raspberrypi reef-pi[343]: 2017/12/28 20:27:32 Telemetry disabled. Skipping emitting 30 on j1-ch
 

mhp1972

Community Member
View Badges
Joined
Dec 18, 2017
Messages
27
Reaction score
33
Rating - 0%
0   0   0
Can you elaborate a bit, when you say it will not control 24 hour light cycle,
  • Have you set time in your raspberry pi? You can check the current time in the dashboard (at bottom). Raspberry Pi defaults to UTC. Setting timezone is described in the install guide
  • Can you share a screen shot of the lighting tab
  • Can you check logs (sudo journalctl -fu reef-pi.service), once automatic light cycle is enabled? and share it here
Hi Ranjib i have postet some pictures so you can see what is going on
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi Ranjib i have postet some pictures so you can see what is going on
Electronics and software looks all good. Telemetry is disabled hence the skipping log, its fine. Your time is set at 8:30 PM , is that correct ?
None the less, reef-pi is setting the correct PWM value, can you test the connection with multimeter ? you should see a around 4 volts when the log saya setting pwm value to 70 (since its reversed logic, this will give 30% of the power output, so, 30% of 12V .. should be around 4v)
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Electronics and software looks all good. Telemetry is disabled hence the skipping log, its fine. Your time is set at 8:30 PM , is that correct ?
None the less, reef-pi is setting the correct PWM value, can you test the connection with multimeter ? you should see a around 4 volts when the log saya setting pwm value to 70 (since its reversed logic, this will give 30% of the power output, so, 30% of 12V .. should be around 4v)
You also mentioned manual dimming is working. Do you mean dimming from the slider in reef-pi ?
Also can you share some details on your LED wiring? Like whats the driver? Are you hooking up the reef-pi output to led straight? If so, the normal npn transistor might not fit the bill, and you may need a tip120 or power mosfet.
 

mhp1972

Community Member
View Badges
Joined
Dec 18, 2017
Messages
27
Reaction score
33
Rating - 0%
0   0   0
Electronics and software looks all good. Telemetry is disabled hence the skipping log, its fine. Your time is set at 8:30 PM , is that correct ?
None the less, reef-pi is setting the correct PWM value, can you test the connection with multimeter ? you should see a around 4 volts when the log saya setting pwm value to 70 (since its reversed logic, this will give 30% of the power output, so, 30% of 12V .. should be around 4v)
My time is 20:30 pm but i have 24 hour mode so it is 20:30 can this cause the problem. Another funny thing is, when i'am on 100% reverse i read aronud 4,6 volt (light should be of) and when i'am on 0% full light due to reverse i have near 10 volt. So my volt do not drop all the way to 0 and also not going to max 12v
 

mhp1972

Community Member
View Badges
Joined
Dec 18, 2017
Messages
27
Reaction score
33
Rating - 0%
0   0   0
You also mentioned manual dimming is working. Do you mean dimming from the slider in reef-pi ?
Also can you share some details on your LED wiring? Like whats the driver? Are you hooking up the reef-pi output to led straight? If so, the normal npn transistor might not fit the bill, and you may need a tip120 or power mosfet.
Yes slider in reef-pi is working just fine going from no light to full light. i use a PCA9685 board hook up to a mosfet IRLB 8743. PWM signal from PCA9685 i connected to Gate on mosfet in between is a 1 Kohm resistor. PCA9685 is connected to Raspberry pi via SCL1, SDA1, GND and 5 vcc hope that gives some understanding.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
My time is 20:30 pm but i have 24 hour mode so it is 20:30 can this cause the problem. Another funny thing is, when i'am on 100% reverse i read aronud 4,6 volt (light should be of) and when i'am on 0% full light due to reverse i have near 10 volt. So my volt do not drop all the way to 0 and also not going to max 12v
the 0 and 100% effect is expected. When you say 0% pwm , it means no gating at all. In the 1.1 release I have added three additional UI fields to specify min, max and start. You should set start to 1. That will tell reef-pi to never set the pwm value to 0 , instead set 1 as the lowest value , which in turn will give you close to 0 volt instead of 10 volt at 0%.
I dont know why you are getting 10 volt instead of 12 v. Do you have multimeter? I would start measuring voltage at each junction. My 12v DC power supply gives me anywhere between 10 to 12.2 volt output. This is why I am using the lm2596 regulators for my newer builds
 

Cornerboy

Active Member
View Badges
Joined
Dec 21, 2017
Messages
156
Reaction score
72
Rating - 0%
0   0   0
This is the ongoing development thread of reef-pi, an open-source, affordable, modular DIY reef-tank controller based on Raspberry Pi. If you are trying to build a controller based on reef-pi, please check out the build guides at http://reef-pi.com. You can use this thread to seek help with your build or to stay updated with the latest development.

reef-pi provides following functionalities:
  • Equipment control or power bars



  • Digital timers to switch on/off equipment at periodic intervals.



  • LED lighting control (24 hour cycle)



  • Auto Top Off (based on photoelectric sensor or float switch)



  • Temperature monitoring and control (switch on/off heater/cooler)



  • And several other features like camera controls (periodic image capture and upload on google drive), telemetry (dashboard and alerting based on sensor values using adafruit.io) etc.
reef-pi source code and hardware schematics can be found on github.

--------------------------- Original thread start ---------------------
Hello friends,
I am starting a master thread for a DIY reef tank controller that is based on all opensource software and hardware. I had started with this project with following goals:
- Build an opensource software and hardware based reeftank controller that anyone can use and hack
- Keep the controller well tested against a set of standard equipment I use, while make it possible for other equipment to be used
- Maintain my own tank build threads and their evolution, backed by this controller.
- Learn electronics and reef keeping along the way (I am biologist by education & software engineer by occupation)

Following are the details of what I have developed & tested till now:
Controller software:
- The main controller software is called reef-pi. It is written in go, its fast and performant. It used embd for hardware communication. It also runs a little web server which provides the UI for the controller. UI is written in React , and can be accessed from anything that has web browser. As of now, the reef-pi supports following things:
- AC 110/220 V socket on/off (uses optocoupled relays underneath). This is used to remotely switch on/off return pump, LED bulb, heater etc.
- 0-20 Volt DC PWM. This is used to control things like dimmable LEDs, DC pumps. I use it to control my Kessil A80, A360. As well as a 5V DC pump (i use it as wave maker in one of my pico with SPS). PWM is done using PCA9685 breakout board from adafruit. This board supports 16 channels. I am using only 5 at max, as of now.
- Analog sensor support using MCP3008 analog to digital converter. This supports 8 channels. i.e. I can use up to 8 sensors/probes. As of now, I have only tested temperature sensor with it.
Other than the following basic hardware/equipment support, the controller software provides following additional features:
- Setting up daily/weekly/monthly scheduled jobs. Like turning on/off certain equipment. I use this feature to run my AC20 HOB filter nightly.
- Setting up dusk-to-dawn like lighting using PWM. The UI gives 12 vertical slider based 0-24 hours (each slider representing 2 hours gaps). I combine two of these two control the kessil LEDs.
- Authentication using Google OAuth. Since the whole controller runs on raspberry pi and provides an web frontend, security of one of my concern. To mitigate this, I have added google authentication support, which when configured will allow only certain users to log in (email specified in the configuration value).

This is the summary of the core controller software and what features it has as of now. I am constantly writing/improving things around it. As of now, I have two reef tank powered by this. I 'll have seperate threads on the individual builds that will include the housing and ancillary hardware in nano-reef.com, as my tank build threads are there, but I'll share all the controller specific common bits here, including UI screen shots, and tank pics :)

20161115_081550.jpg
Heroic!! Well done!!
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Yes slider in reef-pi is working just fine going from no light to full light. i use a PCA9685 board hook up to a mosfet IRLB 8743. PWM signal from PCA9685 i connected to Gate on mosfet in between is a 1 Kohm resistor. PCA9685 is connected to Raspberry pi via SCL1, SDA1, GND and 5 vcc hope that gives some understanding.
Wiring sounds alright then. Let me cross check if the mosfet has a power drop ..
Meanwhile, if possible can you upgrade to 1.1 and set the start value to 1 for your lighting channel.

None of this explains why your light is not working on automatic cycle though. As per the log, you should get around 4 volt (30 in pwm values) at 8:30 pm. Did you test the output with multimeter? The light works as expected when manually set to 30 ?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Heroic!! Well done!!
Thank you. reef-pi came a long way since then :-) . I'll update the front page with 1.0 release screen shots. We have better UI and documentations now :-)
 

mhp1972

Community Member
View Badges
Joined
Dec 18, 2017
Messages
27
Reaction score
33
Rating - 0%
0   0   0
Wiring sounds alright then. Let me cross check if the mosfet has a power drop ..
Meanwhile, if possible can you upgrade to 1.1 and set the start value to 1 for your lighting channel.

None of this explains why your light is not working on automatic cycle though. As per the log, you should get around 4 volt (30 in pwm values) at 8:30 pm. Did you test the output with multimeter? The light works as expected when manually set to 30 ?
I will update to new version for sure. Now i will test voltage and test again when a new cycle i coming at 10 pm just have to wait :) and see if there is any difference in volt readings
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
You dont have to wait. The way reef-pi's lighting cycle logic works, it will linearly interpolate the two hour interval values and increment them accordingly every minute. So, you should be able to see those incremental changes every minute. You check the actual pwm value its setting in log.

Looking at your light cycle settings, 8 pm its 17 and 10 pm it 77, so reef-pi will increment (77-17 )/ 120 = 0.5 volt every minute.
 

DO YOU THINK TECHNOLOGICAL ADVANCEMENTS ARE MORE HELPFUL OR HURTFUL TO REEFING?

  • More helpful.

    Votes: 59 42.1%
  • More hurtful.

    Votes: 5 3.6%
  • I think it depends mostly on the technology.

    Votes: 53 37.9%
  • I think it dependsmostly on the reefer behind the technology.

    Votes: 42 30.0%
Back
Top
Home
Post thread…
Market
What's new