+ Post New Thread
Results 1 to 13 of 13
  1. #1
    Advanced Member level 3
    Points: 3,608, Level: 14
    baileychic's Avatar
    Join Date
    Aug 2017
    Posts
    719
    Helped
    54 / 54
    Points
    3,608
    Level
    14

    Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Related

    I am doing a automatic water level controller using PIC18F46K22 which also monitors mains voltage and pump current and controls the Pump.

    I thought it is better to implement dynamic dry-run and overload current calculation method. So, Can I implement this method in the code?

    Target = 2-HP Pump, 1-Phase, 220V, 50Hz

    https://www.google.com/search?q=Hors...hrome&ie=UTF-8

    2 HP = 1471W

    Lets take 1500W for calculation purpose as it will be easier.

    1500W/220V = 6.8181A nominal pump current

    Dry-Run Current = nominal current - 20% of nominal current
    Overload Current = nominal current + 20% of nominal current

    Dry-Run Current = 6.8181A - (6.8181A * 20 / 100) = 5.4545A

    Overload Current = 6.8181A + (6.8181A * 20 / 100) = 8.1818A

    20/100 = 0.2 (this is known that is 20% value)

    1500W is known

    Voltage is known by measuring through ADC

    Current is known as measured through ADC

    What I want is a an equation to find out

    dynamic dry-run and overload currents that is when mains voltage supplied to pump varies then current also varies and so I need to get dry-run and overload currents in run-time.

    So, how to do that?

    Should I find out dynamic power from voltage and pump currents and then calculate?

    Code:
    	mainsVoltageMeasuredInRunTime * pumpCurrentMeasuredInRunTime = pumpPowerInWatts
    
    	pumpPowerInWatts / mainsVoltageMeasuredInRunTime = pumpRunTimeNominalCurrent
    
    	pumpRunTimeDryRunCurrent = pumpRunTimeNominalCurrent - (20% pumpRunTimeNominalCurrent)
    
    	pumpRunTimeOverloadCurrent = pumpRunTimeNominalCurrent + (20% pumpRunTimeNominalCurrent)
    Is the above method correct?

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 24,863, Level: 38
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    4,763
    Helped
    1055 / 1055
    Points
    24,863
    Level
    38

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela

    I think you also need to consider power factor.


    1 members found this post helpful.

  3. #3
    Super Moderator
    Points: 53,792, Level: 56

    Join Date
    Apr 2011
    Location
    Minneapolis, Minnesota, USA
    Posts
    13,110
    Helped
    2617 / 2617
    Points
    53,792
    Level
    56

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela

    When starting up your motor is likely to draw several more Amperes than it does during normal running.


    1 members found this post helpful.

  4. #4
    Advanced Member level 3
    Points: 3,608, Level: 14
    baileychic's Avatar
    Join Date
    Aug 2017
    Posts
    719
    Helped
    54 / 54
    Points
    3,608
    Level
    14

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela

    Yes, I am considering 7 times nominal current and so 6A * 7 = 42A and so I am using a 50A type ACS758 sensor. Is my method correct?

    How to use the Power Factor in the calculation?



  5. #5
    Advanced Member level 5
    Points: 24,863, Level: 38
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    4,763
    Helped
    1055 / 1055
    Points
    24,863
    Level
    38

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela



    1 members found this post helpful.

  6. #6
    Advanced Member level 5
    Points: 13,929, Level: 28
    nandhu015's Avatar
    Join Date
    Feb 2006
    Location
    India
    Posts
    1,964
    Helped
    300 / 300
    Points
    13,929
    Level
    28
    Blog Entries
    18

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela

    In my opinion, Dry run current and overload current should be set by end user.

    Nandhu


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  7. #7
    Advanced Member level 5
    Points: 18,454, Level: 32
    Achievements:
    7 years registered

    Join Date
    Nov 2012
    Posts
    3,269
    Helped
    816 / 816
    Points
    18,454
    Level
    32

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela

    Is the above method correct?
    Looks OK.

    For dry run (pump running without pumping anything), the actual current will depend on the type of motor. For simple capacitor start induction motors, 20% will be a conservative value.

    You need to see the boilerplate.


    1 members found this post helpful.

  8. #8
    Super Moderator
    Points: 83,142, Level: 70
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,673
    Helped
    4538 / 4538
    Points
    83,142
    Level
    70

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela

    In a simple system with one power source and one load it probably isn't necessary to take power factor into account as the measured values will change according to conditions anyway and could just be monitored. I would agree that making the '20%' user programmable and independently for dry and overload would be a good idea as these may have to be found empirically. Additionally, it might be useful to add another user programmable parameter, the 'ignore' time when power is first applied as the start current time will depend somewhat on whether it starts dry or under loaded conditions.

    If the 'normal' values are calculated, or better still actually measured, they can be treated as constants, then all the program has to do is a comparison against real time values to determine the pump status.

    In a job I did recently, I used a moving target principle, the running current was averaged over a long period (several days in this application) and deviations from normal were used to detect fault conditions rather than absolute limits.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



  9. #9
    Advanced Member level 3
    Points: 3,608, Level: 14
    baileychic's Avatar
    Join Date
    Aug 2017
    Posts
    719
    Helped
    54 / 54
    Points
    3,608
    Level
    14

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela

    Finished the simulation. Have to test more.

    Made a quick simulation video.

    Will make PCB Layout today and get one assembled board manufactured and do the hardware testing. I Will update this thread after hardware test is done.




  10. #10
    Advanced Member level 3
    Points: 3,608, Level: 14
    baileychic's Avatar
    Join Date
    Aug 2017
    Posts
    719
    Helped
    54 / 54
    Points
    3,608
    Level
    14

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela

    Forgot to mention. My code works for mains frequency 40Hz to 80Hz.



    •   AltAdvertisement

        
       

  11. #11
    Advanced Member level 5
    Points: 18,454, Level: 32
    Achievements:
    7 years registered

    Join Date
    Nov 2012
    Posts
    3,269
    Helped
    816 / 816
    Points
    18,454
    Level
    32

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela

    the running current was averaged over a long period...
    Sounds a good strategy. But...

    If you see a trend (current slowly increasing or decreasing over a long period), perhaps the motor is getting overheated or due to retire...

    If you see a periodicity, perhaps the power line supply voltage is changing or something like that...

    If you see voltage or current spikes, then perhaps you have a warning...

    Data is goldmine these days.



  12. #12
    Advanced Member level 3
    Points: 3,608, Level: 14
    baileychic's Avatar
    Join Date
    Aug 2017
    Posts
    719
    Helped
    54 / 54
    Points
    3,608
    Level
    14

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela

    Why there will be voltage / current spikes ifa MOV is put in parallel across the power line? I have one but not shown in the simulation. One MOV is used across transformer primary and also across the power supply which goes to motor.



  13. #13
    Full Member level 1
    Points: 1,138, Level: 7

    Join Date
    May 2017
    Location
    Canada
    Posts
    98
    Helped
    40 / 40
    Points
    1,138
    Level
    7

    Re: Automatic Water Level Controller - Dynamic Dry-Run and OverLoad Current Calc Rela

    One big problem is induction motor current does not drop much with no or light loads. The magentization current is always high. You need to measure true power to the motor to determine if it has no load.
    Click image for larger version. 

Name:	motor power curves.PNG 
Views:	7 
Size:	11.9 KB 
ID:	157400



--[[ ]]--