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

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
thanks Ryan. Sorry I have to log off tonight. Thanks Guys.

upload_2017-10-5_20-33-22.png
Yup, user name is missing. I 'all add validation for this
 
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
the user for telemetry should be your username for io.adafruit.com, same place you get token/AIO key
Hats off ryan, great debugging skills :-)
 
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
Okay I been looking at the videos and readding. I have a couple of questions.
  • for the 5v male power socket can you use a smaller power connection? For example a laptop type of supply?
  • with the rasberry pi zero W and 16 channel is it possible?
  • For the Leviton adapters they come in two inputs are each input controllable or only the set is controllable?
  • Not sure, need details of the power supply, voltage and current
  • Yes, pi zero can do 16 channel relay, it has the necessary gpio, we need a beefier power supply
  • Yes. Those receptacles are made in a way that if need be, their connectors can be broken easily for independent controls, and that's a common practice , something I learned from @Brew12 , you can find my exact question on the resident electrician thread under diy forum
 
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
Are GPIO pins 2, 3 and 4 used for something strange? My relays won't light up using those (and a few other) GPIO pins. I moved them to GPIO pins 16, 12 and 7 and they worked.
2 & 3 is used for i2c communication,which the pwm chip (pca9685) requires. Gpio4 is used for temp probe.
 
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
I must have missed those in the docs. I think there was a total of 5 gpio pins that wouldn't connect to the relays. Anyway success.
5d0ed970ef91cda92e60dd63e49dbefd.jpg
This will be epic :-)
 
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
@HM3105 so, you are not encountering any power issues... like all the 16 relays working as expected? did you test them?
If this thing is working, it will be one of the first working 16 outlet power bar that I have encountered :-) , i am stoked to see this .. hugs
 
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
I was about to ask the same thing, to throw all 16 relays will be >1100mA. What is the limit that the pi can source on the 5v pins?
Yeah, same is my concern... If we hit any issue, a dedicated power supply for the relay board should address this, or a 10amp power supply for the pi. I have to cross check this at adafruit forum
 

HM3105

Well-Known Member
View Badges
Joined
Nov 30, 2014
Messages
665
Reaction score
403
Location
United States
Rating - 0%
0   0   0
If this thing is working, it will be one of the first working 16 outlet power bar that I have encountered :) , i am stoked to see this .. hugs

Sorry I won't be able to define all the outlets tonight, I'll try and test it tomorrow or this weekend. Sorry to keep everyone in suspense =(

Also, GPIO pins 2, 3, 4, 5, and 6 wouldn't work for the relays. I define "work" as meaning that when I plugged them in the little red LED on the relay board did not light up.
 

HM3105

Well-Known Member
View Badges
Joined
Nov 30, 2014
Messages
665
Reaction score
403
Location
United States
Rating - 0%
0   0   0
I was about to ask the same thing, to throw all 16 relays will be >1100mA. What is the limit that the pi can source on the 5v pins?

Where is the 1.1 amp coming from? The relays per manufacture spec (Sainsmart) should pull max of 20ma each to work.

Otherwise you and @Ranjib are correct, I'll have to increase the power supply. =(
 
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
Where is the 1.1 amp coming from? The relays per manufacture spec (Sainsmart) should pull max of 20ma each to work.

Otherwise you and @Ranjib are correct, I'll have to increase the power supply. =(
Some of the relay board draws more current than other. I was just about to mention that we all should mention the brand of relay boards we are using. Things like sainsmart is gold, and i can trust their current draw to be stable or comparable at 20ma. But that per channel draw, its not the vcc power draw..
 

HM3105

Well-Known Member
View Badges
Joined
Nov 30, 2014
Messages
665
Reaction score
403
Location
United States
Rating - 0%
0   0   0
Some of the relay board draws more current than other. I was just about to mention that we all should mention the brand of relay boards we are using. Things like sainsmart is gold, and i can trust their current draw to be stable or comparable at 20ma. But that per channel draw, its not the vcc power draw..
15 out of 16 worked, no power warnings from the Pi.

a1be6cad069b44bf9338084950957860.jpg
 
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
15 out of 16 worked, no power warnings from the Pi.

a1be6cad069b44bf9338084950957860.jpg
Dang, so close. Whenver you get time check whats wrong with the one thats not working as expected,
- Is the led on the relay working?
- Is reef-pi doing the right thing (logs should show switch on/off) . `cat /sys/class/gpio/gpio<number>/value` will show the software side of thing working as expected or not.
 

HM3105

Well-Known Member
View Badges
Joined
Nov 30, 2014
Messages
665
Reaction score
403
Location
United States
Rating - 0%
0   0   0
Dang, so close. Whenver you get time check whats wrong with the one thats not working as expected,
- Is the led on the relay working?
- Is reef-pi doing the right thing (logs should show switch on/off) . `cat /sys/class/gpio/gpio<number>/value` will show the software side of thing working as expected or not.

I mapped the GPIO pin wrong, work is coming up fast so I'll have to fix it tomorrow unfortunately.

I'm a couple of revs back on the UI however I would like to respectfully suggest the following.

For the outlet and equipment set up, an edit function. It looks like I have to delete each outlet and then set it up again if I change anything.

For the equipment tab, if the defined equipment could show what outlet it is mapped to that would be great.
 
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
I mapped the GPIO pin wrong, work is coming up fast so I'll have to fix it tomorrow unfortunately.

I'm a couple of revs back on the UI however I would like to respectfully suggest the following.

For the outlet and equipment set up, an edit function. It looks like I have to delete each outlet and then set it up again if I change anything.

For the equipment tab, if the defined equipment could show what outlet it is mapped to that would be great.
Editing an existing equipment was in my mind, I just didn’t get time to do it. Given deleting and recreating was trivial I didn’t get back to it later. I’ll add it in my todo list, but not sure if I’ll have enough time to do this before 1.0, the UI for editing is bit complex, and I am already working on the doser right now, plus this is workflow is not encountered on daily operation, i.e once equipment is declared regular day to day operation is fine. Still this is important and common expectation, reef-pi must have it.

I’ll add the outlet details on every existing equipment display , that’s easy to add :-)

Thanks a tonne for your valuable feedback, always appreciate these
 

Cary

Well-Known Member
View Badges
Joined
Feb 19, 2016
Messages
638
Reaction score
766
Location
Allen, Tx
Rating - 0%
0   0   0
Good morning. I guess I still have a problem.

I performed a reboot and reload from system.
When checking the IO feed I have nothing to display.

log screen just now

upload_2017-10-6_5-23-13.png
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
Good morning. I guess I still have a problem.

I performed a reboot and reload from system.
When checking the IO feed I have nothing to display.

log screen just now

upload_2017-10-6_5-23-13.png
for the failed to detect ip, just change eth0 to wlan0 on the system tab.

Just to verify everything for telemetry:
  • a feed was created titled temperature (all lower case, correct spelling, etc...)
  • On System tab
    • Telemetry enable box is checked
    • token is copied directly and correctly from the adafruit AIO key (something like 5064fc15bd5147d0a....)
    • prefix is left blank (just for now, can be amended later)
 

TOP 10 Trending Threads

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

  • More helpful.

    Votes: 54 40.6%
  • More hurtful.

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

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

    Votes: 40 30.1%
Back
Top
Home
Post thread…
Market
What's new