element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Community Hub
Community Hub
Member's Forum TIP120 Transistor for AC voltage?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 20 replies
  • Answers 9 answers
  • Subscribers 572 subscribers
  • Views 2666 views
  • Users 0 members are here
  • valve
  • transistor
  • ac
  • sprinkler
Related

TIP120 Transistor for AC voltage?

ntewinkel
ntewinkel over 9 years ago

Hello all!

 

My sprinkler controller is starting to act up and it's so old I can't find replacement parts!

 

So I'm thinking of using a Raspberry Pi to control the valves. I've noticed online opensprinkler.com has done this before. I like their setup, and might also buy their solution, but being a DIY Maker type I'd like to also try this myself.

 

The very first thing I noticed is that the valves are all made to run on 24v AC. The old sprinkler controller has a 24v AC adapter.

 

I have TIP120 transistors, but I can't tell by the datasheet if it can be used to switch AC voltages.

 

I also have TOP223Y transistors, which do state that they can switch AC.

 

Or if you have any other ideas that might be more suitable, that would also be welcomed advice!

 

What do you think?

 

Thanks!

-Nico

  • Sign in to reply
  • Cancel

Top Replies

  • D_Hersey
    D_Hersey over 9 years ago +2 suggested
    You can use a transformer to generate your 24VAC. This will provide your isolation from the line. Using optical or other types of isolation to protect your controller is a very good idea. A properly designed…
  • gdstew
    gdstew over 9 years ago +1 verified
    No the TIP120 can not switch AC. The TOP223Y device is not meant to switch AC either. It is a AC/DC converter switching regulator. There are several ways to switch AC using DC control voltages with the…
  • D_Hersey
    D_Hersey over 9 years ago +1 suggested
    You could use TRIACs or back-to-back SCRs.
  • gdstew
    0 gdstew over 9 years ago

    No the TIP120 can not switch AC. The TOP223Y device is not meant to switch AC either. It is a AC/DC converter switching regulator.

    There are several ways to switch AC using DC control voltages with the most often used being the good old mechanical relay. In

    your application this would probably be the best choice also. Mechanical relays will require some kind of driver circuit to handle the

    coil current and a reverse bias diode across the relay coil pins to handle the inductive voltage spike when the coil is turned off.

    Electrically isolating the Pi outputs from the driver circuit with opto-isolators is always a good idea. You can find reasonably priced

    already built relay boards for Raspberry Pi by Googling for them. The sprinkler controller uses what is considered to be low voltage

    AC for safety reasons (around water it is very important) and this should eliminate most concerns that occur when connecting

    these boards to high voltage AC such as normal house line voltage.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 9 years ago

    You could use TRIACs or back-to-back SCRs.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 9 years ago

    You can use a transformer to generate your 24VAC.  This will provide your isolation from the line.  Using optical or other types of isolation to protect your controller is a very good idea.  A properly designed solid-state switch will have better MTBF than a relay.  You can use an AC SSR if this is a one-off and you don't want to shoulder much design effort.  You can use TRIAC output optocouplers to have an easy time controlling your thrystors

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • dougw
    0 dougw over 9 years ago

    You could use optically isolated triacs to provide isolation as well as ac switching....then it is just like driving an LED.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 9 years ago

    Y'know you can switch AC with a MOSFET if you have a supervoltage.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jc2048
    0 jc2048 over 9 years ago

    If you really, really, really want to use the TIP120, you could place it in a diode bridge - the diodes would steer the ac so that the transistor only saw dc. (Use an optocoupler to get around all the problems of biassing the transistor appropriately.) But it's a daft thing to do: the bridge and the transistor would dissipate so much power they'd need to be bolted to a heatsink and the volts drop would be so high that the valve might struggle a bit to pull in.

     

    To echo the wise advice above, if it were me I'd either buy a relay board (which is the easy, simply-connect-it-together approach if you just want to get the job done) or view it as a way to get familiar with triacs (if you want a project you can learn from and develop further into other areas). It looks like you'd get some expert advice here if you wanted to go the triac route and being 24Vac it would be much safer than experimenting with mains voltage.

     

    The circuit that John posts in the last comment on this thread gives you a general idea of the circuit you'd be putting together

     

    https://www.element14.com/community/people/jw0752/blog/2016/05/17/analyzing-and-hacking-a-power-supply-board

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • gdstew
    0 gdstew over 9 years ago in reply to D_Hersey

    "A properly designed solid-state switch will have better MTBF than a relay."

     

    Given the amount of use a relay will see in a lawn sprinkler system (once a day worst case, more likely a few times a week)

    I don't see this as a problem at all.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 9 years ago

    Using a little transformer confers a benefit because output power will be limited by the size of the core.  These transformers are ubiquitous in the HVAC industry, IIRC

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 9 years ago in reply to gdstew

    Even when it is not switching the relay has environmental sensitivity due to potential oxidation of the contacts.  I am not a big fan of electro-mechanical relays, but they have their uses.  Once upon a time mercury-wetted relays were very popular for switching large inductive loads

     

    Bistable relays are really neato where they are indicated

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 9 years ago

    I forgot about that FWBR 'trick.'  Not a bad idea. One could use Shottkys, maybe, to mitigate the drop.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube