element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Automatic usb switch
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 4 replies
  • Answers 2 answers
  • Subscribers 664 subscribers
  • Views 1020 views
  • Users 0 members are here
  • openelect
  • control
  • usb
  • raspberry_pi
  • openelec
  • switch
Related

Automatic usb switch

chrisdracko
chrisdracko over 10 years ago

USB 2.0 2 Way Manual Share Switch 1 Printer to 2 PC's: Amazon.co.uk: Electronics

 

Hi I have built a Openelec media center with a USB HDD fitted inside a case im trying to work out how to created a automatic switch like the one in link above that will allow me to connect its as a portable HDD to the computer when USB cable is plugged and if not then USB drive is connected to pie

 

Conditions

 

If (connection 2 usb connection = true) {

      Connect as potable drive on PC

}

else{

     Connect as potable drive on raspberry

}

 

As the USB supply 5v im thinking if this is detected on the USB connection two it could switch the data connections to that connection if power to connection 2 is absent the connection is left on the pi as default.

 

image

  • Sign in to reply
  • Cancel
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago

    A sinple relay may suffice here, powered from the 5V USB power. As you aptly tated, when 5V is there, the relay can be energised and switch the USB Hard drive to the connected device.

     

    You could also do this with a logic multiplexer chip to keep the power consumption down like this one http://www.intersil.com/content/dam/Intersil/documents/isl5/isl54222a.pdf

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • chrisdracko
    0 chrisdracko over 10 years ago in reply to Robert Peter Oakes

    Thank you Peter  for you quick and insightful answer. I'm a novice at this although I did think of a rely  I discarded this due to the power and size of using a rely. the information on the multiplexer chip look promising judging by the diagrams is the perfect solution although would be lying if I said i fully understand how I would start building it.

     

    Thank You

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • chrisdracko
    0 chrisdracko over 10 years ago in reply to Robert Peter Oakes

    Thank you Peter  for you quick and insightful answer. I'm a novice at this although I did think of a rely  I discarded this due to the power and size of using a rely. the information on the multiplexer chip look promising judging by the diagrams is the perfect solution although would be lying if I said i fully understand how I would start building it.

     

    Thank You

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago in reply to chrisdracko

    if you can afford it, get more than one, and play on a bread board first, you may need a header to mount the chip on depending if it is a DIP package or a SMT (Dual Inline Package, Surface Mount Technology), once you figure it out then build the final one, if you fry one in the process then you have a spare image

     

    Folks here can help you if you decide to go this route so don't be afraid to get your soldering Iron Hot image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • chrisdracko
    0 chrisdracko over 10 years ago in reply to Robert Peter Oakes

    Thank you again Peter for your help In not afraid of the soldering iron lol as done many small projects in the pass although never something as complex as this project. but hope im starting to get whats going on here.

     

    Thanks Chris

    image

    • Cancel
    • Vote Up 0 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