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

Free Phyto Promo
Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed
Shop Now Code: FREEPHYTO

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
@pickupman66 According to the datasheet, the DS18B20 can operate between 3 - 5.5 volts. That means it should not be a problem as long as the DQ pin and Rpi pin are connected to 3v3 through the pull up resistor.
 
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 I think I may have made a mistake on my DS18B20. I powered it thru the 5v side and not hte 3.3v side. will this make a difference?
should be ok. check if its working . If the probe gets hot then you have wired it wrong. else it should be ok. its recommended to wire it against 5v if you have longer wire length between Pi and the ds18b20 probe
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,165
Location
Winchester, TN
Rating - 0%
0   0   0
OK. yea it worked good last night on the bench. read 85 degrees in the garage and then went down quickly when we placed the probe in ice water.
 
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, it looks like I didn't have the SD card formatted correctly. I have it working now thanks to your suggestion of the Adafruit tutorial. Thanks for helping out the new guy!
You are most welcome. Keep us posted. I also struggled in the beginning, remember I myself learned electronics and many more things on the way :-)
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,165
Location
Winchester, TN
Rating - 0%
0   0   0
Pinning out and assigning outlets!
579959445c9ef801eb884715eb092f77.jpg
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,165
Location
Winchester, TN
Rating - 0%
0   0   0
So, i had to redo my assignments. and I have an outlet that is Ghost locked. GPIO 16 states in-use but i have not assigned it. i may have before then i redid to order them properly according to the power bar and my OCD. now that one is in-use and i cannot assign it. it shows in-use on the config page but is not used in equipment. i get this error {"error":"Failed to create. Error: Outlet is already in use (Equipment ID: 7)"} | HTTP 500
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,165
Location
Winchester, TN
Rating - 0%
0   0   0
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, i had to redo my assignments. and I have an outlet that is Ghost locked. GPIO 16 states in-use but i have not assigned it. i may have before then i redid to order them properly according to the power bar and my OCD. now that one is in-use and i cannot assign it. it shows in-use on the config page but is not used in equipment. i get this error {"error":"Failed to create. Error: Outlet is already in use (Equipment ID: 7)"} | HTTP 500
I think I know this issue, and cant think of any easy workaround other than recreating that outlet by resetting database
 
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

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,165
Location
Winchester, TN
Rating - 0%
0   0   0
Ok. Thank you. I'll probably go ahead and reset.

Got it in an enclosure tonight. I will probably use cat5 cable to go from my closet to the tank for the float switch and the temp probe. I have this nifty breakout from my archon that takes Cat5 and breaks it to screw terminals. This way I can easily hook and unhook in the closet and also in the tank area.
4caae9d15a41569ac916cc93f0107e25.jpg
43978b3e8c7d9075f0f9238c38a3c9ec.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
Ok. Thank you. I'll probably go ahead and reset.

Got it in an enclosure tonight. I will probably use cat5 cable to go from my closet to the tank for the float switch and the temp probe. I have this nifty breakout from my archon that takes Cat5 and breaks it to screw terminals. This way I can easily hook and unhook in the closet and also in the tank area.
4caae9d15a41569ac916cc93f0107e25.jpg
43978b3e8c7d9075f0f9238c38a3c9ec.jpg
Nice. I am curious about the current draw from two set of db9 connector/sr p8 powerstrips. Let us know how it works one you tested it with both powerstrip hooked up.
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,165
Location
Winchester, TN
Rating - 0%
0   0   0
Total draw for the system and a single db9 is 0.030 amps according to the display. That is with 7 of the 8 outlets on. I need to reset reef-pi for that 8th outlet.
 
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
Total draw for the system and a single db9 is 0.030 amps according to the display. That is with 7 of the 8 outlets on. I need to reset reef-pi for that 8th outlet.
Thats not too bad. I am trying to understand if a 12v 1A powersupply will be enough to power a pi zero + two set of adj sr p8 power strip.

It will be awesome if it works, it means users can build a 16 outlet power controller within 150$.
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
Thats not too bad. I am trying to understand if a 12v 1A powersupply will be enough to power a pi zero + two set of adj sr p8 power strip.

It will be awesome if it works, it means users can build a 16 outlet power controller within 150$.

1 amp might work, but may not be reliable. The relays used in the sr p8 have a nomimal current of 77 mA. Although it isn't likely to happen, if all 16 relays were to switch at the same time, that would far exceed the power supplies capability. A 2 amp supply would be more reliable, and shouldn't really cost much more. If you already have the 1A supply, you probably won't have a problem, but random pi resets could be a symptom to look out for.
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,165
Location
Winchester, TN
Rating - 0%
0   0   0
Tank is now 90% under reef-pi control. Jebao programming and skimmer are the lone holdouts


Just for notes. The SRP8 db9 pinout is as follows

Plug 1 - 6
Plug 2 - 1
Plug 3 - 3
Plug 4 - 2
Plug 5 - 9
Plug 6 - 7
Plug 7 - 8
Plug 8 - 4

Dc is #5

8f9d95416902a1d2eafcaccdb2bd4fa7.jpg



Also did some upgrades. Added a rj-45 jack for coms to the tank for ATO and temps. I have 3 wire left on this. At the tank it connects to a breakout. I am running two probes for now.

302046ac5414d3a6585b3e2d5a6d0e8d.jpg
4113ab9029079132e4612bf5e0bb080f.jpg
ede6f1511bad08e6accc8ed596ed198a.jpg
 
Last edited:
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
Tank is now 90% under reef-pi control. Jebao programming and skimmer are the lone holdouts


Just for notes. The SRP8 db9 pinout is as follows

Plug 1 - 6
Plug 2 - 1
Plug 3 - 3
Plug 4 - 2
Plug 5 - 9
Plug 6 - 7
Plug 7 - 8
Plug 8 - 4

Dc is #5

8f9d95416902a1d2eafcaccdb2bd4fa7.jpg



Also did some upgrades. Added a rj-45 jack for coms to the tank for ATO and temps. I have 3 wire left on this. At the tank it connects to a breakout. I am running two probes for now.

302046ac5414d3a6585b3e2d5a6d0e8d.jpg
4113ab9029079132e4612bf5e0bb080f.jpg
ede6f1511bad08e6accc8ed596ed198a.jpg

Very nice. I love the CAT5/RJ45 breakout board. Can you share the link for getting those :0-). I bet others would benefit from the db9 pin mapping. You don't mind I copy it in the official docs? Users can at least have some expectation or cross verify. I'll definitely do the same on my end
 

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.2%
  • 100% dry rock + 100% live sand

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

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

    Votes: 13 9.6%
  • 25% live rock, 75% live sand

    Votes: 10 7.4%
Free Phyto Promo
Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed
Shop Now Code: FREEPHYTO
Back
Top