Reef Central Online Community

Go Back   Reef Central Online Community > General Interest Forums > Do It Yourself
Blogs FAQ Calendar

Notices

User Tag List

Reply
Thread Tools
Unread 05/30/2016, 12:48 AM   #2276
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
shiftline, can you open up the DCT controller and see how it compares to the CP controller?


d0ughb0y is offline   Reply With Quote
Unread 05/30/2016, 02:29 AM   #2277
shiftline
Registered Member
 
shiftline's Avatar
 
Join Date: Dec 2014
Location: Canada
Posts: 537
Wow I missed a lot today! I have to keep up. Laying in bed today but I'll pop open the RW contoller tomorrow and see (or did you want dct specifically. )


__________________
ReefDudes - Making Reefing Easy!

Current Tank Info: Fuson 30L
shiftline is offline   Reply With Quote
Unread 05/30/2016, 03:14 AM   #2278
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
you don't need to "test" what mode you're in. You can keep track of the first power-up event since the pumps start up at full speed. Replace memory for sensing...


__________________
Failure isn't an option It's a requirement. 660g 380inwall+280smp/surge S/L/Soft/Maxima/RBTA/Clown/Chromis/Anthias/Tang/Mandarin/Jawfish/Goby/Wrasse/D'back. DIY 12' Skimmer ActuatedSurge ConcreteScape
karimwassef is offline   Reply With Quote
Unread 05/30/2016, 03:14 AM   #2279
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
for full disclosure, I have 3 DCT15000 and I've been "hankering" to hook them up to my Apex for a year... this is most excellent!


__________________
Failure isn't an option It's a requirement. 660g 380inwall+280smp/surge S/L/Soft/Maxima/RBTA/Clown/Chromis/Anthias/Tang/Mandarin/Jawfish/Goby/Wrasse/D'back. DIY 12' Skimmer ActuatedSurge ConcreteScape
karimwassef is offline   Reply With Quote
Unread 05/30/2016, 12:28 PM   #2280
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
Quote:
Originally Posted by shiftline View Post
Wow I missed a lot today! I have to keep up. Laying in bed today but I'll pop open the RW contoller tomorrow and see (or did you want dct specifically. )
DCT.

Can you read what motor controller chip they used on the CP-40 and DCT controler?


d0ughb0y is offline   Reply With Quote
Unread 05/30/2016, 12:53 PM   #2281
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
I haven't opened it up.

I guess I like the idea of overriding the controller because it guarantees compatibility.


__________________
Failure isn't an option It's a requirement. 660g 380inwall+280smp/surge S/L/Soft/Maxima/RBTA/Clown/Chromis/Anthias/Tang/Mandarin/Jawfish/Goby/Wrasse/D'back. DIY 12' Skimmer ActuatedSurge ConcreteScape
karimwassef is offline   Reply With Quote
Unread 05/30/2016, 05:42 PM   #2282
shiftline
Registered Member
 
shiftline's Avatar
 
Join Date: Dec 2014
Location: Canada
Posts: 537
Quote:
Originally Posted by d0ughb0y View Post
DCT.



Can you read what motor controller chip they used on the CP-40 and DCT controler?


They have a glaze over it to hide the text but I'll see if there is any hope next time I pop it back open



Piggybacking off the buttons is actually an excellent way to do it. I hacked that cheap auto feeder that way and essentially had a really to quickly push the button


__________________
ReefDudes - Making Reefing Easy!

Current Tank Info: Fuson 30L
shiftline is offline   Reply With Quote
Unread 06/01/2016, 02:22 AM   #2283
WaterMagnet
Registered Member
 
Join Date: Jul 2011
Posts: 17
Apologies if this question has already been asked.
I'm looking at the schematic and can see the ATO1 and ATO2 connections to the Arduino. What I can't see is the schematic for the float switches. What I would like to understand is whether pull-up or pull-down resistors are used as I can't see the code for using the internal pull-up circuitry.
Can anyone help?

Thanks


WaterMagnet is offline   Reply With Quote
Unread 06/01/2016, 08:49 AM   #2284
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
Quote:
Originally Posted by WaterMagnet View Post
Apologies if this question has already been asked.
I'm looking at the schematic and can see the ATO1 and ATO2 connections to the Arduino. What I can't see is the schematic for the float switches. What I would like to understand is whether pull-up or pull-down resistors are used as I can't see the code for using the internal pull-up circuitry.
Can anyone help?

Thanks
code in interruptsio.ino

Code:
void initATO(){
  //ATO1 PK3 PCINT19
  //ATO2 PK4 PCINT20
  DDRK &= ~(_BV(PK3)|_BV(PK4)); //inputs
  PORTK |= (_BV(PK3) | _BV(PK4)); //pullups
}
----------------
Go Sharks!
Go Warriors!


d0ughb0y is offline   Reply With Quote
Unread 06/01/2016, 09:47 AM   #2285
WaterMagnet
Registered Member
 
Join Date: Jul 2011
Posts: 17
Quote:
Originally Posted by d0ughb0y View Post
code in interruptsio.ino

Code:
void initATO(){
  //ATO1 PK3 PCINT19
  //ATO2 PK4 PCINT20
  DDRK &= ~(_BV(PK3)|_BV(PK4)); //inputs
  PORTK |= (_BV(PK3) | _BV(PK4)); //pullups
}
----------------
Go Sharks!
Go Warriors!

Thanks for highlighting code. So I am assuming you are using the pullups within the Arduino. In other words you are not using external resistors to perform this? Can you please confirm?


WaterMagnet is offline   Reply With Quote
Unread 06/01/2016, 09:52 AM   #2286
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
Quote:
Originally Posted by WaterMagnet View Post
Thanks for highlighting code. So I am assuming you are using the pullups within the Arduino. In other words you are not using external resistors to perform this? Can you please confirm?
yes, that is correct. so you connect the ATO wire to the arduino pin and the other to ground.


----------------
Go Sharks!
Go Warriors!


d0ughb0y is offline   Reply With Quote
Unread 06/01/2016, 10:02 AM   #2287
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
I just ordered a DCT 4000 pump to replace my good old eheim. Mainly for less power consumption , less noise and controlability.

Hopefully, I will know how to control the pump once and for all, and find out how/why it worked supplying 24V-GND-5v PWM directly to the 3 pins instead of 3 phase 24 volt pulses to the W V U pins.

If both the DCT pump and the cross flow use 24v 3 phase motors, so in theory, you can hook up the DCT pump to the cross flow controller and run it in reverse right?


----------------
Go Sharks!
Go Warriors!


d0ughb0y is offline   Reply With Quote
Unread 06/01/2016, 10:32 AM   #2288
WaterMagnet
Registered Member
 
Join Date: Jul 2011
Posts: 17
Quote:
Originally Posted by d0ughb0y View Post
yes, that is correct. so you connect the ATO wire to the arduino pin and the other to ground.


----------------
Go Sharks!
Go Warriors!
Thanks

Sent from my SM-G935F using Tapatalk


WaterMagnet is offline   Reply With Quote
Unread 06/01/2016, 01:19 PM   #2289
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
Quote:
Originally Posted by Krazie4Acans View Post
The DCT pumps DO ramp up on start. The run dry feature is in the pump. To reset it if it runs dry you have to unplug the pump from the controller for a few seconds and then connect it back up.

The pump can detect if it stops spinning or if runs dry.
I can see how it detects that it stopped spinning.
Anyone knows how the pump detects it is running dry?

just curious because I saw an ad for a different brand DC pump that cannot do this, so it provides a float switch that you install and will stop the pump if water falls below a certain level. I think that is kind of awkward.

----------------
Go Sharks!
Go Warriors!


d0ughb0y is offline   Reply With Quote
Unread 06/01/2016, 02:38 PM   #2290
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
I would assume that the impedance of the coils change if they're turning without resistance? You can compare the amplitude and phase of the voltage and current.

Or, they may just have a temperature sensor.. Run dry gets hotter faster?


__________________
Failure isn't an option It's a requirement. 660g 380inwall+280smp/surge S/L/Soft/Maxima/RBTA/Clown/Chromis/Anthias/Tang/Mandarin/Jawfish/Goby/Wrasse/D'back. DIY 12' Skimmer ActuatedSurge ConcreteScape
karimwassef is offline   Reply With Quote
Unread 06/01/2016, 02:53 PM   #2291
theatrus
100-mile-commuter
 
theatrus's Avatar
 
Join Date: Dec 2004
Location: almost nevada
Posts: 4,721
Quote:
Originally Posted by karimwassef View Post
I would assume that the impedance of the coils change if they're turning without resistance? You can compare the amplitude and phase of the voltage and current.

Or, they may just have a temperature sensor.. Run dry gets hotter faster?


Torque required would dramatically decrease, so that's one way.

All of these pumps seem to run without any feedback mechanism, so they have no idea how fast the impeller is actually spinning.


__________________
Custom electronics purveyor. blueAcro.com

Current Tank Info: 90g SPS+mixed reef (10 yrs): LEDBrick LEDs, 40g custom sump, Ca reactor, chiller, Vortech, lots of custom electronics
theatrus is offline   Reply With Quote
Unread 06/01/2016, 02:56 PM   #2292
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
They don't have a feedback line, but they do respond to shaft rotation.

For example, when the pump is stuck, the controller will reverse direction for a turn (assume it's trying to release the blockage) and then turn forward again.

It will try this several times before giving up and going into "warning" state where all the lights blink and the pump is turned off.


__________________
Failure isn't an option It's a requirement. 660g 380inwall+280smp/surge S/L/Soft/Maxima/RBTA/Clown/Chromis/Anthias/Tang/Mandarin/Jawfish/Goby/Wrasse/D'back. DIY 12' Skimmer ActuatedSurge ConcreteScape
karimwassef is offline   Reply With Quote
Unread 06/02/2016, 10:19 AM   #2293
Krazie4Acans
Registered Member
 
Krazie4Acans's Avatar
 
Join Date: Dec 2012
Posts: 360
They may just look at the amount of feedback voltage (or frequency) that occurs on the power line of all DC devices. A turning rotor will produce a feedback pulse that can be used to determine if the rotor is turning. If it's not turning then no feedback pulse.


Krazie4Acans is offline   Reply With Quote
Unread 06/02/2016, 10:33 AM   #2294
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
Quote:
Originally Posted by Krazie4Acans View Post
They may just look at the amount of feedback voltage (or frequency) that occurs on the power line of all DC devices. A turning rotor will produce a feedback pulse that can be used to determine if the rotor is turning. If it's not turning then no feedback pulse.
Right. That's what I meant when I said I see how it detects if it stops spinning.
I suppose what others are saying is this feedback will be different if pump is running dry. The change will be gradual though if water level goes down slowly due to evaporation with no top off.

If I understand this correctly, the soft start is really due to it not using hall sensors (physical limitation), so it has to ramp up spinning and is not some nifty feature jebao invented and added to the pump.


d0ughb0y is offline   Reply With Quote
Unread 06/02/2016, 10:35 AM   #2295
theatrus
100-mile-commuter
 
theatrus's Avatar
 
Join Date: Dec 2004
Location: almost nevada
Posts: 4,721
Quote:
Originally Posted by Krazie4Acans View Post
They may just look at the amount of feedback voltage (or frequency) that occurs on the power line of all DC devices. A turning rotor will produce a feedback pulse that can be used to determine if the rotor is turning. If it's not turning then no feedback pulse.


Disclaimer: not a motor expert

These are brushless though- I wouldn't expect a back EMF pulse. It's basically an AC motor, just at a lower voltage and run by a variable frequency drive. Most of the motor controller solutions I've seen either want commutation sensors or an RPM pickup inductive loop. That said, there are ways to detect stalls based on current control.


__________________
Custom electronics purveyor. blueAcro.com

Current Tank Info: 90g SPS+mixed reef (10 yrs): LEDBrick LEDs, 40g custom sump, Ca reactor, chiller, Vortech, lots of custom electronics
theatrus is offline   Reply With Quote
Unread 06/02/2016, 10:38 AM   #2296
theatrus
100-mile-commuter
 
theatrus's Avatar
 
Join Date: Dec 2004
Location: almost nevada
Posts: 4,721
Quote:
Originally Posted by d0ughb0y View Post



If I understand this correctly, the soft start is really due to it not using hall sensors (physical limitation), so it has to ramp up spinning and is not some nifty feature jebao invented and added to the pump.


Yeah, this is my understanding too. The rate of change of speed is limited to keep the impeller speed close to the intended speed within a wide range of operating conditions.


__________________
Custom electronics purveyor. blueAcro.com

Current Tank Info: 90g SPS+mixed reef (10 yrs): LEDBrick LEDs, 40g custom sump, Ca reactor, chiller, Vortech, lots of custom electronics
theatrus is offline   Reply With Quote
Unread 06/02/2016, 10:45 AM   #2297
Krazie4Acans
Registered Member
 
Krazie4Acans's Avatar
 
Join Date: Dec 2012
Posts: 360
Any magnet (electro or otherwise) produces a back voltage pulse as it passes the center pole of the opposing magnet.

A dry pump (or one sucking in air due to low water) would have very little resistance to the change from full water resistance to air water combined or air only. This would result in many changes that could be measured. Change in pulse frequency, reduction in current, lower pulse amplitude (due to reduced resistance), etc... These are all measurable on the power line and could be used to detect dry pump conditions.


Krazie4Acans is offline   Reply With Quote
Unread 06/02/2016, 10:55 AM   #2298
theatrus
100-mile-commuter
 
theatrus's Avatar
 
Join Date: Dec 2004
Location: almost nevada
Posts: 4,721
My Neptune Apex web interface compatible DIY reef controller

Quote:
Originally Posted by Krazie4Acans View Post
Any magnet (electro or otherwise) produces a back voltage pulse as it passes the center pole of the opposing magnet.

A dry pump (or one sucking in air due to low water) would have very little resistance to the change from full water resistance to air water combined or air only. This would result in many changes that could be measured. Change in pulse frequency, reduction in current, lower pulse amplitude (due to reduced resistance), etc... These are all measurable on the power line and could be used to detect dry pump conditions.


The drive circuitry is energized at all times though, all three phases running 120 degrees AC waveforms. There isn't any condition like the brush crossing contacts which would produce an EMF spike in a brushed motor (the magnet is always passing an energized coil). If you detached all the drive FETs and let the motor coast, detecting the speed would be easy (as you now have an alternator). Drivers generally allow an inductive pickup trace under the motor to detect the permanent magnets on the rotor. Since the drivers don't actually generate a linear curve and instead PWM, you need to further filter everything to do detection even from this kind of pickup.

The best bet from what I can gather in VFD literature is monitoring the current per phase to infer loading. A dry or stalled motor will comparatively take little or a ton of current respectively, which trips a limit with some time hysteresis.


__________________
Custom electronics purveyor. blueAcro.com

Current Tank Info: 90g SPS+mixed reef (10 yrs): LEDBrick LEDs, 40g custom sump, Ca reactor, chiller, Vortech, lots of custom electronics

Last edited by theatrus; 06/02/2016 at 11:03 AM.
theatrus is offline   Reply With Quote
Unread 06/05/2016, 02:17 PM   #2299
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
I got the DCT pump and took a quick look at the controller.

The controller only contains 2 chips, a 28pin TSOP (assuming this is a cpu), and an LM339 quad comparator for the BEMF sensor. Jebao conveniently erased all the parts marking to prevent others from cloning them.

There is no PWM input.

I checked the input to a pair of FETs, and can see only the bottom FET use PWM. The bottom FET is connected directly (through a series resistor) to the cpu, and the upper FET is connected through a transistor that is connected to the cpu. The PWM is 15.38khz (65us), and duty cycle varies from 70% to 100% by switching from one led to 10 leds. This matches exactly the specs for DCT 4000, it states the flow range is 2837L to 4000L. 2837 is 70% of 4000. If the pump can be fully controlled, I think it is possible to run the pump at a lower gph.

I think the controller is very well designed. whether jebao designed it or copied it, I don't know.

From this, I think the only way to fully control the pump is through another motor driver circuit. I'll look at options. Suggestions welcome. Whatever solution I end up with here, will work on the cross flow / gyre as well.


d0ughb0y is offline   Reply With Quote
Unread 06/05/2016, 04:50 PM   #2300
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
Why not use the controller but override the manual button controls with FETs or relays activated by an Apex or Arduino?


__________________
Failure isn't an option It's a requirement. 660g 380inwall+280smp/surge S/L/Soft/Maxima/RBTA/Clown/Chromis/Anthias/Tang/Mandarin/Jawfish/Goby/Wrasse/D'back. DIY 12' Skimmer ActuatedSurge ConcreteScape
karimwassef is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT -6. The time now is 06:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Powered by Searchlight © 2024 Axivo Inc.
Use of this web site is subject to the terms and conditions described in the user agreement.
Reef CentralTM Reef Central, LLC. Copyright ©1999-2022
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.