Water Tank Level/Water bore controller

Discussion in 'The Projects Forum' started by buck1106, Jul 31, 2015.

  1. buck1106

    Thread Starter New Member

    Jul 31, 2015
    5
    0
    Hey guys,
    I have purchased a Raspberry Pi 2, Open Sprinkler plus, sd card, wifi adapter, 1kohm resistors and an ultrasonic detector.
    I am going to setup my heavy water using irrigation system to the raspberry pi 2 and open sprinkler plus attachment. I was wondering how I could go about using this ultrasonic detector to determine the level of the water tank and control the water bore so it is on when the water level is low but off when it is high. I want to be able to check the level of the tank without having to physically extract the 'dip stick'.
    I want to be able to keep it at a maximum of 85% in order to allow for any rainfall to not be wasted. It should be noted that it generally lies around 50% but declines over summer. The water bore is 100m away from the tank. I was thinking of connecting an normally closed solenoid (as normally open are too expensive) at the input of the tank and hooking it up with a solid state relay connected to the raspberry pi and the associated resistors to control voltage.

    I am a novice at this sort of project but i'm a quick learner and would love any input with regards to ideas or code.
    Any ideas would be greatly appreciated.

    Many Thanks,
     
  2. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,346
    Hello,

    Most solid state relays I know have an infrared led as input.
    I do not see a current limiting resistor for the led in your schematic.
    Do you have the specifications of the solid state relays?

    Bertus
     
  3. buck1106

    Thread Starter New Member

    Jul 31, 2015
    5
    0
    Hey was thinking of using the ssr 25a
     
  4. ebeowulf17

    Active Member

    Aug 12, 2014
    678
    79
    My experience with SSRs has been with standalone units, which usually accept a wide range of input voltages with no current limiting required (based on a few schematics I've seen, I think they often include a linear regulator to control voltage and/or current to the LED.)

    I was initially surprised by your comment, but then looked at a few datasheets for board-mount SSRs and found them to be as you described.

    So I suppose the question here is which type of SSR the OP is planning to use...
     
  5. Lestraveled

    Well-Known Member

    May 19, 2014
    1,957
    1,215
    Buck
    Do you understand what bertus and ebeowulf are talking about? Some SSR have specific input voltages that they work at. Some are variable by using a series resistor. Have you selected a model yet?
     
  6. buck1106

    Thread Starter New Member

    Jul 31, 2015
    5
    0
    This sounds too complex for what i'm requiring, would a ordinary relay serve the same purpose. What design do you suggest i alter to?
     
  7. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,346
  8. buck1106

    Thread Starter New Member

    Jul 31, 2015
    5
    0
    yes that was the one i was planning on using.
    what design do you think is best in order to enable me to see the level of the tank but also make the bore pump (which has a built in shutoff when the line is closed) run within a range of levels
     
  9. buck1106

    Thread Starter New Member

    Jul 31, 2015
    5
    0
    Hey guys ive added a bit to my design im going to incorporate it with my small greenhouse to make it worthwhile and as a fun project.
    I've done a rough diagram -sorry for the quality first time using the program. A couple of questions what is the best way of stepping down the voltage from 240vac to 25vac for the solenoid or is it best to use a separate relay.
    I really appreciate the feedback given so far.

    Also i've just randomly allocated the GPIO for now i will have to check which are available as the open sprinkler takes up a large number of ports out of the 40 for RP2.
     
Loading...