seveibar/usb-c-flashlight
A compact USB-C powered push button board with a red LED, utilizing a single current-limiting resistor for the LED indicator.
- Version
- 1.0.0
- License
- unset
- Stars
- 6
dist/schematic.svg
PCB
Schematic
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600" style="background-color: rgb(245, 241, 237)" data-real-to-screen-transform="matrix(105.5510093856,0,0,-105.5510093856,784.3976133967,298.1816015144)"><style>
.boundary { fill: rgb(245, 241, 237); }
.schematic-boundary { fill: none; stroke: #fff; }
.component { fill: none; stroke: rgb(132, 0, 0); }
.chip { fill: rgb(255, 255, 194); stroke: rgb(132, 0, 0); }
.component-pin { fill: none; stroke: rgb(132, 0, 0); }
.trace:hover {
filter: invert(1);
}
.trace:hover .trace-crossing-outline {
opacity: 0;
}
.text { font-family: sans-serif; fill: rgb(0, 150, 0); }
.pin-number { fill: rgb(169, 0, 0); }
.port-label { fill: rgb(0, 100, 100); }
.component-name { fill: rgb(0, 100, 100); }
</style><rect class="boundary" x="0" y="0" width="1200" height="600"/><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_0"><rect class="component chip" x="277.75276834582" y="129.29998649743996" width="168.88161501695993" height="337.7632300339201" stroke-width="2.111020187712px" fill="rgb(255, 255, 194)" stroke="rgb(132, 0, 0)"/><rect class="component-overlay" x="277.75276834582" y="129.29998649743996" width="168.88161501695993" height="337.7632300339201" fill="transparent"/><text x="457.18948430134" y="92.35713321247997" fill="#006464" text-anchor="start" dominant-baseline="middle" font-family="sans-serif" font-size="18.999181689407997px" transform="rotate(0, 457.18948430134, 92.35713321247997)">TYPE-C-31-M-12</text><text x="457.18948430134" y="71.24693133535993" fill="#006464" text-anchor="start" dominant-baseline="middle" font-family="sans-serif" font-size="18.999181689407997px" transform="rotate(0, 457.18948430134, 71.24693133535993)"></text><line class="component-pin" x1="298.86297022294" y1="507.172600097888" x2="298.86297022294" y2="467.06321653136" stroke-width="2.111020187712px"/><circle class="component-pin" cx="298.86297022294" cy="509.28362028559997" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="296.75195003522805" y="488.17341840847996" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="rotate(-90 296.75195003522805 488.17341840847996)">1</text><text class="pin-number" x="298.86297022294" y="456.5081155928" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="start" dominant-baseline="middle" font-size="15.832651407839998px" transform="rotate(-90 298.86297022294 456.5081155928)">GND1</text><line class="component-pin" x1="319.97317210005997" y1="507.172600097888" x2="319.97317210005997" y2="467.06321653136" stroke-width="2.111020187712px"/><circle class="component-pin" cx="319.97317210005997" cy="509.28362028559997" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="317.862151912348" y="488.17341840847996" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="rotate(-90 317.862151912348 488.17341840847996)">2</text><text class="pin-number" x="319.97317210005997" y="456.5081155928" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="start" dominant-baseline="middle" font-size="15.832651407839998px" transform="rotate(-90 319.97317210005997 456.5081155928)">GND2</text><line class="component-pin" x1="486.743766929308" y1="150.41018837455997" x2="446.63438336278" y2="150.41018837455997" stroke-width="2.111020187712px"/><circle class="component-pin" cx="488.85478711702" cy="150.41018837455997" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="467.74458523989995" y="148.29916818684796" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="">3</text><text class="pin-number" x="436.07928242421997" y="150.41018837455997" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="15.832651407839998px" transform="">VBUS1</text><line class="component-pin" x1="486.743766929308" y1="171.52039025168" x2="446.63438336278" y2="171.52039025168" stroke-width="2.111020187712px"/><circle class="component-pin" cx="488.85478711702" cy="171.52039025168" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="467.74458523989995" y="169.40937006396797" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="">4</text><text class="pin-number" x="436.07928242421997" y="171.52039025168" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="15.832651407839998px" transform="">VBUS2</text><line class="component-pin" x1="486.743766929308" y1="445.95301465423995" x2="446.63438336278" y2="445.95301465423995" stroke-width="2.111020187712px"/><circle class="component-pin" cx="488.85478711702" cy="445.95301465423995" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="467.74458523989995" y="443.841994466528" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="">5</text><text class="pin-number" x="436.07928242421997" y="445.95301465423995" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="15.832651407839998px" transform="">SBU2</text><line class="component-pin" x1="486.743766929308" y1="361.51220714576" x2="446.63438336278" y2="361.51220714576" stroke-width="2.111020187712px"/><circle class="component-pin" cx="488.85478711702" cy="361.51220714576" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="467.74458523989995" y="359.40118695804796" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="">6</text><text class="pin-number" x="436.07928242421997" y="361.51220714576" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="15.832651407839998px" transform="">CC1</text><line class="component-pin" x1="486.743766929308" y1="298.1816015144" x2="446.63438336278" y2="298.1816015144" stroke-width="2.111020187712px"/><circle class="component-pin" cx="488.85478711702" cy="298.1816015144" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="467.74458523989995" y="296.070581326688" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="">7</text><text class="pin-number" x="436.07928242421997" y="298.1816015144" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="15.832651407839998px" transform="">DM2</text><line class="component-pin" x1="486.743766929308" y1="234.85099588303999" x2="446.63438336278" y2="234.85099588303999" stroke-width="2.111020187712px"/><circle class="component-pin" cx="488.85478711702" cy="234.85099588303999" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="467.74458523989995" y="232.73997569532798" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="">8</text><text class="pin-number" x="436.07928242421997" y="234.85099588303999" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="15.832651407839998px" transform="">DP1</text><line class="component-pin" x1="486.743766929308" y1="277.07139963727997" x2="446.63438336278" y2="277.07139963727997" stroke-width="2.111020187712px"/><circle class="component-pin" cx="488.85478711702" cy="277.07139963727997" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="467.74458523989995" y="274.960379449568" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="">9</text><text class="pin-number" x="436.07928242421997" y="277.07139963727997" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="15.832651407839998px" transform="">DM1</text><line class="component-pin" x1="486.743766929308" y1="255.96119776016" x2="446.63438336278" y2="255.96119776016" stroke-width="2.111020187712px"/><circle class="component-pin" cx="488.85478711702" cy="255.96119776016" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="467.74458523989995" y="253.850177572448" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="">10</text><text class="pin-number" x="436.07928242421997" y="255.96119776016" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="15.832651407839998px" transform="">DP2</text><line class="component-pin" x1="486.743766929308" y1="424.84281277712" x2="446.63438336278" y2="424.84281277712" stroke-width="2.111020187712px"/><circle class="component-pin" cx="488.85478711702" cy="424.84281277712" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="467.74458523989995" y="422.731792589408" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="">11</text><text class="pin-number" x="436.07928242421997" y="424.84281277712" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="15.832651407839998px" transform="">SBU1</text><line class="component-pin" x1="486.743766929308" y1="382.62240902288" x2="446.63438336278" y2="382.62240902288" stroke-width="2.111020187712px"/><circle class="component-pin" cx="488.85478711702" cy="382.62240902288" r="2.111020187712" stroke-width="2.111020187712px"/><text class="pin-number" x="467.74458523989995" y="380.51138883516796" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="15.832651407839998px" transform="">12</text><text class="pin-number" x="436.07928242421997" y="382.62240902288" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="15.832651407839998px" transform="">CC2</text></g><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_1"><rect class="component-overlay" x="728.1276149165833" y="52.22788356848382" width="111.84135012910906" height="48.838954534422285" fill="transparent"/><path d="M 798.4387712020748 87.00460259391998 L 770.314310813822 101.0668381029061" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><path d="M 797.564923291191 87.0283919042616 L 839.9689650456924 87.0283919042616" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><path d="M 770.314310813822 72.94236708493423 L 798.4387712020748 87.00460259391998" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><path d="M 770.314310813822 101.0668381029061 L 770.314310813822 72.94236708493423" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><path d="M 798.4387712020748 72.94236708493423 L 798.4387712020748 101.0668381029061" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><path d="M 770.0970606240272 87.00460259391998 L 728.1276149165833 87.00460259391998" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><path d="M 767.4423627989024 56.26885615151437 L 757.0951501802246 54.474644680928556 L 760.7414413097333 64.33506933397129" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><path d="M 775.4932479270645 68.97613205374105 L 774.2151837050287 68.02657928662259 L 761.2728103153918 58.41138224286453 L 761.2058430878889 58.31039991567749" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><path d="M 786.3065311897261 54.02209503906963 L 775.9593185710481 52.22788356848382 L 779.605609700557 62.08830822152655" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><path d="M 794.3574163178881 66.72937094129631 L 793.0793520958524 65.77981817417785 L 780.1369787062155 56.16462113041979 L 780.0700114787124 56.06363880323275" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><text x="782.9811193771433" y="120.94921730283978" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="hanging" font-size="18.999181689407997px">red</text><text x="817.4429223578171" y="62.861662083057325" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="auto" font-size="18.999181689407997px">LED</text><circle cx="726.9999612134629" cy="87.08289047178684" r="2.111020187712px" stroke-width="2.111020187712px" fill="none" stroke="rgb(132, 0, 0)"/><circle cx="840.9950411573809" cy="87.13109624587062" r="2.111020187712px" stroke-width="2.111020187712px" fill="none" stroke="rgb(132, 0, 0)"/></g><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_2"><text x="784.3976133967" y="509.28362028559997" fill="red" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="5.27755046928px">Symbol not found: push_button_normally_open_momentary_right</text></g><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_3"><rect class="component-overlay" x="778.7106682610874" y="292.43026978597777" width="62.78198558631618" height="15.695500845696245" fill="transparent"/><path d="M 778.7106682610874 300.2780202088259 L 794.4061631746273 300.2780202088259" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><path d="M 825.7971530017073 300.2780202088259 L 841.4926538474036 300.2780202088259" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><path d="M 810.101652156011 292.43026978597777 L 825.797147069551 292.43026978597777 L 825.797147069551 308.125770631674 L 794.4061513103147 308.125770631674 L 794.4061513103147 292.43026978597777 L 810.1016521560109 292.43026978597777" stroke="rgb(132, 0, 0)" fill="none" stroke-width="2.111020187712px"/><text x="809.074457766666" y="289.41960665908516" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="auto" font-size="18.999181689407997px">R1</text><text x="809.074457766666" y="312.4606571462712" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="hanging" font-size="18.999181689407997px">1kΩ</text><circle cx="777.4091590998758" cy="300.29915054958525" r="2.111020187712px" stroke-width="2.111020187712px" fill="none" stroke="rgb(132, 0, 0)"/><circle cx="840.7397564334563" cy="300.33156978379327" r="2.111020187712px" stroke-width="2.111020187712px" fill="none" stroke="rgb(132, 0, 0)"/></g><g class="trace" data-circuit-json-type="schematic_trace" data-schematic-trace-id="schematic_trace_0"><path d="M 834.006587807932 514.56117075488 L 855.1167896850519 514.56117075488 L 855.1167896850519 406.37138613464 L 731.6221087038999 406.37138613464 L 731.6221087038999 298.1816015144 L 752.73231058102 298.1816015144" class="trace-invisible-hover-outline" stroke="rgb(0, 150, 0)" fill="none" stroke-width="16.888161501696px" stroke-linecap="round" opacity="0" stroke-linejoin="round"/><path d="M 834.006587807932 514.56117075488 L 855.1167896850519 514.56117075488 L 855.1167896850519 406.37138613464 L 731.6221087038999 406.37138613464 L 731.6221087038999 298.1816015144 L 752.73231058102 298.1816015144" stroke="rgb(0, 150, 0)" fill="none" stroke-width="2.111020187712px" stroke-linecap="round" stroke-linejoin="round"/></g><g class="trace" data-circuit-json-type="schematic_trace" data-schematic-trace-id="schematic_trace_1"><path d="M 816.06291621238 298.1816015144 L 837.1731180895 298.1816015144 L 837.1731180895 192.63059212879998 L 703.6510912167159 192.63059212879998 L 703.6510912167159 87.07958274319998 L 724.761293093836 87.07958274319998 L 727.400068328476 87.07958274319998" class="trace-invisible-hover-outline" stroke="rgb(0, 150, 0)" fill="none" stroke-width="16.888161501696px" stroke-linecap="round" opacity="0" stroke-linejoin="round"/><path d="M 816.06291621238 298.1816015144 L 837.1731180895 298.1816015144 L 837.1731180895 192.63059212879998 L 703.6510912167159 192.63059212879998 L 703.6510912167159 87.07958274319998 L 724.761293093836 87.07958274319998 L 727.400068328476 87.07958274319998" stroke="rgb(0, 150, 0)" fill="none" stroke-width="2.111020187712px" stroke-linecap="round" stroke-linejoin="round"/></g><g class="trace" data-circuit-json-type="schematic_trace" data-schematic-trace-id="schematic_trace_2"><path d="M 841.395158464924 87.07958274319998 L 844.0339336995639 87.07958274319998 L 869.4717269614936 87.07958274319998 L 869.4717269614936 150.51573938394557" class="trace-invisible-hover-outline" stroke="rgb(0, 150, 0)" fill="none" stroke-width="16.888161501696px" stroke-linecap="round" opacity="0" stroke-linejoin="round"/><path d="M 841.395158464924 87.07958274319998 L 844.0339336995639 87.07958274319998 L 869.4717269614936 87.07958274319998 L 869.4717269614936 150.51573938394557" stroke="rgb(0, 150, 0)" fill="none" stroke-width="2.111020187712px" stroke-linecap="round" stroke-linejoin="round"/></g><text x="869.4717269614936" y="160.0153302286496" fill="red" text-anchor="middle" dominant-baseline="middle" font-family="sans-serif" font-size="5.27755046928px">Symbol not found: rail_down</text></svg>