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,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
So I had some very strange behavior with reef-pi last night. I am still bench testing so it is not connected to my tank.

Sometime back I fried my ULN2803 by accidentally shorting the output so I removed the 2803 and everything tested out fine. I removed power last night to put in one of my new 2803's and on power up one of my dosers (built in RPI PWM) came on 100% and stayed on. I could manually run it and it would run at the timer set 50% speed, turn off, then eventually turn back on to 100% full time. Several reloads and reboots later it still did the same. I checked the wiring and all checked out fine so I deleted the jacks from the UI, re-added them, and rebooted. After doing that it no longer came on and ran manually via calibrate just fine.

I check the UI this morning one one doser was running as scheduled all night but the problematic one ran once as scheduled and did not run the rest of the night. I did some testing with the schedule and doser 2 always ran as expected. The timer did not work at all for doser 1. I did many different time combos and duplicated them on doser 2 so both should have acted the same. Always the same thing, doser 2 worked fine doser 1 did not run on its schedule time. I deleted every single light, temp probe, ato, timer, doser and rebooted. I rebuilt the doser rules and now both are working as expected. I am slowly adding rules and equipment to see if I can get the same thing to make sure there is no conflict anywhere.

The question is everything was working prior to powering down and adding the new chip. I currently have the 2803 chip back in and equipment re added with no issues yet. Now I have been tweaking the rules and equipment testing how the rules work and learning what I can and cant do. Is it possible the database somehow got corrupted? By removing and re adding I reset everything back to fresh?
This sounds like a software bug . I have to read through your post in detail and cross check the code base, I’ll get back to you. We found couple of doser bug (calibration logic is broken in 2.0) soon after release , it’s fixed in master . If this is a different bug I’ll fix it and cut a release during weekend
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib @wykat I'm having some issues with getting my dosing pumps working.

The first is both pumps are running at the same time. I have GPIO 18 and 19 enabled for the jacks and each one of the jacks is assigned to one of the pumps in the dosing tab. I used GPIO pins 13,14,15,16 to create virtual equipment on/off switches to determine the pumps run direction and this works as it should.
When I select the pump associated with gpio 19 neither one of the pumps runs.
When I select the pump associated with gpio 18 both pumps run.
According to the dosing pump build guide on Adafruit both GPIO 18 and 19 are used. On Github @wykat says only gpio 18 is used either way I get the same result.
Not sure what I'm missing, and any help would be appreciated.
I did recently update from reef-pi 2.0.0-rc-2 to the newest 2.0 version.

The other thing I noticed (which doesn't affect the way the pumps run) is that when I go to calibrate the pumps, unless I have a motor speed and duration set in the main dosing pump section I can't get the calibration tab to run the pumps with the values I used. I can run the pumps by just clicking the run button in the calibration tab without any values as long as there are duration and % values on the dosing tab.

Hope all this makes sense.


Jacks and gpio selection.PNG


Dosing tab.PNG
The first one sounds like poloraity mis configuration (in jack /outlet config or in circuit ). Second one is a known bug that we fixed soon after 2.0 release , I’ll cut a release with fix this weekend
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
This sounds like a software bug . I have to read through your post in detail and cross check the code base, I’ll get back to you. We found couple of doser bug (calibration logic is broken in 2.0) soon after release , it’s fixed in master . If this is a different bug I’ll fix it and cut a release during weekend

So far I have all equipment re-added, all the rules re built, and its all working smoothly. If it happens again I wont touch anything and let you know. Like I said I have been building, adding rules, deleting rules, and trying different combos to see what works. Its just strange it all worked then suddenly not. Once I finish building I plan to do a fresh install of raspbian and reef-pi before putting it into production.
 

Jonathan Troutt

Well-Known Member
View Badges
Joined
Apr 1, 2018
Messages
970
Reaction score
1,173
Location
Indianapolis, IN
Rating - 0%
0   0   0
@Ranjib

hey man sorry to bother want to ask about the ability to control DC power heads? I am currently using a couple Jebao pp-4's and while the controllers work I would like to do some different stuff with them. Being able to control them with the PI would be amazing. I thought I remember reading about support for this and I am currently reading back through this long thread I am on page 105 currently. Figured I would just ask about it and see if there is any documentation anywhere about it?
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,223
Reaction score
3,632
Location
Sacramento, CA area
Rating - 0%
0   0   0
I thought Peristaltic pumps were run by stepper motors?

Many aren’t. There are good uses for the DC motor ones (ATO, etc) where external sensors control the amount they pump. I don’t like the DC motor ones for more sensitive tasks like dosing two part.
 

Jonathan Troutt

Well-Known Member
View Badges
Joined
Apr 1, 2018
Messages
970
Reaction score
1,173
Location
Indianapolis, IN
Rating - 0%
0   0   0
Many aren’t. There are good uses for the DC motor ones (ATO, etc) where external sensors control the amount they pump. I don’t like the DC motor ones for more sensitive tasks like dosing two part.

wow I have never used a doser but I told myself at the beginning of this build if I do end up building one stepper motors all the way. I would of never thought they would of use anything different.
 

Metasyntactic

Community Member
View Badges
Joined
May 8, 2018
Messages
74
Reaction score
63
Location
Washington DC
Rating - 0%
0   0   0

Jonathan Troutt

Well-Known Member
View Badges
Joined
Apr 1, 2018
Messages
970
Reaction score
1,173
Location
Indianapolis, IN
Rating - 0%
0   0   0

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
The tank is finally switched over and running on the Adafruit Motor Hat and a Pi Zero W.
Currently my ATO is running on a AquaLifter, but I would like to move it over to a peristaltic pump (or DC motor diaphragm pump) running on one of the motor outputs on the hat. Those are basically TB6612s run off of the PCA9685.
Is there any way to define then PWM pins as equipment pins to be able to use them for this, or any other work around that I am missing?
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,223
Reaction score
3,632
Location
Sacramento, CA area
Rating - 0%
0   0   0
The tank is finally switched over and running on the Adafruit Motor Hat and a Pi Zero W.
Currently my ATO is running on a AquaLifter, but I would like to move it over to a peristaltic pump (or DC motor diaphragm pump) running on one of the motor outputs on the hat. Those are basically TB6612s run off of the PCA9685.
Is there any way to define then PWM pins as equipment pins to be able to use them for this, or any other work around that I am missing?

Not right now, but I’ll add support for that in an update to my HAL refactor work in doing in reef-Pi. No reason you can’t use a PCA9685 channel as a digital on/off.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
The tank is finally switched over and running on the Adafruit Motor Hat and a Pi Zero W.
Currently my ATO is running on a AquaLifter, but I would like to move it over to a peristaltic pump (or DC motor diaphragm pump) running on one of the motor outputs on the hat. Those are basically TB6612s run off of the PCA9685.
Is there any way to define then PWM pins as equipment pins to be able to use them for this, or any other work around that I am missing?

That’s pretty sweet. So you just select pca9865 in the driver area of the ui and it will run the stepper motor from this board?
 

Jonathan Troutt

Well-Known Member
View Badges
Joined
Apr 1, 2018
Messages
970
Reaction score
1,173
Location
Indianapolis, IN
Rating - 0%
0   0   0
So I have read that some people are not liking the 3.5mm stereo plugs. I have always used switch craft plugs and they are fantastic. I actually have some on the way to replaced the temporary ones i have on my probes currently. I know they a bit expensive but you cannot go wrong with a quality plug.

https://www.mouser.com/ProductDetail/502-35HDNN
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
So I have read that some people are not liking the 3.5mm stereo plugs. I have always used switch craft plugs and they are fantastic. I actually have some on the way to replaced the temporary ones i have on my probes currently. I know they a bit expensive but you cannot go wrong with a quality plug.

https://www.mouser.com/ProductDetail/502-35HDNN

I did not have issues with the make plug at all. It was the female plugs that failed or shorted internally.
 

sfgabe

Active Member
View Badges
Joined
Sep 7, 2018
Messages
172
Reaction score
264
Rating - 0%
0   0   0
The female plugs I used as temps are trash just like the males.
Same experience with a bag of them from amazon. Seems impossible to know the quality before you buy them. About 1/3 of the 20 pack I got were actually usable, and it took a lot of soldering and unsoldering to figure that out.
 

HAVE YOU EVER KEPT A RARE/UNCOMMON FISH, CORAL, OR INVERT? SHOW IT OFF IN THE THREAD!

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top