+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Full Member level 1
    Points: 785, Level: 6

    Join Date
    Jul 2016
    Posts
    115
    Helped
    2 / 2
    Points
    785
    Level
    6

    automatic pump controller

    hi

    i am planning to make automatic water motor controller.
    when the water level in my tank (which is located at top of my house) is less than some defined value, it will start motor by relay.
    the motor is located at ground level and tank is 15 meter vertically far from motor.

    i will use hc-sr04 ( ULTRASONIC SENSOR) to measure the water level in my tank.
    i will mount uc( arduino mini) with hc-sr04 at top of the tank.
    two wires will come for relay input from arduino mini.
    wire length will ~20 meter.

    now my problem is the ultrasonic sensor is sometimes reading distance incorrectly. the real distance was 20cm. i was watching reading for every 1 sec. of interval. i saw 0 value and nearer value (false value) for 3 times in 20 times of reading!

    what to do?
    please suggest me.
    thanks in advance.

    best regards
    vraj

    •   Alt27th August 2017, 12:04

      advertising

        
       

  2. #2
    Super Moderator
    Points: 52,830, Level: 56
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster

    Join Date
    Apr 2014
    Posts
    10,635
    Helped
    2519 / 2519
    Points
    52,830
    Level
    56

    Re: automatic pump controller

    Hi,

    Use a reliable sensor.

    Klaus

    •   Alt27th August 2017, 12:43

      advertising

        
       

  3. #3
    Full Member level 1
    Points: 785, Level: 6

    Join Date
    Jul 2016
    Posts
    115
    Helped
    2 / 2
    Points
    785
    Level
    6

    Re: automatic pump controller

    This will both time and money consuming method.
    I was expecting for change in code.
    Kindly suggest. Thanks

    •   Alt27th August 2017, 12:59

      advertising

        
       

  4. #4
    Full Member level 4
    Points: 2,489, Level: 11
    Achievements:
    7 years registered

    Join Date
    Feb 2009
    Location
    Kolkata
    Posts
    190
    Helped
    25 / 25
    Points
    2,489
    Level
    11

    Re: automatic pump controller

    i saw 0 value and nearer value (false value) for 3 times in 20 times of reading
    I have made US Distance finder using HC-SR04 sensor and MCU 16F676 which shows almost accurate reading of distance between sensor and target. Though I have not tested it using water as target. But i think it should not show 0 or nearer value in any way. Post your code.

--[[ ]]--