Page 3 of 4
Re: Code for DC return pump
Posted: Thu Mar 12, 2015 11:24 am
by jegillis
rimai wrote:What does the servo class do?
Isn't is just a simple PWM signal?
It is a PWM signal that is sent at a 50hz instead of 490hz of a standard PWM signal
I'm using the code servo.writeMicroseconds with a value of between 1000 and 2000 now instead of just .write (value in degrees) as its easier to understand the changes.. Basically the microsecond value is the length of time on high pulse and the low pulse needs to be about 20ms consistently which is where I am getting confused as I was under the impression that the low pulse length was determined by the frequency
Looking at the Servo.h comments it looks like I can use refresh() throughout the loop to ensure that the signal is refreshed every 20ms so I may have answered my own question.
I also just found a servo library someone wrote specifically to control these esc's so I may give that a try if this doesn't work.
Re: Code for DC return pump
Posted: Tue Mar 24, 2015 12:50 pm
by Ismaclst
Ok, so I found a design flaw in the DCT pumps. It doesn't retain the speed you had when you lose power to the pump. When it starts back up it is on max speed. This is a problem for me because I restrict my drain so I can create a full siphon. Thankfully, I used the code Roberto gave me to shut off my pump when my overflow reaches a certain height. But this just creates a cycle of off and on on my pump since it is running at max speed. Has anybody heard if Jebao fixed this in a new controller? I don't want to have this happen when I'm away for an extended period of time.
Re: Code for DC return pump
Posted: Tue Mar 24, 2015 4:32 pm
by lnevo
Thats horrible. That would be a deal breaker for most people.
Re: Code for DC return pump
Posted: Tue Mar 24, 2015 5:04 pm
by Ismaclst
I know. I wish I had researched these before I bought mine.
Re: Code for DC return pump
Posted: Sun Jun 14, 2015 6:07 am
by Ismaclst
Ismaclst wrote:Ok, so I found a design flaw in the DCT pumps. It doesn't retain the speed you had when you lose power to the pump. When it starts back up it is on max speed. This is a problem for me because I restrict my drain so I can create a full siphon. Thankfully, I used the code Roberto gave me to shut off my pump when my overflow reaches a certain height. But this just creates a cycle of off and on on my pump since it is running at max speed. Has anybody heard if Jebao fixed this in a new controller? I don't want to have this happen when I'm away for an extended period of time.
I contacted fish street, who I bought this from, about the problem. They are going to send me an updated controller that fixes this issue.
Re: Code for DC return pump
Posted: Thu Aug 27, 2015 12:03 pm
by Ismaclst
jegillis wrote:So the code works to output the correct signal from the low ato port
Running into another problem in that I need to run through my loop as close as possible to every 20ms for this to work which is not happening.
otherwise all I get is random jitters from the motor
code examples I have found have sketches that control only the motor and add a 20ms delay in the loop. Is their a way to determine how long it takes to run through the loop?
Any other ideas?
Did you ever get this to work correctly?