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

    Join Date
    Jul 2016
    Posts
    95
    Helped
    2 / 2
    Points
    661
    Level
    5

    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: 48,763, Level: 53
    Awards:
    Most Frequent Poster

    Join Date
    Apr 2014
    Posts
    9,996
    Helped
    2394 / 2394
    Points
    48,763
    Level
    53

    Re: automatic pump controller

    Hi,

    Use a reliable sensor.

    Klaus

    •   Alt27th August 2017, 12:43

      advertising

        
       

  3. #3
    Full Member level 1
    Points: 661, Level: 5

    Join Date
    Jul 2016
    Posts
    95
    Helped
    2 / 2
    Points
    661
    Level
    5

    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 3
    Points: 2,422, Level: 11
    Achievements:
    7 years registered

    Join Date
    Feb 2009
    Location
    Kolkata
    Posts
    181
    Helped
    24 / 24
    Points
    2,422
    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.

--[[ ]]--