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

hhaase

Active Member
View Badges
Joined
Nov 11, 2019
Messages
415
Reaction score
355
Rating - 0%
0   0   0
I finally got a chance to get mine booted up and do some initial testing. The good news is a basic hat board can easily be run off an 7805 regulator, no need for the switcher. The DS18B20 temp sensors I have are also running ok off the 5v bus, the datasheet said they are tolerant of 3v to 5.5v input. Next step for me is to grab a water photo-sensor and check that circuit is running ok as well. Either way I'm going to start doing a revised version shortly of my basic hat board, since I have to order some boards for my business next week, and it'd be nice to combine shipping.

Ranjib and I had a brief PM discussion about those photo-sensors. It seems the consensus, which I agree with, is float switches are better for control purposes. But I believe the photo-sensors are much better suited as flood/leak detectors, so I'd like to keep one on my own board layout.

I also have to figure out how to access via my phone, right now I have it plugged into a small computer monitor I have, but I need that monitor for other uses so I can only borrow it temporarily. Oh, and I just followed the github instructions, so I installed ReefPi 2.0, I'll need to get 3.0 on there soon too.

Either way a fun day for me.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
@Ranjib
Still getting the daily reboot at midnight...have a more meaningful log now

Dec 03 23:58:34 75gallon reef-pi[6735]: 2019/12/03 23:58:34 Reading temperature from device: 28-00000ab39d96
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: RearLight Channel: Blue Value: 98.95719270325979
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 98.95719270325979 at channel: 7
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4052
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Reading temperature from device: 28-00000ab3a23f
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: RearLight Channel: White Value: 0
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 0 at channel: 6
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4096
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: FrontLight Channel: White Value: 0
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 0 at channel: 3
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4096
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: FrontLight Channel: Blue Value: 98.95779903116652
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 98.95779903116652 at channel: 4
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4052
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Reading temperature from device: 28-00000a9a1050
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 temperature sub-system: sensor RightTemp value: 77.79
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 temperature sub-system: sensor AmbientTemp value: 69.13
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Current value of 'RightTemp' is below minimum threshold. Executing up routine
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Euipment: 4 On: true
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 ERROR: Failed to submit data to adafruit.io. User: Bigtrout Feed: righttemp-down Error: {"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 temperature sub-system: sensor LeftTemp value: 77.68
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 health check: Used memory: 7.66 Load5: 0.14
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 Current value of 'LeftTemp' is below minimum threshold. Executing up routine
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 Euipment: 3 On: true
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 ERROR: Failed to submit data to adafruit.io. User: Bigtrout Feed: lefttemp-down Error: {"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs"
Dec 03 23:59:05 75gallon reef-pi[6735]: panic: runtime error: index out of range [12] with length 12
Dec 03 23:59:05 75gallon reef-pi[6735]: goroutine 43 [running]:
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/pwm_profile.(*interval).Get(0x26ebd40, 0x4006d459, 0xbf71ed26, 0x784d8ecf, 0x4e80, 0xa20568, 0xa20568, 0x2709bd0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/pwm_profile/interval.go:27 +0x154
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Channel).ValueAt(0x2455180, 0x4006d459, 0xbf71ed26, 0x784d8ecf, 0x4e80, 0xa20568, 0x4058bd4c, 0x0, 0x0, 0x40590000)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/channel.go:57 +0x58
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).syncLight(0x244b4d0, 0x28e2a60)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/light.go:134 +0x1f8
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).syncLights(0x244b4d0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:102 +0x58
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).StartCycle(0x244b4d0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:59 +0x4c
Dec 03 23:59:05 75gallon reef-pi[6735]: created by github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).Start
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:48 +0x2c
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Unit entered failed state.
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Failed with result 'exit-code'.
Dec 04 00:00:35 75gallon systemd[1]: reef-pi.service: Service hold-off time over, scheduling restart.
Dec 04 00:00:35 75gallon systemd[1]: fake-hwclock.service: Cannot add dependency job, ignoring: Unit fake-hwclock.service is masked.
Dec 04 00:00:35 75gallon systemd[1]: Stopped raspberry pi based reef tank controller.
Dec 04 00:00:35 75gallon systemd[1]: Started raspberry pi based reef tank controller.
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: rpi Name: Raspberry Pi
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: 1 Name: pHboard
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: 3 Name: PWM
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: system
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 INFO: equipment subsystem: Finished syncing all equipment
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: equipment
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: ato
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 Successfully started subsystem: lightings
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 lighting subsystem: Setting Light: RearLight Channel: White Value: 0
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 lighting-subsystem: Setting PWM value: 0 at channel: 6
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 onTime 0 offTime 4096
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting subsystem: Setting Light: RearLight Channel: Blue Value: 98.51961305183093
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting-subsystem: Setting PWM value: 98.51961305183093 at channel: 7
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 onTime 0 offTime 4034
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting subsystem: Setting Light: FrontLight Channel: White Value: 0

Looks to be the lighting module causing the crash somehow
 
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
@Ranjib
Still getting the daily reboot at midnight...have a more meaningful log now

Dec 03 23:58:34 75gallon reef-pi[6735]: 2019/12/03 23:58:34 Reading temperature from device: 28-00000ab39d96
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: RearLight Channel: Blue Value: 98.95719270325979
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 98.95719270325979 at channel: 7
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4052
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Reading temperature from device: 28-00000ab3a23f
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: RearLight Channel: White Value: 0
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 0 at channel: 6
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4096
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: FrontLight Channel: White Value: 0
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 0 at channel: 3
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4096
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: FrontLight Channel: Blue Value: 98.95779903116652
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 98.95779903116652 at channel: 4
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4052
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Reading temperature from device: 28-00000a9a1050
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 temperature sub-system: sensor RightTemp value: 77.79
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 temperature sub-system: sensor AmbientTemp value: 69.13
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Current value of 'RightTemp' is below minimum threshold. Executing up routine
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Euipment: 4 On: true
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 ERROR: Failed to submit data to adafruit.io. User: Bigtrout Feed: righttemp-down Error: {"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 temperature sub-system: sensor LeftTemp value: 77.68
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 health check: Used memory: 7.66 Load5: 0.14
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 Current value of 'LeftTemp' is below minimum threshold. Executing up routine
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 Euipment: 3 On: true
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 ERROR: Failed to submit data to adafruit.io. User: Bigtrout Feed: lefttemp-down Error: {"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs"
Dec 03 23:59:05 75gallon reef-pi[6735]: panic: runtime error: index out of range [12] with length 12
Dec 03 23:59:05 75gallon reef-pi[6735]: goroutine 43 [running]:
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/pwm_profile.(*interval).Get(0x26ebd40, 0x4006d459, 0xbf71ed26, 0x784d8ecf, 0x4e80, 0xa20568, 0xa20568, 0x2709bd0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/pwm_profile/interval.go:27 +0x154
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Channel).ValueAt(0x2455180, 0x4006d459, 0xbf71ed26, 0x784d8ecf, 0x4e80, 0xa20568, 0x4058bd4c, 0x0, 0x0, 0x40590000)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/channel.go:57 +0x58
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).syncLight(0x244b4d0, 0x28e2a60)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/light.go:134 +0x1f8
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).syncLights(0x244b4d0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:102 +0x58
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).StartCycle(0x244b4d0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:59 +0x4c
Dec 03 23:59:05 75gallon reef-pi[6735]: created by github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).Start
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:48 +0x2c
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Unit entered failed state.
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Failed with result 'exit-code'.
Dec 04 00:00:35 75gallon systemd[1]: reef-pi.service: Service hold-off time over, scheduling restart.
Dec 04 00:00:35 75gallon systemd[1]: fake-hwclock.service: Cannot add dependency job, ignoring: Unit fake-hwclock.service is masked.
Dec 04 00:00:35 75gallon systemd[1]: Stopped raspberry pi based reef tank controller.
Dec 04 00:00:35 75gallon systemd[1]: Started raspberry pi based reef tank controller.
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: rpi Name: Raspberry Pi
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: 1 Name: pHboard
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: 3 Name: PWM
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: system
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 INFO: equipment subsystem: Finished syncing all equipment
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: equipment
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: ato
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 Successfully started subsystem: lightings
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 lighting subsystem: Setting Light: RearLight Channel: White Value: 0
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 lighting-subsystem: Setting PWM value: 0 at channel: 6
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 onTime 0 offTime 4096
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting subsystem: Setting Light: RearLight Channel: Blue Value: 98.51961305183093
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting-subsystem: Setting PWM value: 98.51961305183093 at channel: 7
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 onTime 0 offTime 4034
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting subsystem: Setting Light: FrontLight Channel: White Value: 0

Looks to be the lighting module causing the crash somehow
Definitely a bug in reef-pi lighting module. I'lll fix it asap. Thank you for reporting.Im tracking it here: https://github.com/reef-pi/reef-pi/issues/960
any chance you can share the light settings? I can dig it up in case you have already shared it
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
@Ranjib An add to above...all 4 of my lighting channels are on interval start time of 00:00:00 and ending 23:59:59

Pca9685 set at 250hz light1 jack pins 3,4 light2 jack pins 6,7

Frontlight is light1(3,4) and rearlight is light2(6,7)
 

Soulreefer

Community Member
View Badges
Joined
Aug 16, 2018
Messages
44
Reaction score
68
Location
Jakarta, Indonesia
Rating - 0%
0   0   0
Support for MCP23017 was not implemented in 3.0. On the other hand, we added support for using the PCA9685 as GPIO outputs, so that could free up some GPIO inputs.
@Michael Lane thank you for the answer. okay, now the problem is resolved, I can use GPIO17, 23, 24 for the ATO function and it works correctly .. apparently I have to learn so much to understand the Pin function correctly.

thank You
 
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
@Ranjib An add to above...all 4 of my lighting channels are on interval start time of 00:00:00 and ending 23:59:59

Pca9685 set at 250hz light1 jack pins 3,4 light2 jack pins 6,7

Frontlight is light1(3,4) and rearlight is light2(6,7)
Thanks I needed the profile details, so
start: 00:00:00
end: 23:59:59
what about interval and the setpoints?
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
So this is effectively a 24 hour light setup ?
Yes intervals are what the ui made them. Nl special profiles yet I use blue nightlights overnight til 2am.

White lights...pins 3 and 6 are off at the time thisn
happens but blues pins 4 and 7 are at 99 or 100 percent at the time.

White lights
Screenshot_20191204-014152_Chrome.jpg


Blue lights
Screenshot_20191204-014214_Chrome.jpg
 
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
Yes intervals are what the ui made them. Nl special profiles yet I use blue nightlights overnight til 2am.

White lights...pins 3 and 6 are off at the time thisn
happens but blues pins 4 and 7 are at 99 or 100 percent at the time.

White lights
Screenshot_20191204-014152_Chrome.jpg


Blue lights
Screenshot_20191204-014214_Chrome.jpg
While i work on the fix, i was also thinking this profile can be written more tersely,
Screen Shot 2019-12-03 at 11.52.09 PM.png
 

hhaase

Active Member
View Badges
Joined
Nov 11, 2019
Messages
415
Reaction score
355
Rating - 0%
0   0   0
Just as a thought, if the lights are power-cycling at midnight due to that interval.....

Is the reefpi on the same power circuit as the lights? If you're cycling all your lights at the same time, it could be causing a voltage dip on the AC power circuit, and causing the pi to reset.

-Hans
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Just as a thought, if the lights are power-cycling at midnight due to that interval.....

Is the reefpi on the same power circuit as the lights? If you're cycling all your lights at the same time, it could be causing a voltage dip on the AC power circuit, and causing the pi to reset.

-Hans
Thanks for the input but no, my lights are on seperate 15v 8A power supplies. I have a 5v@3amp meanwell for the pi and ML hat another meanwell for the relay boards and other externals The pi only provides the pwm signal. The reboot is driver related and it shows that in the logs.
 

hhaase

Active Member
View Badges
Joined
Nov 11, 2019
Messages
415
Reaction score
355
Rating - 0%
0   0   0
Found a small issue with my own today. The LM7805 regulators do work fine, but require heat-sinking at the required wattage, gets too hot without it. Not a big deal but something to plan for. Since I don't have any heat-sinks around right now for that size part, I dropped in a similar sized switcher regulator from EzSbc, in this case their PSU-2-5. They make some great little switchers in a tiny package.

Back to having fun again.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Found a small issue with my own today. The LM7805 regulators do work fine, but require heat-sinking at the required wattage, gets too hot without it. Not a big deal but something to plan for. Since I don't have any heat-sinks around right now for that size part, I dropped in a similar sized switcher regulator from EzSbc, in this case their PSU-2-5. They make some great little switchers in a tiny package.

Back to having fun again.
The old school linear regulators actually make very clean power in a step down situation. The only problem is wasted power which ends up as heat.
I just use a small meanwell rs unit for each voltage id need. The rs-15-5 is 3amps at 5 volts and is only 2"x2"x1". Clean power and the rs-15-12 is the same footprint for your 12v.
 

hhaase

Active Member
View Badges
Joined
Nov 11, 2019
Messages
415
Reaction score
355
Rating - 0%
0   0   0
The meanwell stuff is great, but I just find it so bulky. That's one reason my go-to for higher amperage is the EzSbc stuff at 3.3v or 5v. They have a line of regulators from 1A to 3A designed to drop-in replace TO-220 sized regulators. Though I'm not a fan of their TO-3 sized stuff, I've found the voltage doesn't meet spec a lot of the time with some of that style.

But yeah, the clean power of linears is definitely nice. It's shame so many are getting discontinued, but at the same time portable stuff can't deal with the low efficiency, high heat, and heavy heatsinks needed for larger draw.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
While i work on the fix, i was also thinking this profile can be written more tersely,
Screen Shot 2019-12-03 at 11.52.09 PM.png
@Ranjib
Just a bit of info if this helps.
I rewrote the profile similar to above and NO CRASH and REBOOT. So the bug shows when interval is 00:00:00 to 23:59:59 but sett similar to above it worked out fine.
 
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
@Ranjib
Just a bit of info if this helps.
I rewrote the profile similar to above and NO CRASH and REBOOT. So the bug shows when interval is 00:00:00 to 23:59:59 but sett similar to above it worked out fine.
Yup. But it’s still a bug. I’ve been able to reproduce it, I’ll get it fixed soon.
 

HAVE YOU EVER KEPT A RARE/UNCOMMON FISH, CORAL, OR INVERT? SHOW IT OFF IN THE THREAD!

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top