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

stefanm

Active Member
View Badges
Joined
Oct 11, 2017
Messages
360
Reaction score
394
Location
Sweden
Rating - 0%
0   0   0
@Ranjib I am building my set up. My DJ-8 doesn’t seem to be responding. What can I check to troubleshoot? On Facebook someone suggested to check my signal and power sufficient. What can be wrong?
Check that your grounds are tied, also check that your PSU to the relays is sufficient...
 

Orbela

Active Member
View Badges
Joined
Mar 21, 2014
Messages
216
Reaction score
60
Rating - 0%
0   0   0
Check that your grounds are tied, also check that your PSU to the relays is sufficient...
Thanks for response
So I checked and I am getting 12v on the connectors pins
the GPIO 27-22 an 12, 6,14 I am reading 0v

392D6BE2-DB3A-4404-BAFD-002CF20D8623.jpeg
 
Last edited:

NeonRabbit221B

2500 Club Member
View Badges
Joined
Jun 21, 2019
Messages
3,037
Reaction score
5,408
Location
Richmond, Va
Rating - 0%
0   0   0
can you post your yaml file. i dont think these 9090 stuff are valid yaml


# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Defau$
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is ev$
# scrape_timeout is set to the global default (10s).

# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093

# Load rules once and periodically evaluate them according to the global 'evalu$
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped$
- job_name: 'prometheus'

metrics_path: /x/metrics
# scheme defaults to 'http'.

static_configs:
- targets: ['192.168.xxx.xxx']

Here is my config and I am trying to access from a different raspberry pi so the IP is the IP of the reef-pi . Every guide I have found uses a port to access the webpage which is the reason for the 9090. Anyone have a solid guide that is fairly 1-1?
 
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
Thanks for response
So I checked and I am getting 12v on the connectors pins
the GPIO 27-22 an 12, 6,14 I am reading 0v

392D6BE2-DB3A-4404-BAFD-002CF20D8623.jpeg
Those are sinking pins. When you are testing make sure you connect multimeter +ve to the 12v power pin, and multimeter gnd(black) to the uln28003 pins,
 
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
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Defau$
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is ev$
# scrape_timeout is set to the global default (10s).

# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093

# Load rules once and periodically evaluate them according to the global 'evalu$
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped$
- job_name: 'prometheus'

metrics_path: /x/metrics
# scheme defaults to 'http'.

static_configs:
- targets: ['192.168.xxx.xxx']

Here is my config and I am trying to access from a different raspberry pi so the IP is the IP of the reef-pi . Every guide I have found uses a port to access the webpage which is the reason for the 9090. Anyone have a solid guide that is fairly 1-1?
So , Prometheus is running now ? Do you have grafana running as well ?
 

Orbela

Active Member
View Badges
Joined
Mar 21, 2014
Messages
216
Reaction score
60
Rating - 0%
0   0   0
Those are sinking pins. When you are testing make sure you connect multimeter +ve to the 12v power pin, and multimeter gnd(black) to the uln28003 pins,
I tested the sinking pins and the matching uln2803 pins the in test 12.3v and the out tested at 0v can the uln2803 be faulty? I placed the + in the sinking pins and the gnd - on the 'in' and 'out' which the 'in' has 12.3v and the 'out' 0v. Am I doing something wrong? Thanks for the help

EC9E6E9D-A8EF-4709-8CC2-7C086A7D30B0.jpeg
 
Last edited:

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
I know it was discussed somewhere but I can’t find it. Right now my temp(recent) shows readings for the past 12 hours. Is there a way to change that to 24 or 48 hours?
 
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 know it was discussed somewhere but I can’t find it. Right now my temp(recent) shows readings for the past 12 hours. Is there a way to change that to 24 or 48 hours?
Under the telemetry configuration section you can define the number of data points that will be saved for individual metrics for recent data ( per check interval) and historical data (hourly average ). Those values and your actual check interval together determines how long look back time is. For example 60 data points for recent data at 5 min interval will only have 300 min or 5 hour worth of look back
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
640
Location
United States
Rating - 0%
0   0   0
@Ranjib After a house move and quarantine, I'm finally ready to upgrade from 3.0 alpha...is there anything I need to know before upgrading? Do I need to wipe the database or is it a seamless upgrade?
 

Orbela

Active Member
View Badges
Joined
Mar 21, 2014
Messages
216
Reaction score
60
Rating - 0%
0   0   0
Just saw your message, sorry
This is my psu think it enough unless I need to get a 1A not 5A

image.jpg
 
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 After a house move and quarantine, I'm finally ready to upgrade from 3.0 alpha...is there anything I need to know before upgrading? Do I need to wipe the database or is it a seamless upgrade?
Should be seamless. Still keep the existing db copied in some place else (/home/pi)
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
So we use the PCA9865 for additional outputs. I was looking at the connectors for inlets and noticed the PCA9865 was an option for a driver. Can the PCA9865 be used as an inlet also using the below for a float switch?
545AB62A-F51E-4FF9-8B76-9AEE897BFBE1.jpeg
 
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
So we use the PCA9865 for additional outputs. I was looking at the connectors for inlets and noticed the PCA9865 was an option for a driver. Can the PCA9865 be used as an inlet also using the below for a float switch?
545AB62A-F51E-4FF9-8B76-9AEE897BFBE1.jpeg
float switch are input (inlet), and can not be used with pca9685. You can use it for relay other than raw pwm, thats what it means. I have not tested it yet. its basically 100% duty cycle pwm.
 

Orbela

Active Member
View Badges
Joined
Mar 21, 2014
Messages
216
Reaction score
60
Rating - 0%
0   0   0
If anybody can help me I am sort of struggling to get my power relay to work.
I heard clicking and then channel 3 started to work then stopped then Channel 6 started to work. Now nothing works. I am lost. I check all connection were not lose and I double checked I didn’t have any cold solder. What I am thinking might be an issue is the connection between my raspberry pi and the perma hat. I am new was I suppose to solder them together or use the provide connection?

51D07E41-5E64-41E6-A5FE-FB03DD41DA66.jpeg 81634EB7-7582-4D24-99BE-7DA59FB8DF5D.jpeg 072AB09C-E77C-41FF-879D-C85A6F872757.jpeg 4771F817-3066-45A3-9196-6275021F18CC.jpeg
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
float switch are input (inlet), and can not be used with pca9685. You can use it for relay other than raw pwm, thats what it means. I have not tested it yet. its basically 100% duty cycle pwm.

I actually forgot you can use the same float inlet for multiple rules. I just made a test macro that disables the ATO and enables/disables the rules then re-enables ATO. No need for another float switch :)
 

Orbela

Active Member
View Badges
Joined
Mar 21, 2014
Messages
216
Reaction score
60
Rating - 0%
0   0   0
Thanks for the help it was my Raspberry pi connection with my pi hat not fully inserted. Now just adjust my gpio channels. Thsnks again.
 
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
If anybody can help me I am sort of struggling to get my power relay to work.
I heard clicking and then channel 3 started to work then stopped then Channel 6 started to work. Now nothing works. I am lost. I check all connection were not lose and I double checked I didn’t have any cold solder. What I am thinking might be an issue is the connection between my raspberry pi and the perma hat. I am new was I suppose to solder them together or use the provide connection?

51D07E41-5E64-41E6-A5FE-FB03DD41DA66.jpeg 81634EB7-7582-4D24-99BE-7DA59FB8DF5D.jpeg 072AB09C-E77C-41FF-879D-C85A6F872757.jpeg 4771F817-3066-45A3-9196-6275021F18CC.jpeg
With reef-pi running, switch on/off the corresponding outlet and take voltage readings across pi gpio, perma proto /uln input pins and finally on the db9 connector pins. remember from uln onward multi meter black probe goes on to uln/db9 pins and red probe goes to 12 v. See where the voltage readings are not as expected . It will be easier if you have a dedicated thread, we are likely to loose context in this thread.
 
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
Thanksgiving is approaching, and i am thinking about 4.0 release. It has been very hectic and i have not been able to push a lot of code as expected, lately. I am thinking whether to do a 4.0 release or skip it. Technically we dont have to have a major version release, since there no breaking changes. But historically it has been a tradition to do yearly reef-pi release during thanksgiving, hence the dilemma.

I am thinking of wrapping up some minor bugs and polish documentation and cut a release (4.0 ?) , if we want stick to the tradition. We did have quiet a few changes across the board (new features, drivers, bug fixes etc) encompassing 3->4 development, but most of those have been already incrementally shipped.

Let me know what you all think
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 37 27.4%
  • 100% dry rock + 100% live sand

    Votes: 46 34.1%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 30 22.2%
  • 75% live rock, 25% live sand

    Votes: 12 8.9%
  • 25% live rock, 75% live sand

    Votes: 10 7.4%
Back
Top