<html lang="en">
<head>
<title>Battery charger and dual power supply unit</title>
-<!-- 2020-07-12 Sun 02:52 -->
+<!-- 2021-01-03 P 00:39 -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="Org-mode">
<div class="outline-text-2" id="text-2">
<p>
I needed dual voltage power supply for my lab that runs on mains
-electricity (wall power) and slowly charges attached 12V Lead-Acid
-battery. Lead-acid battery in turn provides high current when needed
-as well as power in portable situations or when mains electricity is
-not available.
+electricity (wall power) and slowly charges (use-changing) attached
+12V Lead-Acid battery. Lead-acid battery in turn provides high current
+when needed as well as power in portable situations or when mains
+electricity is not available.
</p>
</p>
<p>
-!!!WARNING!!! I use USB-A connectors for power output, but IT IS NOT
-COMPATIBLE WITH USB DEVICES AND POSSIBLY WITH EXISTING USB CABLES.
+<b>!!!WARNING!!!</b> <a href="../alternative%20USB%20layout/">Alternative and incompatible USB wiring/layout</a> is
+being used here.
</p>
<p>
-Normal USB devices and cables should not be plugged in! It would
-damage device/cable and likely power supply.
+<b>Normal USB devices and cables should not be plugged in! It would
+damage device/cable and likely power supply.</b>
</p>
<p>
<figure>
-<p><img src="connector%20terminal/USB%20hack.png" class="img-responsive" alt="USB%20hack.png">
+<p><img src="../alternative%20USB%20layout/schematic.png" class="img-responsive" alt="schematic.png">
</p>
</figure>
<p>
As seen, it has dual voltage output. Additionally one wire is
-dedicated to data transmission and can be used with <a href="https://en.wikipedia.org/wiki/1-Wire">1-wire</a>
-protocol. Power supply simply passively links all data wires together
-but does not participate in communication.
+dedicated to data transmission and can be used with <a href="https://en.wikipedia.org/wiki/1-Wire">1-Wire</a> protocol
+</p>
+
+<p>
+1-Wire data router/hub is really simple. Power supply simply passively
+links all data wires together.
</p>
<p>
</div></div></div>
<footer id="postamble" class="">
<div><p class="author">Author: Svjatoslav Agejenko</p>
-<p class="date">Created: 2020-07-12 Sun 02:52</p>
+<p class="date">Created: 2021-01-03 P 00:39</p>
<p class="creator"><a href="http://www.gnu.org/software/emacs/">Emacs</a> 26.1 (<a href="http://orgmode.org">Org-mode</a> 9.1.9)</p>
</div>
</footer>
* Project description
I needed dual voltage power supply for my lab that runs on mains
-electricity (wall power) and slowly charges attached 12V Lead-Acid
-battery. Lead-acid battery in turn provides high current when needed
-as well as power in portable situations or when mains electricity is
-not available.
+electricity (wall power) and slowly charges (use-changing) attached
+12V Lead-Acid battery. Lead-acid battery in turn provides high current
+when needed as well as power in portable situations or when mains
+electricity is not available.
[[file:make.png]]
Power supply provides about 13 Volts and 5 Volts simultaneously.
-!!!WARNING!!! I use USB-A connectors for power output, but IT IS NOT
-COMPATIBLE WITH USB DEVICES AND POSSIBLY WITH EXISTING USB CABLES.
+*!!!WARNING!!!* [[../alternative%20USB%20layout/][Alternative and incompatible USB wiring/layout]] is
+being used here.
-Normal USB devices and cables should not be plugged in! It would
-damage device/cable and likely power supply.
+*Normal USB devices and cables should not be plugged in! It would
+damage device/cable and likely power supply.*
I found USB-A connectors to be easily available, cheap, reliable and
functional, so I re-purposed connector for my own needs but I'm using
totally incompatible electrical wiring.
-[[file:connector%20terminal/USB%20hack.png]]
+[[file:../alternative%20USB%20layout/schematic.png]]
As seen, it has dual voltage output. Additionally one wire is
-dedicated to data transmission and can be used with [[https://en.wikipedia.org/wiki/1-Wire][1-wire]]
-protocol. Power supply simply passively links all data wires together
-but does not participate in communication.
+dedicated to data transmission and can be used with [[https://en.wikipedia.org/wiki/1-Wire][1-Wire]] protocol
+
+1-Wire data router/hub is really simple. Power supply simply passively
+links all data wires together.
Power supply uses 3D printed body with lots of holes, for fanless
cooling.
--- /dev/null
+<!doctype html>
+<html lang="en">
+<head>
+<title>Alternative (and incompatible) layout for USB connectors</title>
+<!-- 2021-01-03 P 00:30 -->
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<meta name="generator" content="Org-mode">
+<meta name="author" content="Svjatoslav Agejenko">
+<link href="https://bootswatch.com/3/darkly/bootstrap.min.css" rel="stylesheet">
+<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
+<style type="text/css">
+footer {background-color: #111 !important;}
+pre {background-color: #111; color: #ccc;}
+</style>
+<style type="text/css">
+/* org mode styles on top of twbs */
+
+html {
+ position: relative;
+ min-height: 100%;
+}
+
+body {
+ font-size: 18px;
+ margin-bottom: 105px;
+}
+
+footer {
+ position: absolute;
+ bottom: 0;
+ width: 100%;
+ height: 101px;
+ background-color: #f5f5f5;
+}
+
+footer > div {
+ padding: 10px;
+}
+
+footer p {
+ margin: 0 0 5px;
+ text-align: center;
+ font-size: 16px;
+}
+
+#table-of-contents {
+ margin-top: 20px;
+ margin-bottom: 20px;
+}
+
+blockquote p {
+ font-size: 18px;
+}
+
+pre {
+ font-size: 16px;
+}
+
+.footpara {
+ display: inline-block;
+}
+
+figcaption {
+ font-size: 16px;
+ color: #666;
+ font-style: italic;
+ padding-bottom: 15px;
+}
+
+/* from twbs docs */
+
+.bs-docs-sidebar.affix {
+ position: static;
+}
+@media (min-width: 768px) {
+ .bs-docs-sidebar {
+ padding-left: 20px;
+ }
+}
+
+/* All levels of nav */
+.bs-docs-sidebar .nav > li > a {
+ display: block;
+ padding: 4px 20px;
+ font-size: 14px;
+ font-weight: 500;
+ color: #999;
+}
+.bs-docs-sidebar .nav > li > a:hover,
+.bs-docs-sidebar .nav > li > a:focus {
+ padding-left: 19px;
+ color: #A1283B;
+ text-decoration: none;
+ background-color: transparent;
+ border-left: 1px solid #A1283B;
+}
+.bs-docs-sidebar .nav > .active > a,
+.bs-docs-sidebar .nav > .active:hover > a,
+.bs-docs-sidebar .nav > .active:focus > a {
+ padding-left: 18px;
+ font-weight: bold;
+ color: #A1283B;
+ background-color: transparent;
+ border-left: 2px solid #A1283B;
+}
+
+/* Nav: second level (shown on .active) */
+.bs-docs-sidebar .nav .nav {
+ display: none; /* Hide by default, but at >768px, show it */
+ padding-bottom: 10px;
+}
+.bs-docs-sidebar .nav .nav > li > a {
+ padding-top: 1px;
+ padding-bottom: 1px;
+ padding-left: 30px;
+ font-size: 12px;
+ font-weight: normal;
+}
+.bs-docs-sidebar .nav .nav > li > a:hover,
+.bs-docs-sidebar .nav .nav > li > a:focus {
+ padding-left: 29px;
+}
+.bs-docs-sidebar .nav .nav > .active > a,
+.bs-docs-sidebar .nav .nav > .active:hover > a,
+.bs-docs-sidebar .nav .nav > .active:focus > a {
+ padding-left: 28px;
+ font-weight: 500;
+}
+
+/* Nav: third level (shown on .active) */
+.bs-docs-sidebar .nav .nav .nav {
+ padding-bottom: 10px;
+}
+.bs-docs-sidebar .nav .nav .nav > li > a {
+ padding-top: 1px;
+ padding-bottom: 1px;
+ padding-left: 40px;
+ font-size: 12px;
+ font-weight: normal;
+}
+.bs-docs-sidebar .nav .nav .nav > li > a:hover,
+.bs-docs-sidebar .nav .nav .nav > li > a:focus {
+ padding-left: 39px;
+}
+.bs-docs-sidebar .nav .nav .nav > .active > a,
+.bs-docs-sidebar .nav .nav .nav > .active:hover > a,
+.bs-docs-sidebar .nav .nav .nav > .active:focus > a {
+ padding-left: 38px;
+ font-weight: 500;
+}
+
+/* Show and affix the side nav when space allows it */
+@media (min-width: 992px) {
+ .bs-docs-sidebar .nav > .active > ul {
+ display: block;
+ }
+ /* Widen the fixed sidebar */
+ .bs-docs-sidebar.affix,
+ .bs-docs-sidebar.affix-bottom {
+ width: 213px;
+ }
+ .bs-docs-sidebar.affix {
+ position: fixed; /* Undo the static from mobile first approach */
+ top: 20px;
+ }
+ .bs-docs-sidebar.affix-bottom {
+ position: absolute; /* Undo the static from mobile first approach */
+ }
+ .bs-docs-sidebar.affix .bs-docs-sidenav,.bs-docs-sidebar.affix-bottom .bs-docs-sidenav {
+ margin-top: 0;
+ margin-bottom: 0
+ }
+}
+@media (min-width: 1200px) {
+ /* Widen the fixed sidebar again */
+ .bs-docs-sidebar.affix-bottom,
+ .bs-docs-sidebar.affix {
+ width: 263px;
+ }
+}
+</style>
+<script type="text/javascript">
+$(function() {
+ 'use strict';
+
+ $('.bs-docs-sidebar li').first().addClass('active');
+
+ $(document.body).scrollspy({target: '.bs-docs-sidebar'});
+
+ $('.bs-docs-sidebar').affix();
+});
+</script>
+</head>
+<body>
+<div id="content" class="container">
+<div class="row"><div class="col-md-9"><h1 class="title">Alternative (and incompatible) layout for USB connectors</h1>
+
+<div id="outline-container-sec-1" class="outline-2">
+<h2 id="sec-1"><span class="section-number-2">1</span> General</h2>
+<div class="outline-text-2" id="text-1">
+<ul class="org-ul">
+<li>DISCLAIMER: I DO ELECTRONICS AND 3D DESIGN SOLELY AS A HOBBY. THERE
+COULD BE ERRORS THAT CAN RESULT IN ALL KINDS OF DAMAGE. USE THESE
+DESIGNS AT YOUR OWN RISK.
+</li>
+
+<li>This design is released under Creative Commons Zero (CC0) license.
+</li>
+
+<li>Authors:
+<ul class="org-ul">
+<li>Svjatoslav Agejenko
+<ul class="org-ul">
+<li>Homepage: <a href="https://svjatoslav.eu">https://svjatoslav.eu</a>
+</li>
+<li>Email: <a href="mailto://svjatoslav@svjatoslav.eu">svjatoslav@svjatoslav.eu</a>
+</li>
+</ul>
+</li>
+
+<li>Valeria Agejenko
+</li>
+</ul>
+</li>
+
+<li>See also:
+<ul class="org-ul">
+<li><a href="../../index.html">Other physical projects in this repository</a>
+</li>
+<li><a href="https://www.svjatoslav.eu/projects/">Other projects hosted at svjatoslav.eu</a>
+</li>
+</ul>
+</li>
+</ul>
+</div>
+</div>
+
+<div id="outline-container-sec-2" class="outline-2">
+<h2 id="sec-2"><span class="section-number-2">2</span> Project description</h2>
+<div class="outline-text-2" id="text-2">
+<p>
+<b>Warning!</b> Here I describe a hack that I personally found useful for
+my own needs. But it is dangerous. Not to be replicated unless you
+know that you are doing.
+</p>
+
+
+
+<figure>
+<p><img src="make.png" class="img-responsive" alt="make.png">
+</p>
+</figure>
+
+<p>
+I needed a way to power various devices I build.
+</p>
+
+<p>
+Requirements:
+</p>
+
+<ul class="org-ul">
+<li>Reliable.
+</li>
+<li>Cheap.
+</li>
+<li>Easy to use.
+</li>
+<li>Popular and highly available.
+</li>
+<li>Ability to draw significant current directly from 12V cheap, popular
+and powerful lead-acid battery (optionally off-grid). Useful for
+powerful electric motors, heaters, soldering irons, radio
+transmitters, etc.
+</li>
+<li>Ability to draw limited but stabilized 5V power. Good for digital
+circuits.
+</li>
+<li>Ability to have limited and simple 1-wire digital communication.
+</li>
+</ul>
+
+<p>
+USB Type A connectors are best match that I found.
+</p>
+
+<p>
+The main problem is, I like USB connectors but I want to use different
+and incompatible electrical layout with them.
+</p>
+
+<p>
+<b>Connecting proper USB power supplies, devices and even cables to the
+ones that use alternative electrical layout would do damage!!!</b>
+</p>
+
+<p>
+To avoid accidental mismatches, I mark all connectors/cables and devices that
+use alternative wiring with <a href="stickers.png">printed, laminated warning stickers</a>.
+</p>
+
+<p>
+Alternative wiring schematic:
+<img src="schematic.png" class="img-responsive" alt="schematic.png">
+</p>
+
+<ul class="org-ul">
+<li>Outer shell is ground.
+</li>
+<li>2 central pins are re-purposed to deliver +12V and high power.
+</li>
+<li>1 pin is for limited power +5V.
+</li>
+<li>1 pin for 1-Wire data.
+</li>
+</ul>
+
+
+<p>
+Example warning marking on device to indicate that alternative USB
+layout is used here:
+</p>
+
+
+<figure>
+<p><img src="../lab%20heater%20and%20cooler/make,%202.png" class="img-responsive" alt="make,%202.png">
+</p>
+</figure>
+</div>
+</div>
+</div><div class="col-md-3"><nav id="table-of-contents">
+<div id="text-table-of-contents" class="bs-docs-sidebar">
+<ul class="nav">
+<li><a href="#sec-1">1. General</a></li>
+<li><a href="#sec-2">2. Project description</a></li>
+</ul>
+</div>
+</nav>
+</div></div></div>
+<footer id="postamble" class="">
+<div><p class="author">Author: Svjatoslav Agejenko</p>
+<p class="date">Created: 2021-01-03 P 00:30</p>
+<p class="creator"><a href="http://www.gnu.org/software/emacs/">Emacs</a> 26.1 (<a href="http://orgmode.org">Org-mode</a> 9.1.9)</p>
+</div>
+</footer>
+</body>
+</html>
--- /dev/null
+#+TITLE: Alternative (and incompatible) layout for USB connectors
+#+author: Svjatoslav Agejenko
+#+LANGUAGE: en
+
+* (document settings) :noexport:
+** use dark style for TWBS-HTML exporter
+#+HTML_HEAD: <link href="https://bootswatch.com/3/darkly/bootstrap.min.css" rel="stylesheet">
+#+HTML_HEAD: <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
+#+HTML_HEAD: <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
+#+HTML_HEAD: <style type="text/css">
+#+HTML_HEAD: footer {background-color: #111 !important;}
+#+HTML_HEAD: pre {background-color: #111; color: #ccc;}
+#+HTML_HEAD: </style>
+
+* General
++ DISCLAIMER: I DO ELECTRONICS AND 3D DESIGN SOLELY AS A HOBBY. THERE
+ COULD BE ERRORS THAT CAN RESULT IN ALL KINDS OF DAMAGE. USE THESE
+ DESIGNS AT YOUR OWN RISK.
+
++ This design is released under Creative Commons Zero (CC0) license.
+
++ Authors:
+ - Svjatoslav Agejenko
+ - Homepage: https://svjatoslav.eu
+ - Email: [[mailto://svjatoslav@svjatoslav.eu][svjatoslav@svjatoslav.eu]]
+
+ - Valeria Agejenko
+
++ See also:
+ - [[../../index.html][Other physical projects in this repository]]
+ - [[https://www.svjatoslav.eu/projects/][Other projects hosted at svjatoslav.eu]]
+
+* Project description
+
+*Warning!* Here I describe a hack that I personally found useful for
+my own needs. But it is dangerous. Not to be replicated unless you
+know that you are doing.
+
+
+[[file:make.png]]
+
+I needed a way to power various devices I build.
+
+Requirements:
+
+- Reliable.
+- Cheap.
+- Easy to use.
+- Popular and highly available.
+- Ability to draw significant current directly from 12V cheap, popular
+ and powerful lead-acid battery (optionally off-grid). Useful for
+ powerful electric motors, heaters, soldering irons, radio
+ transmitters, etc.
+- Ability to draw limited but stabilized 5V power. Good for digital
+ circuits.
+- Ability to have limited and simple 1-wire digital communication.
+
+USB Type A connectors are best match that I found.
+
+The main problem is, I like USB connectors but I want to use different
+and incompatible electrical layout with them.
+
+*Connecting proper USB power supplies, devices and even cables to the
+ones that use alternative electrical layout would do damage!!!*
+
+To avoid accidental mismatches, I mark all connectors/cables and devices that
+use alternative wiring with [[file:stickers.png][printed, laminated warning stickers]].
+
+Alternative wiring schematic:
+[[file:schematic.png]]
+
+- Outer shell is ground.
+- 2 central pins are re-purposed to deliver +12V and high power.
+- 1 pin is for limited power +5V.
+- 1 pin for 1-Wire data.
+
+
+Example warning marking on device to indicate that alternative USB
+layout is used here:
+
+[[file:../lab%20heater%20and%20cooler/make,%202.png]]