Components in circuit help!

Discussion in 'The Projects Forum' started by sammsey, Apr 12, 2012.

  1. sammsey

    Thread Starter New Member

    Apr 12, 2012
    2
    0
    Hi,

    I am trying to design a circuit that uses an Arduino board to control a solenoid valve that works off mains power. I think I have worked out that I need a resistor between the pin on the board and the base of a transistor, with a diode across a relay and the 5V power from the board into the collector side of the transistor and the emitter of the transistor to the ground. The other side of the relay is just the solenoid valve connected to the power.

    I am struggling however to work out which transistor/resistor/relay/diode I need on the board side of the circuit!

    Any help would be greatly appreciated, thanks in advance

    Tom
     
  2. wayneh

    Expert

    Sep 9, 2010
    12,094
    3,033
    You'll need to provide details regarding your relay and solenoid, particularly how much voltage and current they need. This will help determine the other components.
     
  3. mcgyvr

    AAC Fanatic!

    Oct 15, 2009
    4,769
    969
  4. sammsey

    Thread Starter New Member

    Apr 12, 2012
    2
    0
    I haven't bought a relay yet so that can be anything really, the solenoid is 240V 1A.

    I've found this http://tenettech.com/comet/?page_id=291 which essentially is what I described in the first post, however again without any specifics of components which is where I am stuck!

    Thanks
     
  5. MrChips

    Moderator

    Oct 2, 2009
    12,424
    3,359
    If you haven't bought a relay yet I would recommend getting a solid-state relay.
     
  6. wayneh

    Expert

    Sep 9, 2010
    12,094
    3,033
    I don't doubt your statement, but just curious...why SSR? I would assume water control is very low duty, and thus a mechanical relay would be fine for a long time. Are SSRs cheaper? Maybe lower control current? Personally, I have a bunch of old relays pulled from TVs or whatever whereas I'd have to go buy an SSR. So I'm biased. ;)
     
  7. MrChips

    Moderator

    Oct 2, 2009
    12,424
    3,359
    If you already have a TTL level mechanical relay and your application is very low duty then why spend more money on an SSR?

    Also if you are switching an inductive load, a mechanical relay would be better.

    When would I use an SSR?
    - high switching frequency
    - zero mechanical noise
    - more reliable
     
  8. mcgyvr

    AAC Fanatic!

    Oct 15, 2009
    4,769
    969
    You need a SPDT or DPDT relay with a "coil voltage" of 5V (or whatever voltage the power source you are using for your arduino is) and make sure the "contact rating" of the relay is sufficient for your 240VAC 1A load. Also get the parts in the pdf I posted above.. I'd just recommend the Tip102 transistor route just in case.
    The relay power/gnd in that pdf can just come right from the Vin and GND pins on the arduino.
    Then you wire up the solenoid through the C and NO contacts on the relay to turn the solenoid on when you make the arduino pin high or hook it through the C and NC pins if you want the solenoid on when the pin is low..
     
Loading...