diff options
Diffstat (limited to 'OpenPLC_modules/openplc_modules/traffic')
18 files changed, 6460 insertions, 0 deletions
diff --git a/OpenPLC_modules/openplc_modules/traffic/.gitignore b/OpenPLC_modules/openplc_modules/traffic/.gitignore new file mode 100644 index 0000000..3730224 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/.gitignore @@ -0,0 +1,29 @@ +# IDE files +*.vscode + +# For PCBs designed using KiCad: http://www.kicad-pcb.org/ +# Format documentation: http://kicad-pcb.org/help/file-formats/ + +# Temporary files +*.000 +*.bak +*.bck +*.kicad_pcb-bak +*.sch-bak +*~ +_autosave-* +*.tmp +*-save.pro +*-save.kicad_pcb +fp-info-cache + +# Netlist files (exported from Eeschema) +*.net + +# Autorouter files (exported from Pcbnew) +*.dsn +*.ses + +# Exported BOM files +*.xml +*.csv diff --git a/OpenPLC_modules/openplc_modules/traffic/bom/ibom.html b/OpenPLC_modules/openplc_modules/traffic/bom/ibom.html new file mode 100644 index 0000000..b092f48 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/bom/ibom.html @@ -0,0 +1,2388 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Interactive BOM for KiCAD</title> + <style type="text/css"> +:root { + --pcb-edge-color: black; + --pad-color: #878787; + --pad-color-highlight: #D04040; + --pin1-outline-color: #ffb629; + --pin1-outline-color-highlight: #b4ff03; +} + +html, body { + margin: 0px; + height: 100%; + font-family: Verdana, sans-serif; +} + +.dark { + --pcb-edge-color: #eee; + --pad-color: #808080; + --pin1-outline-color: #ffa800; + --pin1-outline-color-highlight: #ccff00; + background-color: #252c30; + color: #eee; +} + +button { + background-color: #eee; + border: 1px solid #888; + color: black; + height: 44px; + width: 44px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 14px; + font-weight: bolder; +} + +.dark button { + /* This will be inverted */ + background-color: #c3b7b5; +} + +button.depressed { + background-color: #0a0; + color: white; +} + +.dark button.depressed { + /* This will be inverted */ + background-color: #b3b; +} + +button:focus { + outline: 0; +} + +button#tb-btn { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.47 8.47'%3E%3Crect transform='translate(0 -288.53)' ry='1.17' y='288.8' x='.27' height='7.94' width='7.94' fill='%23f9f9f9'/%3E%3Cg transform='translate(0 -288.53)'%3E%3Crect width='7.94' height='7.94' x='.27' y='288.8' ry='1.17' fill='none' stroke='%23000' stroke-width='.4' stroke-linejoin='round'/%3E%3Cpath d='M1.32 290.12h5.82M1.32 291.45h5.82' fill='none' stroke='%23000' stroke-width='.4'/%3E%3Cpath d='M4.37 292.5v4.23M.26 292.63H8.2' fill='none' stroke='%23000' stroke-width='.3'/%3E%3Ctext font-weight='700' font-size='3.17' font-family='sans-serif'%3E%3Ctspan x='1.35' y='295.73'%3EF%3C/tspan%3E%3Ctspan x='5.03' y='295.68'%3EB%3C/tspan%3E%3C/text%3E%3C/g%3E%3C/svg%3E%0A"); + background-size: 32px 32px; + background-position: 5px 5px; + background-repeat: no-repeat; +} + +button#lr-btn { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.47 8.47'%3E%3Crect transform='translate(0 -288.53)' ry='1.17' y='288.8' x='.27' height='7.94' width='7.94' fill='%23f9f9f9'/%3E%3Cg transform='translate(0 -288.53)'%3E%3Crect width='7.94' height='7.94' x='.27' y='288.8' ry='1.17' fill='none' stroke='%23000' stroke-width='.4' stroke-linejoin='round'/%3E%3Cpath d='M1.06 290.12H3.7m-2.64 1.33H3.7m-2.64 1.32H3.7m-2.64 1.3H3.7m-2.64 1.33H3.7' fill='none' stroke='%23000' stroke-width='.4'/%3E%3Cpath d='M4.37 288.8v7.94m0-4.11h3.96' fill='none' stroke='%23000' stroke-width='.3'/%3E%3Ctext font-weight='700' font-size='3.17' font-family='sans-serif'%3E%3Ctspan x='5.11' y='291.96'%3EF%3C/tspan%3E%3Ctspan x='5.03' y='295.68'%3EB%3C/tspan%3E%3C/text%3E%3C/g%3E%3C/svg%3E%0A"); + background-size: 32px 32px; + background-position: 5px 5px; + background-repeat: no-repeat; +} + +button#bom-btn { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.47 8.47'%3E%3Crect transform='translate(0 -288.53)' ry='1.17' y='288.8' x='.27' height='7.94' width='7.94' fill='%23f9f9f9'/%3E%3Cg transform='translate(0 -288.53)' fill='none' stroke='%23000' stroke-width='.4'%3E%3Crect width='7.94' height='7.94' x='.27' y='288.8' ry='1.17' stroke-linejoin='round'/%3E%3Cpath d='M1.59 290.12h5.29M1.59 291.45h5.33M1.59 292.75h5.33M1.59 294.09h5.33M1.59 295.41h5.33'/%3E%3C/g%3E%3C/svg%3E"); + background-size: 32px 32px; + background-position: 5px 5px; + background-repeat: no-repeat; +} + +button#copy { + background-image: url("data:image/svg+xml,%3Csvg height='48' viewBox='0 0 48 48' width='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h48v48h-48z' fill='none'/%3E%3Cpath d='M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z'/%3E%3C/svg%3E"); + background-position: 6px 6px; + background-repeat: no-repeat; + background-size: 26px 26px; + border-radius: 6px; + height: 40px; + width: 40px; + margin: 10px 5px; +} + +button#copy:active { + box-shadow: inset 0px 0px 5px #6c6c6c; +} + +textarea.clipboard-temp { + position: fixed; + top: 0; + left: 0; + width: 2em; + height: 2em; + padding: 0; + border: None; + outline: None; + box-shadow: None; + background: transparent; +} + +.left-most-button { + border-right: 0; + border-top-left-radius: 6px; + border-bottom-left-radius: 6px; +} + +.middle-button { + border-right: 0; +} + +.right-most-button { + border-top-right-radius: 6px; + border-bottom-right-radius: 6px; +} + +.button-container { + font-size: 0; +} + +.dark .button-container { + filter: invert(1); +} + +@media print { + .hideonprint { + display: none; + } +} + +canvas { + cursor: crosshair; +} + +canvas:active { + cursor: grabbing; +} + +.fileinfo { + width: 100%; + max-width: 1000px; + border: none; + padding: 5px; +} + +.fileinfo .title { + font-size: 20pt; + font-weight: bold; +} + +.fileinfo td { + overflow: hidden; + white-space: nowrap; + max-width: 1px; + width: 50%; + text-overflow: ellipsis; +} + +.bom { + border-collapse: collapse; + font-family: Consolas, "DejaVu Sans Mono", Monaco, monospace; + font-size: 10pt; + table-layout: fixed; + width: 100%; + margin-top: 1px; +} + +.bom th, .bom td { + border: 1px solid black; + padding: 5px; + word-wrap: break-word; + text-align: center; + position: relative; +} + +.dark .bom th, .dark .bom td { + border: 1px solid #777; +} + +.bom th { + background-color: #CCCCCC; + background-clip: padding-box; +} + +.dark .bom th { + background-color: #3b4749; +} + +.bom tr.highlighted:nth-child(n) { + background-color: #cfc; +} + +.dark .bom tr.highlighted:nth-child(n) { + background-color: #226022; +} + +.bom tr:nth-child(even) { + background-color: #f2f2f2; +} + +.dark .bom tr:nth-child(even) { + background-color: #313b40; +} + +.bom tr { + transition: background-color 0.2s; +} + +.bom .numCol { + width: 25px; +} + +.bom .Description { + width: 10%; +} + +.bom .Part { + width: 10%; +} + +.bom .Value { + width: 15%; +} + +.bom .Quantity { + width: 65px; +} + +.bom th .sortmark { + position: absolute; + right: 1px; + top: 1px; + margin-top: -5px; + border-width: 5px; + border-style: solid; + border-color: transparent transparent #221 transparent; + transform-origin: 50% 85%; + transition: opacity 0.2s, transform 0.4s; +} + +.dark .bom th .sortmark { + filter: invert(1); +} + +.bom th .sortmark.none { + opacity: 0; +} + +.bom th .sortmark.desc { + transform: rotate(180deg); +} + +.bom th:hover .sortmark.none { + opacity: 0.5; +} + +.bom .bom-checkbox { + width: 30px; + position: relative; + user-select: none; + -moz-user-select: none; +} + +.bom .bom-checkbox:before { + content: ""; + position: absolute; + border-width: 15px; + border-style: solid; + border-color: #51829f transparent transparent transparent; + visibility: hidden; + top: -15px; +} + +.bom .bom-checkbox:after { + content: "Double click to set/unset all"; + position: absolute; + color: white; + top: -35px; + left: -26px; + background: #51829f; + padding: 5px 15px; + border-radius: 8px; + white-space: nowrap; + visibility: hidden; +} + +.bom .bom-checkbox:hover:before, .bom .bom-checkbox:hover:after { + visibility: visible; + transition: visibility 0.2s linear 1s; +} + +.split { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + overflow-y: auto; + overflow-x: hidden; + background-color: inherit; +} + +.split.split-horizontal, .gutter.gutter-horizontal { + height: 100%; + float: left; +} + +.gutter { + background-color: #ddd; + background-repeat: no-repeat; + background-position: 50%; + transition: background-color 0.3s; +} + +.dark .gutter { + background-color: #777; +} + +.gutter.gutter-horizontal { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg=='); + cursor: ew-resize; + width: 5px; +} + +.gutter.gutter-vertical { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII='); + cursor: ns-resize; + height: 5px; +} + +.searchbox { + float: left; + height: 40px; + margin: 10px 5px; + padding: 12px 32px; + font-family: Consolas, "DejaVu Sans Mono", Monaco, monospace; + font-size: 18px; + box-sizing: border-box; + border: 1px solid #888; + border-radius: 6px; + outline: none; + background-color: #eee; + transition: background-color 0.2s, border 0.2s; + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABNklEQVQ4T8XSMUvDQBQH8P/LElFa/AIZHcTBQSz0I/gFstTBRR2KUC4ldDxw7h0Bl3RRUATxi4iiODgoiLNrbQYp5J6cpJJqomkX33Z37/14d/dIa33MzDuYI4johOI4XhyNRteO46zNYjDzAxE1yBZprVeZ+QbAUhXEGJMA2Ox2u4+fQIa0mPmsCgCgJYQ4t7lfgF0opQYAdv9ABkKI/UnOFCClXKjX61cA1osQY8x9kiRNKeV7IWA3oyhaSdP0FkAtjxhj3hzH2RBCPOf3pzqYHCilfAAX+URm9oMguPzeWSGQvUcMYC8rOBJCHBRdqxTo9/vbRHRqi8bj8XKv1xvODbiuW2u32/bvf0SlDv4XYOY7z/Mavu+nM1+BmQ+NMc0wDF/LprP0DbTWW0T00ul0nn4b7Q87+X4Qmfiq2wAAAABJRU5ErkJggg=='); + background-position: 10px 10px; + background-repeat: no-repeat; +} + +.dark .searchbox { + background-color: #111; + color: #eee; +} + +.searchbox::placeholder { + color: #ccc; +} + +.dark .searchbox::placeholder { + color: #666; +} + +.filter { + width: calc(60% - 64px); +} + +.reflookup { + width: calc(40% - 10px); +} + +input[type=text]:focus { + background-color: white; + border: 1px solid #333; +} + +.dark input[type=text]:focus { + background-color: #333; + border: 1px solid #ccc; +} + +mark.highlight { + background-color: #5050ff; + color: #fff; + padding: 2px; + border-radius: 6px; +} + +.dark mark.highlight { + background-color: #76a6da; + color: #111; +} + +.menubtn { + background-color: white; + font-size: 16px; + border: none; + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 20 20'%3E%3Cpath fill='none' d='M0 0h20v20H0V0z'/%3E%3Cpath d='M15.95 10.78c.03-.25.05-.51.05-.78s-.02-.53-.06-.78l1.69-1.32c.15-.12.19-.34.1-.51l-1.6-2.77c-.1-.18-.31-.24-.49-.18l-1.99.8c-.42-.32-.86-.58-1.35-.78L12 2.34c-.03-.2-.2-.34-.4-.34H8.4c-.2 0-.36.14-.39.34l-.3 2.12c-.49.2-.94.47-1.35.78l-1.99-.8c-.18-.07-.39 0-.49.18l-1.6 2.77c-.1.18-.06.39.1.51l1.69 1.32c-.04.25-.07.52-.07.78s.02.53.06.78L2.37 12.1c-.15.12-.19.34-.1.51l1.6 2.77c.1.18.31.24.49.18l1.99-.8c.42.32.86.58 1.35.78l.3 2.12c.04.2.2.34.4.34h3.2c.2 0 .37-.14.39-.34l.3-2.12c.49-.2.94-.47 1.35-.78l1.99.8c.18.07.39 0 .49-.18l1.6-2.77c.1-.18.06-.39-.1-.51l-1.67-1.32zM10 13c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z'/%3E%3C/svg%3E%0A"); + background-position: center; + background-repeat: no-repeat; +} + +.dark .menubtn { + filter: invert(1); +} + +.menu { + position: relative; + display: inline-block; +} + +.menu-content { + display: none; + position: absolute; + background-color: white; + right: 0; + min-width: 300px; + box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); + z-index: 100; + padding: 8px; +} + +.dark .menu-content { + background-color: #111; +} + +.menu:hover .menu-content { + display: block; +} + +.menu:hover .menubtn { + background-color: #eee; +} + +.dark .menu:hover .menubtn {} + +.menu-label { + display: inline-block; + padding: 8px; + border: 1px solid #ccc; + border-top: 0; + width: calc(100% - 18px); +} + +.menu-label-top { + border-top: 1px solid #ccc; +} + +.menu-textbox { + float: left; + height: 24px; + margin: 10px 5px; + padding: 5px 5px; + font-family: Consolas, "DejaVu Sans Mono", Monaco, monospace; + font-size: 14px; + box-sizing: border-box; + border: 1px solid #888; + border-radius: 4px; + outline: none; + background-color: #eee; + transition: background-color 0.2s, border 0.2s; + width: calc(100% - 10px); +} + +.dark .menu-textbox { + background-color: #222; + color: #eee; +} + +#topmostdiv { + transition: background-color 0.3s; +} + +#top { + height: 78px; + border-bottom: 2px solid black; +} + +.dark #top { + border-bottom: 2px solid #ccc; +} + +#dbg { + display: block; +} + +::-webkit-scrollbar { + width: 8px; +} + +::-webkit-scrollbar-track { + background: #aaa; +} + +::-webkit-scrollbar-thumb { + background: #666; + border-radius: 3px; +} + +::-webkit-scrollbar-thumb:hover { + background: #555; +} + +.slider { + -webkit-appearance: none; + width: 100%; + margin: 3px 0; + padding: 0; + outline: none; + opacity: 0.7; + -webkit-transition: .2s; + transition: opacity .2s; + border-radius: 3px; +} + +.slider:hover { + opacity: 1; +} + +.slider:focus { + outline: none; +} + +.slider::-webkit-slider-runnable-track { + -webkit-appearance: none; + width: 100%; + height: 8px; + background: #d3d3d3; + border-radius: 3px; + border: none; +} + +.slider::-webkit-slider-thumb { + -webkit-appearance: none; + width: 15px; + height: 15px; + border-radius: 50%; + background: #0a0; + cursor: pointer; + margin-top: -4px; +} + +.dark .slider::-webkit-slider-thumb { + background: #3d3; +} + +.slider::-moz-range-thumb { + width: 15px; + height: 15px; + border-radius: 50%; + background: #0a0; + cursor: pointer; +} + +.slider::-moz-range-track { + height: 8px; + background: #d3d3d3; + border-radius: 3px; +} + +.dark .slider::-moz-range-thumb { + background: #3d3; +} + +.slider::-ms-track { + width: 100%; + height: 8px; + border-width: 3px 0; + background: transparent; + border-color: transparent; + color: transparent; + transition: opacity .2s; +} + +.slider::-ms-fill-lower { + background: #d3d3d3; + border: none; + border-radius: 3px; +} + +.slider::-ms-fill-upper { + background: #d3d3d3; + border: none; + border-radius: 3px; +} + +.slider::-ms-thumb { + width: 15px; + height: 15px; + border-radius: 50%; + background: #0a0; + cursor: pointer; + margin: 0; +} + +.shameless-plug { + font-size: 0.8em; + text-align: center; + display: block; +} + +.shameless-plug a { + color: #0278a4; +} + +.dark .shameless-plug a { + color: #00b9fd; +} + + </style> + <script type="text/javascript" > +/////////////////////////////////////////////// +/* + Split.js - v1.3.5 + MIT License + https://github.com/nathancahill/Split.js +*/ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Split=t()}(this,function(){"use strict";var e=window,t=e.document,n="addEventListener",i="removeEventListener",r="getBoundingClientRect",s=function(){return!1},o=e.attachEvent&&!e[n],a=["","-webkit-","-moz-","-o-"].filter(function(e){var n=t.createElement("div");return n.style.cssText="width:"+e+"calc(9px)",!!n.style.length}).shift()+"calc",l=function(e){return"string"==typeof e||e instanceof String?t.querySelector(e):e};return function(u,c){function z(e,t,n){var i=A(y,t,n);Object.keys(i).forEach(function(t){return e.style[t]=i[t]})}function h(e,t){var n=B(y,t);Object.keys(n).forEach(function(t){return e.style[t]=n[t]})}function f(e){var t=E[this.a],n=E[this.b],i=t.size+n.size;t.size=e/this.size*i,n.size=i-e/this.size*i,z(t.element,t.size,this.aGutterSize),z(n.element,n.size,this.bGutterSize)}function m(e){var t;this.dragging&&((t="touches"in e?e.touches[0][b]-this.start:e[b]-this.start)<=E[this.a].minSize+M+this.aGutterSize?t=E[this.a].minSize+this.aGutterSize:t>=this.size-(E[this.b].minSize+M+this.bGutterSize)&&(t=this.size-(E[this.b].minSize+this.bGutterSize)),f.call(this,t),c.onDrag&&c.onDrag())}function g(){var e=E[this.a].element,t=E[this.b].element;this.size=e[r]()[y]+t[r]()[y]+this.aGutterSize+this.bGutterSize,this.start=e[r]()[G]}function d(){var t=this,n=E[t.a].element,r=E[t.b].element;t.dragging&&c.onDragEnd&&c.onDragEnd(),t.dragging=!1,e[i]("mouseup",t.stop),e[i]("touchend",t.stop),e[i]("touchcancel",t.stop),t.parent[i]("mousemove",t.move),t.parent[i]("touchmove",t.move),delete t.stop,delete t.move,n[i]("selectstart",s),n[i]("dragstart",s),r[i]("selectstart",s),r[i]("dragstart",s),n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",r.style.userSelect="",r.style.webkitUserSelect="",r.style.MozUserSelect="",r.style.pointerEvents="",t.gutter.style.cursor="",t.parent.style.cursor=""}function S(t){var i=this,r=E[i.a].element,o=E[i.b].element;!i.dragging&&c.onDragStart&&c.onDragStart(),t.preventDefault(),i.dragging=!0,i.move=m.bind(i),i.stop=d.bind(i),e[n]("mouseup",i.stop),e[n]("touchend",i.stop),e[n]("touchcancel",i.stop),i.parent[n]("mousemove",i.move),i.parent[n]("touchmove",i.move),r[n]("selectstart",s),r[n]("dragstart",s),o[n]("selectstart",s),o[n]("dragstart",s),r.style.userSelect="none",r.style.webkitUserSelect="none",r.style.MozUserSelect="none",r.style.pointerEvents="none",o.style.userSelect="none",o.style.webkitUserSelect="none",o.style.MozUserSelect="none",o.style.pointerEvents="none",i.gutter.style.cursor=j,i.parent.style.cursor=j,g.call(i)}function v(e){e.forEach(function(t,n){if(n>0){var i=F[n-1],r=E[i.a],s=E[i.b];r.size=e[n-1],s.size=t,z(r.element,r.size,i.aGutterSize),z(s.element,s.size,i.bGutterSize)}})}function p(){F.forEach(function(e){e.parent.removeChild(e.gutter),E[e.a].element.style[y]="",E[e.b].element.style[y]=""})}void 0===c&&(c={});var y,b,G,E,w=l(u[0]).parentNode,D=e.getComputedStyle(w).flexDirection,U=c.sizes||u.map(function(){return 100/u.length}),k=void 0!==c.minSize?c.minSize:100,x=Array.isArray(k)?k:u.map(function(){return k}),L=void 0!==c.gutterSize?c.gutterSize:10,M=void 0!==c.snapOffset?c.snapOffset:30,O=c.direction||"horizontal",j=c.cursor||("horizontal"===O?"ew-resize":"ns-resize"),C=c.gutter||function(e,n){var i=t.createElement("div");return i.className="gutter gutter-"+n,i},A=c.elementStyle||function(e,t,n){var i={};return"string"==typeof t||t instanceof String?i[e]=t:i[e]=o?t+"%":a+"("+t+"% - "+n+"px)",i},B=c.gutterStyle||function(e,t){return n={},n[e]=t+"px",n;var n};"horizontal"===O?(y="width","clientWidth",b="clientX",G="left","paddingLeft"):"vertical"===O&&(y="height","clientHeight",b="clientY",G="top","paddingTop");var F=[];return E=u.map(function(e,t){var i,s={element:l(e),size:U[t],minSize:x[t]};if(t>0&&(i={a:t-1,b:t,dragging:!1,isFirst:1===t,isLast:t===u.length-1,direction:O,parent:w},i.aGutterSize=L,i.bGutterSize=L,i.isFirst&&(i.aGutterSize=L/2),i.isLast&&(i.bGutterSize=L/2),"row-reverse"===D||"column-reverse"===D)){var a=i.a;i.a=i.b,i.b=a}if(!o&&t>0){var c=C(t,O);h(c,L),c[n]("mousedown",S.bind(i)),c[n]("touchstart",S.bind(i)),w.insertBefore(c,s.element),i.gutter=c}0===t||t===u.length-1?z(s.element,s.size,L/2):z(s.element,s.size,L);var f=s.element[r]()[y];return f<s.minSize&&(s.minSize=f),t>0&&F.push(i),s}),o?{setSizes:v,destroy:p}:{setSizes:v,getSizes:function(){return E.map(function(e){return e.size})},collapse:function(e){if(e===F.length){var t=F[e-1];g.call(t),o||f.call(t,t.size-t.bGutterSize)}else{var n=F[e];g.call(n),o||f.call(n,n.aGutterSize)}},destroy:p}}}); + +/////////////////////////////////////////////// + +/////////////////////////////////////////////// +var config = {"redraw_on_drag": true, "highlight_pin1": false, "extra_fields": [], "dark_mode": false, "bom_view": "left-right", "board_rotation": 0.0, "checkboxes": "Sourced,Placed", "show_silkscreen": true, "layer_view": "FB"} +/////////////////////////////////////////////// + +/////////////////////////////////////////////// +var pcbdata = {"font_data": {"+": {"l": [[[0.23809523809523814, -0.42857142857142855], [1.0, -0.42857142857142855]], [[0.6190476190476191, -0.047619047619047616], [0.6190476190476191, -0.8095238095238095]]], "w": 1.2380952380952381}, "1": {"l": [[[0.7619047619047619, -0.047619047619047616], [0.19047619047619047, -0.047619047619047616]], [[0.47619047619047616, -0.047619047619047616], [0.47619047619047616, -1.0476190476190474], [0.38095238095238093, -0.9047619047619047], [0.2857142857142857, -0.8095238095238095], [0.19047619047619047, -0.7619047619047619]]], "w": 0.9523809523809523}, "2": {"l": [[[0.19047619047619047, -0.9523809523809523], [0.23809523809523808, -1.0], [0.3333333333333333, -1.0476190476190474], [0.5714285714285714, -1.0476190476190474], [0.6666666666666666, -1.0], [0.7142857142857142, -0.9523809523809523], [0.7619047619047619, -0.8571428571428571], [0.7619047619047619, -0.7619047619047619], [0.7142857142857142, -0.6190476190476191], [0.14285714285714285, -0.047619047619047616], [0.7619047619047619, -0.047619047619047616]]], "w": 0.9523809523809523}, "5": {"l": [[[0.7142857142857142, -1.0476190476190474], [0.23809523809523808, -1.0476190476190474], [0.19047619047619047, -0.5714285714285714], [0.23809523809523808, -0.6190476190476191], [0.3333333333333333, -0.6666666666666666], [0.5714285714285714, -0.6666666666666666], [0.6666666666666666, -0.6190476190476191], [0.7142857142857142, -0.5714285714285714], [0.7619047619047619, -0.47619047619047616], [0.7619047619047619, -0.23809523809523808], [0.7142857142857142, -0.14285714285714285], [0.6666666666666666, -0.09523809523809523], [0.5714285714285714, -0.047619047619047616], [0.3333333333333333, -0.047619047619047616], [0.23809523809523808, -0.09523809523809523], [0.19047619047619047, -0.14285714285714285]]], "w": 0.9523809523809523}, "E": {"l": [[[0.23809523809523808, -0.5714285714285714], [0.5714285714285714, -0.5714285714285714]], [[0.7142857142857142, -0.047619047619047616], [0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -1.0476190476190474], [0.7142857142857142, -1.0476190476190474]]], "w": 0.9047619047619047}, "D": {"l": [[[0.23809523809523803, -0.047619047619047616], [0.23809523809523803, -1.0476190476190474], [0.4761904761904761, -1.0476190476190474], [0.619047619047619, -1.0], [0.7142857142857142, -0.9047619047619047], [0.7619047619047619, -0.8095238095238095], [0.8095238095238094, -0.6190476190476191], [0.8095238095238094, -0.47619047619047616], [0.7619047619047619, -0.2857142857142857], [0.7142857142857142, -0.19047619047619047], [0.619047619047619, -0.09523809523809523], [0.4761904761904761, -0.047619047619047616], [0.23809523809523803, -0.047619047619047616]]], "w": 1.0}, "G": {"l": [[[0.7619047619047619, -1.0], [0.6666666666666666, -1.0476190476190474], [0.5238095238095237, -1.0476190476190474], [0.38095238095238093, -1.0], [0.2857142857142857, -0.9047619047619047], [0.23809523809523808, -0.8095238095238095], [0.19047619047619047, -0.6190476190476191], [0.19047619047619047, -0.47619047619047616], [0.23809523809523808, -0.2857142857142857], [0.2857142857142857, -0.19047619047619047], [0.38095238095238093, -0.09523809523809523], [0.5238095238095237, -0.047619047619047616], [0.6190476190476191, -0.047619047619047616], [0.7619047619047619, -0.09523809523809523], [0.8095238095238095, -0.14285714285714285], [0.8095238095238095, -0.47619047619047616], [0.6190476190476191, -0.47619047619047616]]], "w": 1.0}, "F": {"l": [[[0.5714285714285714, -0.5714285714285714], [0.23809523809523808, -0.5714285714285714]], [[0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -1.0476190476190474], [0.7142857142857142, -1.0476190476190474]]], "w": 0.8571428571428571}, "J": {"l": [[[0.5238095238095237, -1.0476190476190474], [0.5238095238095237, -0.3333333333333333], [0.47619047619047616, -0.19047619047619047], [0.38095238095238093, -0.09523809523809523], [0.23809523809523808, -0.047619047619047616], [0.14285714285714285, -0.047619047619047616]]], "w": 0.7619047619047619}, "L": {"l": [[[0.7142857142857142, -0.047619047619047616], [0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -1.0476190476190474]]], "w": 0.8095238095238095}, "O": {"l": [[[0.4285714285714285, -1.0476190476190474], [0.619047619047619, -1.0476190476190474], [0.7142857142857142, -1.0], [0.8095238095238094, -0.9047619047619047], [0.857142857142857, -0.7142857142857142], [0.857142857142857, -0.38095238095238093], [0.8095238095238094, -0.19047619047619047], [0.7142857142857142, -0.09523809523809523], [0.619047619047619, -0.047619047619047616], [0.4285714285714285, -0.047619047619047616], [0.33333333333333326, -0.09523809523809523], [0.23809523809523803, -0.19047619047619047], [0.1904761904761904, -0.38095238095238093], [0.1904761904761904, -0.7142857142857142], [0.23809523809523803, -0.9047619047619047], [0.33333333333333326, -1.0], [0.4285714285714285, -1.0476190476190474]]], "w": 1.0476190476190474}, "N": {"l": [[[0.23809523809523803, -0.047619047619047616], [0.23809523809523803, -1.0476190476190474], [0.8095238095238094, -0.047619047619047616], [0.8095238095238094, -1.0476190476190474]]], "w": 1.0476190476190474}, "P": {"l": [[[0.23809523809523803, -0.047619047619047616], [0.23809523809523803, -1.0476190476190474], [0.619047619047619, -1.0476190476190474], [0.7142857142857142, -1.0], [0.7619047619047619, -0.9523809523809523], [0.8095238095238094, -0.8571428571428571], [0.8095238095238094, -0.7142857142857142], [0.7619047619047619, -0.6190476190476191], [0.7142857142857142, -0.5714285714285714], [0.619047619047619, -0.5238095238095237], [0.23809523809523803, -0.5238095238095237]]], "w": 1.0}, "S": {"l": [[[0.19047619047619047, -0.09523809523809523], [0.3333333333333333, -0.047619047619047616], [0.5714285714285714, -0.047619047619047616], [0.6666666666666666, -0.09523809523809523], [0.7142857142857142, -0.14285714285714285], [0.7619047619047619, -0.23809523809523808], [0.7619047619047619, -0.3333333333333333], [0.7142857142857142, -0.42857142857142855], [0.6666666666666666, -0.47619047619047616], [0.5714285714285714, -0.5238095238095237], [0.38095238095238093, -0.5714285714285714], [0.2857142857142857, -0.6190476190476191], [0.23809523809523808, -0.6666666666666666], [0.19047619047619047, -0.7619047619047619], [0.19047619047619047, -0.8571428571428571], [0.23809523809523808, -0.9523809523809523], [0.2857142857142857, -1.0], [0.38095238095238093, -1.0476190476190474], [0.6190476190476191, -1.0476190476190474], [0.7619047619047619, -1.0]]], "w": 0.9523809523809523}, "R": {"l": [[[0.8095238095238094, -0.047619047619047616], [0.4761904761904761, -0.5238095238095237]], [[0.23809523809523803, -0.047619047619047616], [0.23809523809523803, -1.0476190476190474], [0.619047619047619, -1.0476190476190474], [0.7142857142857142, -1.0], [0.7619047619047619, -0.9523809523809523], [0.8095238095238094, -0.8571428571428571], [0.8095238095238094, -0.7142857142857142], [0.7619047619047619, -0.6190476190476191], [0.7142857142857142, -0.5714285714285714], [0.619047619047619, -0.5238095238095237], [0.23809523809523803, -0.5238095238095237]]], "w": 1.0}, "T": {"l": [[[0.09523809523809523, -1.0476190476190474], [0.6666666666666666, -1.0476190476190474]], [[0.38095238095238093, -0.047619047619047616], [0.38095238095238093, -1.0476190476190474]]], "w": 0.7619047619047619}, "V": {"l": [[[0.09523809523809523, -1.0476190476190474], [0.42857142857142855, -0.047619047619047616], [0.7619047619047619, -1.0476190476190474]]], "w": 0.8571428571428571}, "a": {"l": [[[0.6666666666666666, -0.047619047619047616], [0.6666666666666666, -0.5714285714285714], [0.6190476190476191, -0.6666666666666666], [0.5238095238095237, -0.7142857142857142], [0.3333333333333333, -0.7142857142857142], [0.23809523809523808, -0.6666666666666666]], [[0.6666666666666666, -0.09523809523809523], [0.5714285714285714, -0.047619047619047616], [0.3333333333333333, -0.047619047619047616], [0.23809523809523808, -0.09523809523809523], [0.19047619047619047, -0.19047619047619047], [0.19047619047619047, -0.2857142857142857], [0.23809523809523808, -0.38095238095238093], [0.3333333333333333, -0.42857142857142855], [0.5714285714285714, -0.42857142857142855], [0.6666666666666666, -0.47619047619047616]]], "w": 0.9047619047619047}, "c": {"l": [[[0.6666666666666666, -0.09523809523809523], [0.5714285714285714, -0.047619047619047616], [0.38095238095238093, -0.047619047619047616], [0.2857142857142857, -0.09523809523809523], [0.23809523809523808, -0.14285714285714285], [0.19047619047619047, -0.23809523809523808], [0.19047619047619047, -0.5238095238095237], [0.23809523809523808, -0.6190476190476191], [0.2857142857142857, -0.6666666666666666], [0.38095238095238093, -0.7142857142857142], [0.5714285714285714, -0.7142857142857142], [0.6666666666666666, -0.6666666666666666]]], "w": 0.8571428571428571}, "e": {"l": [[[0.6190476190476191, -0.09523809523809523], [0.5238095238095237, -0.047619047619047616], [0.3333333333333333, -0.047619047619047616], [0.23809523809523808, -0.09523809523809523], [0.19047619047619047, -0.19047619047619047], [0.19047619047619047, -0.5714285714285714], [0.23809523809523808, -0.6666666666666666], [0.3333333333333333, -0.7142857142857142], [0.5238095238095237, -0.7142857142857142], [0.6190476190476191, -0.6666666666666666], [0.6666666666666666, -0.5714285714285714], [0.6666666666666666, -0.47619047619047616], [0.19047619047619047, -0.38095238095238093]]], "w": 0.8571428571428571}, "d": {"l": [[[0.6666666666666666, -0.047619047619047616], [0.6666666666666666, -1.0476190476190474]], [[0.6666666666666666, -0.09523809523809523], [0.5714285714285714, -0.047619047619047616], [0.38095238095238093, -0.047619047619047616], [0.2857142857142857, -0.09523809523809523], [0.23809523809523808, -0.14285714285714285], [0.19047619047619047, -0.23809523809523808], [0.19047619047619047, -0.5238095238095237], [0.23809523809523808, -0.6190476190476191], [0.2857142857142857, -0.6666666666666666], [0.38095238095238093, -0.7142857142857142], [0.5714285714285714, -0.7142857142857142], [0.6666666666666666, -0.6666666666666666]]], "w": 0.9047619047619047}, "g": {"l": [[[0.6666666666666666, -0.7142857142857142], [0.6666666666666666, 0.09523809523809523], [0.6190476190476191, 0.19047619047619047], [0.5714285714285714, 0.23809523809523808], [0.47619047619047616, 0.2857142857142857], [0.3333333333333333, 0.2857142857142857], [0.23809523809523808, 0.23809523809523808]], [[0.6666666666666666, -0.09523809523809523], [0.5714285714285714, -0.047619047619047616], [0.38095238095238093, -0.047619047619047616], [0.2857142857142857, -0.09523809523809523], [0.23809523809523808, -0.14285714285714285], [0.19047619047619047, -0.23809523809523808], [0.19047619047619047, -0.5238095238095237], [0.23809523809523808, -0.6190476190476191], [0.2857142857142857, -0.6666666666666666], [0.38095238095238093, -0.7142857142857142], [0.5714285714285714, -0.7142857142857142], [0.6666666666666666, -0.6666666666666666]]], "w": 0.9047619047619047}, "f": {"l": [[[0.09523809523809523, -0.7142857142857142], [0.47619047619047616, -0.7142857142857142]], [[0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -0.9047619047619047], [0.2857142857142857, -1.0], [0.38095238095238093, -1.0476190476190474], [0.47619047619047616, -1.0476190476190474]]], "w": 0.5714285714285714}, "i": {"l": [[[0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -0.7142857142857142]], [[0.23809523809523808, -1.0476190476190474], [0.19047619047619047, -1.0], [0.23809523809523808, -0.9523809523809523], [0.2857142857142857, -1.0], [0.23809523809523808, -1.0476190476190474], [0.23809523809523808, -0.9523809523809523]]], "w": 0.47619047619047616}, "h": {"l": [[[0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -1.0476190476190474]], [[0.6666666666666666, -0.047619047619047616], [0.6666666666666666, -0.5714285714285714], [0.6190476190476191, -0.6666666666666666], [0.5238095238095237, -0.7142857142857142], [0.38095238095238093, -0.7142857142857142], [0.2857142857142857, -0.6666666666666666], [0.23809523809523808, -0.6190476190476191]]], "w": 0.9047619047619047}, "l": {"l": [[[0.38095238095238093, -0.047619047619047616], [0.2857142857142857, -0.09523809523809523], [0.23809523809523808, -0.19047619047619047], [0.23809523809523808, -1.0476190476190474]]], "w": 0.5238095238095237}, "r": {"l": [[[0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -0.7142857142857142]], [[0.23809523809523808, -0.5238095238095237], [0.2857142857142857, -0.6190476190476191], [0.3333333333333333, -0.6666666666666666], [0.42857142857142855, -0.7142857142857142], [0.5238095238095237, -0.7142857142857142]]], "w": 0.6190476190476191}, "t": {"l": [[[0.09523809523809523, -0.7142857142857142], [0.47619047619047616, -0.7142857142857142]], [[0.23809523809523808, -1.0476190476190474], [0.23809523809523808, -0.19047619047619047], [0.2857142857142857, -0.09523809523809523], [0.38095238095238093, -0.047619047619047616], [0.47619047619047616, -0.047619047619047616]]], "w": 0.5714285714285714}, "y": {"l": [[[0.14285714285714285, -0.7142857142857142], [0.38095238095238093, -0.047619047619047616]], [[0.6190476190476191, -0.7142857142857142], [0.38095238095238093, -0.047619047619047616], [0.2857142857142857, 0.19047619047619047], [0.23809523809523808, 0.23809523809523808], [0.14285714285714285, 0.2857142857142857]]], "w": 0.7619047619047619}}, "modules": [{"layer": "F", "center": [155.194, 88.392], "pads": [{"layers": ["F", "B"], "angle": -225.0, "pos": [153.39794899999998, 86.59594899999999], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -225.0, "pos": [155.194, 88.392], "drillsize": [1.0, 1.0], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.7, 1.7]}], "drawings": [], "ref": "J2", "bbox": {"pos": [150.820292, 84.018292], "size": [6.944293, 6.944293]}}, {"layer": "F", "center": [147.32, 88.646], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [147.32, 86.106], "drillsize": [0.8999999999999999, 0.8999999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7999999999999998, 1.7999999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [147.32, 88.646], "drillsize": [0.8999999999999999, 0.8999999999999999], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.7999999999999998, 1.7999999999999998]}], "drawings": [], "ref": "D5", "bbox": {"pos": [144.044999, 84.120999], "size": [6.550002, 6.500001999999999]}}, {"layer": "F", "center": [147.32, 94.996], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [147.32, 94.996], "drillsize": [0.8999999999999999, 0.8999999999999999], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.7999999999999998, 1.7999999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [147.32, 92.45599999999999], "drillsize": [0.8999999999999999, 0.8999999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7999999999999998, 1.7999999999999998]}], "drawings": [], "ref": "D4", "bbox": {"pos": [144.044999, 90.47099899999999], "size": [6.550002, 6.500001999999999]}}, {"layer": "F", "center": [154.9, 101.39999999999999], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [154.9, 98.86], "drillsize": [0.8999999999999999, 0.8999999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7999999999999998, 1.7999999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [154.9, 101.39999999999999], "drillsize": [0.8999999999999999, 0.8999999999999999], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.7999999999999998, 1.7999999999999998]}], "drawings": [], "ref": "D3", "bbox": {"pos": [151.624999, 96.874999], "size": [6.550002, 6.500001999999999]}}, {"layer": "F", "center": [147.32, 101.34599999999999], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [147.32, 101.34599999999999], "drillsize": [0.8999999999999999, 0.8999999999999999], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.7999999999999998, 1.7999999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [147.32, 98.806], "drillsize": [0.8999999999999999, 0.8999999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7999999999999998, 1.7999999999999998]}], "drawings": [], "ref": "D2", "bbox": {"pos": [144.044999, 96.820999], "size": [6.550002, 6.500001999999999]}}, {"layer": "F", "center": [138.9, 101.3], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [138.9, 98.75999999999999], "drillsize": [0.8999999999999999, 0.8999999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7999999999999998, 1.7999999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [138.9, 101.3], "drillsize": [0.8999999999999999, 0.8999999999999999], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.7999999999999998, 1.7999999999999998]}], "drawings": [], "ref": "D1", "bbox": {"pos": [135.624999, 96.774999], "size": [6.550002, 6.500001999999999]}}, {"layer": "F", "center": [140.71599999999998, 105.664], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [153.416, 105.664], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [150.876, 105.664], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [148.33599999999998, 105.664], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [145.796, 105.664], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [143.256, 105.664], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [140.71599999999998, 105.664], "drillsize": [1.0, 1.0], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.7, 1.7]}], "drawings": [], "ref": "J1", "bbox": {"pos": [138.890999, 103.838999], "size": [16.350002, 3.6500019999999997]}}, {"layer": "B", "center": [140.446183, 91.455817], "pads": [{"layers": ["B"], "angle": -225.0, "pos": [139.668366, 92.233634], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.2, 0.8999999999999999]}, {"layers": ["B"], "angle": -225.0, "pos": [141.224, 90.678], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.2, 0.8999999999999999]}], "drawings": [], "ref": "R1", "bbox": {"pos": [138.547349, 89.54991199999999], "size": [3.8047389999999996, 3.8047389999999996]}}], "edges": [{"start": [158.49599999999998, 88.392], "end": [158.49599999999998, 108.71199999999999], "type": "segment", "width": 0.15}, {"start": [153.162, 83.312], "end": [158.49599999999998, 88.392], "type": "segment", "width": 0.15}, {"start": [140.71599999999998, 83.312], "end": [153.162, 83.312], "type": "segment", "width": 0.15}, {"start": [135.382, 88.89999999999999], "end": [140.71599999999998, 83.312], "type": "segment", "width": 0.15}, {"start": [135.382, 108.71199999999999], "end": [135.382, 88.89999999999999], "type": "segment", "width": 0.15}, {"start": [158.49599999999998, 108.71199999999999], "end": [135.382, 108.71199999999999], "type": "segment", "width": 0.15}], "bom": {"both": [[1, "R", "R_0603_HandSoldering", [["R1", 7]], []], [1, "left", "LED_D5.0mm", [["D1", 5]], []], [1, "GO", "LED_D5.0mm", [["D2", 4]], []], [1, "right", "LED_D5.0mm", [["D3", 3]], []], [1, "ready", "LED_D5.0mm", [["D4", 2]], []], [1, "STOP", "LED_D5.0mm", [["D5", 1]], []], [1, "Conn_01x02_Male", "Socket_Strip_Straight_1x02_Pitch2.54mm", [["J2", 0]], []], [1, "Conn_01x06_Male", "Socket_Strip_Straight_1x06_Pitch2.54mm", [["J1", 6]], []]], "B": [[1, "R", "R_0603_HandSoldering", [["R1", 7]], []]], "F": [[1, "left", "LED_D5.0mm", [["D1", 5]], []], [1, "GO", "LED_D5.0mm", [["D2", 4]], []], [1, "right", "LED_D5.0mm", [["D3", 3]], []], [1, "ready", "LED_D5.0mm", [["D4", 2]], []], [1, "STOP", "LED_D5.0mm", [["D5", 1]], []], [1, "Conn_01x02_Male", "Socket_Strip_Straight_1x02_Pitch2.54mm", [["J2", 0]], []], [1, "Conn_01x06_Male", "Socket_Strip_Straight_1x06_Pitch2.54mm", [["J1", 6]], []]]}, "silkscreen": {"B": [{"width": 1.0, "angle": 45.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "R1", "thickness": 0.15, "pos": [139.420878, 90.430512], "height": 1.0}, {"start": [140.318904, 90.621431], "end": [139.611797, 91.328538], "type": "segment", "width": 0.12}, {"start": [140.573462, 92.29020299999999], "end": [141.28056899999999, 91.583096], "type": "segment", "width": 0.12}], "F": [{"width": 0.7999999999999999, "angle": 135.0, "attr": [], "horiz_justify": 0, "text": "GND", "thickness": 0.09999999999999999, "pos": [153.67, 90.17], "height": 0.7999999999999999}, {"width": 0.7999999999999999, "angle": 135.0, "attr": [], "horiz_justify": 0, "text": "+5V", "thickness": 0.09999999999999999, "pos": [151.892, 88.392], "height": 0.7999999999999999}, {"width": 1.0, "angle": 45.0, "attr": [], "horiz_justify": 0, "text": "trafficLight", "thickness": 0.19999999999999998, "pos": [140.625, 89.52499999999999], "height": 1.0}, {"width": 1.5, "angle": 45.0, "attr": [], "horiz_justify": 0, "text": "FOSSEE\n\n", "thickness": 0.3, "pos": [140.275, 89.0], "height": 1.5}, {"width": 0.7999999999999999, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "Re", "thickness": 0.15, "pos": [148.375, 108.07499999999999], "height": 0.7999999999999999}, {"width": 0.7999999999999999, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "S", "thickness": 0.15, "pos": [150.875, 108.07499999999999], "height": 0.7999999999999999}, {"width": 0.7999999999999999, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "Ri", "thickness": 0.15, "pos": [153.4, 108.05], "height": 0.7999999999999999}, {"width": 0.7999999999999999, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "G", "thickness": 0.15, "pos": [145.775, 108.07499999999999], "height": 0.7999999999999999}, {"width": 0.7999999999999999, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "L", "thickness": 0.15, "pos": [143.2, 108.07499999999999], "height": 0.7999999999999999}, {"width": 0.7999999999999999, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "+5V", "thickness": 0.15, "pos": [140.525, 108.07499999999999], "height": 0.7999999999999999}, {"width": 1.0, "angle": 45.0, "attr": [], "horiz_justify": 0, "text": "J2", "thickness": 0.15, "pos": [156.841559, 90.039559], "height": 1.0}, {"start": [157.074904, 88.392], "end": [156.13445199999998, 89.33245199999999], "type": "segment", "width": 0.12}, {"start": [156.13445199999998, 87.451548], "end": [157.074904, 88.392], "type": "segment", "width": 0.12}, {"start": [153.35552199999998, 88.434426], "end": [155.236426, 86.553522], "type": "segment", "width": 0.12}, {"start": [151.517045, 86.59594899999999], "end": [153.35552199999998, 88.434426], "type": "segment", "width": 0.12}, {"start": [153.39794899999998, 84.71504499999999], "end": [151.517045, 86.59594899999999], "type": "segment", "width": 0.12}, {"start": [155.236426, 86.553522], "end": [153.39794899999998, 84.71504499999999], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "STOP", "thickness": 0.15, "pos": [150.876, 84.328], "height": 1.0}, {"start": [145.775, 89.93599999999999], "end": [148.86499999999998, 89.93599999999999], "type": "segment", "width": 0.12}, {"start": [147.32, 87.37599999999999], "radius": 2.5, "type": "circle", "width": 0.12}, {"width": 0.12, "endangle": 58.89115156915048, "start": [147.32, 87.37599999999999], "radius": 2.9899999999999998, "startangle": -90.00884843084953, "type": "arc"}, {"width": 0.12, "endangle": 270.0088484308496, "start": [147.32, 87.37599999999999], "radius": 2.9899999999999998, "startangle": 121.10884843084955, "type": "arc"}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "ready", "thickness": 0.15, "pos": [151.638, 91.18599999999999], "height": 1.0}, {"width": 0.12, "endangle": 270.0088484308496, "start": [147.32, 93.726], "radius": 2.9899999999999998, "startangle": 121.10884843084955, "type": "arc"}, {"width": 0.12, "endangle": 58.89115156915048, "start": [147.32, 93.726], "radius": 2.9899999999999998, "startangle": -90.00884843084953, "type": "arc"}, {"start": [147.32, 93.726], "radius": 2.5, "type": "circle", "width": 0.12}, {"start": [145.775, 96.286], "end": [148.86499999999998, 96.286], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "right", "thickness": 0.15, "pos": [154.94, 96.225], "height": 1.0}, {"start": [153.355, 102.69], "end": [156.445, 102.69], "type": "segment", "width": 0.12}, {"start": [154.9, 100.13], "radius": 2.5, "type": "circle", "width": 0.12}, {"width": 0.12, "endangle": 58.89115156915048, "start": [154.9, 100.13], "radius": 2.9899999999999998, "startangle": -90.00884843084953, "type": "arc"}, {"width": 0.12, "endangle": 270.0088484308496, "start": [154.9, 100.13], "radius": 2.9899999999999998, "startangle": 121.10884843084955, "type": "arc"}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "GO", "thickness": 0.15, "pos": [150.62199999999999, 96.52], "height": 1.0}, {"width": 0.12, "endangle": 270.0088484308496, "start": [147.32, 100.076], "radius": 2.9899999999999998, "startangle": 121.10884843084955, "type": "arc"}, {"width": 0.12, "endangle": 58.89115156915048, "start": [147.32, 100.076], "radius": 2.9899999999999998, "startangle": -90.00884843084953, "type": "arc"}, {"start": [147.32, 100.076], "radius": 2.5, "type": "circle", "width": 0.12}, {"start": [145.775, 102.636], "end": [148.86499999999998, 102.636], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "left", "thickness": 0.15, "pos": [138.938, 96.19999999999999], "height": 1.0}, {"start": [137.355, 102.58999999999999], "end": [140.445, 102.58999999999999], "type": "segment", "width": 0.12}, {"start": [138.9, 100.03], "radius": 2.5, "type": "circle", "width": 0.12}, {"width": 0.12, "endangle": 58.89115156915048, "start": [138.9, 100.03], "radius": 2.9899999999999998, "startangle": -90.00884843084953, "type": "arc"}, {"width": 0.12, "endangle": 270.0088484308496, "start": [138.9, 100.03], "radius": 2.9899999999999998, "startangle": 121.10884843084955, "type": "arc"}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "J1", "thickness": 0.15, "pos": [156.20999999999998, 105.664], "height": 1.0}, {"start": [139.386, 106.994], "end": [139.386, 105.664], "type": "segment", "width": 0.12}, {"start": [140.71599999999998, 106.994], "end": [139.386, 106.994], "type": "segment", "width": 0.12}, {"start": [141.986, 104.33399999999999], "end": [141.986, 106.994], "type": "segment", "width": 0.12}, {"start": [154.74599999999998, 104.33399999999999], "end": [141.986, 104.33399999999999], "type": "segment", "width": 0.12}, {"start": [154.74599999999998, 106.994], "end": [154.74599999999998, 104.33399999999999], "type": "segment", "width": 0.12}, {"start": [141.986, 106.994], "end": [154.74599999999998, 106.994], "type": "segment", "width": 0.12}]}, "edges_bbox": {"minx": 135.306999, "miny": 83.236999, "maxx": 158.571001, "maxy": 108.78700099999999}, "metadata": {"date": "2019-01-14 16:19:17", "company": "", "revision": "", "title": "traffic"}} +/////////////////////////////////////////////// + +/////////////////////////////////////////////// +/* Utility functions */ + +var storagePrefix = 'KiCad_HTML_BOM__' + pcbdata.metadata.title + '__' + + pcbdata.metadata.revision + '__'; +var storage; + +function initStorage(key) { + try { + window.localStorage.getItem("blank"); + storage = window.localStorage; + } catch (e) { + // localStorage not available + } + if (!storage) { + try { + window.sessionStorage.getItem("blank"); + storage = window.sessionStorage; + } catch (e) { + // sessionStorage also not available + } + } +} + +function readStorage(key) { + if (storage) { + return storage.getItem(storagePrefix + '#' + key); + } else { + return null; + } +} + +function writeStorage(key, value) { + if (storage) { + storage.setItem(storagePrefix + '#' + key, value); + } +} + +function fancyDblClickHandler(el, onsingle, ondouble) { + return function() { + if (el.getAttribute("data-dblclick") == null) { + el.setAttribute("data-dblclick", 1); + setTimeout(function() { + if (el.getAttribute("data-dblclick") == 1) { + onsingle(); + } + el.removeAttribute("data-dblclick"); + }, 200); + } else { + el.removeAttribute("data-dblclick"); + ondouble(); + } + } +} + +function smoothScrollToRow(rowid) { + document.getElementById(rowid).scrollIntoView({ + behavior: "smooth", + block: "center", + inline: "nearest" + }); +} + +function focusInputField(input) { + input.scrollIntoView(false); + input.focus(); + input.select(); +} + +function copyToClipboard() { + var text = ''; + for (var node of bomhead.childNodes[0].childNodes) { + if (node.firstChild) { + text = text + node.firstChild.nodeValue; + } + if (node != bomhead.childNodes[0].lastChild) { + text += '\t'; + } + } + text += '\n'; + for (var row of bombody.childNodes) { + for (var cell of row.childNodes) { + for (var node of cell.childNodes) { + if (node.nodeName == "INPUT") { + if (node.checked) { + text = text + '✓'; + } + } else if (node.nodeName == "MARK") { + text = text + node.firstChild.nodeValue; + } else { + text = text + node.nodeValue; + } + } + if (cell != row.lastChild) { + text += '\t'; + } + } + text += '\n'; + } + var textArea = document.createElement("textarea"); + textArea.classList.add('clipboard-temp'); + textArea.value = text; + + document.body.appendChild(textArea); + textArea.focus(); + textArea.select(); + + try { + if (document.execCommand('copy')) { + console.log('Bom copied to clipboard.'); + } + } catch (err) { + console.log('Can not copy to clipboard.'); + } + + document.body.removeChild(textArea); +} + +function removeGutterNode(node) { + for (var i = 0; i < node.childNodes.length; i++) { + if (node.childNodes[i].classList && + node.childNodes[i].classList.contains("gutter")) { + node.removeChild(node.childNodes[i]); + break; + } + } +} + +function cleanGutters() { + removeGutterNode(document.getElementById("bot")); + removeGutterNode(document.getElementById("canvasdiv")); +} + +var units = { + prefixes: { + giga: ["G", "g", "giga", "Giga", "GIGA"], + mega: ["M", "mega", "Mega", "MEGA"], + kilo: ["K", "k", "kilo", "Kilo", "KILO"], + milli: ["m", "milli", "Milli", "MILLI"], + micro: ["U", "u", "micro", "Micro", "MICRO", "μ", "µ"], // different utf8 μ + nano: ["N", "n", "nano", "Nano", "NANO"], + pico: ["P", "p", "pico", "Pico", "PICO"], + }, + unitsShort: ["R", "r", "Ω", "F", "f", "H", "h"], + unitsLong: [ + "OHM", "Ohm", "ohm", "ohms", + "FARAD", "Farad", "farad", + "HENRY", "Henry", "henry" + ], + getMultiplier: function(s) { + if (this.prefixes.giga.includes(s)) return 1e9; + if (this.prefixes.mega.includes(s)) return 1e6; + if (this.prefixes.kilo.includes(s)) return 1e3; + if (this.prefixes.milli.includes(s)) return 1e-3; + if (this.prefixes.micro.includes(s)) return 1e-6; + if (this.prefixes.nano.includes(s)) return 1e-9; + if (this.prefixes.pico.includes(s)) return 1e-12; + return 1; + }, + valueRegex: null, +} + +function initUtils() { + var allPrefixes = units.prefixes.giga + .concat(units.prefixes.mega) + .concat(units.prefixes.kilo) + .concat(units.prefixes.milli) + .concat(units.prefixes.micro) + .concat(units.prefixes.nano) + .concat(units.prefixes.pico); + var allUnits = units.unitsShort.concat(units.unitsLong); + units.valueRegex = new RegExp("^([0-9\.]+)" + + "\\s*(" + allPrefixes.join("|") + ")?" + + "(" + allUnits.join("|") + ")?" + + "(\\b.*)?$", ""); + units.valueAltRegex = new RegExp("^([0-9]*)" + + "(" + units.unitsShort.join("|") + ")?" + + "([GgMmKkUuNnPp])?" + + "([0-9]*)" + + "(\\b.*)?$", ""); + for (var bomtable of Object.values(pcbdata.bom)) { + for (var row of bomtable) { + row.push(parseValue(row[1], row[3][0][0])); + } + } +} + +function parseValue(val, ref) { + var inferUnit = (unit, ref) => { + if (unit) { + unit = unit.toLowerCase(); + if (unit == 'Ω' || unit == "ohm" || unit == "ohms") { + unit = 'r'; + } + unit = unit[0]; + } else { + ref = /^([a-z]+)\d+$/i.exec(ref); + if (ref) { + ref = ref[1].toLowerCase(); + if (ref == "c") unit = 'f'; + else if (ref == "l") unit = 'h'; + else if (ref == "r" || ref == "rv") unit = 'r'; + else unit = null; + } + } + return unit; + }; + val = val.replace(/,/g, ""); + var match = units.valueRegex.exec(val); + var unit; + if (match) { + val = parseFloat(match[1]); + if (match[2]) { + val = val * units.getMultiplier(match[2]); + } + unit = inferUnit(match[3], ref); + if (!unit) return null; + else return { + val: val, + unit: unit, + extra: match[4], + } + } + match = units.valueAltRegex.exec(val); + if (match && (match[1] || match[4])) { + val = parseFloat(match[1] + "." + match[4]); + if (match[3]) { + val = val * units.getMultiplier(match[3]); + } + unit = inferUnit(match[2], ref); + if (!unit) return null; + else return { + val: val, + unit: unit, + extra: match[5], + } + } + return null; +} + +function valueCompare(a, b, stra, strb) { + if (a === null && b === null) { + // Failed to parse both values, compare them as strings. + if (stra != strb) return stra > strb ? 1 : -1; + else return 0; + } else if (a === null) { + return 1; + } else if (b === null) { + return -1; + } else { + if (a.unit != b.unit) return a.unit > b.unit ? 1 : -1; + else if (a.val != b.val) return a.val > b.val ? 1 : -1; + else if (a.extra != b.extra) return a.extra > b.extra ? 1 : -1; + else return 0; + } +} + +/////////////////////////////////////////////// + +/////////////////////////////////////////////// +/* PCB rendering code */ + +var redrawOnDrag = true; +var boardRotation = 0; + +function deg2rad(deg) { + return deg * Math.PI / 180; +} + +function calcFontPoint(linepoint, text, offsetx, offsety, tilt) { + var point = [ + linepoint[0] * text.width + offsetx, + linepoint[1] * text.height + offsety + ]; + // Adding half a line height here is technically a bug + // but pcbnew currently does the same, text is slightly shifted. + point[0] -= (point[1] + text.height * 0.5) * tilt; + return point; +} + +function drawtext(ctx, text, color, flip) { + ctx.save(); + ctx.translate(...text.pos); + var angle = -text.angle; + if (text.attr.includes("mirrored")) { + ctx.scale(-1, 1); + angle = -angle; + } + var tilt = 0; + if (text.attr.includes("italic")) { + tilt = 0.125; + } + var interline = (text.height * 1.5 + text.thickness) / 2; + var txt = text.text.split("\n"); + // KiCad ignores last empty line. + if (txt[txt.length-1] == '') txt.pop(); + ctx.rotate(deg2rad(angle)); + ctx.fillStyle = color; + ctx.strokeStyle = color; + ctx.lineCap = "round"; + ctx.lineWidth = text.thickness; + for (var i in txt) { + var offsety = (-(txt.length - 1) + i * 2) * interline + text.height / 2; + var lineWidth = 0; + for (var c of txt[i]) { + lineWidth += pcbdata.font_data[c].w * text.width; + } + var offsetx = 0; + switch (text.horiz_justify) { + case -1: + // Justify left, do nothing + break; + case 0: + // Justify center + offsetx -= lineWidth / 2; + break; + case 1: + // Justify right + offsetx -= lineWidth; + break; + } + for (var c of txt[i]) { + for (var line of pcbdata.font_data[c].l) { + // Drawing each segment separately instead of + // polyline because round line caps don't work in joints + for (var i = 0; i < line.length - 1; i++) { + ctx.beginPath(); + ctx.moveTo(...calcFontPoint(line[i], text, offsetx, offsety, tilt)); + ctx.lineTo(...calcFontPoint(line[i + 1], text, offsetx, offsety, tilt)); + ctx.stroke(); + } + } + offsetx += pcbdata.font_data[c].w * text.width; + } + } + ctx.restore(); +} + +function drawedge(ctx, scalefactor, edge, color) { + ctx.strokeStyle = color; + ctx.lineWidth = Math.max(1 / scalefactor, edge.width); + ctx.lineCap = "round"; + if (edge.type == "segment") { + ctx.beginPath(); + ctx.moveTo(...edge.start); + ctx.lineTo(...edge.end); + ctx.stroke(); + } + if (edge.type == "arc") { + ctx.beginPath(); + ctx.arc( + ...edge.start, + edge.radius, + deg2rad(edge.startangle), + deg2rad(edge.endangle)); + ctx.stroke(); + } + if (edge.type == "circle") { + ctx.beginPath(); + ctx.arc( + ...edge.start, + edge.radius, + 0, 2 * Math.PI); + ctx.closePath(); + ctx.stroke(); + } +} + +function drawRoundRect(ctx, color, size, radius, ctxmethod) { + ctx.beginPath(); + ctx.strokeStyle = color; + var x = size[0] * -0.5; + var y = size[1] * -0.5; + var width = size[0]; + var height = size[1]; + ctx.moveTo(x, 0); + ctx.arcTo(x, y + height, x + width, y + height, radius); + ctx.arcTo(x + width, y + height, x + width, y, radius); + ctx.arcTo(x + width, y, x, y, radius); + ctx.arcTo(x, y, x, y + height, radius); + ctx.closePath(); + ctxmethod(); +} + +function drawOblong(ctx, color, size, ctxmethod) { + drawRoundRect(ctx, color, size, Math.min(size[0], size[1]) / 2, ctxmethod); +} + +function drawPolygons(ctx, color, polygons, ctxmethod) { + ctx.fillStyle = color; + for (var polygon of polygons) { + ctx.beginPath(); + for (var vertex of polygon) { + ctx.lineTo(...vertex) + } + ctx.closePath(); + ctxmethod(); + } +} + +function drawPolygonShape(ctx, shape, color) { + ctx.save(); + ctx.translate(...shape.pos); + ctx.rotate(deg2rad(-shape.angle)); + drawPolygons(ctx, color, shape.polygons, ctx.fill.bind(ctx)); + ctx.restore(); +} + +function drawDrawing(ctx, layer, scalefactor, drawing, color) { + if (["segment", "arc", "circle"].includes(drawing.type)) { + drawedge(ctx, scalefactor, drawing, color); + } else if (drawing.type == "polygon") { + drawPolygonShape(ctx, drawing, color); + } else { + drawtext(ctx, drawing, color, layer == "B"); + } +} + +function drawCircle(ctx, radius, ctxmethod) { + ctx.beginPath(); + ctx.arc(0, 0, radius, 0, 2 * Math.PI); + ctx.closePath(); + ctxmethod(); +} + +function drawPad(ctx, pad, color, outline) { + ctx.save(); + ctx.translate(...pad.pos); + ctx.rotate(deg2rad(pad.angle)); + if (pad.offset) { + ctx.translate(...pad.offset); + } + ctx.fillStyle = color; + ctx.strokeStyle = color; + var ctxmethod = outline ? ctx.stroke.bind(ctx) : ctx.fill.bind(ctx); + if (pad.shape == "rect") { + var rect = [...pad.size.map(c => -c * 0.5), ...pad.size]; + if (outline) { + ctx.strokeRect(...rect); + } else { + ctx.fillRect(...rect); + } + } else if (pad.shape == "oval") { + drawOblong(ctx, color, pad.size, ctxmethod); + } else if (pad.shape == "circle") { + drawCircle(ctx, pad.size[0] / 2, ctxmethod); + } else if (pad.shape == "roundrect") { + drawRoundRect(ctx, color, pad.size, pad.radius, ctxmethod); + } else if (pad.shape == "custom") { + drawPolygons(ctx, color, pad.polygons, ctxmethod); + } + if (pad.type == "th" && !outline) { + ctx.fillStyle = "#CCCCCC"; + if (pad.drillshape == "oblong") { + drawOblong(ctx, "#CCCCCC", pad.drillsize, ctxmethod); + } else { + drawCircle(ctx, pad.drillsize[0] / 2, ctxmethod); + } + } + ctx.restore(); +} + +function drawModule(ctx, layer, scalefactor, module, padcolor, outlinecolor, highlight) { + if (highlight) { + // draw bounding box + if (module.layer == layer) { + ctx.save(); + ctx.globalAlpha = 0.2; + ctx.translate(...module.bbox.pos); + ctx.fillStyle = padcolor; + ctx.fillRect( + 0, 0, + ...module.bbox.size); + ctx.globalAlpha = 1; + ctx.strokeStyle = padcolor; + ctx.strokeRect( + 0, 0, + ...module.bbox.size); + ctx.restore(); + } + } + // draw drawings + for (var drawing of module.drawings) { + if (drawing.layer == layer) { + drawDrawing(ctx, layer, scalefactor, drawing.drawing, padcolor); + } + } + // draw pads + for (var pad of module.pads) { + if (pad.layers.includes(layer)) { + drawPad(ctx, pad, padcolor, false); + if (pad.pin1 && highlightpin1) { + drawPad(ctx, pad, outlinecolor, true); + } + } + } +} + +function drawEdges(canvas, scalefactor) { + var ctx = canvas.getContext("2d"); + var edgecolor = getComputedStyle(topmostdiv).getPropertyValue('--pcb-edge-color'); + for (var edge of pcbdata.edges) { + drawedge(ctx, scalefactor, edge, edgecolor); + } +} + +function drawModules(canvas, layer, scalefactor, highlight) { + var ctx = canvas.getContext("2d"); + ctx.lineWidth = 3 / scalefactor; + var style = getComputedStyle(topmostdiv); + var padcolor = style.getPropertyValue('--pad-color'); + var outlinecolor = style.getPropertyValue('--pin1-outline-color'); + if (highlight > 0) { + padcolor = style.getPropertyValue('--pad-color-highlight'); + outlinecolor = style.getPropertyValue('--pin1-outline-color-highlight'); + } + for (var i = 0; i < pcbdata.modules.length; i++) { + var mod = pcbdata.modules[i]; + if (!highlight || highlightedModules.includes(i)) { + drawModule(ctx, layer, scalefactor, mod, padcolor, outlinecolor, highlight); + } + } +} + +function drawSilkscreen(canvas, layer, scalefactor) { + var ctx = canvas.getContext("2d"); + for (var d of pcbdata.silkscreen[layer]) { + if (["segment", "arc", "circle"].includes(d.type)) { + drawedge(ctx, scalefactor, d, "#aa4"); + } else if (d.type == "polygon") { + drawPolygonShape(ctx, d, "#4aa"); + } else { + drawtext(ctx, d, "#4aa", layer == "B"); + } + } +} + +function clearCanvas(canvas) { + var ctx = canvas.getContext("2d"); + ctx.save(); + ctx.setTransform(1, 0, 0, 1, 0, 0); + ctx.clearRect(0, 0, canvas.width, canvas.height); + ctx.restore(); +} + +function drawHighlightsOnLayer(canvasdict) { + clearCanvas(canvasdict.highlight); + drawModules(canvasdict.highlight, canvasdict.layer, + canvasdict.transform.s * canvasdict.transform.zoom, true); +} + +function drawHighlights() { + drawHighlightsOnLayer(allcanvas.front); + drawHighlightsOnLayer(allcanvas.back); +} + +function drawBackground(canvasdict) { + clearCanvas(canvasdict.bg); + clearCanvas(canvasdict.silk); + drawEdges(canvasdict.bg, canvasdict.transform.s); + drawModules(canvasdict.bg, canvasdict.layer, + canvasdict.transform.s * canvasdict.transform.zoom, false); + drawSilkscreen(canvasdict.silk, canvasdict.layer, canvasdict.transform.s); +} + +function prepareCanvas(canvas, flip, transform) { + var ctx = canvas.getContext("2d"); + ctx.setTransform(1, 0, 0, 1, 0, 0); + var fontsize = 1.55; + ctx.scale(transform.zoom, transform.zoom); + ctx.translate(transform.panx, transform.pany); + if (flip) { + ctx.scale(-1, 1); + } + ctx.translate(transform.x, transform.y); + ctx.rotate(deg2rad(boardRotation)); + ctx.scale(transform.s, transform.s); +} + +function prepareLayer(canvasdict) { + var flip = (canvasdict.layer == "B"); + for (var c of ["bg", "silk", "highlight"]) { + prepareCanvas(canvasdict[c], flip, canvasdict.transform); + } +} + +function rotateVector(v, angle) { + angle = deg2rad(angle); + return [ + v[0] * Math.cos(angle) - v[1] * Math.sin(angle), + v[0] * Math.sin(angle) + v[1] * Math.cos(angle) + ]; +} + +function applyRotation(bbox) { + var corners = [ + [bbox.minx, bbox.miny], + [bbox.minx, bbox.maxy], + [bbox.maxx, bbox.miny], + [bbox.maxx, bbox.maxy], + ]; + corners = corners.map((v) => rotateVector(v, boardRotation)); + return { + minx: corners.reduce((a, v) => Math.min(a, v[0]), Infinity), + miny: corners.reduce((a, v) => Math.min(a, v[1]), Infinity), + maxx: corners.reduce((a, v) => Math.max(a, v[0]), -Infinity), + maxy: corners.reduce((a, v) => Math.max(a, v[1]), -Infinity), + } +} + +function recalcLayerScale(canvasdict) { + var canvasdivid = { + "F": "frontcanvas", + "B": "backcanvas" + } [canvasdict.layer]; + var width = document.getElementById(canvasdivid).clientWidth * 2; + var height = document.getElementById(canvasdivid).clientHeight * 2; + var bbox = applyRotation(pcbdata.edges_bbox); + var scalefactor = 0.98 * Math.min( + width / (bbox.maxx - bbox.minx), + height / (bbox.maxy - bbox.miny) + ); + if (scalefactor < 0.1) { + scalefactor = 1; + } + canvasdict.transform.s = scalefactor; + var flip = (canvasdict.layer == "B"); + if (flip) { + canvasdict.transform.x = -((bbox.maxx + bbox.minx) * scalefactor + width) * 0.5; + } else { + canvasdict.transform.x = -((bbox.maxx + bbox.minx) * scalefactor - width) * 0.5; + } + canvasdict.transform.y = -((bbox.maxy + bbox.miny) * scalefactor - height) * 0.5; + for (var c of ["bg", "silk", "highlight"]) { + canvas = canvasdict[c]; + canvas.width = width; + canvas.height = height; + canvas.style.width = (width / 2) + "px"; + canvas.style.height = (height / 2) + "px"; + } +} + +function redrawCanvas(layerdict) { + prepareLayer(layerdict); + drawBackground(layerdict); + drawHighlightsOnLayer(layerdict); +} + +function resizeCanvas(layerdict) { + recalcLayerScale(layerdict); + redrawCanvas(layerdict); +} + +function resizeAll() { + resizeCanvas(allcanvas.front); + resizeCanvas(allcanvas.back); +} + +function bboxScan(layer, x, y) { + var result = []; + for (var i = 0; i < pcbdata.modules.length; i++) { + var module = pcbdata.modules[i]; + if (module.layer == layer) { + var b = module.bbox; + if (b.pos[0] <= x && b.pos[0] + b.size[0] >= x && + b.pos[1] <= y && b.pos[1] + b.size[1] >= y) { + result.push(i); + } + } + } + return result; +} + +function handleMouseDown(e, layerdict) { + if (e.which != 1) { + return; + } + e.preventDefault(); + e.stopPropagation(); + layerdict.transform.mousestartx = e.offsetX; + layerdict.transform.mousestarty = e.offsetY; + layerdict.transform.mousedownx = e.offsetX; + layerdict.transform.mousedowny = e.offsetY; + layerdict.transform.mousedown = true; +} + +function handleMouseClick(e, layerdict) { + var x = e.offsetX; + var y = e.offsetY; + var t = layerdict.transform; + if (layerdict.layer == "B") { + x = (2 * x / t.zoom - t.panx + t.x) / -t.s; + } else { + x = (2 * x / t.zoom - t.panx - t.x) / t.s; + } + y = (2 * y / t.zoom - t.y - t.pany) / t.s; + var v = rotateVector([x, y], -boardRotation); + var modules = bboxScan(layerdict.layer, v[0], v[1]); + if (modules.length > 0) { + modulesClicked(modules); + } +} + +function handleMouseUp(e, layerdict) { + e.preventDefault(); + e.stopPropagation(); + if (e.which == 1 && + layerdict.transform.mousedown && + layerdict.transform.mousedownx == e.offsetX && + layerdict.transform.mousedowny == e.offsetY) { + // This is just a click + handleMouseClick(e, layerdict); + layerdict.transform.mousedown = false; + return; + } + if (e.which == 3) { + // Reset pan and zoom on right click. + layerdict.transform.panx = 0; + layerdict.transform.pany = 0; + layerdict.transform.zoom = 1; + redrawCanvas(layerdict); + } else if (!redrawOnDrag) { + redrawCanvas(layerdict); + } + layerdict.transform.mousedown = false; +} + +function handleMouseMove(e, layerdict) { + if (!layerdict.transform.mousedown) { + return; + } + e.preventDefault(); + e.stopPropagation(); + var dx = e.offsetX - layerdict.transform.mousestartx; + var dy = e.offsetY - layerdict.transform.mousestarty; + layerdict.transform.panx += 2 * dx / layerdict.transform.zoom; + layerdict.transform.pany += 2 * dy / layerdict.transform.zoom; + layerdict.transform.mousestartx = e.offsetX; + layerdict.transform.mousestarty = e.offsetY; + if (redrawOnDrag) { + redrawCanvas(layerdict); + } +} + +function handleMouseWheel(e, layerdict) { + e.preventDefault(); + e.stopPropagation(); + var t = layerdict.transform; + var wheeldelta = e.deltaY; + if (e.deltaMode == 1) { + // FF only, scroll by lines + wheeldelta *= 30; + } else if (e.deltaMode == 2) { + wheeldelta *= 300; + } + var m = Math.pow(1.1, -wheeldelta / 40); + // Limit amount of zoom per tick. + if (m > 2) { + m = 2; + } else if (m < 0.5) { + m = 0.5; + } + t.zoom *= m; + var zoomd = (1 - m) / t.zoom; + t.panx += 2 * e.offsetX * zoomd; + t.pany += 2 * e.offsetY * zoomd; + redrawCanvas(layerdict); +} + +function addMouseHandlers(div, layerdict) { + div.onmousedown = function(e) { + handleMouseDown(e, layerdict); + }; + div.onmousemove = function(e) { + handleMouseMove(e, layerdict); + }; + div.onmouseup = function(e) { + handleMouseUp(e, layerdict); + }; + div.onmouseout = function(e) { + handleMouseUp(e, layerdict); + } + div.onwheel = function(e) { + handleMouseWheel(e, layerdict); + } + for (var element of [div, layerdict.bg, layerdict.silk, layerdict.highlight]) { + element.addEventListener("contextmenu", function(e) { + e.preventDefault(); + }, false); + } +} + +function setRedrawOnDrag(value) { + redrawOnDrag = value; + writeStorage("redrawOnDrag", value); +} + +function setBoardRotation(value) { + boardRotation = value * 5; + writeStorage("boardRotation", boardRotation); + document.getElementById("rotationDegree").textContent = boardRotation; + resizeAll(); +} + +function initRender() { + allcanvas = { + front: { + transform: { + x: 0, + y: 0, + s: 1, + panx: 0, + pany: 0, + zoom: 1, + mousestartx: 0, + mousestarty: 0, + mousedown: false, + }, + bg: document.getElementById("F_bg"), + silk: document.getElementById("F_slk"), + highlight: document.getElementById("F_hl"), + layer: "F", + }, + back: { + transform: { + x: 0, + y: 0, + s: 1, + panx: 0, + pany: 0, + zoom: 1, + mousestartx: 0, + mousestarty: 0, + mousedown: false, + }, + bg: document.getElementById("B_bg"), + silk: document.getElementById("B_slk"), + highlight: document.getElementById("B_hl"), + layer: "B", + } + }; + addMouseHandlers(document.getElementById("frontcanvas"), allcanvas.front); + addMouseHandlers(document.getElementById("backcanvas"), allcanvas.back); +} + +/////////////////////////////////////////////// + +/////////////////////////////////////////////// +/* DOM manipulation and misc code */ + +var bomsplit; +var canvassplit; +var canvaslayout = "default"; +var bomlayout = "default"; +var initDone = false; +var bomSortFunction = null; +var currentSortColumn = null; +var currentSortOrder = null; +var currentHighlightedRowId; +var highlightHandlers = []; +var highlightedModules = []; +var checkboxes = []; +var bomCheckboxes = ""; +var highlightpin1 = false; +var lastClicked; + +function dbg(html) { + dbgdiv.innerHTML = html; +} + +function setDarkMode(value) { + if (value) { + topmostdiv.classList.add("dark"); + } else { + topmostdiv.classList.remove("dark"); + } + writeStorage("darkmode", value); + if (initDone) { + redrawCanvas(allcanvas.front); + redrawCanvas(allcanvas.back); + } +} + +function setHighlightPin1(value) { + writeStorage("highlightpin1", value); + highlightpin1 = value; + if (initDone) { + redrawCanvas(allcanvas.front); + redrawCanvas(allcanvas.back); + } +} + +function getStoredCheckboxRefs(checkbox) { + function convert(ref) { + var intref = parseInt(ref); + if (isNaN(intref)) { + for (var i = 0; i < pcbdata.modules.length; i++) { + if (pcbdata.modules[i].ref == ref) { + return i; + } + } + return -1; + } else { + return intref; + } + } + var existingRefs = readStorage("checkbox_" + checkbox); + if (!existingRefs) { + return new Set(); + } else { + return new Set(existingRefs.split(",").map(r => convert(r))); + } +} + +function getCheckboxState(checkbox, references) { + var storedRefsSet = getStoredCheckboxRefs(checkbox); + var currentRefsSet = new Set(references.map(r => r[1])); + // Get difference of current - stored + var difference = new Set(currentRefsSet); + for (ref of storedRefsSet) { + difference.delete(ref); + } + if (difference.size == 0) { + // All the current refs are stored + return "checked"; + } else if (difference.size == currentRefsSet.size) { + // None of the current refs are stored + return "unchecked"; + } else { + // Some of the refs are stored + return "indeterminate"; + } +} + +function setBomCheckboxState(checkbox, element, references) { + var state = getCheckboxState(checkbox, references); + element.checked = (state == "checked"); + element.indeterminate = (state == "indeterminate"); +} + +function createCheckboxChangeHandler(checkbox, references) { + return function() { + refsSet = getStoredCheckboxRefs(checkbox); + if (this.checked) { + // checkbox ticked + for (var ref of references) { + refsSet.add(ref[1]); + } + } else { + // checkbox unticked + for (var ref of references) { + refsSet.delete(ref[1]); + } + } + writeStorage("checkbox_" + checkbox, [...refsSet].join(",")); + } +} + +function createRowHighlightHandler(rowid, refs) { + return function() { + if (currentHighlightedRowId) { + if (currentHighlightedRowId == rowid) { + return; + } + document.getElementById(currentHighlightedRowId).classList.remove("highlighted"); + } + document.getElementById(rowid).classList.add("highlighted"); + currentHighlightedRowId = rowid; + highlightedModules = refs.map(r => r[1]); + drawHighlights(); + } +} + +function entryMatches(entry) { + // check refs + for (var ref of entry[3]) { + if (ref[0].toLowerCase().indexOf(filter) >= 0) { + return true; + } + } + // check value + if (entry[1].toLowerCase().indexOf(filter) >= 0) { + return true; + } + // check footprint + if (entry[2].toLowerCase().indexOf(filter) >= 0) { + return true; + } + return false; +} + +function findRefInEntry(entry) { + return entry[3].filter(r => r[0].toLowerCase() == reflookup); +} + +function highlightFilter(s) { + if (!filter) { + return s; + } + var parts = s.toLowerCase().split(filter); + if (parts.length == 1) { + return s; + } + var r = ""; + var pos = 0; + for (var i in parts) { + if (i > 0) { + r += '<mark class="highlight">' + + s.substring(pos, pos + filter.length) + + '</mark>'; + pos += filter.length; + } + r += s.substring(pos, pos + parts[i].length); + pos += parts[i].length; + } + return r; +} + +function checkboxSetUnsetAllHandler(checkboxname) { + return function() { + var checkboxnum = 0; + while (checkboxnum < checkboxes.length && + checkboxes[checkboxnum].toLowerCase() != checkboxname.toLowerCase()) { + checkboxnum++; + } + if (checkboxnum >= checkboxes.length) { + return; + } + var allset = true; + var checkbox; + var row; + for (row of bombody.childNodes) { + checkbox = row.childNodes[checkboxnum + 1].childNodes[0]; + if (!checkbox.checked || checkbox.indeterminate) { + allset = false; + break; + } + } + for (row of bombody.childNodes) { + checkbox = row.childNodes[checkboxnum + 1].childNodes[0]; + checkbox.checked = !allset; + checkbox.indeterminate = false; + checkbox.onchange(); + } + } +} + +function createColumnHeader(name, cls, comparator) { + var th = document.createElement("TH"); + th.innerHTML = name; + th.classList.add(cls); + th.style.cursor = "pointer"; + var span = document.createElement("SPAN"); + span.classList.add("sortmark"); + span.classList.add("none"); + th.appendChild(span); + th.onclick = function() { + if (currentSortColumn && this !== currentSortColumn) { + // Currently sorted by another column + currentSortColumn.childNodes[1].classList.remove(currentSortOrder); + currentSortColumn.childNodes[1].classList.add("none"); + currentSortColumn = null; + currentSortOrder = null; + } + if (currentSortColumn && this === currentSortColumn) { + // Already sorted by this column + if (currentSortOrder == "asc") { + // Sort by this column, descending order + bomSortFunction = function(a, b) { + return -comparator(a, b); + } + currentSortColumn.childNodes[1].classList.remove("asc"); + currentSortColumn.childNodes[1].classList.add("desc"); + currentSortOrder = "desc"; + } else { + // Unsort + bomSortFunction = null; + currentSortColumn.childNodes[1].classList.remove("desc"); + currentSortColumn.childNodes[1].classList.add("none"); + currentSortColumn = null; + currentSortOrder = null; + } + } else { + // Sort by this column, ascending order + bomSortFunction = comparator; + currentSortColumn = this; + currentSortColumn.childNodes[1].classList.remove("none"); + currentSortColumn.childNodes[1].classList.add("asc"); + currentSortOrder = "asc"; + } + populateBomBody(); + } + return th; +} + +function populateBomHeader() { + while (bomhead.firstChild) { + bomhead.removeChild(bomhead.firstChild); + } + var tr = document.createElement("TR"); + var th = document.createElement("TH"); + th.classList.add("numCol"); + tr.appendChild(th); + checkboxes = bomCheckboxes.split(",").filter((e) => e); + var checkboxCompareClosure = function(checkbox) { + return (a, b) => { + var stateA = getCheckboxState(checkbox, a[3]); + var stateB = getCheckboxState(checkbox, b[3]); + if (stateA > stateB) return -1; + if (stateA < stateB) return 1; + return 0; + } + } + for (var checkbox of checkboxes) { + th = createColumnHeader( + checkbox, "bom-checkbox", checkboxCompareClosure(checkbox)); + th.onclick = fancyDblClickHandler( + th, th.onclick.bind(th), checkboxSetUnsetAllHandler(checkbox)); + tr.appendChild(th); + } + tr.appendChild(createColumnHeader("References", "References", (a, b) => { + var i = 0; + while (i < a[3].length && i < b[3].length) { + if (a[3][i] != b[3][i]) return a[3][i] > b[3][i] ? 1 : -1; + i++; + } + return a[3].length - b[3].length; + })); + // Extra fields + if (config.extra_fields.length > 0) { + var extraFieldCompareClosure = function(fieldIndex) { + return (a, b) => { + var fa = a[4][fieldIndex]; + var fb = b[4][fieldIndex]; + if (fa != fb) return fa > fb ? 1 : -1; + else return 0; + } + } + for (var i in config.extra_fields) { + tr.appendChild(createColumnHeader( + config.extra_fields[i], "extra", extraFieldCompareClosure(i))); + } + } + tr.appendChild(createColumnHeader("Value", "Value", (a, b) => { + return valueCompare(a[5], b[5], a[1], b[1]); + })); + tr.appendChild(createColumnHeader("Footprint", "Footprint", (a, b) => { + if (a[2] != b[2]) return a[2] > b[2] ? 1 : -1; + else return 0; + })); + tr.appendChild(createColumnHeader("Quantity", "Quantity", (a, b) => { + return a[3].length - b[3].length; + })); + bomhead.appendChild(tr); +} + +function populateBomBody() { + while (bom.firstChild) { + bom.removeChild(bom.firstChild); + } + highlightHandlers = []; + currentHighlightedRowId = null; + var first = true; + switch (canvaslayout) { + case 'F': + bomtable = pcbdata.bom.F; + break; + case 'FB': + bomtable = pcbdata.bom.both; + break; + case 'B': + bomtable = pcbdata.bom.B; + break; + } + if (bomSortFunction) { + bomtable = bomtable.slice().sort(bomSortFunction); + } + for (var i in bomtable) { + var bomentry = bomtable[i]; + if (filter && !entryMatches(bomentry)) { + continue; + } + var references = bomentry[3]; + if (reflookup) { + references = findRefInEntry(bomentry); + if (references.length == 0) { + continue; + } + } + var tr = document.createElement("TR"); + var td = document.createElement("TD"); + var rownum = +i + 1; + tr.id = "bomrow" + rownum; + td.textContent = rownum; + tr.appendChild(td); + // Checkboxes + for (var checkbox of checkboxes) { + if (checkbox) { + td = document.createElement("TD"); + var input = document.createElement("input"); + input.type = "checkbox"; + input.onchange = createCheckboxChangeHandler(checkbox, references); + setBomCheckboxState(checkbox, input, references); + td.appendChild(input); + tr.appendChild(td); + } + } + // References + td = document.createElement("TD"); + td.innerHTML = highlightFilter(references.map(r => r[0]).join(", ")); + tr.appendChild(td); + // Extra fields + for (var i in config.extra_fields) { + td = document.createElement("TD"); + td.innerHTML = highlightFilter(bomentry[4][i]); + tr.appendChild(td); + } + // Value + td = document.createElement("TD"); + td.innerHTML = highlightFilter(bomentry[1]); + tr.appendChild(td); + // Footprint + td = document.createElement("TD"); + td.innerHTML = highlightFilter(bomentry[2]); + tr.appendChild(td); + // Quantity + td = document.createElement("TD"); + td.textContent = bomentry[3].length; + tr.appendChild(td); + bom.appendChild(tr); + var handler = createRowHighlightHandler(tr.id, references); + tr.onmousemove = handler; + highlightHandlers.push({ + id: tr.id, + handler: handler, + refs: references + }); + if ((filter || reflookup) && first) { + handler(); + first = false; + } + } +} + +function highlightPreviousRow() { + if (!currentHighlightedRowId) { + highlightHandlers[highlightHandlers.length - 1].handler(); + } else { + if (highlightHandlers.length > 1 && + highlightHandlers[0].id == currentHighlightedRowId) { + highlightHandlers[highlightHandlers.length - 1].handler(); + } else { + for (var i = 0; i < highlightHandlers.length - 1; i++) { + if (highlightHandlers[i + 1].id == currentHighlightedRowId) { + highlightHandlers[i].handler(); + break; + } + } + } + } + smoothScrollToRow(currentHighlightedRowId); +} + +function highlightNextRow() { + if (!currentHighlightedRowId) { + highlightHandlers[0].handler(); + } else { + if (highlightHandlers.length > 1 && + highlightHandlers[highlightHandlers.length - 1].id == currentHighlightedRowId) { + highlightHandlers[0].handler(); + } else { + for (var i = 1; i < highlightHandlers.length; i++) { + if (highlightHandlers[i - 1].id == currentHighlightedRowId) { + highlightHandlers[i].handler(); + break; + } + } + } + } + smoothScrollToRow(currentHighlightedRowId); +} + +function populateBomTable() { + populateBomHeader(); + populateBomBody(); +} + +function modulesClicked(moduleIndexes) { + var lastClickedIndex = moduleIndexes.indexOf(lastClicked); + var index = moduleIndexes[(lastClickedIndex + 1) % moduleIndexes.length]; + for (var handler of highlightHandlers) { + if (handler.refs.map(r => r[1]).indexOf(index) >= 0) { + lastClicked = index; + handler.handler(); + smoothScrollToRow(currentHighlightedRowId); + break; + } + } +} + +function updateFilter(input) { + filter = input.toLowerCase(); + populateBomTable(); +} + +function updateRefLookup(input) { + reflookup = input.toLowerCase(); + populateBomTable(); +} + +function silkscreenVisible(visible) { + if (visible) { + allcanvas.front.silk.style.display = ""; + allcanvas.back.silk.style.display = ""; + writeStorage("silkscreenVisible", true); + } else { + allcanvas.front.silk.style.display = "none"; + allcanvas.back.silk.style.display = "none"; + writeStorage("silkscreenVisible", false); + } +} + +function changeCanvasLayout(layout) { + document.getElementById("fl-btn").classList.remove("depressed"); + document.getElementById("fb-btn").classList.remove("depressed"); + document.getElementById("bl-btn").classList.remove("depressed"); + switch (layout) { + case 'F': + document.getElementById("fl-btn").classList.add("depressed"); + if (bomlayout != "bom-only") { + canvassplit.collapse(1); + } + break; + case 'B': + document.getElementById("bl-btn").classList.add("depressed"); + if (bomlayout != "bom-only") { + canvassplit.collapse(0); + } + break; + default: + document.getElementById("fb-btn").classList.add("depressed"); + if (bomlayout != "bom-only") { + canvassplit.setSizes([50, 50]); + } + } + canvaslayout = layout; + writeStorage("canvaslayout", layout); + resizeAll(); + populateBomTable(); +} + +function populateMetadata() { + document.getElementById("title").innerHTML = pcbdata.metadata.title; + document.getElementById("revision").innerHTML = "Rev: " + pcbdata.metadata.revision; + document.getElementById("company").innerHTML = pcbdata.metadata.company; + document.getElementById("filedate").innerHTML = pcbdata.metadata.date; + if (pcbdata.metadata.title != "") { + document.title = pcbdata.metadata.title + " BOM"; + } +} + +function changeBomLayout(layout) { + document.getElementById("bom-btn").classList.remove("depressed"); + document.getElementById("lr-btn").classList.remove("depressed"); + document.getElementById("tb-btn").classList.remove("depressed"); + switch (layout) { + case 'bom-only': + document.getElementById("bom-btn").classList.add("depressed"); + if (bomsplit) { + bomsplit.destroy(); + bomsplit = null; + canvassplit.destroy(); + canvassplit = null; + } + document.getElementById("frontcanvas").style.display = "none"; + document.getElementById("backcanvas").style.display = "none"; + document.getElementById("bot").style.height = ""; + break; + case 'top-bottom': + document.getElementById("tb-btn").classList.add("depressed"); + document.getElementById("frontcanvas").style.display = ""; + document.getElementById("backcanvas").style.display = ""; + document.getElementById("bot").style.height = "calc(100% - 80px)"; + document.getElementById("bomdiv").classList.remove("split-horizontal"); + document.getElementById("canvasdiv").classList.remove("split-horizontal"); + document.getElementById("frontcanvas").classList.add("split-horizontal"); + document.getElementById("backcanvas").classList.add("split-horizontal"); + if (bomsplit) { + bomsplit.destroy(); + bomsplit = null; + canvassplit.destroy(); + canvassplit = null; + } + bomsplit = Split(['#bomdiv', '#canvasdiv'], { + sizes: [50, 50], + onDragEnd: resizeAll, + direction: "vertical", + gutterSize: 5 + }); + canvassplit = Split(['#frontcanvas', '#backcanvas'], { + sizes: [50, 50], + gutterSize: 5, + onDragEnd: resizeAll + }); + break; + case 'left-right': + document.getElementById("lr-btn").classList.add("depressed"); + document.getElementById("frontcanvas").style.display = ""; + document.getElementById("backcanvas").style.display = ""; + document.getElementById("bot").style.height = "calc(100% - 80px)"; + document.getElementById("bomdiv").classList.add("split-horizontal"); + document.getElementById("canvasdiv").classList.add("split-horizontal"); + document.getElementById("frontcanvas").classList.remove("split-horizontal"); + document.getElementById("backcanvas").classList.remove("split-horizontal"); + if (bomsplit) { + bomsplit.destroy(); + bomsplit = null; + canvassplit.destroy(); + canvassplit = null; + } + bomsplit = Split(['#bomdiv', '#canvasdiv'], { + sizes: [50, 50], + onDragEnd: resizeAll, + gutterSize: 5 + }); + canvassplit = Split(['#frontcanvas', '#backcanvas'], { + sizes: [50, 50], + gutterSize: 5, + direction: "vertical", + onDragEnd: resizeAll + }); + } + bomlayout = layout; + writeStorage("bomlayout", layout); + changeCanvasLayout(canvaslayout); +} + +function focusFilterField() { + focusInputField(document.getElementById("filter")); +} + +function focusRefLookupField() { + focusInputField(document.getElementById("reflookup")); +} + +function toggleBomCheckbox(bomrowid, checkboxnum) { + if (!bomrowid || checkboxnum > checkboxes.length) { + return; + } + var bomrow = document.getElementById(bomrowid); + var checkbox = bomrow.childNodes[checkboxnum].childNodes[0]; + checkbox.checked = !checkbox.checked; + checkbox.indeterminate = false; + checkbox.onchange(); +} + +function checkBomCheckbox(bomrowid, checkboxname) { + var checkboxnum = 0; + while (checkboxnum < checkboxes.length && + checkboxes[checkboxnum].toLowerCase() != checkboxname.toLowerCase()) { + checkboxnum++; + } + if (!bomrowid || checkboxnum >= checkboxes.length) { + return; + } + var bomrow = document.getElementById(bomrowid); + var checkbox = bomrow.childNodes[checkboxnum + 1].childNodes[0]; + checkbox.checked = true; + checkbox.indeterminate = false; + checkbox.onchange(); +} + +function setBomCheckboxes(value) { + bomCheckboxes = value; + writeStorage("bomCheckboxes", value); + populateBomTable(); +} + +document.onkeydown = function(e) { + switch (e.key) { + case "n": + if (document.activeElement.type == "text") { + return; + } + if (currentHighlightedRowId !== null) { + checkBomCheckbox(currentHighlightedRowId, "placed"); + highlightNextRow(); + e.preventDefault(); + } + break; + case "ArrowUp": + highlightPreviousRow(); + e.preventDefault(); + break; + case "ArrowDown": + highlightNextRow(); + e.preventDefault(); + break; + default: + break; + } + if (e.altKey) { + switch (e.key) { + case "f": + focusFilterField(); + e.preventDefault(); + break; + case "r": + focusRefLookupField(); + e.preventDefault(); + break; + case "z": + changeBomLayout("bom-only"); + e.preventDefault(); + break; + case "x": + changeBomLayout("left-right"); + e.preventDefault(); + break; + case "c": + changeBomLayout("top-bottom"); + e.preventDefault(); + break; + case "v": + changeCanvasLayout("F"); + e.preventDefault(); + break; + case "b": + changeCanvasLayout("FB"); + e.preventDefault(); + break; + case "n": + changeCanvasLayout("B"); + e.preventDefault(); + break; + default: + break; + } + if (e.key >= '1' && e.key <= '9') { + toggleBomCheckbox(currentHighlightedRowId, parseInt(e.key)); + } + } +} + +function initDefaults() { + bomlayout = readStorage("bomlayout"); + if (bomlayout === null) { + bomlayout = config.bom_view; + } + if (!['bom-only', 'left-right', 'top-bottom'].includes(bomlayout)) { + bomlayout = config.bom_view; + } + canvaslayout = readStorage("canvaslayout"); + if (canvaslayout === null) { + canvaslayout = config.layer_view; + } + bomCheckboxes = readStorage("bomCheckboxes"); + if (bomCheckboxes === null) { + bomCheckboxes = config.checkboxes; + } + document.getElementById("bomCheckboxes").value = bomCheckboxes; + + var b = readStorage("silkscreenVisible"); + if (b === null) { + b = config.show_silkscreen; + } + document.getElementById("silkscreenCheckbox").checked = b; + silkscreenVisible(b); + + b = readStorage("redrawOnDrag"); + if (b === null) { + b = config.redraw_on_drag; + } + document.getElementById("dragCheckbox").checked = b; + setRedrawOnDrag(b); + + b = readStorage("darkmode"); + if (b === null) { + b = config.dark_mode; + } + document.getElementById("darkmodeCheckbox").checked = b; + setDarkMode(b); + + b = readStorage("highlightpin1"); + if (b === null) { + b = config.highlight_pin1; + } + document.getElementById("highlightpin1Checkbox").checked = b; + setHighlightPin1(b); + + boardRotation = readStorage("boardRotation"); + if (boardRotation === null) { + boardRotation = config.board_rotation * 5; + } else { + boardRotation = parseInt(boardRotation); + } + document.getElementById("boardRotation").value = boardRotation / 5; + document.getElementById("rotationDegree").textContent = boardRotation; +} + +window.onload = function(e) { + initUtils(); + initRender(); + initStorage(); + initDefaults(); + cleanGutters(); + populateMetadata(); + dbgdiv = document.getElementById("dbg"); + bom = document.getElementById("bombody"); + bomhead = document.getElementById("bomhead"); + filter = ""; + reflookup = ""; + initDone = true; + // Triggers render + changeBomLayout(bomlayout); +} + +window.onresize = resizeAll; +window.matchMedia("print").addListener(resizeAll); + +/////////////////////////////////////////////// + + </script> +</head> + +<body> +<div id="topmostdiv" style="width: 100%; height: 100%"> + <div id="top"> + <div style="float: right;"> + <div class="hideonprint menu" style="float: right; margin: 10px; top: 8px;"> + <button class="menubtn"></button> + <div class="menu-content"> + <label class="menu-label menu-label-top"> + <input id="darkmodeCheckbox" type="checkbox" onchange="setDarkMode(this.checked)"> + Dark mode + </label> + <label class="menu-label"> + <input id="silkscreenCheckbox" type="checkbox" checked onchange="silkscreenVisible(this.checked)"> + Show silkscreen + </label> + <label class="menu-label"> + <input id="highlightpin1Checkbox" type="checkbox" onchange="setHighlightPin1(this.checked)"> + Highlight first pin + </label> + <label class="menu-label"> + <input id="dragCheckbox" type="checkbox" checked onchange="setRedrawOnDrag(this.checked)"> + Continuous redraw on drag + </label> + <label class="menu-label"> + <span>Board rotation</span> + <span style="float: right"><span id="rotationDegree">0</span>°</span> + <input id="boardRotation" type="range" min="-36" max="36" value="0" class="slider" oninput="setBoardRotation(this.value)"> + </label> + <label class="menu-label"> + <div style="margin-left: 5px">Bom checkboxes</div> + <input id="bomCheckboxes" class="menu-textbox" type=text + oninput="setBomCheckboxes(this.value)"> + </label> + <label class="menu-label"> + <span class="shameless-plug"> + <span>Created using</span> + <a target="blank" href="https://github.com/openscopeproject/InteractiveHtmlBom">InteractiveHtmlBom</a> + </span> + </label> + </div> + </div> + <div class="button-container hideonprint" + style="float: right; margin: 10px; position: relative; top: 8px"> + <button id="fl-btn" class="left-most-button" onclick="changeCanvasLayout('F')" + title="Front only">F + </button> + <button id="fb-btn" class="middle-button" onclick="changeCanvasLayout('FB')" + title="Front and Back">FB + </button> + <button id="bl-btn" class="right-most-button" onclick="changeCanvasLayout('B')" + title="Back only">B + </button> + </div> + <div class="button-container hideonprint" + style="float: right; margin: 10px; position: relative; top: 8px"> + <button id="bom-btn" class="left-most-button" onclick="changeBomLayout('bom-only')" + title="BOM only"></button> + <button id="lr-btn" class="middle-button" onclick="changeBomLayout('left-right')" + title="BOM left, drawings right"></button> + <button id="tb-btn" class="right-most-button" onclick="changeBomLayout('top-bottom')" + title="BOM top, drawings bot"></button> + </div> + </div> + <div id="fileinfodiv" style="overflow: auto;"> + <table class="fileinfo"> + <tbody> + <tr> + <td id="title" class="title" style="width: 70%"> + Title + </td> + <td id="revision" class="title" style="width: 30%"> + Revision + </td> + </tr> + <tr> + <td id="company"> + Kicad version + </td> + <td id="filedate"> + Date + </td> + </tr> + </tbody> + </table> + </div> + </div> + <div id="bot" class="split" style="height: calc(100% - 80px)"> + <div id="bomdiv" class="split split-horizontal"> + <div style="width: 100%"> + <input id="reflookup" class="searchbox reflookup hideonprint" type="text" placeholder="Ref lookup" + oninput="updateRefLookup(this.value)"> + <input id="filter" class="searchbox filter hideonprint" type="text" placeholder="Filter" + oninput="updateFilter(this.value)"> + <div class="button-container hideonprint" style="float: left"> + <button id="copy" title="Copy bom table to clipboard" + onclick="copyToClipboard()"></button> + </div> + </div> + <div id="dbg"></div> + <table class="bom"> + <thead id="bomhead"> + </thead> + <tbody id="bombody"> + </tbody> + </table> + </div> + <div id="canvasdiv" class="split split-horizontal"> + <div id="frontcanvas" class="split" style="overflow: hidden"> + <div style="position: relative; width: 100%; height: 100%;"> + <canvas id="F_bg" style="position: absolute; left: 0; top: 0; z-index: 0;"></canvas> + <canvas id="F_slk" style="position: absolute; left: 0; top: 0; z-index: 1;"></canvas> + <canvas id="F_hl" style="position: absolute; left: 0; top: 0; z-index: 2;"></canvas> + </div> + </div> + <div id="backcanvas" class="split" style="overflow: hidden"> + <div style="position: relative; width: 100%; height: 100%;"> + <canvas id="B_bg" style="position: absolute; left: 0; top: 0; z-index: 0;"></canvas> + <canvas id="B_slk" style="position: absolute; left: 0; top: 0; z-index: 1;"></canvas> + <canvas id="B_hl" style="position: absolute; left: 0; top: 0; z-index: 2;"></canvas> + </div> + </div> + </div> + </div> +</div> +</body> + +</html> diff --git a/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.Cu.gbr b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.Cu.gbr new file mode 100644 index 0000000..be39f05 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.Cu.gbr @@ -0,0 +1,350 @@ +G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.1* +G04 #@! TF.CreationDate,2019-03-20T11:26:10+05:30* +G04 #@! TF.ProjectId,traffic,747261666669632E6B696361645F7063,rev?* +G04 #@! TF.SameCoordinates,Original* +G04 #@! TF.FileFunction,Copper,L2,Bot,Signal* +G04 #@! TF.FilePolarity,Positive* +%FSLAX46Y46*% +G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* +G04 Created by KiCad (PCBNEW 5.0.1) date Wed 20 Mar 2019 11:26:10 AM IST* +%MOMM*% +%LPD*% +G01* +G04 APERTURE LIST* +G04 #@! TA.AperFunction,SMDPad,CuDef* +%ADD10R,0.900000X1.200000*% +G04 #@! TD* +G04 #@! TA.AperFunction,ComponentPad* +%ADD11R,1.700000X1.700000*% +G04 #@! TD* +G04 #@! TA.AperFunction,SMDPad,CuDef* +%ADD12R,0.900000X0.800000*% +G04 #@! TD* +G04 #@! TA.AperFunction,ComponentPad* +%ADD13C,1.700000*% +G04 #@! TD* +G04 #@! TA.AperFunction,Conductor* +%ADD14C,1.700000*% +G04 #@! TD* +G04 #@! TA.AperFunction,Conductor* +%ADD15C,0.100000*% +G04 #@! TD* +G04 #@! TA.AperFunction,ComponentPad* +%ADD16C,1.800000*% +G04 #@! TD* +G04 #@! TA.AperFunction,ComponentPad* +%ADD17R,1.800000X1.800000*% +G04 #@! TD* +G04 #@! TA.AperFunction,ComponentPad* +%ADD18O,1.700000X1.700000*% +G04 #@! TD* +G04 #@! TA.AperFunction,SMDPad,CuDef* +%ADD19C,0.900000*% +G04 #@! TD* +G04 #@! TA.AperFunction,Conductor* +%ADD20C,0.250000*% +G04 #@! TD* +G04 APERTURE END LIST* +D10* +G04 #@! TO.P,R2,2* +G04 #@! TO.N,Net-(J1-Pad1)* +X139700000Y-95600000D03* +G04 #@! TO.P,R2,1* +G04 #@! TO.N,Net-(Q1-Pad1)* +X139700000Y-93400000D03* +G04 #@! TD* +D11* +G04 #@! TO.P,J3,1* +G04 #@! TO.N,+5C* +X137400000Y-94700000D03* +G04 #@! TD* +D12* +G04 #@! TO.P,Q1,3* +G04 #@! TO.N,Net-(J2-Pad2)* +X144000000Y-93300000D03* +G04 #@! TO.P,Q1,2* +G04 #@! TO.N,+5C* +X142000000Y-92350000D03* +G04 #@! TO.P,Q1,1* +G04 #@! TO.N,Net-(Q1-Pad1)* +X142000000Y-94250000D03* +G04 #@! TD* +D13* +G04 #@! TO.P,J2,2* +G04 #@! TO.N,Net-(J2-Pad2)* +X153397949Y-86595949D03* +D14* +G04 #@! TD* +G04 #@! TO.N,Net-(J2-Pad2)* +G04 #@! TO.C,J2* +X153397949Y-86595949D02* +X153397949Y-86595949D01* +D13* +G04 #@! TO.P,J2,1* +G04 #@! TO.N,Net-(D5-Pad1)* +X155194000Y-88392000D03* +D15* +G04 #@! TD* +G04 #@! TO.N,Net-(D5-Pad1)* +G04 #@! TO.C,J2* +G36* +X155194000Y-87189918D02* +X156396082Y-88392000D01* +X155194000Y-89594082D01* +X153991918Y-88392000D01* +X155194000Y-87189918D01* +X155194000Y-87189918D01* +G37* +D16* +G04 #@! TO.P,D5,2* +G04 #@! TO.N,Net-(D1-Pad2)* +X147320000Y-86106000D03* +D17* +G04 #@! TO.P,D5,1* +G04 #@! TO.N,Net-(D5-Pad1)* +X147320000Y-88646000D03* +G04 #@! TD* +G04 #@! TO.P,D4,1* +G04 #@! TO.N,Net-(D4-Pad1)* +X147320000Y-94996000D03* +D16* +G04 #@! TO.P,D4,2* +G04 #@! TO.N,Net-(D1-Pad2)* +X147320000Y-92456000D03* +G04 #@! TD* +G04 #@! TO.P,D3,2* +G04 #@! TO.N,Net-(D1-Pad2)* +X154900000Y-98860000D03* +D17* +G04 #@! TO.P,D3,1* +G04 #@! TO.N,Net-(D3-Pad1)* +X154900000Y-101400000D03* +G04 #@! TD* +G04 #@! TO.P,D2,1* +G04 #@! TO.N,Net-(D2-Pad1)* +X147320000Y-101346000D03* +D16* +G04 #@! TO.P,D2,2* +G04 #@! TO.N,Net-(D1-Pad2)* +X147320000Y-98806000D03* +G04 #@! TD* +G04 #@! TO.P,D1,2* +G04 #@! TO.N,Net-(D1-Pad2)* +X138900000Y-98760000D03* +D17* +G04 #@! TO.P,D1,1* +G04 #@! TO.N,Net-(D1-Pad1)* +X138900000Y-101300000D03* +G04 #@! TD* +D18* +G04 #@! TO.P,J1,6* +G04 #@! TO.N,Net-(D3-Pad1)* +X153416000Y-105664000D03* +G04 #@! TO.P,J1,5* +G04 #@! TO.N,Net-(D5-Pad1)* +X150876000Y-105664000D03* +G04 #@! TO.P,J1,4* +G04 #@! TO.N,Net-(D4-Pad1)* +X148336000Y-105664000D03* +G04 #@! TO.P,J1,3* +G04 #@! TO.N,Net-(D2-Pad1)* +X145796000Y-105664000D03* +G04 #@! TO.P,J1,2* +G04 #@! TO.N,Net-(D1-Pad1)* +X143256000Y-105664000D03* +D11* +G04 #@! TO.P,J1,1* +G04 #@! TO.N,Net-(J1-Pad1)* +X140716000Y-105664000D03* +G04 #@! TD* +D19* +G04 #@! TO.P,R1,2* +G04 #@! TO.N,Net-(J2-Pad2)* +X140922183Y-90277817D03* +D15* +G04 #@! TD* +G04 #@! TO.N,Net-(J2-Pad2)* +G04 #@! TO.C,R1* +G36* +X141028249Y-89535355D02* +X141664645Y-90171751D01* +X140816117Y-91020279D01* +X140179721Y-90383883D01* +X141028249Y-89535355D01* +X141028249Y-89535355D01* +G37* +D19* +G04 #@! TO.P,R1,1* +G04 #@! TO.N,Net-(D1-Pad2)* +X142477817Y-88722183D03* +D15* +G04 #@! TD* +G04 #@! TO.N,Net-(D1-Pad2)* +G04 #@! TO.C,R1* +G36* +X142583883Y-87979721D02* +X143220279Y-88616117D01* +X142371751Y-89464645D01* +X141735355Y-88828249D01* +X142583883Y-87979721D01* +X142583883Y-87979721D01* +G37* +D20* +G04 #@! TO.N,Net-(D1-Pad2)* +X147320000Y-86106000D02* +X145288000Y-88138000D01* +X145288000Y-90424000D02* +X147320000Y-92456000D01* +X147320000Y-92456000D02* +X146047208Y-92456000D01* +X146047208Y-92456000D02* +X145288000Y-93215208D01* +X145796000Y-98554792D02* +X145796000Y-98552000D01* +X146047208Y-98806000D02* +X145796000Y-98554792D01* +X147320000Y-98806000D02* +X146047208Y-98806000D01* +X145288000Y-98044000D02* +X145796000Y-98552000D01* +X145288000Y-93215208D02* +X145288000Y-95504000D01* +X145288000Y-95504000D02* +X145288000Y-98044000D01* +X145288000Y-88900000D02* +X145288000Y-90424000D01* +X139799999Y-97860001D02* +X139799999Y-97300001D01* +X138900000Y-98760000D02* +X139799999Y-97860001D01* +X141596000Y-95504000D02* +X145288000Y-95504000D01* +X139799999Y-97300001D02* +X141596000Y-95504000D01* +X148219999Y-87005999D02* +X150251999Y-87005999D01* +X147320000Y-86106000D02* +X148219999Y-87005999D01* +X150251999Y-87005999D02* +X151892000Y-88646000D01* +X153086900Y-88646000D02* +X155118900Y-86614000D01* +X151892000Y-88646000D02* +X153086900Y-88646000D01* +X155118900Y-86614000D02* +X155702000Y-86614000D01* +X155702000Y-86614000D02* +X157734000Y-88646000D01* +X157734000Y-88646000D02* +X157734000Y-90932000D01* +X154900000Y-93766000D02* +X154900000Y-94488000D01* +X157734000Y-90932000D02* +X154900000Y-93766000D01* +X154900000Y-94488000D02* +X154900000Y-98860000D01* +X145265817Y-88722183D02* +X145288000Y-88700000D01* +X142477817Y-88722183D02* +X145265817Y-88722183D01* +X145288000Y-88138000D02* +X145288000Y-88700000D01* +X145288000Y-88700000D02* +X145288000Y-88900000D01* +G04 #@! TO.N,Net-(D1-Pad1)* +X143256000Y-104506000D02* +X143256000Y-105664000D01* +X140050000Y-101300000D02* +X143256000Y-104506000D01* +X138900000Y-101300000D02* +X140050000Y-101300000D01* +G04 #@! TO.N,Net-(D2-Pad1)* +X145796000Y-101720000D02* +X145796000Y-104461919D01* +X146170000Y-101346000D02* +X145796000Y-101720000D01* +X147320000Y-101346000D02* +X146170000Y-101346000D01* +X145796000Y-104461919D02* +X145796000Y-105664000D01* +G04 #@! TO.N,Net-(D3-Pad1)* +X154900000Y-104180000D02* +X153416000Y-105664000D01* +X154900000Y-101400000D02* +X154900000Y-104180000D01* +G04 #@! TO.N,Net-(D4-Pad1)* +X148470000Y-94996000D02* +X150368000Y-96894000D01* +X147320000Y-94996000D02* +X148470000Y-94996000D01* +X150368000Y-96894000D02* +X150368000Y-101600000D01* +X150368000Y-101600000D02* +X148336000Y-103632000D01* +X148336000Y-103632000D02* +X148336000Y-105664000D01* +G04 #@! TO.N,Net-(D5-Pad1)* +X150114000Y-88646000D02* +X147320000Y-88646000D01* +X151725999Y-90257999D02* +X150114000Y-88646000D01* +X151725999Y-104814001D02* +X151725999Y-90257999D01* +X150876000Y-105664000D02* +X151725999Y-104814001D01* +X153328001Y-90257999D02* +X155194000Y-88392000D01* +X151725999Y-90257999D02* +X153328001Y-90257999D01* +G04 #@! TO.N,+5C* +X137300000Y-93500000D02* +X137300000Y-94600000D01* +X138450000Y-92350000D02* +X137300000Y-93500000D01* +X142000000Y-92350000D02* +X138450000Y-92350000D01* +G04 #@! TO.N,Net-(J2-Pad2)* +X144018000Y-84328000D02* +X151130000Y-84328000D01* +X151130000Y-84328000D02* +X153397949Y-86595949D01* +X140922183Y-87423817D02* +X142700000Y-85646000D01* +X140922183Y-90277817D02* +X140922183Y-87423817D01* +X142700000Y-85646000D02* +X144018000Y-84328000D01* +X141311091Y-90666725D02* +X140922183Y-90277817D01* +X142016725Y-90666725D02* +X141311091Y-90666725D01* +X144000000Y-92650000D02* +X142016725Y-90666725D01* +X144000000Y-93300000D02* +X144000000Y-92650000D01* +G04 #@! TO.N,Net-(J1-Pad1)* +X139616000Y-105664000D02* +X140716000Y-105664000D01* +X136774000Y-102822000D02* +X139616000Y-105664000D01* +X136774000Y-98776000D02* +X136774000Y-102822000D01* +X136774000Y-97826000D02* +X136774000Y-98600000D01* +X139000000Y-95600000D02* +X136774000Y-97826000D01* +X139700000Y-95600000D02* +X139000000Y-95600000D01* +X136774000Y-98776000D02* +X136774000Y-98600000D01* +X136774000Y-98600000D02* +X136774000Y-98226000D01* +G04 #@! TO.N,Net-(Q1-Pad1)* +X139700000Y-93400000D02* +X140400000Y-93400000D01* +X141250000Y-94250000D02* +X142000000Y-94250000D01* +X140400000Y-93400000D02* +X141250000Y-94250000D01* +G04 #@! TD* +M02* diff --git a/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.Mask.gbr b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.Mask.gbr new file mode 100644 index 0000000..24d81b0 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.Mask.gbr @@ -0,0 +1,713 @@ +G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.1* +G04 #@! TF.CreationDate,2019-03-20T11:26:10+05:30* +G04 #@! TF.ProjectId,traffic,747261666669632E6B696361645F7063,rev?* +G04 #@! TF.SameCoordinates,Original* +G04 #@! TF.FileFunction,Soldermask,Bot* +G04 #@! TF.FilePolarity,Negative* +%FSLAX46Y46*% +G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* +G04 Created by KiCad (PCBNEW 5.0.1) date Wed 20 Mar 2019 11:26:10 AM IST* +%MOMM*% +%LPD*% +G01* +G04 APERTURE LIST* +%ADD10C,0.100000*% +G04 APERTURE END LIST* +D10* +G36* +X153526442Y-104769518D02* +X153592627Y-104776037D01* +X153705853Y-104810384D01* +X153762467Y-104827557D01* +X153901087Y-104901652D01* +X153918991Y-104911222D01* +X153954729Y-104940552D01* +X154056186Y-105023814D01* +X154139448Y-105125271D01* +X154168778Y-105161009D01* +X154168779Y-105161011D01* +X154252443Y-105317533D01* +X154252443Y-105317534D01* +X154303963Y-105487373D01* +X154321359Y-105664000D01* +X154303963Y-105840627D01* +X154269616Y-105953853D01* +X154252443Y-106010467D01* +X154178348Y-106149087D01* +X154168778Y-106166991D01* +X154139448Y-106202729D01* +X154056186Y-106304186D01* +X153954729Y-106387448D01* +X153918991Y-106416778D01* +X153918989Y-106416779D01* +X153762467Y-106500443D01* +X153705853Y-106517616D01* +X153592627Y-106551963D01* +X153526442Y-106558482D01* +X153460260Y-106565000D01* +X153371740Y-106565000D01* +X153305558Y-106558482D01* +X153239373Y-106551963D01* +X153126147Y-106517616D01* +X153069533Y-106500443D01* +X152913011Y-106416779D01* +X152913009Y-106416778D01* +X152877271Y-106387448D01* +X152775814Y-106304186D01* +X152692552Y-106202729D01* +X152663222Y-106166991D01* +X152653652Y-106149087D01* +X152579557Y-106010467D01* +X152562384Y-105953853D01* +X152528037Y-105840627D01* +X152510641Y-105664000D01* +X152528037Y-105487373D01* +X152579557Y-105317534D01* +X152579557Y-105317533D01* +X152663221Y-105161011D01* +X152663222Y-105161009D01* +X152692552Y-105125271D01* +X152775814Y-105023814D01* +X152877271Y-104940552D01* +X152913009Y-104911222D01* +X152930913Y-104901652D01* +X153069533Y-104827557D01* +X153126147Y-104810384D01* +X153239373Y-104776037D01* +X153305558Y-104769518D01* +X153371740Y-104763000D01* +X153460260Y-104763000D01* +X153526442Y-104769518D01* +X153526442Y-104769518D01* +G37* +G36* +X150986442Y-104769518D02* +X151052627Y-104776037D01* +X151165853Y-104810384D01* +X151222467Y-104827557D01* +X151361087Y-104901652D01* +X151378991Y-104911222D01* +X151414729Y-104940552D01* +X151516186Y-105023814D01* +X151599448Y-105125271D01* +X151628778Y-105161009D01* +X151628779Y-105161011D01* +X151712443Y-105317533D01* +X151712443Y-105317534D01* +X151763963Y-105487373D01* +X151781359Y-105664000D01* +X151763963Y-105840627D01* +X151729616Y-105953853D01* +X151712443Y-106010467D01* +X151638348Y-106149087D01* +X151628778Y-106166991D01* +X151599448Y-106202729D01* +X151516186Y-106304186D01* +X151414729Y-106387448D01* +X151378991Y-106416778D01* +X151378989Y-106416779D01* +X151222467Y-106500443D01* +X151165853Y-106517616D01* +X151052627Y-106551963D01* +X150986442Y-106558482D01* +X150920260Y-106565000D01* +X150831740Y-106565000D01* +X150765558Y-106558482D01* +X150699373Y-106551963D01* +X150586147Y-106517616D01* +X150529533Y-106500443D01* +X150373011Y-106416779D01* +X150373009Y-106416778D01* +X150337271Y-106387448D01* +X150235814Y-106304186D01* +X150152552Y-106202729D01* +X150123222Y-106166991D01* +X150113652Y-106149087D01* +X150039557Y-106010467D01* +X150022384Y-105953853D01* +X149988037Y-105840627D01* +X149970641Y-105664000D01* +X149988037Y-105487373D01* +X150039557Y-105317534D01* +X150039557Y-105317533D01* +X150123221Y-105161011D01* +X150123222Y-105161009D01* +X150152552Y-105125271D01* +X150235814Y-105023814D01* +X150337271Y-104940552D01* +X150373009Y-104911222D01* +X150390913Y-104901652D01* +X150529533Y-104827557D01* +X150586147Y-104810384D01* +X150699373Y-104776037D01* +X150765558Y-104769518D01* +X150831740Y-104763000D01* +X150920260Y-104763000D01* +X150986442Y-104769518D01* +X150986442Y-104769518D01* +G37* +G36* +X148446442Y-104769518D02* +X148512627Y-104776037D01* +X148625853Y-104810384D01* +X148682467Y-104827557D01* +X148821087Y-104901652D01* +X148838991Y-104911222D01* +X148874729Y-104940552D01* +X148976186Y-105023814D01* +X149059448Y-105125271D01* +X149088778Y-105161009D01* +X149088779Y-105161011D01* +X149172443Y-105317533D01* +X149172443Y-105317534D01* +X149223963Y-105487373D01* +X149241359Y-105664000D01* +X149223963Y-105840627D01* +X149189616Y-105953853D01* +X149172443Y-106010467D01* +X149098348Y-106149087D01* +X149088778Y-106166991D01* +X149059448Y-106202729D01* +X148976186Y-106304186D01* +X148874729Y-106387448D01* +X148838991Y-106416778D01* +X148838989Y-106416779D01* +X148682467Y-106500443D01* +X148625853Y-106517616D01* +X148512627Y-106551963D01* +X148446442Y-106558482D01* +X148380260Y-106565000D01* +X148291740Y-106565000D01* +X148225558Y-106558482D01* +X148159373Y-106551963D01* +X148046147Y-106517616D01* +X147989533Y-106500443D01* +X147833011Y-106416779D01* +X147833009Y-106416778D01* +X147797271Y-106387448D01* +X147695814Y-106304186D01* +X147612552Y-106202729D01* +X147583222Y-106166991D01* +X147573652Y-106149087D01* +X147499557Y-106010467D01* +X147482384Y-105953853D01* +X147448037Y-105840627D01* +X147430641Y-105664000D01* +X147448037Y-105487373D01* +X147499557Y-105317534D01* +X147499557Y-105317533D01* +X147583221Y-105161011D01* +X147583222Y-105161009D01* +X147612552Y-105125271D01* +X147695814Y-105023814D01* +X147797271Y-104940552D01* +X147833009Y-104911222D01* +X147850913Y-104901652D01* +X147989533Y-104827557D01* +X148046147Y-104810384D01* +X148159373Y-104776037D01* +X148225558Y-104769518D01* +X148291740Y-104763000D01* +X148380260Y-104763000D01* +X148446442Y-104769518D01* +X148446442Y-104769518D01* +G37* +G36* +X145906442Y-104769518D02* +X145972627Y-104776037D01* +X146085853Y-104810384D01* +X146142467Y-104827557D01* +X146281087Y-104901652D01* +X146298991Y-104911222D01* +X146334729Y-104940552D01* +X146436186Y-105023814D01* +X146519448Y-105125271D01* +X146548778Y-105161009D01* +X146548779Y-105161011D01* +X146632443Y-105317533D01* +X146632443Y-105317534D01* +X146683963Y-105487373D01* +X146701359Y-105664000D01* +X146683963Y-105840627D01* +X146649616Y-105953853D01* +X146632443Y-106010467D01* +X146558348Y-106149087D01* +X146548778Y-106166991D01* +X146519448Y-106202729D01* +X146436186Y-106304186D01* +X146334729Y-106387448D01* +X146298991Y-106416778D01* +X146298989Y-106416779D01* +X146142467Y-106500443D01* +X146085853Y-106517616D01* +X145972627Y-106551963D01* +X145906442Y-106558482D01* +X145840260Y-106565000D01* +X145751740Y-106565000D01* +X145685558Y-106558482D01* +X145619373Y-106551963D01* +X145506147Y-106517616D01* +X145449533Y-106500443D01* +X145293011Y-106416779D01* +X145293009Y-106416778D01* +X145257271Y-106387448D01* +X145155814Y-106304186D01* +X145072552Y-106202729D01* +X145043222Y-106166991D01* +X145033652Y-106149087D01* +X144959557Y-106010467D01* +X144942384Y-105953853D01* +X144908037Y-105840627D01* +X144890641Y-105664000D01* +X144908037Y-105487373D01* +X144959557Y-105317534D01* +X144959557Y-105317533D01* +X145043221Y-105161011D01* +X145043222Y-105161009D01* +X145072552Y-105125271D01* +X145155814Y-105023814D01* +X145257271Y-104940552D01* +X145293009Y-104911222D01* +X145310913Y-104901652D01* +X145449533Y-104827557D01* +X145506147Y-104810384D01* +X145619373Y-104776037D01* +X145685558Y-104769518D01* +X145751740Y-104763000D01* +X145840260Y-104763000D01* +X145906442Y-104769518D01* +X145906442Y-104769518D01* +G37* +G36* +X143366442Y-104769518D02* +X143432627Y-104776037D01* +X143545853Y-104810384D01* +X143602467Y-104827557D01* +X143741087Y-104901652D01* +X143758991Y-104911222D01* +X143794729Y-104940552D01* +X143896186Y-105023814D01* +X143979448Y-105125271D01* +X144008778Y-105161009D01* +X144008779Y-105161011D01* +X144092443Y-105317533D01* +X144092443Y-105317534D01* +X144143963Y-105487373D01* +X144161359Y-105664000D01* +X144143963Y-105840627D01* +X144109616Y-105953853D01* +X144092443Y-106010467D01* +X144018348Y-106149087D01* +X144008778Y-106166991D01* +X143979448Y-106202729D01* +X143896186Y-106304186D01* +X143794729Y-106387448D01* +X143758991Y-106416778D01* +X143758989Y-106416779D01* +X143602467Y-106500443D01* +X143545853Y-106517616D01* +X143432627Y-106551963D01* +X143366442Y-106558482D01* +X143300260Y-106565000D01* +X143211740Y-106565000D01* +X143145558Y-106558482D01* +X143079373Y-106551963D01* +X142966147Y-106517616D01* +X142909533Y-106500443D01* +X142753011Y-106416779D01* +X142753009Y-106416778D01* +X142717271Y-106387448D01* +X142615814Y-106304186D01* +X142532552Y-106202729D01* +X142503222Y-106166991D01* +X142493652Y-106149087D01* +X142419557Y-106010467D01* +X142402384Y-105953853D01* +X142368037Y-105840627D01* +X142350641Y-105664000D01* +X142368037Y-105487373D01* +X142419557Y-105317534D01* +X142419557Y-105317533D01* +X142503221Y-105161011D01* +X142503222Y-105161009D01* +X142532552Y-105125271D01* +X142615814Y-105023814D01* +X142717271Y-104940552D01* +X142753009Y-104911222D01* +X142770913Y-104901652D01* +X142909533Y-104827557D01* +X142966147Y-104810384D01* +X143079373Y-104776037D01* +X143145558Y-104769518D01* +X143211740Y-104763000D01* +X143300260Y-104763000D01* +X143366442Y-104769518D01* +X143366442Y-104769518D01* +G37* +G36* +X141617000Y-106565000D02* +X139815000Y-106565000D01* +X139815000Y-104763000D01* +X141617000Y-104763000D01* +X141617000Y-106565000D01* +X141617000Y-106565000D01* +G37* +G36* +X155851000Y-102351000D02* +X153949000Y-102351000D01* +X153949000Y-100449000D01* +X155851000Y-100449000D01* +X155851000Y-102351000D01* +X155851000Y-102351000D01* +G37* +G36* +X148271000Y-102297000D02* +X146369000Y-102297000D01* +X146369000Y-100395000D01* +X148271000Y-100395000D01* +X148271000Y-102297000D01* +X148271000Y-102297000D01* +G37* +G36* +X139851000Y-102251000D02* +X137949000Y-102251000D01* +X137949000Y-100349000D01* +X139851000Y-100349000D01* +X139851000Y-102251000D01* +X139851000Y-102251000D01* +G37* +G36* +X155177396Y-97945546D02* +X155350466Y-98017234D01* +X155506230Y-98121312D01* +X155638688Y-98253770D01* +X155742766Y-98409534D01* +X155814454Y-98582604D01* +X155851000Y-98766333D01* +X155851000Y-98953667D01* +X155814454Y-99137396D01* +X155742766Y-99310466D01* +X155638688Y-99466230D01* +X155506230Y-99598688D01* +X155350466Y-99702766D01* +X155177396Y-99774454D01* +X154993667Y-99811000D01* +X154806333Y-99811000D01* +X154622604Y-99774454D01* +X154449534Y-99702766D01* +X154293770Y-99598688D01* +X154161312Y-99466230D01* +X154057234Y-99310466D01* +X153985546Y-99137396D01* +X153949000Y-98953667D01* +X153949000Y-98766333D01* +X153985546Y-98582604D01* +X154057234Y-98409534D01* +X154161312Y-98253770D01* +X154293770Y-98121312D01* +X154449534Y-98017234D01* +X154622604Y-97945546D01* +X154806333Y-97909000D01* +X154993667Y-97909000D01* +X155177396Y-97945546D01* +X155177396Y-97945546D01* +G37* +G36* +X147597396Y-97891546D02* +X147770466Y-97963234D01* +X147926230Y-98067312D01* +X148058688Y-98199770D01* +X148162766Y-98355534D01* +X148234454Y-98528604D01* +X148271000Y-98712333D01* +X148271000Y-98899667D01* +X148234454Y-99083396D01* +X148162766Y-99256466D01* +X148058688Y-99412230D01* +X147926230Y-99544688D01* +X147770466Y-99648766D01* +X147597396Y-99720454D01* +X147413667Y-99757000D01* +X147226333Y-99757000D01* +X147042604Y-99720454D01* +X146869534Y-99648766D01* +X146713770Y-99544688D01* +X146581312Y-99412230D01* +X146477234Y-99256466D01* +X146405546Y-99083396D01* +X146369000Y-98899667D01* +X146369000Y-98712333D01* +X146405546Y-98528604D01* +X146477234Y-98355534D01* +X146581312Y-98199770D01* +X146713770Y-98067312D01* +X146869534Y-97963234D01* +X147042604Y-97891546D01* +X147226333Y-97855000D01* +X147413667Y-97855000D01* +X147597396Y-97891546D01* +X147597396Y-97891546D01* +G37* +G36* +X139177396Y-97845546D02* +X139350466Y-97917234D01* +X139506230Y-98021312D01* +X139638688Y-98153770D01* +X139742766Y-98309534D01* +X139814454Y-98482604D01* +X139851000Y-98666333D01* +X139851000Y-98853667D01* +X139814454Y-99037396D01* +X139742766Y-99210466D01* +X139638688Y-99366230D01* +X139506230Y-99498688D01* +X139350466Y-99602766D01* +X139177396Y-99674454D01* +X138993667Y-99711000D01* +X138806333Y-99711000D01* +X138622604Y-99674454D01* +X138449534Y-99602766D01* +X138293770Y-99498688D01* +X138161312Y-99366230D01* +X138057234Y-99210466D01* +X137985546Y-99037396D01* +X137949000Y-98853667D01* +X137949000Y-98666333D01* +X137985546Y-98482604D01* +X138057234Y-98309534D01* +X138161312Y-98153770D01* +X138293770Y-98021312D01* +X138449534Y-97917234D01* +X138622604Y-97845546D01* +X138806333Y-97809000D01* +X138993667Y-97809000D01* +X139177396Y-97845546D01* +X139177396Y-97845546D01* +G37* +G36* +X140201000Y-96251000D02* +X139199000Y-96251000D01* +X139199000Y-94949000D01* +X140201000Y-94949000D01* +X140201000Y-96251000D01* +X140201000Y-96251000D01* +G37* +G36* +X148271000Y-95947000D02* +X146369000Y-95947000D01* +X146369000Y-94045000D01* +X148271000Y-94045000D01* +X148271000Y-95947000D01* +X148271000Y-95947000D01* +G37* +G36* +X138301000Y-95601000D02* +X136499000Y-95601000D01* +X136499000Y-93799000D01* +X138301000Y-93799000D01* +X138301000Y-95601000D01* +X138301000Y-95601000D01* +G37* +G36* +X142501000Y-94701000D02* +X141499000Y-94701000D01* +X141499000Y-93799000D01* +X142501000Y-93799000D01* +X142501000Y-94701000D01* +X142501000Y-94701000D01* +G37* +G36* +X140201000Y-94051000D02* +X139199000Y-94051000D01* +X139199000Y-92749000D01* +X140201000Y-92749000D01* +X140201000Y-94051000D01* +X140201000Y-94051000D01* +G37* +G36* +X144501000Y-93751000D02* +X143499000Y-93751000D01* +X143499000Y-92849000D01* +X144501000Y-92849000D01* +X144501000Y-93751000D01* +X144501000Y-93751000D01* +G37* +G36* +X147597396Y-91541546D02* +X147770466Y-91613234D01* +X147926230Y-91717312D01* +X148058688Y-91849770D01* +X148162766Y-92005534D01* +X148234454Y-92178604D01* +X148271000Y-92362333D01* +X148271000Y-92549667D01* +X148234454Y-92733396D01* +X148162766Y-92906466D01* +X148058688Y-93062230D01* +X147926230Y-93194688D01* +X147770466Y-93298766D01* +X147597396Y-93370454D01* +X147413667Y-93407000D01* +X147226333Y-93407000D01* +X147042604Y-93370454D01* +X146869534Y-93298766D01* +X146713770Y-93194688D01* +X146581312Y-93062230D01* +X146477234Y-92906466D01* +X146405546Y-92733396D01* +X146369000Y-92549667D01* +X146369000Y-92362333D01* +X146405546Y-92178604D01* +X146477234Y-92005534D01* +X146581312Y-91849770D01* +X146713770Y-91717312D01* +X146869534Y-91613234D01* +X147042604Y-91541546D01* +X147226333Y-91505000D01* +X147413667Y-91505000D01* +X147597396Y-91541546D01* +X147597396Y-91541546D01* +G37* +G36* +X142501000Y-92801000D02* +X141499000Y-92801000D01* +X141499000Y-91899000D01* +X142501000Y-91899000D01* +X142501000Y-92801000D01* +X142501000Y-92801000D01* +G37* +G36* +X141736771Y-90171751D02* +X140816117Y-91092405D01* +X140107595Y-90383883D01* +X141028249Y-89463229D01* +X141736771Y-90171751D01* +X141736771Y-90171751D01* +G37* +G36* +X156468207Y-88392000D02* +X155194000Y-89666207D01* +X153919793Y-88392000D01* +X155194000Y-87117793D01* +X156468207Y-88392000D01* +X156468207Y-88392000D01* +G37* +G36* +X148271000Y-89597000D02* +X146369000Y-89597000D01* +X146369000Y-87695000D01* +X148271000Y-87695000D01* +X148271000Y-89597000D01* +X148271000Y-89597000D01* +G37* +G36* +X143292405Y-88616117D02* +X142371751Y-89536771D01* +X141663229Y-88828249D01* +X142583883Y-87907595D01* +X143292405Y-88616117D01* +X143292405Y-88616117D01* +G37* +G36* +X153508391Y-85701467D02* +X153574576Y-85707986D01* +X153687802Y-85742333D01* +X153744416Y-85759506D01* +X153873687Y-85828604D01* +X153900940Y-85843171D01* +X153936678Y-85872501D01* +X154038135Y-85955763D01* +X154121397Y-86057220D01* +X154150727Y-86092958D01* +X154150728Y-86092960D01* +X154234392Y-86249482D01* +X154234392Y-86249483D01* +X154285912Y-86419322D01* +X154303308Y-86595949D01* +X154285912Y-86772576D01* +X154264037Y-86844688D01* +X154234392Y-86942416D01* +X154192679Y-87020454D01* +X154150727Y-87098940D01* +X154135254Y-87117794D01* +X154038135Y-87236135D01* +X153936678Y-87319397D01* +X153900940Y-87348727D01* +X153900938Y-87348728D01* +X153744416Y-87432392D01* +X153687802Y-87449565D01* +X153574576Y-87483912D01* +X153508392Y-87490430D01* +X153442209Y-87496949D01* +X153353689Y-87496949D01* +X153287506Y-87490430D01* +X153221322Y-87483912D01* +X153108096Y-87449565D01* +X153051482Y-87432392D01* +X152894960Y-87348728D01* +X152894958Y-87348727D01* +X152859220Y-87319397D01* +X152757763Y-87236135D01* +X152660644Y-87117794D01* +X152645171Y-87098940D01* +X152603219Y-87020454D01* +X152561506Y-86942416D01* +X152531861Y-86844688D01* +X152509986Y-86772576D01* +X152492590Y-86595949D01* +X152509986Y-86419322D01* +X152561506Y-86249483D01* +X152561506Y-86249482D01* +X152645170Y-86092960D01* +X152645171Y-86092958D01* +X152674501Y-86057220D01* +X152757763Y-85955763D01* +X152859220Y-85872501D01* +X152894958Y-85843171D01* +X152922211Y-85828604D01* +X153051482Y-85759506D01* +X153108096Y-85742333D01* +X153221322Y-85707986D01* +X153287507Y-85701467D01* +X153353689Y-85694949D01* +X153442209Y-85694949D01* +X153508391Y-85701467D01* +X153508391Y-85701467D01* +G37* +G36* +X147597396Y-85191546D02* +X147770466Y-85263234D01* +X147926230Y-85367312D01* +X148058688Y-85499770D01* +X148162766Y-85655534D01* +X148234454Y-85828604D01* +X148271000Y-86012333D01* +X148271000Y-86199667D01* +X148234454Y-86383396D01* +X148162766Y-86556466D01* +X148058688Y-86712230D01* +X147926230Y-86844688D01* +X147770466Y-86948766D01* +X147597396Y-87020454D01* +X147413667Y-87057000D01* +X147226333Y-87057000D01* +X147042604Y-87020454D01* +X146869534Y-86948766D01* +X146713770Y-86844688D01* +X146581312Y-86712230D01* +X146477234Y-86556466D01* +X146405546Y-86383396D01* +X146369000Y-86199667D01* +X146369000Y-86012333D01* +X146405546Y-85828604D01* +X146477234Y-85655534D01* +X146581312Y-85499770D01* +X146713770Y-85367312D01* +X146869534Y-85263234D01* +X147042604Y-85191546D01* +X147226333Y-85155000D01* +X147413667Y-85155000D01* +X147597396Y-85191546D01* +X147597396Y-85191546D01* +G37* +M02* diff --git a/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.Paste.gbr b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.Paste.gbr new file mode 100644 index 0000000..1cb4f70 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.Paste.gbr @@ -0,0 +1,54 @@ +G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.1* +G04 #@! TF.CreationDate,2019-03-20T11:26:10+05:30* +G04 #@! TF.ProjectId,traffic,747261666669632E6B696361645F7063,rev?* +G04 #@! TF.SameCoordinates,Original* +G04 #@! TF.FileFunction,Paste,Bot* +G04 #@! TF.FilePolarity,Positive* +%FSLAX46Y46*% +G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* +G04 Created by KiCad (PCBNEW 5.0.1) date Wed 20 Mar 2019 11:26:10 AM IST* +%MOMM*% +%LPD*% +G01* +G04 APERTURE LIST* +%ADD10R,0.900000X1.200000*% +%ADD11R,0.900000X0.800000*% +%ADD12C,0.900000*% +%ADD13C,0.100000*% +G04 APERTURE END LIST* +D10* +G04 #@! TO.C,R2* +X139700000Y-95600000D03* +X139700000Y-93400000D03* +G04 #@! TD* +D11* +G04 #@! TO.C,Q1* +X144000000Y-93300000D03* +X142000000Y-92350000D03* +X142000000Y-94250000D03* +G04 #@! TD* +D12* +G04 #@! TO.C,R1* +X140922183Y-90277817D03* +D13* +G36* +X141028249Y-89535355D02* +X141664645Y-90171751D01* +X140816117Y-91020279D01* +X140179721Y-90383883D01* +X141028249Y-89535355D01* +X141028249Y-89535355D01* +G37* +D12* +X142477817Y-88722183D03* +D13* +G36* +X142583883Y-87979721D02* +X143220279Y-88616117D01* +X142371751Y-89464645D01* +X141735355Y-88828249D01* +X142583883Y-87979721D01* +X142583883Y-87979721D01* +G37* +G04 #@! TD* +M02* diff --git a/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.SilkS.gbr b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.SilkS.gbr new file mode 100644 index 0000000..73923f9 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-B.SilkS.gbr @@ -0,0 +1,116 @@ +G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.1* +G04 #@! TF.CreationDate,2019-03-20T11:26:10+05:30* +G04 #@! TF.ProjectId,traffic,747261666669632E6B696361645F7063,rev?* +G04 #@! TF.SameCoordinates,Original* +G04 #@! TF.FileFunction,Legend,Bot* +G04 #@! TF.FilePolarity,Positive* +%FSLAX46Y46*% +G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* +G04 Created by KiCad (PCBNEW 5.0.1) date Wed 20 Mar 2019 11:26:10 AM IST* +%MOMM*% +%LPD*% +G01* +G04 APERTURE LIST* +%ADD10C,0.120000*% +%ADD11C,0.150000*% +G04 APERTURE END LIST* +D10* +G04 #@! TO.C,R2* +X139020000Y-94000000D02* +X139020000Y-95000000D01* +X140380000Y-95000000D02* +X140380000Y-94000000D01* +G04 #@! TO.C,Q1* +X143760000Y-91720000D02* +X142300000Y-91720000D01* +X143760000Y-94880000D02* +X141600000Y-94880000D01* +X143760000Y-94880000D02* +X143760000Y-93950000D01* +X143760000Y-91720000D02* +X143760000Y-92650000D01* +G04 #@! TO.C,R1* +X141572721Y-88665614D02* +X140865614Y-89372721D01* +X141827279Y-90334386D02* +X142534386Y-89627279D01* +G04 #@! TO.C,R2* +D11* +X140152380Y-91533333D02* +X139676190Y-91200000D01* +X140152380Y-90961904D02* +X139152380Y-90961904D01* +X139152380Y-91342857D01* +X139200000Y-91438095D01* +X139247619Y-91485714D01* +X139342857Y-91533333D01* +X139485714Y-91533333D01* +X139580952Y-91485714D01* +X139628571Y-91438095D01* +X139676190Y-91342857D01* +X139676190Y-90961904D01* +X139247619Y-91914285D02* +X139200000Y-91961904D01* +X139152380Y-92057142D01* +X139152380Y-92295238D01* +X139200000Y-92390476D01* +X139247619Y-92438095D01* +X139342857Y-92485714D01* +X139438095Y-92485714D01* +X139580952Y-92438095D01* +X140152380Y-91866666D01* +X140152380Y-92485714D01* +G04 #@! TO.C,Q1* +X143095238Y-96347619D02* +X143190476Y-96300000D01* +X143285714Y-96204761D01* +X143428571Y-96061904D01* +X143523809Y-96014285D01* +X143619047Y-96014285D01* +X143571428Y-96252380D02* +X143666666Y-96204761D01* +X143761904Y-96109523D01* +X143809523Y-95919047D01* +X143809523Y-95585714D01* +X143761904Y-95395238D01* +X143666666Y-95300000D01* +X143571428Y-95252380D01* +X143380952Y-95252380D01* +X143285714Y-95300000D01* +X143190476Y-95395238D01* +X143142857Y-95585714D01* +X143142857Y-95919047D01* +X143190476Y-96109523D01* +X143285714Y-96204761D01* +X143380952Y-96252380D01* +X143571428Y-96252380D01* +X142190476Y-96252380D02* +X142761904Y-96252380D01* +X142476190Y-96252380D02* +X142476190Y-95252380D01* +X142571428Y-95395238D01* +X142666666Y-95490476D01* +X142761904Y-95538095D01* +G04 #@! TO.C,R1* +X144137732Y-87702030D02* +X144036717Y-87129610D01* +X144541793Y-87297969D02* +X143834687Y-86590862D01* +X143565312Y-86860236D01* +X143531641Y-86961251D01* +X143531641Y-87028595D01* +X143565312Y-87129610D01* +X143666328Y-87230625D01* +X143767343Y-87264297D01* +X143834687Y-87264297D01* +X143935702Y-87230625D01* +X144205076Y-86961251D01* +X143464297Y-88375465D02* +X143868358Y-87971404D01* +X143666328Y-88173435D02* +X142959221Y-87466328D01* +X143127580Y-87500000D01* +X143262267Y-87500000D01* +X143363282Y-87466328D01* +G04 #@! TD* +M02* diff --git a/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-Edge.Cuts.gbr b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-Edge.Cuts.gbr new file mode 100644 index 0000000..dd32a39 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-Edge.Cuts.gbr @@ -0,0 +1,28 @@ +G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.1* +G04 #@! TF.CreationDate,2019-03-20T11:26:10+05:30* +G04 #@! TF.ProjectId,traffic,747261666669632E6B696361645F7063,rev?* +G04 #@! TF.SameCoordinates,Original* +G04 #@! TF.FileFunction,Profile,NP* +%FSLAX46Y46*% +G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* +G04 Created by KiCad (PCBNEW 5.0.1) date Wed 20 Mar 2019 11:26:10 AM IST* +%MOMM*% +%LPD*% +G01* +G04 APERTURE LIST* +%ADD10C,0.150000*% +G04 APERTURE END LIST* +D10* +X158496000Y-88392000D02* +X158496000Y-108712000D01* +X153162000Y-83312000D02* +X158496000Y-88392000D01* +X140716000Y-83312000D02* +X153162000Y-83312000D01* +X135382000Y-88900000D02* +X140716000Y-83312000D01* +X135382000Y-108712000D02* +X135382000Y-88900000D01* +X158496000Y-108712000D02* +X135382000Y-108712000D01* +M02* diff --git a/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.Cu.gbr b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.Cu.gbr new file mode 100644 index 0000000..8056802 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.Cu.gbr @@ -0,0 +1,129 @@ +G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.1* +G04 #@! TF.CreationDate,2019-03-20T11:26:10+05:30* +G04 #@! TF.ProjectId,traffic,747261666669632E6B696361645F7063,rev?* +G04 #@! TF.SameCoordinates,Original* +G04 #@! TF.FileFunction,Copper,L1,Top,Signal* +G04 #@! TF.FilePolarity,Positive* +%FSLAX46Y46*% +G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* +G04 Created by KiCad (PCBNEW 5.0.1) date Wed 20 Mar 2019 11:26:10 AM IST* +%MOMM*% +%LPD*% +G01* +G04 APERTURE LIST* +G04 #@! TA.AperFunction,ComponentPad* +%ADD10R,1.700000X1.700000*% +G04 #@! TD* +G04 #@! TA.AperFunction,ComponentPad* +%ADD11C,1.700000*% +G04 #@! TD* +G04 #@! TA.AperFunction,Conductor* +%ADD12C,1.700000*% +G04 #@! TD* +G04 #@! TA.AperFunction,Conductor* +%ADD13C,0.100000*% +G04 #@! TD* +G04 #@! TA.AperFunction,ComponentPad* +%ADD14C,1.800000*% +G04 #@! TD* +G04 #@! TA.AperFunction,ComponentPad* +%ADD15R,1.800000X1.800000*% +G04 #@! TD* +G04 #@! TA.AperFunction,ComponentPad* +%ADD16O,1.700000X1.700000*% +G04 #@! TD* +G04 APERTURE END LIST* +D10* +G04 #@! TO.P,J3,1* +G04 #@! TO.N,+5C* +X137400000Y-94700000D03* +G04 #@! TD* +D11* +G04 #@! TO.P,J2,2* +G04 #@! TO.N,Net-(J2-Pad2)* +X153397949Y-86595949D03* +D12* +G04 #@! TD* +G04 #@! TO.N,Net-(J2-Pad2)* +G04 #@! TO.C,J2* +X153397949Y-86595949D02* +X153397949Y-86595949D01* +D11* +G04 #@! TO.P,J2,1* +G04 #@! TO.N,Net-(D5-Pad1)* +X155194000Y-88392000D03* +D13* +G04 #@! TD* +G04 #@! TO.N,Net-(D5-Pad1)* +G04 #@! TO.C,J2* +G36* +X155194000Y-87189918D02* +X156396082Y-88392000D01* +X155194000Y-89594082D01* +X153991918Y-88392000D01* +X155194000Y-87189918D01* +X155194000Y-87189918D01* +G37* +D14* +G04 #@! TO.P,D5,2* +G04 #@! TO.N,Net-(D1-Pad2)* +X147320000Y-86106000D03* +D15* +G04 #@! TO.P,D5,1* +G04 #@! TO.N,Net-(D5-Pad1)* +X147320000Y-88646000D03* +G04 #@! TD* +G04 #@! TO.P,D4,1* +G04 #@! TO.N,Net-(D4-Pad1)* +X147320000Y-94996000D03* +D14* +G04 #@! TO.P,D4,2* +G04 #@! TO.N,Net-(D1-Pad2)* +X147320000Y-92456000D03* +G04 #@! TD* +G04 #@! TO.P,D3,2* +G04 #@! TO.N,Net-(D1-Pad2)* +X154900000Y-98860000D03* +D15* +G04 #@! TO.P,D3,1* +G04 #@! TO.N,Net-(D3-Pad1)* +X154900000Y-101400000D03* +G04 #@! TD* +G04 #@! TO.P,D2,1* +G04 #@! TO.N,Net-(D2-Pad1)* +X147320000Y-101346000D03* +D14* +G04 #@! TO.P,D2,2* +G04 #@! TO.N,Net-(D1-Pad2)* +X147320000Y-98806000D03* +G04 #@! TD* +G04 #@! TO.P,D1,2* +G04 #@! TO.N,Net-(D1-Pad2)* +X138900000Y-98760000D03* +D15* +G04 #@! TO.P,D1,1* +G04 #@! TO.N,Net-(D1-Pad1)* +X138900000Y-101300000D03* +G04 #@! TD* +D16* +G04 #@! TO.P,J1,6* +G04 #@! TO.N,Net-(D3-Pad1)* +X153416000Y-105664000D03* +G04 #@! TO.P,J1,5* +G04 #@! TO.N,Net-(D5-Pad1)* +X150876000Y-105664000D03* +G04 #@! TO.P,J1,4* +G04 #@! TO.N,Net-(D4-Pad1)* +X148336000Y-105664000D03* +G04 #@! TO.P,J1,3* +G04 #@! TO.N,Net-(D2-Pad1)* +X145796000Y-105664000D03* +G04 #@! TO.P,J1,2* +G04 #@! TO.N,Net-(D1-Pad1)* +X143256000Y-105664000D03* +D10* +G04 #@! TO.P,J1,1* +G04 #@! TO.N,Net-(J1-Pad1)* +X140716000Y-105664000D03* +G04 #@! TD* +M02* diff --git a/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.Mask.gbr b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.Mask.gbr new file mode 100644 index 0000000..c9c9867 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.Mask.gbr @@ -0,0 +1,657 @@ +G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.1* +G04 #@! TF.CreationDate,2019-03-20T11:26:10+05:30* +G04 #@! TF.ProjectId,traffic,747261666669632E6B696361645F7063,rev?* +G04 #@! TF.SameCoordinates,Original* +G04 #@! TF.FileFunction,Soldermask,Top* +G04 #@! TF.FilePolarity,Negative* +%FSLAX46Y46*% +G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* +G04 Created by KiCad (PCBNEW 5.0.1) date Wed 20 Mar 2019 11:26:10 AM IST* +%MOMM*% +%LPD*% +G01* +G04 APERTURE LIST* +%ADD10C,0.100000*% +G04 APERTURE END LIST* +D10* +G36* +X141617000Y-106565000D02* +X139815000Y-106565000D01* +X139815000Y-104763000D01* +X141617000Y-104763000D01* +X141617000Y-106565000D01* +X141617000Y-106565000D01* +G37* +G36* +X143366442Y-104769518D02* +X143432627Y-104776037D01* +X143545853Y-104810384D01* +X143602467Y-104827557D01* +X143741087Y-104901652D01* +X143758991Y-104911222D01* +X143794729Y-104940552D01* +X143896186Y-105023814D01* +X143979448Y-105125271D01* +X144008778Y-105161009D01* +X144008779Y-105161011D01* +X144092443Y-105317533D01* +X144092443Y-105317534D01* +X144143963Y-105487373D01* +X144161359Y-105664000D01* +X144143963Y-105840627D01* +X144109616Y-105953853D01* +X144092443Y-106010467D01* +X144018348Y-106149087D01* +X144008778Y-106166991D01* +X143979448Y-106202729D01* +X143896186Y-106304186D01* +X143794729Y-106387448D01* +X143758991Y-106416778D01* +X143758989Y-106416779D01* +X143602467Y-106500443D01* +X143545853Y-106517616D01* +X143432627Y-106551963D01* +X143366442Y-106558482D01* +X143300260Y-106565000D01* +X143211740Y-106565000D01* +X143145558Y-106558482D01* +X143079373Y-106551963D01* +X142966147Y-106517616D01* +X142909533Y-106500443D01* +X142753011Y-106416779D01* +X142753009Y-106416778D01* +X142717271Y-106387448D01* +X142615814Y-106304186D01* +X142532552Y-106202729D01* +X142503222Y-106166991D01* +X142493652Y-106149087D01* +X142419557Y-106010467D01* +X142402384Y-105953853D01* +X142368037Y-105840627D01* +X142350641Y-105664000D01* +X142368037Y-105487373D01* +X142419557Y-105317534D01* +X142419557Y-105317533D01* +X142503221Y-105161011D01* +X142503222Y-105161009D01* +X142532552Y-105125271D01* +X142615814Y-105023814D01* +X142717271Y-104940552D01* +X142753009Y-104911222D01* +X142770913Y-104901652D01* +X142909533Y-104827557D01* +X142966147Y-104810384D01* +X143079373Y-104776037D01* +X143145558Y-104769518D01* +X143211740Y-104763000D01* +X143300260Y-104763000D01* +X143366442Y-104769518D01* +X143366442Y-104769518D01* +G37* +G36* +X145906442Y-104769518D02* +X145972627Y-104776037D01* +X146085853Y-104810384D01* +X146142467Y-104827557D01* +X146281087Y-104901652D01* +X146298991Y-104911222D01* +X146334729Y-104940552D01* +X146436186Y-105023814D01* +X146519448Y-105125271D01* +X146548778Y-105161009D01* +X146548779Y-105161011D01* +X146632443Y-105317533D01* +X146632443Y-105317534D01* +X146683963Y-105487373D01* +X146701359Y-105664000D01* +X146683963Y-105840627D01* +X146649616Y-105953853D01* +X146632443Y-106010467D01* +X146558348Y-106149087D01* +X146548778Y-106166991D01* +X146519448Y-106202729D01* +X146436186Y-106304186D01* +X146334729Y-106387448D01* +X146298991Y-106416778D01* +X146298989Y-106416779D01* +X146142467Y-106500443D01* +X146085853Y-106517616D01* +X145972627Y-106551963D01* +X145906442Y-106558482D01* +X145840260Y-106565000D01* +X145751740Y-106565000D01* +X145685558Y-106558482D01* +X145619373Y-106551963D01* +X145506147Y-106517616D01* +X145449533Y-106500443D01* +X145293011Y-106416779D01* +X145293009Y-106416778D01* +X145257271Y-106387448D01* +X145155814Y-106304186D01* +X145072552Y-106202729D01* +X145043222Y-106166991D01* +X145033652Y-106149087D01* +X144959557Y-106010467D01* +X144942384Y-105953853D01* +X144908037Y-105840627D01* +X144890641Y-105664000D01* +X144908037Y-105487373D01* +X144959557Y-105317534D01* +X144959557Y-105317533D01* +X145043221Y-105161011D01* +X145043222Y-105161009D01* +X145072552Y-105125271D01* +X145155814Y-105023814D01* +X145257271Y-104940552D01* +X145293009Y-104911222D01* +X145310913Y-104901652D01* +X145449533Y-104827557D01* +X145506147Y-104810384D01* +X145619373Y-104776037D01* +X145685558Y-104769518D01* +X145751740Y-104763000D01* +X145840260Y-104763000D01* +X145906442Y-104769518D01* +X145906442Y-104769518D01* +G37* +G36* +X148446442Y-104769518D02* +X148512627Y-104776037D01* +X148625853Y-104810384D01* +X148682467Y-104827557D01* +X148821087Y-104901652D01* +X148838991Y-104911222D01* +X148874729Y-104940552D01* +X148976186Y-105023814D01* +X149059448Y-105125271D01* +X149088778Y-105161009D01* +X149088779Y-105161011D01* +X149172443Y-105317533D01* +X149172443Y-105317534D01* +X149223963Y-105487373D01* +X149241359Y-105664000D01* +X149223963Y-105840627D01* +X149189616Y-105953853D01* +X149172443Y-106010467D01* +X149098348Y-106149087D01* +X149088778Y-106166991D01* +X149059448Y-106202729D01* +X148976186Y-106304186D01* +X148874729Y-106387448D01* +X148838991Y-106416778D01* +X148838989Y-106416779D01* +X148682467Y-106500443D01* +X148625853Y-106517616D01* +X148512627Y-106551963D01* +X148446442Y-106558482D01* +X148380260Y-106565000D01* +X148291740Y-106565000D01* +X148225558Y-106558482D01* +X148159373Y-106551963D01* +X148046147Y-106517616D01* +X147989533Y-106500443D01* +X147833011Y-106416779D01* +X147833009Y-106416778D01* +X147797271Y-106387448D01* +X147695814Y-106304186D01* +X147612552Y-106202729D01* +X147583222Y-106166991D01* +X147573652Y-106149087D01* +X147499557Y-106010467D01* +X147482384Y-105953853D01* +X147448037Y-105840627D01* +X147430641Y-105664000D01* +X147448037Y-105487373D01* +X147499557Y-105317534D01* +X147499557Y-105317533D01* +X147583221Y-105161011D01* +X147583222Y-105161009D01* +X147612552Y-105125271D01* +X147695814Y-105023814D01* +X147797271Y-104940552D01* +X147833009Y-104911222D01* +X147850913Y-104901652D01* +X147989533Y-104827557D01* +X148046147Y-104810384D01* +X148159373Y-104776037D01* +X148225558Y-104769518D01* +X148291740Y-104763000D01* +X148380260Y-104763000D01* +X148446442Y-104769518D01* +X148446442Y-104769518D01* +G37* +G36* +X153526442Y-104769518D02* +X153592627Y-104776037D01* +X153705853Y-104810384D01* +X153762467Y-104827557D01* +X153901087Y-104901652D01* +X153918991Y-104911222D01* +X153954729Y-104940552D01* +X154056186Y-105023814D01* +X154139448Y-105125271D01* +X154168778Y-105161009D01* +X154168779Y-105161011D01* +X154252443Y-105317533D01* +X154252443Y-105317534D01* +X154303963Y-105487373D01* +X154321359Y-105664000D01* +X154303963Y-105840627D01* +X154269616Y-105953853D01* +X154252443Y-106010467D01* +X154178348Y-106149087D01* +X154168778Y-106166991D01* +X154139448Y-106202729D01* +X154056186Y-106304186D01* +X153954729Y-106387448D01* +X153918991Y-106416778D01* +X153918989Y-106416779D01* +X153762467Y-106500443D01* +X153705853Y-106517616D01* +X153592627Y-106551963D01* +X153526442Y-106558482D01* +X153460260Y-106565000D01* +X153371740Y-106565000D01* +X153305558Y-106558482D01* +X153239373Y-106551963D01* +X153126147Y-106517616D01* +X153069533Y-106500443D01* +X152913011Y-106416779D01* +X152913009Y-106416778D01* +X152877271Y-106387448D01* +X152775814Y-106304186D01* +X152692552Y-106202729D01* +X152663222Y-106166991D01* +X152653652Y-106149087D01* +X152579557Y-106010467D01* +X152562384Y-105953853D01* +X152528037Y-105840627D01* +X152510641Y-105664000D01* +X152528037Y-105487373D01* +X152579557Y-105317534D01* +X152579557Y-105317533D01* +X152663221Y-105161011D01* +X152663222Y-105161009D01* +X152692552Y-105125271D01* +X152775814Y-105023814D01* +X152877271Y-104940552D01* +X152913009Y-104911222D01* +X152930913Y-104901652D01* +X153069533Y-104827557D01* +X153126147Y-104810384D01* +X153239373Y-104776037D01* +X153305558Y-104769518D01* +X153371740Y-104763000D01* +X153460260Y-104763000D01* +X153526442Y-104769518D01* +X153526442Y-104769518D01* +G37* +G36* +X150986442Y-104769518D02* +X151052627Y-104776037D01* +X151165853Y-104810384D01* +X151222467Y-104827557D01* +X151361087Y-104901652D01* +X151378991Y-104911222D01* +X151414729Y-104940552D01* +X151516186Y-105023814D01* +X151599448Y-105125271D01* +X151628778Y-105161009D01* +X151628779Y-105161011D01* +X151712443Y-105317533D01* +X151712443Y-105317534D01* +X151763963Y-105487373D01* +X151781359Y-105664000D01* +X151763963Y-105840627D01* +X151729616Y-105953853D01* +X151712443Y-106010467D01* +X151638348Y-106149087D01* +X151628778Y-106166991D01* +X151599448Y-106202729D01* +X151516186Y-106304186D01* +X151414729Y-106387448D01* +X151378991Y-106416778D01* +X151378989Y-106416779D01* +X151222467Y-106500443D01* +X151165853Y-106517616D01* +X151052627Y-106551963D01* +X150986442Y-106558482D01* +X150920260Y-106565000D01* +X150831740Y-106565000D01* +X150765558Y-106558482D01* +X150699373Y-106551963D01* +X150586147Y-106517616D01* +X150529533Y-106500443D01* +X150373011Y-106416779D01* +X150373009Y-106416778D01* +X150337271Y-106387448D01* +X150235814Y-106304186D01* +X150152552Y-106202729D01* +X150123222Y-106166991D01* +X150113652Y-106149087D01* +X150039557Y-106010467D01* +X150022384Y-105953853D01* +X149988037Y-105840627D01* +X149970641Y-105664000D01* +X149988037Y-105487373D01* +X150039557Y-105317534D01* +X150039557Y-105317533D01* +X150123221Y-105161011D01* +X150123222Y-105161009D01* +X150152552Y-105125271D01* +X150235814Y-105023814D01* +X150337271Y-104940552D01* +X150373009Y-104911222D01* +X150390913Y-104901652D01* +X150529533Y-104827557D01* +X150586147Y-104810384D01* +X150699373Y-104776037D01* +X150765558Y-104769518D01* +X150831740Y-104763000D01* +X150920260Y-104763000D01* +X150986442Y-104769518D01* +X150986442Y-104769518D01* +G37* +G36* +X155851000Y-102351000D02* +X153949000Y-102351000D01* +X153949000Y-100449000D01* +X155851000Y-100449000D01* +X155851000Y-102351000D01* +X155851000Y-102351000D01* +G37* +G36* +X148271000Y-102297000D02* +X146369000Y-102297000D01* +X146369000Y-100395000D01* +X148271000Y-100395000D01* +X148271000Y-102297000D01* +X148271000Y-102297000D01* +G37* +G36* +X139851000Y-102251000D02* +X137949000Y-102251000D01* +X137949000Y-100349000D01* +X139851000Y-100349000D01* +X139851000Y-102251000D01* +X139851000Y-102251000D01* +G37* +G36* +X155177396Y-97945546D02* +X155350466Y-98017234D01* +X155506230Y-98121312D01* +X155638688Y-98253770D01* +X155742766Y-98409534D01* +X155814454Y-98582604D01* +X155851000Y-98766333D01* +X155851000Y-98953667D01* +X155814454Y-99137396D01* +X155742766Y-99310466D01* +X155638688Y-99466230D01* +X155506230Y-99598688D01* +X155350466Y-99702766D01* +X155177396Y-99774454D01* +X154993667Y-99811000D01* +X154806333Y-99811000D01* +X154622604Y-99774454D01* +X154449534Y-99702766D01* +X154293770Y-99598688D01* +X154161312Y-99466230D01* +X154057234Y-99310466D01* +X153985546Y-99137396D01* +X153949000Y-98953667D01* +X153949000Y-98766333D01* +X153985546Y-98582604D01* +X154057234Y-98409534D01* +X154161312Y-98253770D01* +X154293770Y-98121312D01* +X154449534Y-98017234D01* +X154622604Y-97945546D01* +X154806333Y-97909000D01* +X154993667Y-97909000D01* +X155177396Y-97945546D01* +X155177396Y-97945546D01* +G37* +G36* +X147597396Y-97891546D02* +X147770466Y-97963234D01* +X147926230Y-98067312D01* +X148058688Y-98199770D01* +X148162766Y-98355534D01* +X148234454Y-98528604D01* +X148271000Y-98712333D01* +X148271000Y-98899667D01* +X148234454Y-99083396D01* +X148162766Y-99256466D01* +X148058688Y-99412230D01* +X147926230Y-99544688D01* +X147770466Y-99648766D01* +X147597396Y-99720454D01* +X147413667Y-99757000D01* +X147226333Y-99757000D01* +X147042604Y-99720454D01* +X146869534Y-99648766D01* +X146713770Y-99544688D01* +X146581312Y-99412230D01* +X146477234Y-99256466D01* +X146405546Y-99083396D01* +X146369000Y-98899667D01* +X146369000Y-98712333D01* +X146405546Y-98528604D01* +X146477234Y-98355534D01* +X146581312Y-98199770D01* +X146713770Y-98067312D01* +X146869534Y-97963234D01* +X147042604Y-97891546D01* +X147226333Y-97855000D01* +X147413667Y-97855000D01* +X147597396Y-97891546D01* +X147597396Y-97891546D01* +G37* +G36* +X139177396Y-97845546D02* +X139350466Y-97917234D01* +X139506230Y-98021312D01* +X139638688Y-98153770D01* +X139742766Y-98309534D01* +X139814454Y-98482604D01* +X139851000Y-98666333D01* +X139851000Y-98853667D01* +X139814454Y-99037396D01* +X139742766Y-99210466D01* +X139638688Y-99366230D01* +X139506230Y-99498688D01* +X139350466Y-99602766D01* +X139177396Y-99674454D01* +X138993667Y-99711000D01* +X138806333Y-99711000D01* +X138622604Y-99674454D01* +X138449534Y-99602766D01* +X138293770Y-99498688D01* +X138161312Y-99366230D01* +X138057234Y-99210466D01* +X137985546Y-99037396D01* +X137949000Y-98853667D01* +X137949000Y-98666333D01* +X137985546Y-98482604D01* +X138057234Y-98309534D01* +X138161312Y-98153770D01* +X138293770Y-98021312D01* +X138449534Y-97917234D01* +X138622604Y-97845546D01* +X138806333Y-97809000D01* +X138993667Y-97809000D01* +X139177396Y-97845546D01* +X139177396Y-97845546D01* +G37* +G36* +X148271000Y-95947000D02* +X146369000Y-95947000D01* +X146369000Y-94045000D01* +X148271000Y-94045000D01* +X148271000Y-95947000D01* +X148271000Y-95947000D01* +G37* +G36* +X138301000Y-95601000D02* +X136499000Y-95601000D01* +X136499000Y-93799000D01* +X138301000Y-93799000D01* +X138301000Y-95601000D01* +X138301000Y-95601000D01* +G37* +G36* +X147597396Y-91541546D02* +X147770466Y-91613234D01* +X147926230Y-91717312D01* +X148058688Y-91849770D01* +X148162766Y-92005534D01* +X148234454Y-92178604D01* +X148271000Y-92362333D01* +X148271000Y-92549667D01* +X148234454Y-92733396D01* +X148162766Y-92906466D01* +X148058688Y-93062230D01* +X147926230Y-93194688D01* +X147770466Y-93298766D01* +X147597396Y-93370454D01* +X147413667Y-93407000D01* +X147226333Y-93407000D01* +X147042604Y-93370454D01* +X146869534Y-93298766D01* +X146713770Y-93194688D01* +X146581312Y-93062230D01* +X146477234Y-92906466D01* +X146405546Y-92733396D01* +X146369000Y-92549667D01* +X146369000Y-92362333D01* +X146405546Y-92178604D01* +X146477234Y-92005534D01* +X146581312Y-91849770D01* +X146713770Y-91717312D01* +X146869534Y-91613234D01* +X147042604Y-91541546D01* +X147226333Y-91505000D01* +X147413667Y-91505000D01* +X147597396Y-91541546D01* +X147597396Y-91541546D01* +G37* +G36* +X156468207Y-88392000D02* +X155194000Y-89666207D01* +X153919793Y-88392000D01* +X155194000Y-87117793D01* +X156468207Y-88392000D01* +X156468207Y-88392000D01* +G37* +G36* +X148271000Y-89597000D02* +X146369000Y-89597000D01* +X146369000Y-87695000D01* +X148271000Y-87695000D01* +X148271000Y-89597000D01* +X148271000Y-89597000D01* +G37* +G36* +X153508391Y-85701467D02* +X153574576Y-85707986D01* +X153687802Y-85742333D01* +X153744416Y-85759506D01* +X153873687Y-85828604D01* +X153900940Y-85843171D01* +X153936678Y-85872501D01* +X154038135Y-85955763D01* +X154121397Y-86057220D01* +X154150727Y-86092958D01* +X154150728Y-86092960D01* +X154234392Y-86249482D01* +X154234392Y-86249483D01* +X154285912Y-86419322D01* +X154303308Y-86595949D01* +X154285912Y-86772576D01* +X154264037Y-86844688D01* +X154234392Y-86942416D01* +X154192679Y-87020454D01* +X154150727Y-87098940D01* +X154135254Y-87117794D01* +X154038135Y-87236135D01* +X153936678Y-87319397D01* +X153900940Y-87348727D01* +X153900938Y-87348728D01* +X153744416Y-87432392D01* +X153687802Y-87449565D01* +X153574576Y-87483912D01* +X153508392Y-87490430D01* +X153442209Y-87496949D01* +X153353689Y-87496949D01* +X153287506Y-87490430D01* +X153221322Y-87483912D01* +X153108096Y-87449565D01* +X153051482Y-87432392D01* +X152894960Y-87348728D01* +X152894958Y-87348727D01* +X152859220Y-87319397D01* +X152757763Y-87236135D01* +X152660644Y-87117794D01* +X152645171Y-87098940D01* +X152603219Y-87020454D01* +X152561506Y-86942416D01* +X152531861Y-86844688D01* +X152509986Y-86772576D01* +X152492590Y-86595949D01* +X152509986Y-86419322D01* +X152561506Y-86249483D01* +X152561506Y-86249482D01* +X152645170Y-86092960D01* +X152645171Y-86092958D01* +X152674501Y-86057220D01* +X152757763Y-85955763D01* +X152859220Y-85872501D01* +X152894958Y-85843171D01* +X152922211Y-85828604D01* +X153051482Y-85759506D01* +X153108096Y-85742333D01* +X153221322Y-85707986D01* +X153287507Y-85701467D01* +X153353689Y-85694949D01* +X153442209Y-85694949D01* +X153508391Y-85701467D01* +X153508391Y-85701467D01* +G37* +G36* +X147597396Y-85191546D02* +X147770466Y-85263234D01* +X147926230Y-85367312D01* +X148058688Y-85499770D01* +X148162766Y-85655534D01* +X148234454Y-85828604D01* +X148271000Y-86012333D01* +X148271000Y-86199667D01* +X148234454Y-86383396D01* +X148162766Y-86556466D01* +X148058688Y-86712230D01* +X147926230Y-86844688D01* +X147770466Y-86948766D01* +X147597396Y-87020454D01* +X147413667Y-87057000D01* +X147226333Y-87057000D01* +X147042604Y-87020454D01* +X146869534Y-86948766D01* +X146713770Y-86844688D01* +X146581312Y-86712230D01* +X146477234Y-86556466D01* +X146405546Y-86383396D01* +X146369000Y-86199667D01* +X146369000Y-86012333D01* +X146405546Y-85828604D01* +X146477234Y-85655534D01* +X146581312Y-85499770D01* +X146713770Y-85367312D01* +X146869534Y-85263234D01* +X147042604Y-85191546D01* +X147226333Y-85155000D01* +X147413667Y-85155000D01* +X147597396Y-85191546D01* +X147597396Y-85191546D01* +G37* +M02* diff --git a/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.Paste.gbr b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.Paste.gbr new file mode 100644 index 0000000..f024456 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.Paste.gbr @@ -0,0 +1,15 @@ +G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.1* +G04 #@! TF.CreationDate,2019-03-20T11:26:10+05:30* +G04 #@! TF.ProjectId,traffic,747261666669632E6B696361645F7063,rev?* +G04 #@! TF.SameCoordinates,Original* +G04 #@! TF.FileFunction,Paste,Top* +G04 #@! TF.FilePolarity,Positive* +%FSLAX46Y46*% +G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* +G04 Created by KiCad (PCBNEW 5.0.1) date Wed 20 Mar 2019 11:26:10 AM IST* +%MOMM*% +%LPD*% +G01* +G04 APERTURE LIST* +G04 APERTURE END LIST* +M02* diff --git a/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.SilkS.gbr b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.SilkS.gbr new file mode 100644 index 0000000..c38a234 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-F.SilkS.gbr @@ -0,0 +1,778 @@ +G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.1* +G04 #@! TF.CreationDate,2019-03-20T11:26:10+05:30* +G04 #@! TF.ProjectId,traffic,747261666669632E6B696361645F7063,rev?* +G04 #@! TF.SameCoordinates,Original* +G04 #@! TF.FileFunction,Legend,Top* +G04 #@! TF.FilePolarity,Positive* +%FSLAX46Y46*% +G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* +G04 Created by KiCad (PCBNEW 5.0.1) date Wed 20 Mar 2019 11:26:10 AM IST* +%MOMM*% +%LPD*% +G01* +G04 APERTURE LIST* +%ADD10C,0.100000*% +%ADD11C,0.200000*% +%ADD12C,0.300000*% +%ADD13C,0.150000*% +%ADD14C,0.120000*% +G04 APERTURE END LIST* +D10* +X139642857Y-93713428D02* +X139642857Y-94322952D01* +X139338095Y-94018190D02* +X139947619Y-94018190D01* +X140138095Y-95084857D02* +X140138095Y-94703904D01* +X139757142Y-94665809D01* +X139795238Y-94703904D01* +X139833333Y-94780095D01* +X139833333Y-94970571D01* +X139795238Y-95046761D01* +X139757142Y-95084857D01* +X139680952Y-95122952D01* +X139490476Y-95122952D01* +X139414285Y-95084857D01* +X139376190Y-95046761D01* +X139338095Y-94970571D01* +X139338095Y-94780095D01* +X139376190Y-94703904D01* +X139414285Y-94665809D01* +X140138095Y-95351523D02* +X139338095Y-95618190D01* +X140138095Y-95884857D01* +X153818155Y-90883841D02* +X153845093Y-90964653D01* +X153925905Y-91045465D01* +X154033654Y-91099340D01* +X154141404Y-91099340D01* +X154222216Y-91072402D01* +X154356903Y-90991590D01* +X154437715Y-90910778D01* +X154518528Y-90776091D01* +X154545465Y-90695279D01* +X154545465Y-90587529D01* +X154491590Y-90479780D01* +X154437715Y-90425905D01* +X154329966Y-90372030D01* +X154276091Y-90372030D01* +X154087529Y-90560592D01* +X154195279Y-90668341D01* +X154087529Y-90075719D02* +X153521844Y-90641404D01* +X153764280Y-89752470D01* +X153198595Y-90318155D01* +X153494906Y-89483096D02* +X152929221Y-90048781D01* +X152794534Y-89914094D01* +X152740659Y-89806345D01* +X152740659Y-89698595D01* +X152767597Y-89617783D01* +X152848409Y-89483096D01* +X152929221Y-89402284D01* +X153063908Y-89321471D01* +X153144720Y-89294534D01* +X153252470Y-89294534D01* +X153360219Y-89348409D01* +X153494906Y-89483096D01* +X152659715Y-89078903D02* +X152228717Y-88647905D01* +X152659715Y-88647905D02* +X152228717Y-89078903D01* +X151339783Y-88459343D02* +X151609157Y-88728717D01* +X151905468Y-88486280D01* +X151851593Y-88486280D01* +X151770781Y-88459343D01* +X151636094Y-88324656D01* +X151609157Y-88243844D01* +X151609157Y-88189969D01* +X151636094Y-88109157D01* +X151770781Y-87974470D01* +X151851593Y-87947532D01* +X151905468Y-87947532D01* +X151986280Y-87974470D01* +X152120967Y-88109157D01* +X152147905Y-88189969D01* +X152147905Y-88243844D01* +X151151221Y-88270781D02* +X151528345Y-87516534D01* +X150774097Y-87893658D01* +D11* +X137652173Y-92192699D02* +X137921547Y-91923325D01* +X137517486Y-91855981D02* +X138123577Y-92462073D01* +X138224592Y-92495744D01* +X138325608Y-92462073D01* +X138392951Y-92394729D01* +X138628653Y-92159027D02* +X138157249Y-91687622D01* +X138291936Y-91822309D02* +X138258264Y-91721294D01* +X138258264Y-91653951D01* +X138291936Y-91552935D01* +X138359279Y-91485592D01* +X139369432Y-91418248D02* +X138999043Y-91047859D01* +X138898027Y-91014187D01* +X138797012Y-91047859D01* +X138662325Y-91182546D01* +X138628653Y-91283561D01* +X139335760Y-91384577D02* +X139302088Y-91485592D01* +X139133730Y-91653951D01* +X139032714Y-91687622D01* +X138931699Y-91653951D01* +X138864356Y-91586607D01* +X138830684Y-91485592D01* +X138864356Y-91384577D01* +X139032714Y-91216218D01* +X139066386Y-91115203D01* +X139133730Y-90711142D02* +X139403104Y-90441768D01* +X139706149Y-91081531D02* +X139100058Y-90475439D01* +X139066386Y-90374424D01* +X139100058Y-90273409D01* +X139167401Y-90206065D01* +X139537791Y-90307081D02* +X139807165Y-90037707D01* +X140110210Y-90677470D02* +X139504119Y-90071378D01* +X139470447Y-89970363D01* +X139504119Y-89869348D01* +X139571462Y-89802004D01* +X140514271Y-90273409D02* +X140042867Y-89802004D01* +X139807165Y-89566302D02* +X139807165Y-89633646D01* +X139874508Y-89633646D01* +X139874508Y-89566302D01* +X139807165Y-89566302D01* +X139874508Y-89633646D01* +X141120363Y-89599974D02* +X141086691Y-89700989D01* +X140952004Y-89835676D01* +X140850989Y-89869348D01* +X140783646Y-89869348D01* +X140682630Y-89835676D01* +X140480600Y-89633646D01* +X140446928Y-89532630D01* +X140446928Y-89465287D01* +X140480600Y-89364271D01* +X140615287Y-89229584D01* +X140716302Y-89195913D01* +X141793798Y-88993882D02* +X141457081Y-89330600D01* +X140749974Y-88623493D01* +X142029500Y-88758180D02* +X141558096Y-88286775D01* +X141322394Y-88051073D02* +X141322394Y-88118417D01* +X141389737Y-88118417D01* +X141389737Y-88051073D01* +X141322394Y-88051073D01* +X141389737Y-88118417D01* +X142197859Y-87647012D02* +X142770279Y-88219432D01* +X142803951Y-88320447D01* +X142803951Y-88387791D01* +X142770279Y-88488806D01* +X142669264Y-88589821D01* +X142568248Y-88623493D01* +X142635592Y-88084745D02* +X142601920Y-88185760D01* +X142467233Y-88320447D01* +X142366218Y-88354119D01* +X142298874Y-88354119D01* +X142197859Y-88320447D01* +X141995829Y-88118417D01* +X141962157Y-88017401D01* +X141962157Y-87950058D01* +X141995829Y-87849043D01* +X142130516Y-87714356D01* +X142231531Y-87680684D01* +X143005981Y-87781699D02* +X142298874Y-87074592D01* +X143309027Y-87478653D02* +X142938638Y-87108264D01* +X142837622Y-87074592D01* +X142736607Y-87108264D01* +X142635592Y-87209279D01* +X142601920Y-87310295D01* +X142601920Y-87377638D01* +X143073325Y-86771547D02* +X143342699Y-86502173D01* +X142938638Y-86434829D02* +X143544729Y-87040921D01* +X143645744Y-87074592D01* +X143746760Y-87040921D01* +X143814103Y-86973577D01* +X140487335Y-91963731D02* +X140251632Y-92199433D01* +X140622022Y-92569823D02* +X139914915Y-91862716D01* +X140251632Y-91525998D01* +X140655693Y-91121937D02* +X140790380Y-90987250D01* +X140891396Y-90953579D01* +X141026083Y-90953579D01* +X141194441Y-91054594D01* +X141430144Y-91290296D01* +X141531159Y-91458655D01* +X141531159Y-91593342D01* +X141497487Y-91694357D01* +X141362800Y-91829044D01* +X141261785Y-91862716D01* +X141127098Y-91862716D01* +X140958739Y-91761701D01* +X140723037Y-91525998D01* +X140622022Y-91357640D01* +X140622022Y-91222953D01* +X140655693Y-91121937D01* +X141901548Y-91222953D02* +X142036235Y-91155609D01* +X142204594Y-90987250D01* +X142238266Y-90886235D01* +X142238266Y-90818892D01* +X142204594Y-90717876D01* +X142137250Y-90650533D01* +X142036235Y-90616861D01* +X141968892Y-90616861D01* +X141867876Y-90650533D01* +X141699518Y-90751548D01* +X141598502Y-90785220D01* +X141531159Y-90785220D01* +X141430144Y-90751548D01* +X141362800Y-90684205D01* +X141329128Y-90583189D01* +X141329128Y-90515846D01* +X141362800Y-90414831D01* +X141531159Y-90246472D01* +X141665846Y-90179128D01* +X142574983Y-90549518D02* +X142709670Y-90482174D01* +X142878029Y-90313815D01* +X142911701Y-90212800D01* +X142911701Y-90145457D01* +X142878029Y-90044441D01* +X142810685Y-89977098D01* +X142709670Y-89943426D01* +X142642327Y-89943426D01* +X142541311Y-89977098D01* +X142372953Y-90078113D01* +X142271937Y-90111785D01* +X142204594Y-90111785D01* +X142103579Y-90078113D01* +X142036235Y-90010770D01* +X142002563Y-89909754D01* +X142002563Y-89842411D01* +X142036235Y-89741396D01* +X142204594Y-89573037D01* +X142339281Y-89505693D01* +X142945372Y-89505693D02* +X143181075Y-89269991D01* +X143652479Y-89539365D02* +X143315762Y-89876083D01* +X142608655Y-89168976D01* +X142945372Y-88832258D01* +X143585136Y-88865930D02* +X143820838Y-88630228D01* +X144292242Y-88899602D02* +X143955525Y-89236319D01* +X143248418Y-88529213D01* +X143585136Y-88192495D01* +D12* +X136873311Y-91558211D02* +X136721788Y-91608719D01* +X136620773Y-91608719D01* +X136469250Y-91558211D01* +X136166204Y-91255165D01* +X136115697Y-91103642D01* +X136115697Y-91002627D01* +X136166204Y-90851104D01* +X136317727Y-90699581D01* +X136469250Y-90649074D01* +X136570265Y-90649074D01* +X136721788Y-90699581D01* +X137024834Y-91002627D01* +X137075341Y-91154150D01* +X137075341Y-91255165D01* +X137024834Y-91406688D01* +X136873311Y-91558211D01* +X136974326Y-90042982D02* +X138034986Y-91103642D01* +X137024834Y-90093490D02* +X137075341Y-89941967D01* +X137277372Y-89739936D01* +X137428895Y-89689429D01* +X137529910Y-89689429D01* +X137681433Y-89739936D01* +X137984479Y-90042982D01* +X138034986Y-90194505D01* +X138034986Y-90295520D01* +X137984479Y-90447043D01* +X137782448Y-90649074D01* +X137630925Y-90699581D01* +X138994631Y-89335875D02* +X138944124Y-89487398D01* +X138742093Y-89689429D01* +X138590570Y-89739936D01* +X138439047Y-89689429D01* +X138034986Y-89285368D01* +X137984479Y-89133845D01* +X138034986Y-88982322D01* +X138237017Y-88780291D01* +X138388540Y-88729784D01* +X138540063Y-88780291D01* +X138641078Y-88881307D01* +X138237017Y-89487398D01* +X138843108Y-88174200D02* +X139550215Y-88881307D01* +X138944124Y-88275215D02* +X138944124Y-88174200D01* +X138994631Y-88022677D01* +X139146154Y-87871154D01* +X139297677Y-87820647D01* +X139449200Y-87871154D01* +X140004784Y-88426738D01* +X140509860Y-87921662D02* +X139449200Y-86861002D01* +X139853261Y-86456941D01* +X140004784Y-86406433D01* +X140105799Y-86406433D01* +X140257322Y-86456941D01* +X140408845Y-86608463D01* +X140459352Y-86759986D01* +X140459352Y-86861002D01* +X140408845Y-87012525D01* +X140004784Y-87416586D01* +X142075597Y-86355925D02* +X141570520Y-86861002D01* +X140509860Y-85800341D01* +X142934226Y-85295265D02* +X142934226Y-85396280D01* +X142833211Y-85598311D01* +X142732196Y-85699326D01* +X142530165Y-85800341D01* +X142328135Y-85800341D01* +X142176612Y-85749834D01* +X141924074Y-85598311D01* +X141772551Y-85446788D01* +X141621028Y-85194250D01* +X141570520Y-85042727D01* +X141570520Y-84840697D01* +X141671536Y-84638666D01* +X141772551Y-84537651D01* +X141974581Y-84436636D01* +X142075597Y-84436636D01* +D13* +X148279761Y-108436904D02* +X148013095Y-108055952D01* +X147822619Y-108436904D02* +X147822619Y-107636904D01* +X148127380Y-107636904D01* +X148203571Y-107675000D01* +X148241666Y-107713095D01* +X148279761Y-107789285D01* +X148279761Y-107903571D01* +X148241666Y-107979761D01* +X148203571Y-108017857D01* +X148127380Y-108055952D01* +X147822619Y-108055952D01* +X148927380Y-108398809D02* +X148851190Y-108436904D01* +X148698809Y-108436904D01* +X148622619Y-108398809D01* +X148584523Y-108322619D01* +X148584523Y-108017857D01* +X148622619Y-107941666D01* +X148698809Y-107903571D01* +X148851190Y-107903571D01* +X148927380Y-107941666D01* +X148965476Y-108017857D01* +X148965476Y-108094047D01* +X148584523Y-108170238D01* +X150646428Y-108398809D02* +X150760714Y-108436904D01* +X150951190Y-108436904D01* +X151027380Y-108398809D01* +X151065476Y-108360714D01* +X151103571Y-108284523D01* +X151103571Y-108208333D01* +X151065476Y-108132142D01* +X151027380Y-108094047D01* +X150951190Y-108055952D01* +X150798809Y-108017857D01* +X150722619Y-107979761D01* +X150684523Y-107941666D01* +X150646428Y-107865476D01* +X150646428Y-107789285D01* +X150684523Y-107713095D01* +X150722619Y-107675000D01* +X150798809Y-107636904D01* +X150989285Y-107636904D01* +X151103571Y-107675000D01* +X153457142Y-108411904D02* +X153190476Y-108030952D01* +X153000000Y-108411904D02* +X153000000Y-107611904D01* +X153304761Y-107611904D01* +X153380952Y-107650000D01* +X153419047Y-107688095D01* +X153457142Y-107764285D01* +X153457142Y-107878571D01* +X153419047Y-107954761D01* +X153380952Y-107992857D01* +X153304761Y-108030952D01* +X153000000Y-108030952D01* +X153800000Y-108411904D02* +X153800000Y-107878571D01* +X153800000Y-107611904D02* +X153761904Y-107650000D01* +X153800000Y-107688095D01* +X153838095Y-107650000D01* +X153800000Y-107611904D01* +X153800000Y-107688095D01* +X145984523Y-107675000D02* +X145908333Y-107636904D01* +X145794047Y-107636904D01* +X145679761Y-107675000D01* +X145603571Y-107751190D01* +X145565476Y-107827380D01* +X145527380Y-107979761D01* +X145527380Y-108094047D01* +X145565476Y-108246428D01* +X145603571Y-108322619D01* +X145679761Y-108398809D01* +X145794047Y-108436904D01* +X145870238Y-108436904D01* +X145984523Y-108398809D01* +X146022619Y-108360714D01* +X146022619Y-108094047D01* +X145870238Y-108094047D01* +X143447619Y-108436904D02* +X143066666Y-108436904D01* +X143066666Y-107636904D01* +X140109523Y-108017857D02* +X140376190Y-108017857D01* +X140490476Y-108436904D02* +X140109523Y-108436904D01* +X140109523Y-107636904D01* +X140490476Y-107636904D01* +X140833333Y-108436904D02* +X140833333Y-107636904D01* +X141290476Y-108436904D01* +X141290476Y-107636904D01* +D14* +G04 #@! TO.C,J3* +X136070000Y-93370000D02* +X137400000Y-93370000D01* +X136070000Y-94700000D02* +X136070000Y-93370000D01* +X138730000Y-95970000D02* +X136070000Y-95970000D01* +X138730000Y-96030000D02* +X138730000Y-95970000D01* +X136070000Y-96030000D02* +X138730000Y-96030000D01* +X136070000Y-95970000D02* +X136070000Y-96030000D01* +G04 #@! TO.C,J2* +X157074904Y-88392000D02* +X156134452Y-89332452D01* +X156134452Y-87451548D02* +X157074904Y-88392000D01* +X153355522Y-88434426D02* +X155236426Y-86553522D01* +X151517045Y-86595949D02* +X153355522Y-88434426D01* +X153397949Y-84715045D02* +X151517045Y-86595949D01* +X155236426Y-86553522D02* +X153397949Y-84715045D01* +G04 #@! TO.C,D5* +X145775000Y-89936000D02* +X148865000Y-89936000D01* +X149820000Y-87376000D02* +G75* +G03X149820000Y-87376000I-2500000J0D01* +G01* +X147319538Y-84386000D02* +G75* +G02X148864830Y-89936000I462J-2990000D01* +G01* +X147320462Y-84386000D02* +G75* +G03X145775170Y-89936000I-462J-2990000D01* +G01* +G04 #@! TO.C,D4* +X147320462Y-90736000D02* +G75* +G03X145775170Y-96286000I-462J-2990000D01* +G01* +X147319538Y-90736000D02* +G75* +G02X148864830Y-96286000I462J-2990000D01* +G01* +X149820000Y-93726000D02* +G75* +G03X149820000Y-93726000I-2500000J0D01* +G01* +X145775000Y-96286000D02* +X148865000Y-96286000D01* +G04 #@! TO.C,D3* +X153355000Y-102690000D02* +X156445000Y-102690000D01* +X157400000Y-100130000D02* +G75* +G03X157400000Y-100130000I-2500000J0D01* +G01* +X154899538Y-97140000D02* +G75* +G02X156444830Y-102690000I462J-2990000D01* +G01* +X154900462Y-97140000D02* +G75* +G03X153355170Y-102690000I-462J-2990000D01* +G01* +G04 #@! TO.C,D2* +X147320462Y-97086000D02* +G75* +G03X145775170Y-102636000I-462J-2990000D01* +G01* +X147319538Y-97086000D02* +G75* +G02X148864830Y-102636000I462J-2990000D01* +G01* +X149820000Y-100076000D02* +G75* +G03X149820000Y-100076000I-2500000J0D01* +G01* +X145775000Y-102636000D02* +X148865000Y-102636000D01* +G04 #@! TO.C,D1* +X137355000Y-102590000D02* +X140445000Y-102590000D01* +X141400000Y-100030000D02* +G75* +G03X141400000Y-100030000I-2500000J0D01* +G01* +X138899538Y-97040000D02* +G75* +G02X140444830Y-102590000I462J-2990000D01* +G01* +X138900462Y-97040000D02* +G75* +G03X137355170Y-102590000I-462J-2990000D01* +G01* +G04 #@! TO.C,J1* +X139386000Y-106994000D02* +X139386000Y-105664000D01* +X140716000Y-106994000D02* +X139386000Y-106994000D01* +X141986000Y-104334000D02* +X141986000Y-106994000D01* +X154746000Y-104334000D02* +X141986000Y-104334000D01* +X154746000Y-106994000D02* +X154746000Y-104334000D01* +X141986000Y-106994000D02* +X154746000Y-106994000D01* +G04 #@! TO.C,D5* +D13* +X149185523Y-84732761D02* +X149328380Y-84780380D01* +X149566476Y-84780380D01* +X149661714Y-84732761D01* +X149709333Y-84685142D01* +X149756952Y-84589904D01* +X149756952Y-84494666D01* +X149709333Y-84399428D01* +X149661714Y-84351809D01* +X149566476Y-84304190D01* +X149376000Y-84256571D01* +X149280761Y-84208952D01* +X149233142Y-84161333D01* +X149185523Y-84066095D01* +X149185523Y-83970857D01* +X149233142Y-83875619D01* +X149280761Y-83828000D01* +X149376000Y-83780380D01* +X149614095Y-83780380D01* +X149756952Y-83828000D01* +X150042666Y-83780380D02* +X150614095Y-83780380D01* +X150328380Y-84780380D02* +X150328380Y-83780380D01* +X151137904Y-83780380D02* +X151328380Y-83780380D01* +X151423619Y-83828000D01* +X151518857Y-83923238D01* +X151566476Y-84113714D01* +X151566476Y-84447047D01* +X151518857Y-84637523D01* +X151423619Y-84732761D01* +X151328380Y-84780380D01* +X151137904Y-84780380D01* +X151042666Y-84732761D01* +X150947428Y-84637523D01* +X150899809Y-84447047D01* +X150899809Y-84113714D01* +X150947428Y-83923238D01* +X151042666Y-83828000D01* +X151137904Y-83780380D01* +X151995047Y-84780380D02* +X151995047Y-83780380D01* +X152376000Y-83780380D01* +X152471238Y-83828000D01* +X152518857Y-83875619D01* +X152566476Y-83970857D01* +X152566476Y-84113714D01* +X152518857Y-84208952D01* +X152471238Y-84256571D01* +X152376000Y-84304190D01* +X151995047Y-84304190D01* +G04 #@! TO.C,D4* +X151408000Y-94105880D02* +X151074666Y-93629690D01* +X150836571Y-94105880D02* +X150836571Y-93105880D01* +X151217523Y-93105880D01* +X151312761Y-93153500D01* +X151360380Y-93201119D01* +X151408000Y-93296357D01* +X151408000Y-93439214D01* +X151360380Y-93534452D01* +X151312761Y-93582071D01* +X151217523Y-93629690D01* +X150836571Y-93629690D01* +X151836571Y-93582071D02* +X152169904Y-93582071D01* +X152312761Y-94105880D02* +X151836571Y-94105880D01* +X151836571Y-93105880D01* +X152312761Y-93105880D01* +X152693714Y-93820166D02* +X153169904Y-93820166D01* +X152598476Y-94105880D02* +X152931809Y-93105880D01* +X153265142Y-94105880D01* +X153598476Y-94105880D02* +X153598476Y-93105880D01* +X153836571Y-93105880D01* +X153979428Y-93153500D01* +X154074666Y-93248738D01* +X154122285Y-93343976D01* +X154169904Y-93534452D01* +X154169904Y-93677309D01* +X154122285Y-93867785D01* +X154074666Y-93963023D01* +X153979428Y-94058261D01* +X153836571Y-94105880D01* +X153598476Y-94105880D01* +X154788952Y-93629690D02* +X154788952Y-94105880D01* +X154455619Y-93105880D02* +X154788952Y-93629690D01* +X155122285Y-93105880D01* +G04 #@! TO.C,D3* +X153606666Y-104084380D02* +X153273333Y-103608190D01* +X153035238Y-104084380D02* +X153035238Y-103084380D01* +X153416190Y-103084380D01* +X153511428Y-103132000D01* +X153559047Y-103179619D01* +X153606666Y-103274857D01* +X153606666Y-103417714D01* +X153559047Y-103512952D01* +X153511428Y-103560571D01* +X153416190Y-103608190D01* +X153035238Y-103608190D01* +X154035238Y-104084380D02* +X154035238Y-103084380D01* +X155035238Y-103132000D02* +X154940000Y-103084380D01* +X154797142Y-103084380D01* +X154654285Y-103132000D01* +X154559047Y-103227238D01* +X154511428Y-103322476D01* +X154463809Y-103512952D01* +X154463809Y-103655809D01* +X154511428Y-103846285D01* +X154559047Y-103941523D01* +X154654285Y-104036761D01* +X154797142Y-104084380D01* +X154892380Y-104084380D01* +X155035238Y-104036761D01* +X155082857Y-103989142D01* +X155082857Y-103655809D01* +X154892380Y-103655809D01* +X155511428Y-104084380D02* +X155511428Y-103084380D01* +X155511428Y-103560571D02* +X156082857Y-103560571D01* +X156082857Y-104084380D02* +X156082857Y-103084380D01* +X156416190Y-103084380D02* +X156987619Y-103084380D01* +X156701904Y-104084380D02* +X156701904Y-103084380D01* +G04 #@! TO.C,D2* +X147058095Y-103132000D02* +X146962857Y-103084380D01* +X146820000Y-103084380D01* +X146677142Y-103132000D01* +X146581904Y-103227238D01* +X146534285Y-103322476D01* +X146486666Y-103512952D01* +X146486666Y-103655809D01* +X146534285Y-103846285D01* +X146581904Y-103941523D01* +X146677142Y-104036761D01* +X146820000Y-104084380D01* +X146915238Y-104084380D01* +X147058095Y-104036761D01* +X147105714Y-103989142D01* +X147105714Y-103655809D01* +X146915238Y-103655809D01* +X147724761Y-103084380D02* +X147915238Y-103084380D01* +X148010476Y-103132000D01* +X148105714Y-103227238D01* +X148153333Y-103417714D01* +X148153333Y-103751047D01* +X148105714Y-103941523D01* +X148010476Y-104036761D01* +X147915238Y-104084380D01* +X147724761Y-104084380D01* +X147629523Y-104036761D01* +X147534285Y-103941523D01* +X147486666Y-103751047D01* +X147486666Y-103417714D01* +X147534285Y-103227238D01* +X147629523Y-103132000D01* +X147724761Y-103084380D01* +G04 #@! TO.C,D1* +X137947619Y-104084380D02* +X137471428Y-104084380D01* +X137471428Y-103084380D01* +X138280952Y-103560571D02* +X138614285Y-103560571D01* +X138757142Y-104084380D02* +X138280952Y-104084380D01* +X138280952Y-103084380D01* +X138757142Y-103084380D01* +X139519047Y-103560571D02* +X139185714Y-103560571D01* +X139185714Y-104084380D02* +X139185714Y-103084380D01* +X139661904Y-103084380D01* +X139900000Y-103084380D02* +X140471428Y-103084380D01* +X140185714Y-104084380D02* +X140185714Y-103084380D01* +G04 #@! TD* +M02* diff --git a/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-NPTH.drl b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-NPTH.drl new file mode 100644 index 0000000..5103bd3 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-NPTH.drl @@ -0,0 +1,11 @@ +M48 +;DRILL file {KiCad 5.0.1} date Wed 20 Mar 2019 11:26:18 AM IST +;FORMAT={-:-/ absolute / metric / decimal} +FMAT,2 +METRIC,TZ +% +G90 +G05 +M71 +T0 +M30 diff --git a/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-PTH.drl b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-PTH.drl new file mode 100644 index 0000000..5a8ae3a --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/gerber/traffic-PTH.drl @@ -0,0 +1,34 @@ +M48 +;DRILL file {KiCad 5.0.1} date Wed 20 Mar 2019 11:26:18 AM IST +;FORMAT={-:-/ absolute / metric / decimal} +FMAT,2 +METRIC,TZ +T1C0.900 +T2C1.000 +% +G90 +G05 +M71 +T1 +X147.32Y-98.806 +X147.32Y-101.346 +X138.9Y-98.76 +X138.9Y-101.3 +X147.32Y-86.106 +X147.32Y-88.646 +X147.32Y-92.456 +X147.32Y-94.996 +X154.9Y-98.86 +X154.9Y-101.4 +T2 +X140.716Y-105.664 +X143.256Y-105.664 +X145.796Y-105.664 +X148.336Y-105.664 +X150.876Y-105.664 +X153.416Y-105.664 +X137.4Y-94.7 +X153.398Y-86.596 +X155.194Y-88.392 +T0 +M30 diff --git a/OpenPLC_modules/openplc_modules/traffic/traffic b/OpenPLC_modules/openplc_modules/traffic/traffic new file mode 100644 index 0000000..00d272f --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/traffic @@ -0,0 +1,36 @@ +"Source:","/home/easwaran/allProjects/kicad/openplc_modules/traffic/traffic.sch" +"Date:","Tue 22 Jan 2019 05:36:43 PM IST" +"Tool:","Eeschema 5.0.1" +"Generator:","/usr/share/kicad/plugins/bom_csv_grouped_by_value.py" +"Component Count:","11" + +"Individual Components:" + +"Item","Qty","Reference(s)","Value","LibPart","Footprint","Datasheet" +"","","D1","left","Device:LED","LEDs:LED_D5.0mm","~" +"","","D2","GO","Device:LED","LEDs:LED_D5.0mm","~" +"","","D3","right","Device:LED","LEDs:LED_D5.0mm","~" +"","","D4","ready","Device:LED","LEDs:LED_D5.0mm","~" +"","","D5","STOP","Device:LED","LEDs:LED_D5.0mm","~" +"","","J1","Conn_01x06_Male","Connector:Conn_01x06_Male","Socket_Strips:Socket_Strip_Straight_1x06_Pitch2.54mm","~" +"","","J2","Conn_01x02_Male","Connector:Conn_01x02_Male","Socket_Strips:Socket_Strip_Straight_1x02_Pitch2.54mm","~" +"","","J3","Conn_01x01_Male","Connector:Conn_01x01_Male","Socket_Strips:Socket_Strip_Straight_1x01_Pitch2.54mm","~" +"","","Q1","MMBT3906","Transistor_BJT:MMBT3906","TO_SOT_Packages_SMD:SOT-23","https://www.fairchildsemi.com/datasheets/2N/2N3906.pdf" +"","","R1","R","Device:R","Resistors_SMD:R_0603_HandSoldering","~" +"","","R2","R","Device:R","Resistors_SMD:R_0603_HandSoldering","~" + + + +"Collated Components:" + +"Item","Qty","Reference(s)","Value","LibPart","Footprint","Datasheet" +"1","1","D1","left","Device:LED","LEDs:LED_D5.0mm","~" +"2","1","D2","GO","Device:LED","LEDs:LED_D5.0mm","~" +"3","1","D3","right","Device:LED","LEDs:LED_D5.0mm","~" +"4","1","D4","ready","Device:LED","LEDs:LED_D5.0mm","~" +"5","1","D5","STOP","Device:LED","LEDs:LED_D5.0mm","~" +"6","1","J1","Conn_01x06_Male","Connector:Conn_01x06_Male","Socket_Strips:Socket_Strip_Straight_1x06_Pitch2.54mm","~" +"7","1","J2","Conn_01x02_Male","Connector:Conn_01x02_Male","Socket_Strips:Socket_Strip_Straight_1x02_Pitch2.54mm","~" +"8","1","J3","Conn_01x01_Male","Connector:Conn_01x01_Male","Socket_Strips:Socket_Strip_Straight_1x01_Pitch2.54mm","~" +"9","1","Q1","MMBT3906","Transistor_BJT:MMBT3906","TO_SOT_Packages_SMD:SOT-23","https://www.fairchildsemi.com/datasheets/2N/2N3906.pdf" +"10","2","R1, R2","R","Device:R","Resistors_SMD:R_0603_HandSoldering","~" diff --git a/OpenPLC_modules/openplc_modules/traffic/traffic-cache.lib b/OpenPLC_modules/openplc_modules/traffic/traffic-cache.lib new file mode 100644 index 0000000..e4e6421 --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/traffic-cache.lib @@ -0,0 +1,151 @@ +EESchema-LIBRARY Version 2.4 +#encoding utf-8 +# +# Connector_Conn_01x01_Male +# +DEF Connector_Conn_01x01_Male J 0 40 Y N 1 F N +F0 "J" 0 100 50 H V C CNN +F1 "Connector_Conn_01x01_Male" 0 -100 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + Connector*:* +$ENDFPLIST +DRAW +S 34 5 0 -5 1 1 6 F +P 2 1 1 6 50 0 34 0 N +X Pin_1 1 200 0 150 L 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Connector_Conn_01x02_Male +# +DEF Connector_Conn_01x02_Male J 0 40 Y N 1 F N +F0 "J" 0 100 50 H V C CNN +F1 "Connector_Conn_01x02_Male" 0 -200 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + Connector*:*_1x??_* +$ENDFPLIST +DRAW +S 34 -95 0 -105 1 1 6 F +S 34 5 0 -5 1 1 6 F +P 2 1 1 6 50 -100 34 -100 N +P 2 1 1 6 50 0 34 0 N +X Pin_1 1 200 0 150 L 50 50 1 1 P +X Pin_2 2 200 -100 150 L 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Connector_Conn_01x06_Male +# +DEF Connector_Conn_01x06_Male J 0 40 Y N 1 F N +F0 "J" 0 300 50 H V C CNN +F1 "Connector_Conn_01x06_Male" 0 -400 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + Connector*:*_1x??_* +$ENDFPLIST +DRAW +S 34 -295 0 -305 1 1 6 F +S 34 -195 0 -205 1 1 6 F +S 34 -95 0 -105 1 1 6 F +S 34 5 0 -5 1 1 6 F +S 34 105 0 95 1 1 6 F +S 34 205 0 195 1 1 6 F +P 2 1 1 6 50 -300 34 -300 N +P 2 1 1 6 50 -200 34 -200 N +P 2 1 1 6 50 -100 34 -100 N +P 2 1 1 6 50 0 34 0 N +P 2 1 1 6 50 100 34 100 N +P 2 1 1 6 50 200 34 200 N +X Pin_1 1 200 200 150 L 50 50 1 1 P +X Pin_2 2 200 100 150 L 50 50 1 1 P +X Pin_3 3 200 0 150 L 50 50 1 1 P +X Pin_4 4 200 -100 150 L 50 50 1 1 P +X Pin_5 5 200 -200 150 L 50 50 1 1 P +X Pin_6 6 200 -300 150 L 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Device_LED +# +DEF Device_LED D 0 40 N N 1 F N +F0 "D" 0 100 50 H V C CNN +F1 "Device_LED" 0 -100 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + LED* + LED_SMD:* + LED_THT:* +$ENDFPLIST +DRAW +P 2 0 1 8 -50 -50 -50 50 N +P 2 0 1 0 -50 0 50 0 N +P 4 0 1 8 50 -50 50 50 -50 0 50 -50 N +P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N +P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N +X K 1 -150 0 100 R 50 50 1 1 P +X A 2 150 0 100 L 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Device_R +# +DEF Device_R R 0 0 N Y 1 F N +F0 "R" 80 0 50 V V C CNN +F1 "Device_R" 0 0 50 V V C CNN +F2 "" -70 0 50 V I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + R_* +$ENDFPLIST +DRAW +S -40 -100 40 100 0 1 10 N +X ~ 1 0 150 50 D 50 50 1 1 P +X ~ 2 0 -150 50 U 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Transistor_BJT_MMBT3906 +# +DEF Transistor_BJT_MMBT3906 Q 0 0 Y N 1 F N +F0 "Q" 200 75 50 H V L CNN +F1 "Transistor_BJT_MMBT3906" 200 0 50 H V L CNN +F2 "Package_TO_SOT_SMD:SOT-23" 200 -75 50 H I L CIN +F3 "" 0 0 50 H I L CNN +ALIAS BC808 BC856 BC857 BC858 BC859 BC860 MMBT3906 +$FPLIST + SOT?23* +$ENDFPLIST +DRAW +C 50 0 111 0 1 10 N +P 2 0 1 0 25 25 100 100 N +P 3 0 1 0 25 -25 100 -100 100 -100 N +P 3 0 1 20 25 75 25 -75 25 -75 N +P 5 0 1 0 90 -70 70 -90 50 -50 90 -70 90 -70 F +X B 1 -200 0 225 R 50 50 1 1 I +X E 2 100 -200 100 U 50 50 1 1 P +X C 3 100 200 100 D 50 50 1 1 P +ENDDRAW +ENDDEF +# +# power_+5C +# +DEF power_+5C #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -150 50 H I C CNN +F1 "power_+5C" 0 140 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 2 0 1 0 -30 50 0 100 N +P 2 0 1 0 0 0 0 100 N +P 2 0 1 0 0 100 30 50 N +X +5C 1 0 0 0 U 50 50 1 1 W N +ENDDRAW +ENDDEF +# +#End Library diff --git a/OpenPLC_modules/openplc_modules/traffic/traffic.kicad_pcb b/OpenPLC_modules/openplc_modules/traffic/traffic.kicad_pcb new file mode 100644 index 0000000..921428a --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/traffic.kicad_pcb @@ -0,0 +1,714 @@ +(kicad_pcb (version 20171130) (host pcbnew 5.0.1) + + (general + (thickness 1.6) + (drawings 22) + (tracks 73) + (zones 0) + (modules 11) + (nets 11) + ) + + (page A4) + (layers + (0 F.Cu signal) + (31 B.Cu signal) + (32 B.Adhes user) + (33 F.Adhes user) + (34 B.Paste user) + (35 F.Paste user) + (36 B.SilkS user) + (37 F.SilkS user) + (38 B.Mask user) + (39 F.Mask user) + (40 Dwgs.User user) + (41 Cmts.User user) + (42 Eco1.User user) + (43 Eco2.User user) + (44 Edge.Cuts user) + (45 Margin user) + (46 B.CrtYd user hide) + (47 F.CrtYd user hide) + (48 B.Fab user hide) + (49 F.Fab user hide) + ) + + (setup + (last_trace_width 0.25) + (trace_clearance 0.2) + (zone_clearance 0.508) + (zone_45_only no) + (trace_min 0.2) + (segment_width 0.2) + (edge_width 0.15) + (via_size 0.8) + (via_drill 0.4) + (via_min_size 0.4) + (via_min_drill 0.3) + (uvia_size 0.3) + (uvia_drill 0.1) + (uvias_allowed no) + (uvia_min_size 0.2) + (uvia_min_drill 0.1) + (pcb_text_width 0.3) + (pcb_text_size 1.5 1.5) + (mod_edge_width 0.15) + (mod_text_size 1 1) + (mod_text_width 0.15) + (pad_size 1.524 1.524) + (pad_drill 0.762) + (pad_to_mask_clearance 0.051) + (solder_mask_min_width 0.25) + (aux_axis_origin 0 0) + (visible_elements FFFFFF7F) + (pcbplotparams + (layerselection 0x010fc_ffffffff) + (usegerberextensions false) + (usegerberattributes false) + (usegerberadvancedattributes false) + (creategerberjobfile false) + (excludeedgelayer true) + (linewidth 0.100000) + (plotframeref false) + (viasonmask false) + (mode 1) + (useauxorigin false) + (hpglpennumber 1) + (hpglpenspeed 20) + (hpglpendiameter 15.000000) + (psnegative false) + (psa4output false) + (plotreference true) + (plotvalue true) + (plotinvisibletext false) + (padsonsilk false) + (subtractmaskfromsilk false) + (outputformat 1) + (mirror false) + (drillshape 0) + (scaleselection 1) + (outputdirectory "gerber/")) + ) + + (net 0 "") + (net 1 "Net-(D1-Pad2)") + (net 2 "Net-(D1-Pad1)") + (net 3 "Net-(D2-Pad1)") + (net 4 "Net-(D3-Pad1)") + (net 5 "Net-(D4-Pad1)") + (net 6 "Net-(D5-Pad1)") + (net 7 +5C) + (net 8 "Net-(J2-Pad2)") + (net 9 "Net-(J1-Pad1)") + (net 10 "Net-(Q1-Pad1)") + + (net_class Default "This is the default net class." + (clearance 0.2) + (trace_width 0.25) + (via_dia 0.8) + (via_drill 0.4) + (uvia_dia 0.3) + (uvia_drill 0.1) + (add_net +5C) + (add_net "Net-(D1-Pad1)") + (add_net "Net-(D1-Pad2)") + (add_net "Net-(D2-Pad1)") + (add_net "Net-(D3-Pad1)") + (add_net "Net-(D4-Pad1)") + (add_net "Net-(D5-Pad1)") + (add_net "Net-(J1-Pad1)") + (add_net "Net-(J2-Pad2)") + (add_net "Net-(Q1-Pad1)") + ) + + (module Resistors_SMD:R_0603_HandSoldering (layer B.Cu) (tedit 58E0A804) (tstamp 5C471230) + (at 139.7 94.5 270) + (descr "Resistor SMD 0603, hand soldering") + (tags "resistor 0603") + (path /5C48B1E4) + (attr smd) + (fp_text reference R2 (at -2.8 0 270) (layer B.SilkS) + (effects (font (size 1 1) (thickness 0.15)) (justify mirror)) + ) + (fp_text value R (at 0 -1.55 270) (layer B.Fab) + (effects (font (size 1 1) (thickness 0.15)) (justify mirror)) + ) + (fp_line (start 1.95 -0.7) (end -1.96 -0.7) (layer B.CrtYd) (width 0.05)) + (fp_line (start 1.95 -0.7) (end 1.95 0.7) (layer B.CrtYd) (width 0.05)) + (fp_line (start -1.96 0.7) (end -1.96 -0.7) (layer B.CrtYd) (width 0.05)) + (fp_line (start -1.96 0.7) (end 1.95 0.7) (layer B.CrtYd) (width 0.05)) + (fp_line (start -0.5 0.68) (end 0.5 0.68) (layer B.SilkS) (width 0.12)) + (fp_line (start 0.5 -0.68) (end -0.5 -0.68) (layer B.SilkS) (width 0.12)) + (fp_line (start -0.8 0.4) (end 0.8 0.4) (layer B.Fab) (width 0.1)) + (fp_line (start 0.8 0.4) (end 0.8 -0.4) (layer B.Fab) (width 0.1)) + (fp_line (start 0.8 -0.4) (end -0.8 -0.4) (layer B.Fab) (width 0.1)) + (fp_line (start -0.8 -0.4) (end -0.8 0.4) (layer B.Fab) (width 0.1)) + (fp_text user %R (at 0 0 270) (layer B.Fab) + (effects (font (size 0.4 0.4) (thickness 0.075)) (justify mirror)) + ) + (pad 2 smd rect (at 1.1 0 270) (size 1.2 0.9) (layers B.Cu B.Paste B.Mask) + (net 9 "Net-(J1-Pad1)")) + (pad 1 smd rect (at -1.1 0 270) (size 1.2 0.9) (layers B.Cu B.Paste B.Mask) + (net 10 "Net-(Q1-Pad1)")) + (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0603.wrl + (at (xyz 0 0 0)) + (scale (xyz 1 1 1)) + (rotate (xyz 0 0 0)) + ) + ) + + (module Socket_Strips:Socket_Strip_Straight_1x01_Pitch2.54mm (layer F.Cu) (tedit 5C91CEC9) (tstamp 5C46FFB9) + (at 137.4 94.7) + (descr "Through hole straight socket strip, 1x01, 2.54mm pitch, single row") + (tags "Through hole socket strip THT 1x01 2.54mm single row") + (path /5C485FD5) + (fp_text reference J3 (at -1.4 -2.2) (layer F.SilkS) hide + (effects (font (size 0.5 0.5) (thickness 0.125))) + ) + (fp_text value Conn_01x01_Male (at 0 2.33) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user %R (at 0 -2.33) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start 1.8 -1.8) (end -1.8 -1.8) (layer F.CrtYd) (width 0.05)) + (fp_line (start 1.8 1.8) (end 1.8 -1.8) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.8 1.8) (end 1.8 1.8) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.8 -1.8) (end -1.8 1.8) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.33 -1.33) (end 0 -1.33) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.33 0) (end -1.33 -1.33) (layer F.SilkS) (width 0.12)) + (fp_line (start 1.33 1.27) (end -1.33 1.27) (layer F.SilkS) (width 0.12)) + (fp_line (start 1.33 1.33) (end 1.33 1.27) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.33 1.33) (end 1.33 1.33) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.33 1.27) (end -1.33 1.33) (layer F.SilkS) (width 0.12)) + (fp_line (start 1.27 -1.27) (end -1.27 -1.27) (layer F.Fab) (width 0.1)) + (fp_line (start 1.27 1.27) (end 1.27 -1.27) (layer F.Fab) (width 0.1)) + (fp_line (start -1.27 1.27) (end 1.27 1.27) (layer F.Fab) (width 0.1)) + (fp_line (start -1.27 -1.27) (end -1.27 1.27) (layer F.Fab) (width 0.1)) + (pad 1 thru_hole rect (at 0 0) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) + (net 7 +5C)) + (model ${KISYS3DMOD}/Socket_Strips.3dshapes/Socket_Strip_Straight_1x01_Pitch2.54mm.wrl + (at (xyz 0 0 0)) + (scale (xyz 1 1 1)) + (rotate (xyz 0 0 270)) + ) + ) + + (module TO_SOT_Packages_SMD:SOT-23 (layer B.Cu) (tedit 5C46EEE3) (tstamp 5C46FA52) + (at 143 93.3) + (descr "SOT-23, Standard") + (tags SOT-23) + (path /5C485559) + (attr smd) + (fp_text reference Q1 (at 0 2.5) (layer B.SilkS) + (effects (font (size 1 1) (thickness 0.15)) (justify mirror)) + ) + (fp_text value MMBT3906 (at 0 -2.5) (layer B.Fab) + (effects (font (size 1 1) (thickness 0.15)) (justify mirror)) + ) + (fp_line (start 0.76 -1.58) (end -0.7 -1.58) (layer B.SilkS) (width 0.12)) + (fp_line (start 0.76 1.58) (end -1.4 1.58) (layer B.SilkS) (width 0.12)) + (fp_line (start -1.7 -1.75) (end -1.7 1.75) (layer B.CrtYd) (width 0.05)) + (fp_line (start 1.7 -1.75) (end -1.7 -1.75) (layer B.CrtYd) (width 0.05)) + (fp_line (start 1.7 1.75) (end 1.7 -1.75) (layer B.CrtYd) (width 0.05)) + (fp_line (start -1.7 1.75) (end 1.7 1.75) (layer B.CrtYd) (width 0.05)) + (fp_line (start 0.76 1.58) (end 0.76 0.65) (layer B.SilkS) (width 0.12)) + (fp_line (start 0.76 -1.58) (end 0.76 -0.65) (layer B.SilkS) (width 0.12)) + (fp_line (start -0.7 -1.52) (end 0.7 -1.52) (layer B.Fab) (width 0.1)) + (fp_line (start 0.7 1.52) (end 0.7 -1.52) (layer B.Fab) (width 0.1)) + (fp_line (start -0.7 0.95) (end -0.15 1.52) (layer B.Fab) (width 0.1)) + (fp_line (start -0.15 1.52) (end 0.7 1.52) (layer B.Fab) (width 0.1)) + (fp_line (start -0.7 0.95) (end -0.7 -1.5) (layer B.Fab) (width 0.1)) + (fp_text user %R (at 0 0 -90) (layer B.Fab) + (effects (font (size 0.5 0.5) (thickness 0.075)) (justify mirror)) + ) + (pad 3 smd rect (at 1 0) (size 0.9 0.8) (layers B.Cu B.Paste B.Mask) + (net 8 "Net-(J2-Pad2)")) + (pad 2 smd rect (at -1 -0.95) (size 0.9 0.8) (layers B.Cu B.Paste B.Mask) + (net 7 +5C)) + (pad 1 smd rect (at -1 0.95) (size 0.9 0.8) (layers B.Cu B.Paste B.Mask) + (net 10 "Net-(Q1-Pad1)")) + (model ${KISYS3DMOD}/TO_SOT_Packages_SMD.3dshapes/SOT-23.wrl + (at (xyz 0 0 0)) + (scale (xyz 1 1 1)) + (rotate (xyz 0 0 0)) + ) + ) + + (module Socket_Strips:Socket_Strip_Straight_1x02_Pitch2.54mm (layer F.Cu) (tedit 5C91CEEE) (tstamp 5C3D0902) + (at 155.194 88.392 225) + (descr "Through hole straight socket strip, 1x02, 2.54mm pitch, single row") + (tags "Through hole socket strip THT 1x02 2.54mm single row") + (path /5C3CB942) + (fp_text reference J2 (at 0 -2.33 225) (layer F.SilkS) hide + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value Conn_01x02_Male (at 0 4.87 225) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user %R (at 0 -2.33 225) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start 1.8 -1.8) (end -1.8 -1.8) (layer F.CrtYd) (width 0.05)) + (fp_line (start 1.8 4.35) (end 1.8 -1.8) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.8 4.35) (end 1.8 4.35) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.8 -1.8) (end -1.8 4.35) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.33 -1.33) (end 0 -1.33) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.33 0) (end -1.33 -1.33) (layer F.SilkS) (width 0.12)) + (fp_line (start 1.33 1.27) (end -1.33 1.27) (layer F.SilkS) (width 0.12)) + (fp_line (start 1.33 3.87) (end 1.33 1.27) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.33 3.87) (end 1.33 3.87) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.33 1.27) (end -1.33 3.87) (layer F.SilkS) (width 0.12)) + (fp_line (start 1.27 -1.27) (end -1.27 -1.27) (layer F.Fab) (width 0.1)) + (fp_line (start 1.27 3.81) (end 1.27 -1.27) (layer F.Fab) (width 0.1)) + (fp_line (start -1.27 3.81) (end 1.27 3.81) (layer F.Fab) (width 0.1)) + (fp_line (start -1.27 -1.27) (end -1.27 3.81) (layer F.Fab) (width 0.1)) + (pad 2 thru_hole oval (at 0 2.54 225) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) + (net 8 "Net-(J2-Pad2)")) + (pad 1 thru_hole rect (at 0 0 225) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) + (net 6 "Net-(D5-Pad1)")) + (model ${KISYS3DMOD}/Socket_Strips.3dshapes/Socket_Strip_Straight_1x02_Pitch2.54mm.wrl + (offset (xyz 0 -1.269999980926514 0)) + (scale (xyz 1 1 1)) + (rotate (xyz 0 0 270)) + ) + ) + + (module LEDs:LED_D5.0mm (layer F.Cu) (tedit 5C3C664C) (tstamp 5C3D104C) + (at 147.32 88.646 90) + (descr "LED, diameter 5.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LL-504BC2E-009.pdf") + (tags "LED diameter 5.0mm 2 pins") + (path /5C2C2A10) + (fp_text reference D5 (at 3.671 4.255 180) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value STOP (at 4.318 3.556 180) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user %R (at 1.25 0 90) (layer F.Fab) + (effects (font (size 0.8 0.8) (thickness 0.2))) + ) + (fp_line (start 4.5 -3.25) (end -1.95 -3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start 4.5 3.25) (end 4.5 -3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.95 3.25) (end 4.5 3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.95 -3.25) (end -1.95 3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.29 -1.545) (end -1.29 1.545) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.23 -1.469694) (end -1.23 1.469694) (layer F.Fab) (width 0.1)) + (fp_circle (center 1.27 0) (end 3.77 0) (layer F.SilkS) (width 0.12)) + (fp_circle (center 1.27 0) (end 3.77 0) (layer F.Fab) (width 0.1)) + (fp_arc (start 1.27 0) (end -1.29 1.54483) (angle -148.9) (layer F.SilkS) (width 0.12)) + (fp_arc (start 1.27 0) (end -1.29 -1.54483) (angle 148.9) (layer F.SilkS) (width 0.12)) + (fp_arc (start 1.27 0) (end -1.23 -1.469694) (angle 299.1) (layer F.Fab) (width 0.1)) + (pad 2 thru_hole circle (at 2.54 0 90) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) + (net 1 "Net-(D1-Pad2)")) + (pad 1 thru_hole rect (at 0 0 90) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) + (net 6 "Net-(D5-Pad1)")) + (model ${KISYS3DMOD}/LEDs.3dshapes/LED_D5.0mm.wrl + (at (xyz 0 0 0)) + (scale (xyz 0.393701 0.393701 0.393701)) + (rotate (xyz 0 0 0)) + ) + ) + + (module LEDs:LED_D5.0mm (layer F.Cu) (tedit 5C91CE5C) (tstamp 5C32ED25) + (at 147.32 94.996 90) + (descr "LED, diameter 5.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LL-504BC2E-009.pdf") + (tags "LED diameter 5.0mm 2 pins") + (path /5C2C2A6F) + (fp_text reference D4 (at 2.471 -4.22 180) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value READY (at 1.3425 5.588 180) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_arc (start 1.27 0) (end -1.23 -1.469694) (angle 299.1) (layer F.Fab) (width 0.1)) + (fp_arc (start 1.27 0) (end -1.29 -1.54483) (angle 148.9) (layer F.SilkS) (width 0.12)) + (fp_arc (start 1.27 0) (end -1.29 1.54483) (angle -148.9) (layer F.SilkS) (width 0.12)) + (fp_circle (center 1.27 0) (end 3.77 0) (layer F.Fab) (width 0.1)) + (fp_circle (center 1.27 0) (end 3.77 0) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.23 -1.469694) (end -1.23 1.469694) (layer F.Fab) (width 0.1)) + (fp_line (start -1.29 -1.545) (end -1.29 1.545) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.95 -3.25) (end -1.95 3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.95 3.25) (end 4.5 3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start 4.5 3.25) (end 4.5 -3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start 4.5 -3.25) (end -1.95 -3.25) (layer F.CrtYd) (width 0.05)) + (fp_text user %R (at 1.25 0 90) (layer F.Fab) + (effects (font (size 0.8 0.8) (thickness 0.2))) + ) + (pad 1 thru_hole rect (at 0 0 90) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) + (net 5 "Net-(D4-Pad1)")) + (pad 2 thru_hole circle (at 2.54 0 90) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) + (net 1 "Net-(D1-Pad2)")) + (model ${KISYS3DMOD}/LEDs.3dshapes/LED_D5.0mm.wrl + (at (xyz 0 0 0)) + (scale (xyz 0.393701 0.393701 0.393701)) + (rotate (xyz 0 0 0)) + ) + ) + + (module LEDs:LED_D5.0mm (layer F.Cu) (tedit 5C91CE62) (tstamp 5C32EF6F) + (at 154.9 101.4 90) + (descr "LED, diameter 5.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LL-504BC2E-009.pdf") + (tags "LED diameter 5.0mm 2 pins") + (path /5C2C2AD6) + (fp_text reference D3 (at 5.175 -2.075 180) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value RIGHT (at -2.232 0.04 180) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user %R (at 1.25 0 90) (layer F.Fab) + (effects (font (size 0.8 0.8) (thickness 0.2))) + ) + (fp_line (start 4.5 -3.25) (end -1.95 -3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start 4.5 3.25) (end 4.5 -3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.95 3.25) (end 4.5 3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.95 -3.25) (end -1.95 3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.29 -1.545) (end -1.29 1.545) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.23 -1.469694) (end -1.23 1.469694) (layer F.Fab) (width 0.1)) + (fp_circle (center 1.27 0) (end 3.77 0) (layer F.SilkS) (width 0.12)) + (fp_circle (center 1.27 0) (end 3.77 0) (layer F.Fab) (width 0.1)) + (fp_arc (start 1.27 0) (end -1.29 1.54483) (angle -148.9) (layer F.SilkS) (width 0.12)) + (fp_arc (start 1.27 0) (end -1.29 -1.54483) (angle 148.9) (layer F.SilkS) (width 0.12)) + (fp_arc (start 1.27 0) (end -1.23 -1.469694) (angle 299.1) (layer F.Fab) (width 0.1)) + (pad 2 thru_hole circle (at 2.54 0 90) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) + (net 1 "Net-(D1-Pad2)")) + (pad 1 thru_hole rect (at 0 0 90) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) + (net 4 "Net-(D3-Pad1)")) + (model ${KISYS3DMOD}/LEDs.3dshapes/LED_D5.0mm.wrl + (at (xyz 0 0 0)) + (scale (xyz 0.393701 0.393701 0.393701)) + (rotate (xyz 0 0 0)) + ) + ) + + (module LEDs:LED_D5.0mm (layer F.Cu) (tedit 5C3C6639) (tstamp 5C3D110D) + (at 147.32 101.346 90) + (descr "LED, diameter 5.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LL-504BC2E-009.pdf") + (tags "LED diameter 5.0mm 2 pins") + (path /5C2C2A3E) + (fp_text reference D2 (at 1.27 -4.22 180) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value GO (at -2.286 0 180) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_arc (start 1.27 0) (end -1.23 -1.469694) (angle 299.1) (layer F.Fab) (width 0.1)) + (fp_arc (start 1.27 0) (end -1.29 -1.54483) (angle 148.9) (layer F.SilkS) (width 0.12)) + (fp_arc (start 1.27 0) (end -1.29 1.54483) (angle -148.9) (layer F.SilkS) (width 0.12)) + (fp_circle (center 1.27 0) (end 3.77 0) (layer F.Fab) (width 0.1)) + (fp_circle (center 1.27 0) (end 3.77 0) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.23 -1.469694) (end -1.23 1.469694) (layer F.Fab) (width 0.1)) + (fp_line (start -1.29 -1.545) (end -1.29 1.545) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.95 -3.25) (end -1.95 3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.95 3.25) (end 4.5 3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start 4.5 3.25) (end 4.5 -3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start 4.5 -3.25) (end -1.95 -3.25) (layer F.CrtYd) (width 0.05)) + (fp_text user %R (at 1.25 0 90) (layer F.Fab) + (effects (font (size 0.8 0.8) (thickness 0.2))) + ) + (pad 1 thru_hole rect (at 0 0 90) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) + (net 3 "Net-(D2-Pad1)")) + (pad 2 thru_hole circle (at 2.54 0 90) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) + (net 1 "Net-(D1-Pad2)")) + (model ${KISYS3DMOD}/LEDs.3dshapes/LED_D5.0mm.wrl + (at (xyz 0 0 0)) + (scale (xyz 0.393701 0.393701 0.393701)) + (rotate (xyz 0 0 0)) + ) + ) + + (module LEDs:LED_D5.0mm (layer F.Cu) (tedit 5C91CE69) (tstamp 5C91D0A8) + (at 138.9 101.3 90) + (descr "LED, diameter 5.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LL-504BC2E-009.pdf") + (tags "LED diameter 5.0mm 2 pins") + (path /5C2C2999) + (fp_text reference D1 (at 5.125 -2.15 180) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value LEFT (at -2.332 0 180) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user %R (at 1.25 0 90) (layer F.Fab) + (effects (font (size 0.8 0.8) (thickness 0.2))) + ) + (fp_line (start 4.5 -3.25) (end -1.95 -3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start 4.5 3.25) (end 4.5 -3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.95 3.25) (end 4.5 3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.95 -3.25) (end -1.95 3.25) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.29 -1.545) (end -1.29 1.545) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.23 -1.469694) (end -1.23 1.469694) (layer F.Fab) (width 0.1)) + (fp_circle (center 1.27 0) (end 3.77 0) (layer F.SilkS) (width 0.12)) + (fp_circle (center 1.27 0) (end 3.77 0) (layer F.Fab) (width 0.1)) + (fp_arc (start 1.27 0) (end -1.29 1.54483) (angle -148.9) (layer F.SilkS) (width 0.12)) + (fp_arc (start 1.27 0) (end -1.29 -1.54483) (angle 148.9) (layer F.SilkS) (width 0.12)) + (fp_arc (start 1.27 0) (end -1.23 -1.469694) (angle 299.1) (layer F.Fab) (width 0.1)) + (pad 2 thru_hole circle (at 2.54 0 90) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) + (net 1 "Net-(D1-Pad2)")) + (pad 1 thru_hole rect (at 0 0 90) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) + (net 2 "Net-(D1-Pad1)")) + (model ${KISYS3DMOD}/LEDs.3dshapes/LED_D5.0mm.wrl + (at (xyz 0 0 0)) + (scale (xyz 0.393701 0.393701 0.393701)) + (rotate (xyz 0 0 0)) + ) + ) + + (module Socket_Strips:Socket_Strip_Straight_1x06_Pitch2.54mm (layer F.Cu) (tedit 5C91CEBF) (tstamp 5C2CAD23) + (at 140.716 105.664 90) + (descr "Through hole straight socket strip, 1x06, 2.54mm pitch, single row") + (tags "Through hole socket strip THT 1x06 2.54mm single row") + (path /5C2C6811) + (fp_text reference J1 (at 0 15.494 180) (layer F.SilkS) hide + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value Conn_01x06_Male (at -4.064 6.096 180) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user %R (at 0 -2.33 90) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start 1.8 -1.8) (end -1.8 -1.8) (layer F.CrtYd) (width 0.05)) + (fp_line (start 1.8 14.5) (end 1.8 -1.8) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.8 14.5) (end 1.8 14.5) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.8 -1.8) (end -1.8 14.5) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.33 -1.33) (end 0 -1.33) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.33 0) (end -1.33 -1.33) (layer F.SilkS) (width 0.12)) + (fp_line (start 1.33 1.27) (end -1.33 1.27) (layer F.SilkS) (width 0.12)) + (fp_line (start 1.33 14.03) (end 1.33 1.27) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.33 14.03) (end 1.33 14.03) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.33 1.27) (end -1.33 14.03) (layer F.SilkS) (width 0.12)) + (fp_line (start 1.27 -1.27) (end -1.27 -1.27) (layer F.Fab) (width 0.1)) + (fp_line (start 1.27 13.97) (end 1.27 -1.27) (layer F.Fab) (width 0.1)) + (fp_line (start -1.27 13.97) (end 1.27 13.97) (layer F.Fab) (width 0.1)) + (fp_line (start -1.27 -1.27) (end -1.27 13.97) (layer F.Fab) (width 0.1)) + (pad 6 thru_hole oval (at 0 12.7 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) + (net 4 "Net-(D3-Pad1)")) + (pad 5 thru_hole oval (at 0 10.16 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) + (net 6 "Net-(D5-Pad1)")) + (pad 4 thru_hole oval (at 0 7.62 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) + (net 5 "Net-(D4-Pad1)")) + (pad 3 thru_hole oval (at 0 5.08 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) + (net 3 "Net-(D2-Pad1)")) + (pad 2 thru_hole oval (at 0 2.54 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) + (net 2 "Net-(D1-Pad1)")) + (pad 1 thru_hole rect (at 0 0 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) + (net 9 "Net-(J1-Pad1)")) + (model ${KISYS3DMOD}/Socket_Strips.3dshapes/Socket_Strip_Straight_1x06_Pitch2.54mm.wrl + (offset (xyz 0 -6.349999904632568 0)) + (scale (xyz 1 1 1)) + (rotate (xyz 0 0 270)) + ) + ) + + (module Resistors_SMD:R_0603_HandSoldering (layer B.Cu) (tedit 58E0A804) (tstamp 5C2CA939) + (at 141.7 89.5 225) + (descr "Resistor SMD 0603, hand soldering") + (tags "resistor 0603") + (path /5C2C3B8D) + (attr smd) + (fp_text reference R1 (at -2.828427 0 225) (layer B.SilkS) + (effects (font (size 1 1) (thickness 0.15)) (justify mirror)) + ) + (fp_text value R (at 0 -1.550001 225) (layer B.Fab) + (effects (font (size 1 1) (thickness 0.15)) (justify mirror)) + ) + (fp_line (start 1.95 -0.7) (end -1.96 -0.7) (layer B.CrtYd) (width 0.05)) + (fp_line (start 1.95 -0.7) (end 1.95 0.7) (layer B.CrtYd) (width 0.05)) + (fp_line (start -1.96 0.7) (end -1.96 -0.7) (layer B.CrtYd) (width 0.05)) + (fp_line (start -1.96 0.7) (end 1.95 0.7) (layer B.CrtYd) (width 0.05)) + (fp_line (start -0.5 0.68) (end 0.5 0.68) (layer B.SilkS) (width 0.12)) + (fp_line (start 0.5 -0.68) (end -0.5 -0.68) (layer B.SilkS) (width 0.12)) + (fp_line (start -0.8 0.4) (end 0.8 0.4) (layer B.Fab) (width 0.1)) + (fp_line (start 0.8 0.4) (end 0.8 -0.4) (layer B.Fab) (width 0.1)) + (fp_line (start 0.8 -0.4) (end -0.8 -0.4) (layer B.Fab) (width 0.1)) + (fp_line (start -0.8 -0.4) (end -0.8 0.4) (layer B.Fab) (width 0.1)) + (fp_text user %R (at 0 0 225) (layer B.Fab) + (effects (font (size 0.4 0.4) (thickness 0.075)) (justify mirror)) + ) + (pad 2 smd rect (at 1.099999 0 225) (size 1.2 0.9) (layers B.Cu B.Paste B.Mask) + (net 8 "Net-(J2-Pad2)")) + (pad 1 smd rect (at -1.099999 0 225) (size 1.2 0.9) (layers B.Cu B.Paste B.Mask) + (net 1 "Net-(D1-Pad2)")) + (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0603.wrl + (at (xyz 0 0 0)) + (scale (xyz 1 1 1)) + (rotate (xyz 0 0 0)) + ) + ) + + (gr_text +5V (at 139.7 94.742 270) (layer F.SilkS) (tstamp 5C4701EB) + (effects (font (size 0.8 0.8) (thickness 0.1))) + ) + (gr_text GND (at 153.67 90.17 135) (layer F.SilkS) (tstamp 5C91D1F5) + (effects (font (size 0.8 0.8) (thickness 0.1))) + ) + (gr_text +5V (at 151.892 88.392 135) (layer F.SilkS) + (effects (font (size 0.8 0.8) (thickness 0.1))) + ) + (dimension 12.446 (width 0.3) (layer Margin) + (gr_text "12.446 mm" (at 146.939 76.132) (layer Margin) + (effects (font (size 1.5 1.5) (thickness 0.3))) + ) + (feature1 (pts (xy 153.162 83.312) (xy 153.162 77.645579))) + (feature2 (pts (xy 140.716 83.312) (xy 140.716 77.645579))) + (crossbar (pts (xy 140.716 78.232) (xy 153.162 78.232))) + (arrow1a (pts (xy 153.162 78.232) (xy 152.035496 78.818421))) + (arrow1b (pts (xy 153.162 78.232) (xy 152.035496 77.645579))) + (arrow2a (pts (xy 140.716 78.232) (xy 141.842504 78.818421))) + (arrow2b (pts (xy 140.716 78.232) (xy 141.842504 77.645579))) + ) + (dimension 19.812 (width 0.3) (layer Margin) + (gr_text "19.812 mm" (at 124.392 98.806 270) (layer Margin) + (effects (font (size 1.5 1.5) (thickness 0.3))) + ) + (feature1 (pts (xy 135.382 108.712) (xy 125.905579 108.712))) + (feature2 (pts (xy 135.382 88.9) (xy 125.905579 88.9))) + (crossbar (pts (xy 126.492 88.9) (xy 126.492 108.712))) + (arrow1a (pts (xy 126.492 108.712) (xy 125.905579 107.585496))) + (arrow1b (pts (xy 126.492 108.712) (xy 127.078421 107.585496))) + (arrow2a (pts (xy 126.492 88.9) (xy 125.905579 90.026504))) + (arrow2b (pts (xy 126.492 88.9) (xy 127.078421 90.026504))) + ) + (dimension 7.725108 (width 0.3) (layer Margin) + (gr_text "7.725 mm" (at 133.080496 81.363338 46.33221985) (layer Margin) + (effects (font (size 1.5 1.5) (thickness 0.3))) + ) + (feature1 (pts (xy 140.716 83.312) (xy 136.842352 79.614427))) + (feature2 (pts (xy 135.382 88.9) (xy 131.508352 85.202427))) + (crossbar (pts (xy 131.932543 85.607337) (xy 137.266543 80.019337))) + (arrow1a (pts (xy 137.266543 80.019337) (xy 136.91291 81.239109))) + (arrow1b (pts (xy 137.266543 80.019337) (xy 136.064529 80.42929))) + (arrow2a (pts (xy 131.932543 85.607337) (xy 133.134557 85.197384))) + (arrow2b (pts (xy 131.932543 85.607337) (xy 132.286176 84.387565))) + ) + (dimension 23.114 (width 0.3) (layer Margin) + (gr_text "23.114 mm" (at 146.939 119.194) (layer Margin) + (effects (font (size 1.5 1.5) (thickness 0.3))) + ) + (feature1 (pts (xy 158.496 108.712) (xy 158.496 117.680421))) + (feature2 (pts (xy 135.382 108.712) (xy 135.382 117.680421))) + (crossbar (pts (xy 135.382 117.094) (xy 158.496 117.094))) + (arrow1a (pts (xy 158.496 117.094) (xy 157.369496 117.680421))) + (arrow1b (pts (xy 158.496 117.094) (xy 157.369496 116.507579))) + (arrow2a (pts (xy 135.382 117.094) (xy 136.508504 117.680421))) + (arrow2b (pts (xy 135.382 117.094) (xy 136.508504 116.507579))) + ) + (dimension 25.4 (width 0.3) (layer Margin) + (gr_text "25.400 mm" (at 172.28 96.012 270) (layer Margin) + (effects (font (size 1.5 1.5) (thickness 0.3))) + ) + (feature1 (pts (xy 153.162 108.712) (xy 170.766421 108.712))) + (feature2 (pts (xy 153.162 83.312) (xy 170.766421 83.312))) + (crossbar (pts (xy 170.18 83.312) (xy 170.18 108.712))) + (arrow1a (pts (xy 170.18 108.712) (xy 169.593579 107.585496))) + (arrow1b (pts (xy 170.18 108.712) (xy 170.766421 107.585496))) + (arrow2a (pts (xy 170.18 83.312) (xy 169.593579 84.438504))) + (arrow2b (pts (xy 170.18 83.312) (xy 170.766421 84.438504))) + ) + (gr_text "trafficLight\n FOSSEE" (at 141.25 90.1 45) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.2))) + ) + (gr_text "openPLC\n\n" (at 140.275 89 45) (layer F.SilkS) (tstamp 5C4715E0) + (effects (font (size 1.5 1.5) (thickness 0.3))) + ) + (gr_text Re (at 148.375 108.075) (layer F.SilkS) + (effects (font (size 0.8 0.8) (thickness 0.15))) + ) + (gr_text S (at 150.875 108.075) (layer F.SilkS) + (effects (font (size 0.8 0.8) (thickness 0.15))) + ) + (gr_text Ri (at 153.4 108.05) (layer F.SilkS) + (effects (font (size 0.8 0.8) (thickness 0.15))) + ) + (gr_text G (at 145.775 108.075) (layer F.SilkS) + (effects (font (size 0.8 0.8) (thickness 0.15))) + ) + (gr_text L (at 143.2 108.075) (layer F.SilkS) + (effects (font (size 0.8 0.8) (thickness 0.15))) + ) + (gr_text EN (at 140.7 108.075) (layer F.SilkS) (tstamp 5C471301) + (effects (font (size 0.8 0.8) (thickness 0.15))) + ) + (gr_line (start 158.496 88.392) (end 158.496 108.712) (layer Edge.Cuts) (width 0.15)) + (gr_line (start 153.162 83.312) (end 158.496 88.392) (layer Edge.Cuts) (width 0.15) (tstamp 5C2B6D24)) + (gr_line (start 140.716 83.312) (end 153.162 83.312) (layer Edge.Cuts) (width 0.15) (tstamp 5C2B6D1C)) + (gr_line (start 135.382 88.9) (end 140.716 83.312) (layer Edge.Cuts) (width 0.15) (tstamp 5C2B6956)) + (gr_line (start 135.382 108.712) (end 135.382 88.9) (layer Edge.Cuts) (width 0.15)) + (gr_line (start 158.496 108.712) (end 135.382 108.712) (layer Edge.Cuts) (width 0.15)) + + (segment (start 147.32 86.106) (end 145.288 88.138) (width 0.25) (layer B.Cu) (net 1) (status 10)) + (segment (start 145.288 90.424) (end 147.32 92.456) (width 0.25) (layer B.Cu) (net 1) (status 20)) + (segment (start 147.32 92.456) (end 146.047208 92.456) (width 0.25) (layer B.Cu) (net 1) (status 10)) + (segment (start 146.047208 92.456) (end 145.288 93.215208) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 145.796 98.554792) (end 145.796 98.552) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 146.047208 98.806) (end 145.796 98.554792) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 147.32 98.806) (end 146.047208 98.806) (width 0.25) (layer B.Cu) (net 1) (status 10)) + (segment (start 145.288 98.044) (end 145.796 98.552) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 145.288 93.215208) (end 145.288 95.504) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 145.288 95.504) (end 145.288 98.044) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 145.288 88.9) (end 145.288 90.424) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 139.799999 97.860001) (end 139.799999 97.300001) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 138.9 98.76) (end 139.799999 97.860001) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 141.596 95.504) (end 145.288 95.504) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 139.799999 97.300001) (end 141.596 95.504) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 148.219999 87.005999) (end 150.251999 87.005999) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 147.32 86.106) (end 148.219999 87.005999) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 150.251999 87.005999) (end 151.892 88.646) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 153.0869 88.646) (end 155.1189 86.614) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 151.892 88.646) (end 153.0869 88.646) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 155.1189 86.614) (end 155.702 86.614) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 155.702 86.614) (end 157.734 88.646) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 157.734 88.646) (end 157.734 90.932) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 154.9 93.766) (end 154.9 94.488) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 157.734 90.932) (end 154.9 93.766) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 154.9 94.488) (end 154.9 98.86) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 145.265817 88.722183) (end 145.288 88.7) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 142.477817 88.722183) (end 145.265817 88.722183) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 145.288 88.138) (end 145.288 88.7) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 145.288 88.7) (end 145.288 88.9) (width 0.25) (layer B.Cu) (net 1)) + (segment (start 143.256 104.506) (end 143.256 105.664) (width 0.25) (layer B.Cu) (net 2)) + (segment (start 140.05 101.3) (end 143.256 104.506) (width 0.25) (layer B.Cu) (net 2)) + (segment (start 138.9 101.3) (end 140.05 101.3) (width 0.25) (layer B.Cu) (net 2)) + (segment (start 145.796 101.72) (end 145.796 104.461919) (width 0.25) (layer B.Cu) (net 3)) + (segment (start 146.17 101.346) (end 145.796 101.72) (width 0.25) (layer B.Cu) (net 3)) + (segment (start 147.32 101.346) (end 146.17 101.346) (width 0.25) (layer B.Cu) (net 3) (status 10)) + (segment (start 145.796 104.461919) (end 145.796 105.664) (width 0.25) (layer B.Cu) (net 3) (status 20)) + (segment (start 154.9 104.18) (end 153.416 105.664) (width 0.25) (layer B.Cu) (net 4)) + (segment (start 154.9 101.4) (end 154.9 104.18) (width 0.25) (layer B.Cu) (net 4)) + (segment (start 148.47 94.996) (end 150.368 96.894) (width 0.25) (layer B.Cu) (net 5)) + (segment (start 147.32 94.996) (end 148.47 94.996) (width 0.25) (layer B.Cu) (net 5) (status 10)) + (segment (start 150.368 96.894) (end 150.368 101.6) (width 0.25) (layer B.Cu) (net 5)) + (segment (start 150.368 101.6) (end 148.336 103.632) (width 0.25) (layer B.Cu) (net 5)) + (segment (start 148.336 103.632) (end 148.336 105.664) (width 0.25) (layer B.Cu) (net 5) (status 20)) + (segment (start 150.114 88.646) (end 147.32 88.646) (width 0.25) (layer B.Cu) (net 6) (status 20)) + (segment (start 151.725999 90.257999) (end 150.114 88.646) (width 0.25) (layer B.Cu) (net 6)) + (segment (start 151.725999 104.814001) (end 151.725999 90.257999) (width 0.25) (layer B.Cu) (net 6) (tstamp 5C3D1888) (status 10)) + (segment (start 150.876 105.664) (end 151.725999 104.814001) (width 0.25) (layer B.Cu) (net 6) (status 30)) + (segment (start 153.328001 90.257999) (end 155.194 88.392) (width 0.25) (layer B.Cu) (net 6)) + (segment (start 151.725999 90.257999) (end 153.328001 90.257999) (width 0.25) (layer B.Cu) (net 6)) + (segment (start 137.3 93.5) (end 137.3 94.6) (width 0.25) (layer B.Cu) (net 7)) + (segment (start 138.45 92.35) (end 137.3 93.5) (width 0.25) (layer B.Cu) (net 7)) + (segment (start 142 92.35) (end 138.45 92.35) (width 0.25) (layer B.Cu) (net 7)) + (segment (start 144.018 84.328) (end 151.13 84.328) (width 0.25) (layer B.Cu) (net 8)) + (segment (start 151.13 84.328) (end 153.397949 86.595949) (width 0.25) (layer B.Cu) (net 8)) + (segment (start 140.922183 87.423817) (end 142.7 85.646) (width 0.25) (layer B.Cu) (net 8)) + (segment (start 140.922183 90.277817) (end 140.922183 87.423817) (width 0.25) (layer B.Cu) (net 8)) + (segment (start 142.7 85.646) (end 144.018 84.328) (width 0.25) (layer B.Cu) (net 8)) + (segment (start 141.311091 90.666725) (end 140.922183 90.277817) (width 0.25) (layer B.Cu) (net 8)) + (segment (start 142.016725 90.666725) (end 141.311091 90.666725) (width 0.25) (layer B.Cu) (net 8)) + (segment (start 144 92.65) (end 142.016725 90.666725) (width 0.25) (layer B.Cu) (net 8)) + (segment (start 144 93.3) (end 144 92.65) (width 0.25) (layer B.Cu) (net 8)) + (segment (start 139.616 105.664) (end 140.716 105.664) (width 0.25) (layer B.Cu) (net 9)) + (segment (start 136.774 102.822) (end 139.616 105.664) (width 0.25) (layer B.Cu) (net 9)) + (segment (start 136.774 98.776) (end 136.774 102.822) (width 0.25) (layer B.Cu) (net 9)) + (segment (start 136.774 97.826) (end 136.774 98.6) (width 0.25) (layer B.Cu) (net 9)) + (segment (start 139 95.6) (end 136.774 97.826) (width 0.25) (layer B.Cu) (net 9)) + (segment (start 139.7 95.6) (end 139 95.6) (width 0.25) (layer B.Cu) (net 9)) + (segment (start 136.774 98.776) (end 136.774 98.6) (width 0.25) (layer B.Cu) (net 9)) + (segment (start 136.774 98.6) (end 136.774 98.226) (width 0.25) (layer B.Cu) (net 9)) + (segment (start 139.7 93.4) (end 140.4 93.4) (width 0.25) (layer B.Cu) (net 10)) + (segment (start 141.25 94.25) (end 142 94.25) (width 0.25) (layer B.Cu) (net 10)) + (segment (start 140.4 93.4) (end 141.25 94.25) (width 0.25) (layer B.Cu) (net 10)) + +) diff --git a/OpenPLC_modules/openplc_modules/traffic/traffic.pro b/OpenPLC_modules/openplc_modules/traffic/traffic.pro new file mode 100644 index 0000000..152769c --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/traffic.pro @@ -0,0 +1,33 @@ +update=22/05/2015 07:44:53 +version=1 +last_client=kicad +[general] +version=1 +RootSch= +BoardNm= +[pcbnew] +version=1 +LastNetListRead= +UseCmpFile=1 +PadDrill=0.600000000000 +PadDrillOvalY=0.600000000000 +PadSizeH=1.500000000000 +PadSizeV=1.500000000000 +PcbTextSizeV=1.500000000000 +PcbTextSizeH=1.500000000000 +PcbTextThickness=0.300000000000 +ModuleTextSizeV=1.000000000000 +ModuleTextSizeH=1.000000000000 +ModuleTextSizeThickness=0.150000000000 +SolderMaskClearance=0.000000000000 +SolderMaskMinWidth=0.000000000000 +DrawSegmentWidth=0.200000000000 +BoardOutlineThickness=0.100000000000 +ModuleOutlineThickness=0.150000000000 +[cvpcb] +version=1 +NetIExt=net +[eeschema] +version=1 +LibDir= +[eeschema/libraries] diff --git a/OpenPLC_modules/openplc_modules/traffic/traffic.sch b/OpenPLC_modules/openplc_modules/traffic/traffic.sch new file mode 100644 index 0000000..828960d --- /dev/null +++ b/OpenPLC_modules/openplc_modules/traffic/traffic.sch @@ -0,0 +1,224 @@ +EESchema Schematic File Version 4 +LIBS:traffic-cache +EELAYER 26 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L Device:LED D1 +U 1 1 5C2C2999 +P 5200 4100 +F 0 "D1" H 5191 4316 50 0000 C CNN +F 1 "left" H 5191 4225 50 0000 C CNN +F 2 "LEDs:LED_D5.0mm" H 5200 4100 50 0001 C CNN +F 3 "~" H 5200 4100 50 0001 C CNN + 1 5200 4100 + -1 0 0 -1 +$EndComp +$Comp +L Device:LED D5 +U 1 1 5C2C2A10 +P 5200 3050 +F 0 "D5" H 5191 3266 50 0000 C CNN +F 1 "STOP" H 5191 3175 50 0000 C CNN +F 2 "LEDs:LED_D5.0mm" H 5200 3050 50 0001 C CNN +F 3 "~" H 5200 3050 50 0001 C CNN + 1 5200 3050 + -1 0 0 -1 +$EndComp +$Comp +L Device:LED D2 +U 1 1 5C2C2A3E +P 5200 3750 +F 0 "D2" H 5191 3966 50 0000 C CNN +F 1 "GO" H 5191 3875 50 0000 C CNN +F 2 "LEDs:LED_D5.0mm" H 5200 3750 50 0001 C CNN +F 3 "~" H 5200 3750 50 0001 C CNN + 1 5200 3750 + -1 0 0 -1 +$EndComp +$Comp +L Device:LED D4 +U 1 1 5C2C2A6F +P 5200 3400 +F 0 "D4" H 5191 3616 50 0000 C CNN +F 1 "ready" H 5191 3525 50 0000 C CNN +F 2 "LEDs:LED_D5.0mm" H 5200 3400 50 0001 C CNN +F 3 "~" H 5200 3400 50 0001 C CNN + 1 5200 3400 + -1 0 0 -1 +$EndComp +$Comp +L Device:LED D3 +U 1 1 5C2C2AD6 +P 5200 2700 +F 0 "D3" H 5191 2916 50 0000 C CNN +F 1 "right" H 5191 2825 50 0000 C CNN +F 2 "LEDs:LED_D5.0mm" H 5200 2700 50 0001 C CNN +F 3 "~" H 5200 2700 50 0001 C CNN + 1 5200 2700 + -1 0 0 -1 +$EndComp +Wire Wire Line + 5050 2700 5050 3050 +Connection ~ 5050 3050 +Wire Wire Line + 5050 3050 5050 3400 +Connection ~ 5050 3400 +Wire Wire Line + 5050 3400 5050 3750 +Connection ~ 5050 3750 +Wire Wire Line + 5350 2700 6250 2700 +Wire Wire Line + 6250 2700 6250 3200 +Wire Wire Line + 6250 3200 6550 3200 +Wire Wire Line + 5350 3050 5450 3050 +Wire Wire Line + 6050 3050 6050 3300 +Wire Wire Line + 6050 3300 6550 3300 +Wire Wire Line + 5350 3400 6550 3400 +Wire Wire Line + 6550 3500 6050 3500 +Wire Wire Line + 6050 3500 6050 3750 +Wire Wire Line + 6050 3750 5350 3750 +Wire Wire Line + 5350 4100 6250 4100 +Wire Wire Line + 6250 4100 6250 3600 +Wire Wire Line + 6250 3600 6550 3600 +$Comp +L Device:R R1 +U 1 1 5C2C3B8D +P 5050 4600 +F 0 "R1" H 5120 4646 50 0000 L CNN +F 1 "R" H 5120 4555 50 0000 L CNN +F 2 "Resistors_SMD:R_0603_HandSoldering" V 4980 4600 50 0001 C CNN +F 3 "~" H 5050 4600 50 0001 C CNN + 1 5050 4600 + 1 0 0 -1 +$EndComp +Connection ~ 5050 4100 +Wire Wire Line + 5050 4100 5050 4450 +Wire Wire Line + 5050 3750 5050 4100 +$Comp +L power:+5C #PWR0101 +U 1 1 5C32F085 +P 4600 5500 +F 0 "#PWR0101" H 4600 5350 50 0001 C CNN +F 1 "+5C" H 4615 5673 50 0000 C CNN +F 2 "" H 4600 5500 50 0001 C CNN +F 3 "" H 4600 5500 50 0001 C CNN + 1 4600 5500 + 1 0 0 -1 +$EndComp +$Comp +L Connector:Conn_01x02_Male J2 +U 1 1 5C3CB942 +P 4200 3950 +F 0 "J2" H 4306 4128 50 0000 C CNN +F 1 "Conn_01x02_Male" H 4306 4037 50 0000 C CNN +F 2 "Socket_Strips:Socket_Strip_Straight_1x02_Pitch2.54mm" H 4200 3950 50 0001 C CNN +F 3 "~" H 4200 3950 50 0001 C CNN + 1 4200 3950 + 1 0 0 -1 +$EndComp +Wire Wire Line + 4400 4050 4750 4050 +Wire Wire Line + 4400 3950 4750 3950 +Wire Wire Line + 4750 2900 5450 2900 +Wire Wire Line + 5450 2900 5450 3050 +Wire Wire Line + 4750 2900 4750 3950 +Connection ~ 5450 3050 +Wire Wire Line + 5450 3050 6050 3050 +Wire Wire Line + 5050 4750 5050 4900 +Wire Wire Line + 5050 5500 5050 5350 +Wire Wire Line + 4750 4050 4750 4900 +Wire Wire Line + 4750 4900 5050 4900 +Connection ~ 5050 4900 +Wire Wire Line + 5050 4900 5050 4950 +Wire Wire Line + 4600 5500 5050 5500 +$Comp +L Transistor_BJT:MMBT3906 Q1 +U 1 1 5C485559 +P 5150 5150 +F 0 "Q1" H 5340 5196 50 0000 L CNN +F 1 "MMBT3906" H 5340 5105 50 0000 L CNN +F 2 "TO_SOT_Packages_SMD:SOT-23" H 5350 5075 50 0001 L CIN +F 3 "https://www.fairchildsemi.com/datasheets/2N/2N3906.pdf" H 5150 5150 50 0001 L CNN + 1 5150 5150 + -1 0 0 -1 +$EndComp +$Comp +L Connector:Conn_01x06_Male J1 +U 1 1 5C2C6811 +P 6750 3500 +F 0 "J1" H 6723 3380 50 0000 R CNN +F 1 "Conn_01x06_Male" H 6723 3471 50 0000 R CNN +F 2 "Socket_Strips:Socket_Strip_Straight_1x06_Pitch2.54mm" H 6750 3500 50 0001 C CNN +F 3 "~" H 6750 3500 50 0001 C CNN + 1 6750 3500 + -1 0 0 1 +$EndComp +$Comp +L Connector:Conn_01x01_Male J3 +U 1 1 5C485FD5 +P 5250 5500 +F 0 "J3" H 5223 5430 50 0000 R CNN +F 1 "Conn_01x01_Male" H 5223 5521 50 0000 R CNN +F 2 "Socket_Strips:Socket_Strip_Straight_1x01_Pitch2.54mm" H 5250 5500 50 0001 C CNN +F 3 "~" H 5250 5500 50 0001 C CNN + 1 5250 5500 + -1 0 0 1 +$EndComp +Connection ~ 5050 5500 +Wire Wire Line + 6550 3700 6400 3700 +Wire Wire Line + 6400 3700 6400 5150 +Wire Wire Line + 6400 5150 5950 5150 +Wire Wire Line + 5350 5150 5650 5150 +$Comp +L Device:R R2 +U 1 1 5C48B1E4 +P 5800 5150 +F 0 "R2" V 6007 5150 50 0000 C CNN +F 1 "R" V 5916 5150 50 0000 C CNN +F 2 "Resistors_SMD:R_0603_HandSoldering" V 5730 5150 50 0001 C CNN +F 3 "~" H 5800 5150 50 0001 C CNN + 1 5800 5150 + 0 -1 -1 0 +$EndComp +$EndSCHEMATC |