{"id":2249,"date":"2023-09-11T19:12:05","date_gmt":"2023-09-11T11:12:05","guid":{"rendered":"https:\/\/www.techcoil.com\/blog\/?p=2249"},"modified":"2023-09-11T10:42:46","modified_gmt":"2023-09-11T02:42:46","slug":"how-to-add-an-inline-cord-switch-onto-the-cable-of-a-usb-powered-device","status":"publish","type":"post","link":"https:\/\/www.techcoil.com\/blog\/how-to-add-an-inline-cord-switch-onto-the-cable-of-a-usb-powered-device\/","title":{"rendered":"How to add an inline cord switch onto the cable of a USB powered device"},"content":{"rendered":"<p>Some time ago, I shared a post of <a href=\"https:\/\/www.techcoil.com\/blog\/how-to-make-your-own-usb-powered-led-lights\/\" rel=\"noopener\" target=\"_blank\">how to make your own USB powered LED light<\/a>. If you follow that post, you will be able to make your own USB powered LED light that can be attached to a <a href=\"https:\/\/www.amazon.com\/s?k=USB+2.0+power+adapter&linkCode=ll2&tag=clivsperswebs-20&linkId=eb9876b95058b5a4495ec6a91ef1a36d&language=en_US&ref_=as_li_ss_tl\" rel=\"noopener\" target=\"_blank\">USB 2.0 power adapter<\/a> on your wall socket. When you turn on your wall socket, the lights will turn on. After you are done with using your light, you can turn off your wall socket to turn off the lights.<\/p>\n<p>Sounds like common sense right?<\/p>\n<p>However, your wall socket plug may be too far to reach at your convenience. In such a situation, you may want to add a switch onto the cable of your USB powered device.<\/p>\n<p>Given that, this post discusses how we can add a switch to a 5V USB wire. In this post, I will use a white <a href=\"https:\/\/www.amazon.com\/Inline-Switch-Control-Appliance-Rocker\/dp\/B09YBFL8B7?&linkCode=ll1&tag=clivsperswebs-20&linkId=506019aca48d6d26f2f9b4ccbed46e3f&language=en_US&ref_=as_li_ss_tl\" rel=\"noopener\" target=\"_blank\">inline cord switch<\/a> as an example to show how we can add an inline cord switch to a 5V USB wire.<\/p>\n<h2>Parts and tools<\/h2>\n<p>Here are some parts and tools that can help you add an inline cord switch onto the cable of a USB powered device:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.amazon.com\/Conductor-Security-Burglar-Station-Unshielded\/dp\/B077MHVWQC?&linkCode=ll1&tag=clivsperswebs-20&linkId=d5eb9039ccbd57f54604e51bb7620c2b&language=en_US&ref_=as_li_ss_tl\" rel=\"noopener\" target=\"_blank\">2 conductor cable<\/a><\/li>\n<li><a href=\"https:\/\/www.amazon.com\/Inline-Switch-Control-Appliance-Rocker\/dp\/B09YBFL8B7?&linkCode=ll1&tag=clivsperswebs-20&linkId=506019aca48d6d26f2f9b4ccbed46e3f&language=en_US&ref_=as_li_ss_tl\" rel=\"noopener\" target=\"_blank\">Inline cord switch<\/a><\/li>\n<li><a href=\"https:\/\/www.amazon.com\/s?k=Soldering+iron&language=en_US&crid=2AFTDZWDUSPGC&linkCode=ll2&linkId=7959be851e4c25b7cacd7329c5b4c535&sprefix=soldering+iron%2Caps%2C281&tag=clivsperswebs-20&ref=as_li_ss_tl\" rel=\"noopener\" target=\"_blank\">Soldering iron<\/a><\/li>\n<li><a href=\"https:\/\/www.amazon.com\/Yangoutool-Automatic-Stripper-Electrical-Automotive\/dp\/B089S2VPQX?&linkCode=ll1&tag=clivsperswebs-20&linkId=d3256475971929663ecc4a7da40d2782&language=en_US&ref_=as_li_ss_tl\" rel=\"noopener\" target=\"_blank\">Automatic wire stripping tool<\/a><\/li>\n<li><a href=\"https:\/\/www.amazon.com\/s?k=scissors&language=en_US&linkCode=ll2&linkId=62cd39a950c29d8132dd04f12c9b70b9&sprefix=sc%2Caps%2C279&tag=clivsperswebs-20&ref=as_li_ss_tl\" rel=\"noopener\" target=\"_blank\">Scissors<\/a><\/li>\n<li><a href=\"https:\/\/www.amazon.com\/TOWOT-Electrical-Soldering-Content-Sn60-Pd40\/dp\/B0943TPRXK?&linkCode=ll1&tag=clivsperswebs-20&linkId=8d40e9f6d0f7fc36869ebd3850f58e94&language=en_US&ref_=as_li_ss_tl\" rel=\"noopener\" target=\"_blank\">Solder Wire<\/a><\/li>\n<\/ul>\n<h2>Steps to add the inline cord switch onto the cable<\/h2>\n<p>Once you have the parts and tools in place, you are ready to add the inline cord switch onto your cable.<\/p>\n<h3>1. Strip the outer jack of the cable to add the inline cord switch<\/h3>\n<p>First, locate the part of the <a href=\"https:\/\/www.amazon.com\/Conductor-Security-Burglar-Station-Unshielded\/dp\/B077MHVWQC?&linkCode=ll1&tag=clivsperswebs-20&linkId=158215a74248bb890c36f70443582518&language=en_US&ref_=as_li_ss_tl\">2 conductor cable<\/a> that you wish to add the inline cord switch to. <\/p>\n<p>After that, use the <a href=\"https:\/\/www.amazon.com\/Yangoutool-Automatic-Stripper-Electrical-Automotive\/dp\/B089S2VPQX?&linkCode=ll1&tag=clivsperswebs-20&linkId=d3256475971929663ecc4a7da40d2782&language=en_US&ref_=as_li_ss_tl\" rel=\"noopener\" target=\"_blank\">automatic wire stripping tool<\/a> to help you create the opening.<\/p>\n<p><img decoding=\"async\" width=\"1600\" height=\"1200\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/using-Sellery-wire-stripper-to-strip-middle-of-cable.jpeg\" alt=\"using Sellery wire stripper to strip middle of cable\" class=\"aligncenter size-full wp-image-2252\" \/><\/p>\n<p>Once you have slitted the outer jacket of the cable, use your hands to slowly pull the outer jacket of the cable while keeping the red and black jackets intact. When the red and black jackets are intact, we will not break the wires easily while we pull the outer jacket apart. <\/p>\n<p><img decoding=\"async\" width=\"1600\" height=\"1200\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/outer-jack-of-2-wire-cable-stripped.jpeg\" alt=\"outer jack of 2 wire cable stripped\" class=\"aligncenter size-full wp-image-2250\" \/><\/p>\n<h3>2. Add the inline cord switch to the stripped section of the cable<\/h3>\n<p>Once you have created a sizeable opening for the inline cord switch, you can tuck the red and black wires into the switch, aligning the red one with the metal conductors on the switch. Since the red wire is designated to carry power to the USB powered device, we align it with the metal conductor. If you use other type of cables with different colors, then you will want to ensure that the wire carrying power to the USB powered device is aligned to the metal conductor.<\/p>\n<p><img decoding=\"async\" width=\"1600\" height=\"1200\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/2-cable-wires-tucked-into-inline-cord-switch.jpeg\" alt=\"2 cable wires tucked into inline cord switch\" class=\"aligncenter size-full wp-image-2254\" \/><\/p>\n<p>After that, you can cut the red wire and strip the outer jacket to expose some wires. After that, coil the exposed wires to the two ends of the metal conductors on the switch. <\/p>\n<p><img decoding=\"async\" width=\"1600\" height=\"1200\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/red-wires-coiled-onto-metal-conductors-on-inline-cord-switch.jpeg\" alt=\"red wires coiled onto metal conductors on inline cord switch\" class=\"aligncenter size-full wp-image-2256\" \/><\/p>\n<p>In order to securely attached the red wires to the metal conductors, solder the red wires onto the metal conductors.<\/p>\n<p><img decoding=\"async\" width=\"1600\" height=\"1200\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/red-wires-soldered-onto-metal-conductors-of-inline-cord-switch.jpeg\" alt=\"red wires soldered onto metal conductors of inline cord switch\" class=\"aligncenter size-full wp-image-2257\" \/><\/p>\n<p>After that, put on the switch cover and you are done with adding the inline cord switch to your 5V USB wire. <\/p>\n<p><img decoding=\"async\" width=\"1600\" height=\"1200\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/white-inline-cord-switch-on-white-cable.jpeg\" alt=\"white inline cord switch on white cable\" class=\"aligncenter size-full wp-image-2253\" \/><\/p>\n\n      <ul id=\"social-sharing-buttons-list\">\n        <li class=\"facebook\">\n          <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwp.me%2Fp245TQ-Ah\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n            <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Facebook.png\" alt=\"Facebook icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"twitter\">\n          <a href=\"https:\/\/twitter.com\/intent\/tweet?text=&url=https%3A%2F%2Fwp.me%2Fp245TQ-Ah&via=Techcoil_com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Twitter.png\" alt=\"Twitter icon\"> Tweet\n          <\/a>\n        <\/li>\n        <li class=\"linkedin\">\n          <a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=1&title=&url=https%3A%2F%2Fwp.me%2Fp245TQ-Ah&source=https:\/\/www.techcoil.com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/linkedin.png\" alt=\"Linkedin icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"pinterest\">\n          <a href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fwww.techcoil.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F2249&description=\" class=\"pin-it-button\" target=\"_blank\" role=\"button\" rel=\"nofollow\" count-layout=\"horizontal\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Pinterest.png\" alt=\"Pinterest icon\"> Save\n          <\/a>\n        <\/li>\n      <\/ul>\n    ","protected":false},"excerpt":{"rendered":"<p>Some time ago, I shared a post of <a href=\"https:\/\/www.techcoil.com\/blog\/how-to-make-your-own-usb-powered-led-lights\/\" rel=\"noopener\" target=\"_blank\">how to make your own USB powered LED light<\/a>. If you follow that post, you will be able to make your own USB powered LED light that can be attached to a <a href=\"https:\/\/www.amazon.com\/s?k=USB+2.0+power+adapter&#038;linkCode=ll2&#038;tag=clivsperswebs-20&#038;linkId=eb9876b95058b5a4495ec6a91ef1a36d&#038;language=en_US&#038;ref_=as_li_ss_tl\" rel=\"noopener\" target=\"_blank\">USB 2.0 power adapter<\/a> on your wall socket. When you turn on your wall socket, the lights will turn on. After you are done with using your light, you can turn off your wall socket to turn off the lights.<\/p>\n<p>Sounds like common sense right?<\/p>\n<p>However, your wall socket plug may be too far to reach at your convenience. In such a situation, you may want to add a switch onto the cable of your USB powered device.<\/p>\n<p>Given that, this post discusses how we can add a switch to a 5V USB wire. In this post, I will use a white <a href=\"https:\/\/www.amazon.com\/Inline-Switch-Control-Appliance-Rocker\/dp\/B09YBFL8B7?&#038;linkCode=ll1&#038;tag=clivsperswebs-20&#038;linkId=506019aca48d6d26f2f9b4ccbed46e3f&#038;language=en_US&#038;ref_=as_li_ss_tl\" rel=\"noopener\" target=\"_blank\">inline cord switch<\/a> as an example to show how we can add an inline cord switch to a 5V USB wire.<\/p>\n","protected":false},"author":1,"featured_media":2253,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[4],"tags":[766,765,762],"jetpack_featured_media_url":"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/white-inline-cord-switch-on-white-cable.jpeg","jetpack_shortlink":"https:\/\/wp.me\/p245TQ-Ah","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/2249"}],"collection":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/comments?post=2249"}],"version-history":[{"count":0,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/2249\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media\/2253"}],"wp:attachment":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media?parent=2249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/categories?post=2249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/tags?post=2249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}