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

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
Hate to quote my own post but...

Does anyone have a wiring diagram for the doser???

Thanks
Mine are wired to the Servo board .. I do not have a Diagram ..
But .. i can try to explain it..

They are wired to jacks on Servo board pin 0,1,2,3 to a uln2804 on pin 1,2,3,4 (could be 0,1.2.3) First 4 pins. Ground pins from the motor on the Corresponding pins on the other side of the chip (remember there is notch on the chip to determine start pins if you have the chip layed flat in front of your with notch away from your Pin one is on the lift ).. The Ground is also connected to the pi ,power supply ,and pin 9 of the uln (ground) . The power from the dosing pumps are Connected to there power supply and NOTHING ELSE..

SUMMERY
PI CONNECTED TO SERVO DRIVER BOARD.
4 PINS ON SERVO CONNECTED TO ULN2804 (IF YOU HAVE 4 PUMPS)
GROUND PINS OF THE PUMPS CONNECTED TO CORRESPONDING PINS ON THE OPPOSITE SIDE OF THE ULN CHIP.
ULN CHIP GROUND IS LAST PIN ON FIRST ROLL.. THIS CONNECTS TO PI, DOSING PUMPS, DOSING PUMPS POWER SUPPLY AND DOSING PUMPS.
Dosing pumps connect power to dosing pump power supply... NOTHING ELSE...

on the reef-pi assign Jacks to corresponding pins on the Servo board

Hope this helps.. its basically exactly like the Relay but putting the Servo Board between pi and device .....
 

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0
Mine are wired to the Servo board .. I do not have a Diagram ..
But .. i can try to explain it..

They are wired to jacks on Servo board pin 0,1,2,3 to a uln2804 on pin 1,2,3,4 (could be 0,1.2.3) First 4 pins. Ground pins from the motor on the Corresponding pins on the other side of the chip (remember there is notch on the chip to determine start pins if you have the chip layed flat in front of your with notch away from your Pin one is on the lift ).. The Ground is also connected to the pi ,power supply ,and pin 9 of the uln (ground) . The power from the dosing pumps are Connected to there power supply and NOTHING ELSE..

SUMMERY
PI CONNECTED TO SERVO DRIVER BOARD.
4 PINS ON SERVO CONNECTED TO ULN2804 (IF YOU HAVE 4 PUMPS)
GROUND PINS OF THE PUMPS CONNECTED TO CORRESPONDING PINS ON THE OPPOSITE SIDE OF THE ULN CHIP.
ULN CHIP GROUND IS LAST PIN ON FIRST ROLL.. THIS CONNECTS TO PI, DOSING PUMPS, DOSING PUMPS POWER SUPPLY AND DOSING PUMPS.
Dosing pumps connect power to dosing pump power supply... NOTHING ELSE...

on the reef-pi assign Jacks to corresponding pins on the Servo board

Hope this helps.. its basically exactly like the Relay but putting the Servo Board between pi and device .....



Thanks for that hurts my poor head reading it :)

I'm a simple guy, I need pictures!!! ;Wacky
 

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0
theres no fritzing file or documentation yet, but this should get you going:
- L293d is the main IC here: https://learn.adafruit.com/adafruit-raspberry-pi-lesson-9-controlling-a-dc-motor/lm293d
- en1 and en2 pins are wired to pi GPIO 18 & 19 ( declare them as jacks with rpi driver in reef-pi)
- IN1, IN2, IN3, IN4 are all connected to other GPIO (declare them as outlets in reef-pi, and create 4 virtual equipment to control them)
- I power the whole build with a 12 v 2 amp dc power source, use an lm2596 to convert it 5v for feeding pi. The 12v rail is also connected to Vmotor pin of l293d. Vcc pin of l293d is wired to 5v rail
- OUT1,OUT2 of l293d is wired to one peristaltic pump (12v, from adafruit), OUT3 & OUT4 powers the other pump
- Thats all, use reef-pi doser ui to create two dosing pumps each attached to one of the jack (PWM pin 0 & 1 in the UI, GPIO pin 18 & 19 in the physical wiring). Dosing UI will let you schedule the pumps to run at specific time (same UI as timer), as well as run them on demand for specific duration at specific speed (calibration). Calibrate the pump to get an understanding of how much liquid its drawing at a certain speed and certain duration. Then decide on the dosing regimen (frequency, duration and speed)
- The virtual equipment (which is controlling en1,en2,en3,en4) is used for controlling on/off or direction of the pumps. If both en1 and en2 is either on or off then the pump will be off. If one of them in on and other is off, then the pump will run. Depending upon which one is on that will control the direction of the pump

hope this help


Sorry, I totally missed this.

Thank you! I will try to draw up a Fritzing drawing for this and run it by the group to make sure it's correct.


Thanks again
 

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0


Sorry, missed that one.

This is what I was looking for.

upload_2018-7-27_8-55-49.png
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
Will do, thanks.
i can try to do one this weekend. I have been way busier then i wanted to this week. Spend 3 hours at bank today what was supposed to be 10 minutes. I am adding a partner to my business to help me with accounting, office work and Handle Advertisement and Taxes ..

Next week i actually get to Work some

ON Topic i will try to make something based on how mine is done . The whole thing...
 

wykat

Active Member
View Badges
Joined
May 23, 2018
Messages
182
Reaction score
421
Rating - 0%
0   0   0
My understanding of the ATO solution is that only 1 sensor can be used. Is my understanding correct? Would it be possible to have more sensors, e.g. Min/Max and Sump? Have not tried it yet (but will do on a breadboard to see the hysteresis and how to control the LM293D) but this would reduce the number of start/stop cycles and can warn in case the refill is getting empty.
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
My understanding of the ATO solution is that only 1 sensor can be used. Is my understanding correct? Would it be possible to have more sensors, e.g. Min/Max and Sump? Have not tried it yet (but will do on a breadboard to see the hysteresis and how to control the LM293D) but this would reduce the number of start/stop cycles and can warn in case the refill is getting empty.
You can do this with 3 sensors..
One set at your low Level.. One at the running level and one at the max level Set them to control the device you wish
 
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
Working on macro UI now. Got the backend code prototyped this week. UI will be done by next week, and probably some testing after that.
TLDR; macro will allow users to declare a set of steps that is executed linearly. Each step has a target and action. Target can be any equipment, ph probe, ato or temperatures, and action can be either on or off. Theres a special target called "wait", to pause for a specified amount of time (in seconds).
Screen Shot 2018-07-28 at 10.23.10 AM.png


Ideally, the macro feature should help in feeding, water changes, photo shoots etc, where we have to control a bunch of equipment in certain order.
 

MaccaPopEye

Well-Known Member
View Badges
Joined
Jan 5, 2016
Messages
697
Reaction score
1,224
Rating - 0%
0   0   0
I finally got around to making some final changes and uploading the files!

I broke the glass build plate on my 3D printer (again) and haven't been able to replace it yet. Hopefully this week I will get it replaced and can start printing the final main brain & power boards!

My plans for a 3D printed housing and power board for Reef-Pi can be found here:
https://www.thingiverse.com/thing:3024281

I have included the Fusion 360 file so people can edit them to work with their individual components etc. - if you do please post pictures of your edit! :)
 
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 finally got around to making some final changes and uploading the files!

I broke the glass build plate on my 3D printer (again) and haven't been able to replace it yet. Hopefully this week I will get it replaced and can start printing the final main brain & power boards!

My plans for a 3D printed housing and power board for Reef-Pi can be found here:
https://www.thingiverse.com/thing:3024281

I have included the Fusion 360 file so people can edit them to work with their individual components etc. - if you do please post pictures of your edit! :)
sweet :-)
 

MaccaPopEye

Well-Known Member
View Badges
Joined
Jan 5, 2016
Messages
697
Reaction score
1,224
Rating - 0%
0   0   0
Here are some pics of the prototype I printed of the main housing to ensure everything fit.

Only major change I had to make was swapping the ptoro board and the Raspberry-Pi around as I didn't leave enough room for the bottom row of RJ-45 jacks. But I am pretty confident it will all fit now. I also don't actually have any BNC jacks yet, so I just have to hope they will fit (the holes assume the BNC jacks are 10mm). But worst case scenario I can just print another one :p
37989697_10156740519179427_6749652207878012928_n.jpg
37907494_10156740518869427_5716987511226499072_n.jpg
 

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0
Working on macro UI now. Got the backend code prototyped this week. UI will be done by next week, and probably some testing after that.
TLDR; macro will allow users to declare a set of steps that is executed linearly. Each step has a target and action. Target can be any equipment, ph probe, ato or temperatures, and action can be either on or off. Theres a special target called "wait", to pause for a specified amount of time (in seconds).
Screen Shot 2018-07-28 at 10.23.10 AM.png


Ideally, the macro feature should help in feeding, water changes, photo shoots etc, where we have to control a bunch of equipment in certain order.

giphy.gif
 

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0
Here are some pics of the prototype I printed of the main housing to ensure everything fit.

Only major change I had to make was swapping the ptoro board and the Raspberry-Pi around as I didn't leave enough room for the bottom row of RJ-45 jacks. But I am pretty confident it will all fit now. I also don't actually have any BNC jacks yet, so I just have to hope they will fit (the holes assume the BNC jacks are 10mm). But worst case scenario I can just print another one :p
37989697_10156740519179427_6749652207878012928_n.jpg
37907494_10156740518869427_5716987511226499072_n.jpg


giphy.gif
 

TOP 10 Trending Threads

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

  • 100% live rock + bagged sand

    Votes: 38 26.6%
  • 100% dry rock + 100% live sand

    Votes: 48 33.6%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 32 22.4%
  • 75% live rock, 25% live sand

    Votes: 15 10.5%
  • 25% live rock, 75% live sand

    Votes: 10 7.0%
Back
Top