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

janos

Active Member
View Badges
Joined
Jun 4, 2017
Messages
267
Reaction score
259
Location
Toronto,Canada
Rating - 0%
0   0   0
Hi to all,would like to know what is your experience with DS18B20 temp sensor?Have two digital sensor what is show different temp in the tank.All 3 show different temp,what should i think which one is the right one.Just like to know your experience .Thank you
 

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0
So I've completed the HAT testing successfully :)

Only I2C I couldn't test (don't know what happened to my PWM module) but expect it to be ok as well. The board is relatively easy to build and fits nicely on the PI.

The files can be found at https://github.com/vandegraaf/Reef-PI_PCBs

the Reef-PI_HAT.zip file contains all the required files for ordering PCB's. There are some improvements to the PCB lay-out to have better connections for power and the dosing pumps but should have no impact on the functionality.
There is also a PDF file describing all the connectors and related GPIO signals.


I was looking this over again last night. One question, and forgive me if this was already discussed. Is there a way to interface the Relay connections with a DB9 serial so I can use the SPR8 power block?

Thanks
 
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
Hi to all,would like to know what is your experience with DS18B20 temp sensor?Have two digital sensor what is show different temp in the tank.All 3 show different temp,what should i think which one is the right one.Just like to know your experience .Thank you
how much difference you are seeing? if its consistent and within +/- 0.5 degree Celsius then its ok.
 

janos

Active Member
View Badges
Joined
Jun 4, 2017
Messages
267
Reaction score
259
Location
Toronto,Canada
Rating - 0%
0   0   0
Hi Ranjib the difference is 1 degree F not Celsius,i think that is not a problem.Just like to know more experience.Thank you
 

wykat

Active Member
View Badges
Joined
May 23, 2018
Messages
182
Reaction score
421
Rating - 0%
0   0   0
I was looking this over again last night. One question, and forgive me if this was already discussed. Is there a way to interface the Relay connections with a DB9 serial so I can use the SPR8 power block?

Thanks
can somebody show me the SPR8 block diagram? I don't know how 9 wires (DB9) can control 8 relays plus gnd and 5V.
 
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
Hi Ranjib the difference is 1 degree F not Celsius,i think that is not a problem.Just like to know more experience.Thank you
ds18b20 is not the most accurate probe (like pt-100), but its inexpensive , easy to source and very well integrated with the linux ecosystem. Hence we use it. It has a precision of 0.5 degree celsius, which i think ok for our use case. It is important for us to check its precision (i.e. if its off by less than 0.5 degree celsius, its consistently off).
I 'll be adding temperature calibration module after 2.0 release. To make things little bit better.
 
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. Did you ever document that???

Thanks
Nope :-/
These are all 2.0 things ... none is documented.. all that work is pending. I am waiting for the alpha release, after that I'll cease feature work and focus on the documentation and bug fixing. I want the UI/screen shots in guides to be consistent with the final release.
Any help on this would be welcome :-) .
 

MaccaPopEye

Well-Known Member
View Badges
Joined
Jan 5, 2016
Messages
697
Reaction score
1,224
Rating - 0%
0   0   0
What do you want to see? I don't have an aquarium yet :confused: , am still in the 'planning phase'. Should become a reefer 250, still reading.

ps: I love Australia, been there twice. live however in Aus(tria)

Haha maybe I should get into the habit of using Oz instead of Aus to avoid confusion :p Good to hear you had such a great time that you came back though :)

And no worries about the photos, I was keen to see the HAT on the Pi with all the connectors soldered on and hooked up to their equipment. But if you haven't got a tank yet I can understand why that might not be done just yet :)

When ordering from JLPCB are these the right options? It looks like the ordering 10 x Pi HATs and 10 x PWM boards to Oz will only cost $7 for the PCBs and then $20 shipping. That's cheap as! (the $20 shipping is with DHL as I don't really trust the cheaper option and it's cheaper to order both at the same time to save on the shipping).

I'll probably wait until you test out the PWM board before I order as I will still have to wait a little while to get all the components anyway :)

JLPCB Options.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
can somebody show me the SPR8 block diagram? I don't know how 9 wires (DB9) can control 8 relays plus gnd and 5V.
Its 12 v. So, 8 channel each connected to the 8 data pins, and GND is actually connected to 12v+. This is because uln2803 is a sink type driver. Let me know if you need further details, happy to share build pics as well (i have shared them earlier in a post i think)
 

MrDeSaussure

New Member
View Badges
Joined
Jan 20, 2018
Messages
6
Reaction score
7
Rating - 0%
0   0   0
I dont know if the outershield is same as the GND pin. For hdmi connectors thats the case.

Outer shield is NOT grounded or required.

I just finished setting up this, personally.

I used a ULN2803 IC as the control. As Ranjib said, a ULN2003 will work just fine as well, with the limitation of 7 input/outputs instead of all 8.

uln2803-pin-diagram.jpg

Really is as simple as connecting all of your GPIO's directly from your PI into ports 1B through 8B, GROUND to pin 9 of the IC, +12V to pin 10 of the IC, and pins 1C through 8C are the GPIO controlled outputs to the power strip. I used a connector like this to make hookup easier, and a standard off the shelf DB9 cable to connect to the power strip.

2899872.jpg


On that specific power strip, +12V is connected to PIN 5, and the other 8 pins will be your relay triggers, pulling to ground.

A completely acceptable alternative would be to pick up two of these:

Search for "ULN2003 stepper driver"
5-pcs-ULN2003-Stepper-Motor-Driver-Board-Module-For-Arduino-AVR-SMD.jpg_640x640.jpg


In that case, supply GPIO from your PI on the IN pins, ground and 12v at the labeled pins. Buy/plugin the appropriate 2.54mm JST cable, https://www.amazon.com/2-54MM-Femal...UTF8&qid=1534303070&sr=8-9&keywords=5+pin+jst and you are in business.




The 9th port on the power strip is constant ON.
 

wykat

Active Member
View Badges
Joined
May 23, 2018
Messages
182
Reaction score
421
Rating - 0%
0   0   0
Haha maybe I should get into the habit of using Oz instead of Aus to avoid confusion :p Good to hear you had such a great time that you came back though :)

And no worries about the photos, I was keen to see the HAT on the Pi with all the connectors soldered on and hooked up to their equipment. But if you haven't got a tank yet I can understand why that might not be done just yet :)

When ordering from JLPCB are these the right options? It looks like the ordering 10 x Pi HATs and 10 x PWM boards to Oz will only cost $7 for the PCBs and then $20 shipping. That's cheap as! (the $20 shipping is with DHL as I don't really trust the cheaper option and it's cheaper to order both at the same time to save on the shipping).

I'll probably wait until you test out the PWM board before I order as I will still have to wait a little while to get all the components anyway :)

JLPCB Options.jpg
Yes the standard options are ok, I only don't understand why it states 5 boards, normally it's 10 (which you probably don't need). Also used Green as color, but if red is the same price and your preference, that's ok :D. I think I tried Black and it became more expensive, so I stayed at Green. Please wait with the PWM board, I've made a new PCB the size of the PI which should fit directly on the HAT
upload_2018-8-15_4-57-48.png


I tried soldering the PCA9685 but it didn't work due to several reasons:
* My eyes couldn't see the tracks clearly while soldering although I normally can see close very sharp. Could have been the light condition.
* Wrong solder iron tips (sharp, was bending the housing pins and damaging silk screen). Looking at more youtube video's it became clear they mostly used broader/flat solder tips
* Shaking hand, which is a decease I unfortunately have since youth

Found on youtube an interesting video where you just position the chip with a normal solder iron (bottom/left and upper right which worked fine for me), then just place solder paste over all pins and then solder with the hot air gun.
have a look from 5:45 at
Also found a lot of other video's showing that SMT components like resistors position themselves when hot air is applied. I do know however from my former employer that components may 'flip up', applying solder paste for high volume production in a reflow production line (meaning millions of components) is critical (meaning reaching low PPM values). As a trial I also ordered a stencil for the PWM board from JLCPCB, there are interesting video's for this as well, for instance:

In the meantime I have:
* Ordered the new board as shown above, used standard shipping this time, not DHL. In the Inet I found usually 17 day's shipping time. Have to wait anyway for the other equipment as well.
* Ordered different solder iron tips (broad and SMT specific) (14USD)
* Electronic magnifying glass (48 Eur)
* Hot air solder station (40 Eur) with solder paste (18 Eur)
HTB1_jgnRpXXXXXcaVXXq6xXFXXXR.jpg_640x640q90.jpg


d8dbcc42-0865-4960-9770-98de7bfd3bc3.jpg

718lqr7%2BIuL._SL1500_.jpg
 

wykat

Active Member
View Badges
Joined
May 23, 2018
Messages
182
Reaction score
421
Rating - 0%
0   0   0
Its 12 v. So, 8 channel each connected to the 8 data pins, and GND is actually connected to 12v+. This is because uln2803 is a sink type driver. Let me know if you need further details, happy to share build pics as well (i have shared them earlier in a post i think)
This one works with 5V, also my HAT is using just 5V
 
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
Outer shield is NOT grounded or required.

I just finished setting up this, personally.

I used a ULN2803 IC as the control. As Ranjib said, a ULN2003 will work just fine as well, with the limitation of 7 input/outputs instead of all 8.

uln2803-pin-diagram.jpg

Really is as simple as connecting all of your GPIO's directly from your PI into ports 1B through 8B, GROUND to pin 9 of the IC, +12V to pin 10 of the IC, and pins 1C through 8C are the GPIO controlled outputs to the power strip. I used a connector like this to make hookup easier, and a standard off the shelf DB9 cable to connect to the power strip.

2899872.jpg


On that specific power strip, +12V is connected to PIN 5, and the other 8 pins will be your relay triggers, pulling to ground.

A completely acceptable alternative would be to pick up two of these:

Search for "ULN2003 stepper driver"
5-pcs-ULN2003-Stepper-Motor-Driver-Board-Module-For-Arduino-AVR-SMD.jpg_640x640.jpg


In that case, supply GPIO from your PI on the IN pins, ground and 12v at the labeled pins. Buy/plugin the appropriate 2.54mm JST cable, https://www.amazon.com/2-54MM-Femal...UTF8&qid=1534303070&sr=8-9&keywords=5+pin+jst and you are in business.




The 9th port on the power strip is constant ON.
Spot on, this is one of my all in one build, notice the db9 connector wiring, uln2003 is soldered on the perma proto board. wire colors indicate power or gpio inputs. I would recommend using ULN2803 going forward, since it has 8 channels and can support higher current load.
41198868615_4e88395e19_o.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
Yes the standard options are ok, I only don't understand why it states 5 boards, normally it's 10 (which you probably don't need). Also used Green as color, but if red is the same price and your preference, that's ok :D. I think I tried Black and it became more expensive, so I stayed at Green. Please wait with the PWM board, I've made a new PCB the size of the PI which should fit directly on the HAT
upload_2018-8-15_4-57-48.png


I tried soldering the PCA9685 but it didn't work due to several reasons:
* My eyes couldn't see the tracks clearly while soldering although I normally can see close very sharp. Could have been the light condition.
* Wrong solder iron tips (sharp, was bending the housing pins and damaging silk screen). Looking at more youtube video's it became clear they mostly used broader/flat solder tips
* Shaking hand, which is a decease I unfortunately have since youth

Found on youtube an interesting video where you just position the chip with a normal solder iron (bottom/left and upper right which worked fine for me), then just place solder paste over all pins and then solder with the hot air gun.
have a look from 5:45 at
Also found a lot of other video's showing that SMT components like resistors position themselves when hot air is applied. I do know however from my former employer that components may 'flip up', applying solder paste for high volume production in a reflow production line (meaning millions of components) is critical (meaning reaching low PPM values). As a trial I also ordered a stencil for the PWM board from JLCPCB, there are interesting video's for this as well, for instance:

In the meantime I have:
* Ordered the new board as shown above, used standard shipping this time, not DHL. In the Inet I found usually 17 day's shipping time. Have to wait anyway for the other equipment as well.
* Ordered different solder iron tips (broad and SMT specific) (14USD)
* Electronic magnifying glass (48 Eur)
* Hot air solder station (40 Eur) with solder paste (18 Eur)
HTB1_jgnRpXXXXXcaVXXq6xXFXXXR.jpg_640x640q90.jpg


d8dbcc42-0865-4960-9770-98de7bfd3bc3.jpg

718lqr7%2BIuL._SL1500_.jpg

hmm... this make me feel good about the decision that we recommend pca9685 and other breakout boards which eliminate the need for soldering smt components. The through hole component wiring already makes building reef-pi an onerous process. lets see how this goes for you.

I recently got a hakko soldering iron (gift from wife :-) ), and my soldering experience has completely changed since then. These are pricey, but if you are doing frequent soldering or want to learn electronics (which will eventually involve soldering), I strongly recommend this one,
 

ramkokz

New Member
View Badges
Joined
Jul 3, 2017
Messages
7
Reaction score
5
Rating - 0%
0   0   0
hello members of the community

Im from India n a student in sciences so im pretty sure my electronics n electrical skills n knowledge is pretty downfall. But im really keen in building up a complete DIY LED lighting system for my Aquarium one being in a 2ftx2ft n a new one which im to start of 4ftx2ft. As im still a student i really can not go for the expensive lighting options. So im looking to Build one completely from scratch with Leds heatsinks n etc.

so i got few questions before i start.

1. Is it possible for me Who only has electrical skills from physics classes back from 12th grade at school n will i get d required parts in india?

2. can i use this program to control for individual spectrum channels?

3. can i control it over d phone or an app after completion of the instal?

if there is anybody out there who is building sucha project n has a thread pls tag me in. im already following Jim00's rasberry pi build thread.

i request u pls help me out.

thanx in advance
 

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