Compare commits
No commits in common. "e7f4a4ec578ef09a3b8441ec58945b700c0acaf7" and "5ccfe3753d4fb2723060f4b1ae8d427451000b01" have entirely different histories.
e7f4a4ec57
...
5ccfe3753d
6
.github/codeql/codeql-config.yml
vendored
|
@ -1,6 +0,0 @@
|
|||
name: "CodeQL config"
|
||||
|
||||
paths-ignore:
|
||||
- modules/switching-module/Hardware/Circuit/bom
|
||||
- modules/control/Hardware/Circuit/bom
|
||||
- modules/console/Hardware/Circuit/bom
|
6
.github/workflows/Electron.yml
vendored
|
@ -8,7 +8,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-2019
|
||||
runs-on: windows-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -23,6 +23,6 @@ jobs:
|
|||
- name: Fix node-gyp
|
||||
run: npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe"
|
||||
- name: Install dependencies
|
||||
run: cd ./modules/dashboard && yarn --network-timeout 1000000000
|
||||
run: cd Dashboard && yarn --network-timeout 1000000000
|
||||
- name: Build
|
||||
run: cd ./modules/dashboard && yarn build
|
||||
run: cd Dashboard && yarn build
|
||||
|
|
4
.github/workflows/PlatformIO.yml
vendored
|
@ -31,6 +31,6 @@ jobs:
|
|||
python -m pip install --upgrade pip
|
||||
pip install --upgrade platformio
|
||||
- name: Build console
|
||||
run: pio run --project-dir "./modules/console/Firmware"
|
||||
run: pio run --project-dir "./Devices/Console/Firmware"
|
||||
- name: Build control
|
||||
run: pio run -e CI_Build --project-dir "./modules/control/Firmware"
|
||||
run: pio run --project-dir "./Devices/Control/Firmware"
|
||||
|
|
55
.github/workflows/codeql-analysis.yml
vendored
|
@ -13,12 +13,12 @@ name: "CodeQL"
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [master]
|
||||
branches: [ master ]
|
||||
schedule:
|
||||
- cron: "42 21 * * 5"
|
||||
- cron: '42 21 * * 5'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
|
@ -32,37 +32,36 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: ["cpp", "javascript", "python"]
|
||||
language: [ 'cpp', 'javascript', 'python' ]
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||
# Learn more:
|
||||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
config-file: ./.github/codeql/codeql-config.yml
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
- if: matrix.language == 'javascript' || matrix.language == 'python'
|
||||
name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
- if: matrix.language == 'javascript' || matrix.language == 'python'
|
||||
name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
|
||||
- if: matrix.language == 'cpp'
|
||||
name: PlatformIO build
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install --upgrade platformio
|
||||
pio run --project-dir "./modules/console/Firmware"
|
||||
pio run -e CI_Build --project-dir "./modules/control/Firmware"
|
||||
- if: matrix.language == 'cpp'
|
||||
name: PlatformIO build
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install --upgrade platformio
|
||||
pio run --project-dir "./Devices/Console/Firmware"
|
||||
pio run --project-dir "./Devices/Control/Firmware"
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn --cwd ./modules/dashboard run lint
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn --cwd ./Dashboard run lint
|
|
@ -1,50 +1,50 @@
|
|||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
.eslintcache
|
||||
|
||||
# Dependency directory
|
||||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
|
||||
node_modules
|
||||
|
||||
# OSX
|
||||
.DS_Store
|
||||
|
||||
# App packaged
|
||||
release
|
||||
build
|
||||
dist
|
||||
dll
|
||||
main.js
|
||||
main.js.map
|
||||
|
||||
.idea
|
||||
npm-debug.log.*
|
||||
__snapshots__
|
||||
|
||||
# Package.json
|
||||
package.json
|
||||
.travis.yml
|
||||
*.css.d.ts
|
||||
*.sass.d.ts
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
.eslintcache
|
||||
|
||||
# Dependency directory
|
||||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
|
||||
node_modules
|
||||
|
||||
# OSX
|
||||
.DS_Store
|
||||
|
||||
# App packaged
|
||||
release
|
||||
build
|
||||
dist
|
||||
dll
|
||||
main.js
|
||||
main.js.map
|
||||
|
||||
.idea
|
||||
npm-debug.log.*
|
||||
__snapshots__
|
||||
|
||||
# Package.json
|
||||
package.json
|
||||
.travis.yml
|
||||
*.css.d.ts
|
||||
*.sass.d.ts
|
||||
*.scss.d.ts
|
|
@ -1,40 +1,40 @@
|
|||
# dependencies
|
||||
/node_modules
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
.env
|
||||
npm-debug.log
|
||||
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
.eslintcache
|
||||
|
||||
# OSX
|
||||
.DS_Store
|
||||
|
||||
# App packaged
|
||||
release
|
||||
dist
|
||||
# dependencies
|
||||
/node_modules
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
.env
|
||||
npm-debug.log
|
||||
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
.eslintcache
|
||||
|
||||
# OSX
|
||||
.DS_Store
|
||||
|
||||
# App packaged
|
||||
release
|
||||
dist
|
||||
dll
|
BIN
Dashboard/assets/icons/mac/icon.icns
Normal file
BIN
Dashboard/assets/icons/png/1024x1024.png
Normal file
After Width: | Height: | Size: 106 KiB |
BIN
Dashboard/assets/icons/png/128x128.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
Dashboard/assets/icons/png/16x16.png
Normal file
After Width: | Height: | Size: 634 B |
BIN
Dashboard/assets/icons/png/24x24.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
Dashboard/assets/icons/png/256x256.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
Dashboard/assets/icons/png/32x32.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
Dashboard/assets/icons/png/48x48.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
Dashboard/assets/icons/png/512x512.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
Dashboard/assets/icons/png/64x64.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 353 KiB After Width: | Height: | Size: 353 KiB |
38
Dashboard/assets/knob/Knob.svg
Normal file
|
@ -0,0 +1,38 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 141.73 141.73">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #545353;
|
||||
}
|
||||
|
||||
.cls-2 {
|
||||
font-size: 20px;
|
||||
fill: #fff;
|
||||
font-family: SegoeUI-Bold, Segoe UI;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.cls-3 {
|
||||
fill: #2f6087;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<title>Knob</title>
|
||||
<g id="Base">
|
||||
<path class="cls-1" d="M352.12,273A70.87,70.87,0,1,0,423,343.84,70.86,70.86,0,0,0,352.12,273Zm0,120.48a49.61,49.61,0,1,1,49.61-49.61A49.61,49.61,0,0,1,352.12,393.45Z" transform="translate(-281.26 -272.97)"/>
|
||||
</g>
|
||||
<g id="Status">
|
||||
<text class="cls-2" transform="translate(53.61 77.41)">255</text>
|
||||
</g>
|
||||
<g id="Overlay">
|
||||
<g>
|
||||
<path class="cls-3" d="M363.54,295.57" transform="translate(-281.26 -272.97)"/>
|
||||
<path class="cls-3" d="M363.54,295.57a49.44,49.44,0,0,0-11.42-1.34" transform="translate(-281.26 -272.97)"/>
|
||||
<path class="cls-3" d="M352.12,294.23" transform="translate(-281.26 -272.97)"/>
|
||||
<path class="cls-3" d="M368.76,275l-.33-.1v0Z" transform="translate(-281.26 -272.97)"/>
|
||||
<polygon class="cls-3" points="87.18 1.89 87.18 1.89 87.17 1.91 87.17 1.91 87.18 1.89"/>
|
||||
<polygon class="cls-3" points="82.28 22.58 87.17 1.91 87.17 1.91 82.28 22.58 82.28 22.58"/>
|
||||
<path class="cls-3" d="M368.76,275l-.33-.08A71.24,71.24,0,0,0,352.12,273a10.71,10.71,0,0,0-10.53,10.73,10.53,10.53,0,0,0,10.53,10.53,49.44,49.44,0,0,1,11.42,1.34v0a10.33,10.33,0,0,0,12.56-7.68A10.79,10.79,0,0,0,368.76,275Z" transform="translate(-281.26 -272.97)"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.6 KiB |
BIN
Dashboard/assets/tray.ico
Normal file
After Width: | Height: | Size: 31 KiB |
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"presets": ["@babel/env", "@babel/react", "@babel/preset-typescript"],
|
||||
"plugins": ["@babel/plugin-proposal-class-properties"]
|
||||
}
|
||||
{
|
||||
"presets": ["@babel/env", "@babel/react", "@babel/preset-typescript"],
|
||||
"plugins": ["@babel/plugin-proposal-class-properties"]
|
||||
}
|
3
Dashboard/scripts/installer.nsh
Normal file
|
@ -0,0 +1,3 @@
|
|||
!macro customInstall
|
||||
CreateShortcut "$SMSTARTUP\Light Control.lnk" "$INSTDIR\Light Control.exe"
|
||||
!macroend
|
67
Dashboard/src/Components/KnobSection.tsx
Normal file
|
@ -0,0 +1,67 @@
|
|||
import React, { useEffect, useState } from "react";
|
||||
import { useSelector } from "react-redux";
|
||||
import styled from "styled-components";
|
||||
import { RootState } from "typesafe-actions";
|
||||
import Knob from "./Knob";
|
||||
|
||||
const KnobContainer = styled.div`
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 1rem;
|
||||
`;
|
||||
|
||||
const KnobSection = () => {
|
||||
const [status, setStatus] = useState([{ id: 0, value: 0 }, { id: 1, value: 0 }, { id: 2, value: 0 }, { id: 3, value: 0 }]);
|
||||
const serialConnection = useSelector<RootState, RootState["serialConnection"]>((state) => state.serialConnection);
|
||||
|
||||
const SerialDataListener = (data: string) => {
|
||||
const parsedData = data.split(",");
|
||||
console.log(parsedData);
|
||||
setStatus(status.map((element) => ({ ...element, value: parseInt(parsedData[element.id], 10) })));
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (serialConnection.portController !== null) {
|
||||
serialConnection.portController.parser.on("data", SerialDataListener);
|
||||
}
|
||||
|
||||
return () => {
|
||||
if (serialConnection.portController !== null) {
|
||||
serialConnection.portController.parser.removeListener("data", SerialDataListener);
|
||||
}
|
||||
};
|
||||
}, [serialConnection]);
|
||||
|
||||
const sendIncreaseHandler = (index: number) => {
|
||||
if (serialConnection.portController !== null && serialConnection.portController.port !== null) {
|
||||
serialConnection.portController.port.write(`${index}i`);
|
||||
}
|
||||
};
|
||||
const sendDecreaseHandler = (index: number) => {
|
||||
if (serialConnection.portController !== null && serialConnection.portController.port !== null) {
|
||||
serialConnection.portController.port.write(`${index}d`);
|
||||
}
|
||||
};
|
||||
const sendToggleHandler = (index: number) => {
|
||||
if (serialConnection.portController !== null && serialConnection.portController.port !== null) {
|
||||
serialConnection.portController.port.write(`${index}t`);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<KnobContainer>
|
||||
{status.map((element) => (
|
||||
<Knob
|
||||
key={element.id}
|
||||
increase={() => { sendIncreaseHandler(element.id); }}
|
||||
decrease={() => { sendDecreaseHandler(element.id); }}
|
||||
toggle={() => { sendToggleHandler(element.id); }}
|
||||
status={Math.floor((element.value / 255) * 100)}
|
||||
/>
|
||||
))}
|
||||
</KnobContainer>
|
||||
|
||||
);
|
||||
};
|
||||
|
||||
export default KnobSection;
|
|
@ -1,33 +1,35 @@
|
|||
import SerialPort, { parsers } from "serialport";
|
||||
|
||||
class PortController {
|
||||
path: string;
|
||||
path: null | string;
|
||||
|
||||
port: SerialPort;
|
||||
port: null | SerialPort;
|
||||
|
||||
parser: any;
|
||||
|
||||
onCloseCallback: (error:Error)=>void;
|
||||
|
||||
constructor(path: string) {
|
||||
this.path = path;
|
||||
this.port = new SerialPort(path, {
|
||||
baudRate: 9600,
|
||||
autoOpen: false,
|
||||
});
|
||||
this.parser = this.port.pipe(new parsers.Readline({ delimiter: "\r\n" }));
|
||||
constructor() {
|
||||
this.path = null;
|
||||
this.port = null;
|
||||
this.onCloseCallback = () => {};
|
||||
}
|
||||
|
||||
get isOpen(): boolean {
|
||||
if (this.port == null) {
|
||||
get isOpen() {
|
||||
if (!this.port) {
|
||||
return false;
|
||||
}
|
||||
return this.port.isOpen;
|
||||
}
|
||||
|
||||
get getParser(): any {
|
||||
return this.parser;
|
||||
create(path: string) {
|
||||
this.path = path;
|
||||
this.port = new SerialPort(path, {
|
||||
baudRate: 9600,
|
||||
autoOpen: false,
|
||||
});
|
||||
|
||||
this.parser = this.port.pipe(new parsers.Readline({ delimiter: "\r\n" }));
|
||||
}
|
||||
|
||||
open(callback: (error:Error | null | undefined)=>void, onCloseCallback:(error:Error | null | undefined)=>void) {
|
||||
|
@ -35,6 +37,10 @@ class PortController {
|
|||
throw new Error("Port already open");
|
||||
}
|
||||
|
||||
if (this.port === null) {
|
||||
throw new Error("Port must be created first");
|
||||
}
|
||||
|
||||
this.port.open((error) => callback(error));
|
||||
this.port.on("close", onCloseCallback);
|
||||
this.onCloseCallback = onCloseCallback;
|
||||
|
@ -46,10 +52,6 @@ class PortController {
|
|||
this.port.removeListener("data", this.onCloseCallback);
|
||||
}
|
||||
}
|
||||
|
||||
write(message: string) {
|
||||
this.port.write(message);
|
||||
}
|
||||
}
|
||||
|
||||
export default PortController;
|
|
@ -2,22 +2,23 @@
|
|||
const path = require("path");
|
||||
const { BrowserWindow } = require("electron-acrylic-window");
|
||||
|
||||
const {
|
||||
app, Tray, Menu, ipcMain,
|
||||
} = require("electron");
|
||||
const { app, Tray, Menu } = require("electron");
|
||||
const isDev = require("electron-is-dev");
|
||||
const screenz = require("screenz");
|
||||
const els = require("electron-localshortcut");
|
||||
const { default: installExtension, REDUX_DEVTOOLS, REACT_DEVELOPER_TOOLS } = require("electron-devtools-installer");
|
||||
const devTools = require("electron-devtools-installer");
|
||||
const chalk = require("chalk");
|
||||
|
||||
const windowWidth = 900;
|
||||
const windowHeight = 230;
|
||||
const windowHeight = 300;
|
||||
|
||||
let tray = null;
|
||||
let mainWindow = null;
|
||||
const gotTheLock = app.requestSingleInstanceLock();
|
||||
|
||||
const extensions = [REDUX_DEVTOOLS, REACT_DEVELOPER_TOOLS];
|
||||
// Conditionally include the dev tools installer to load React Dev Tools
|
||||
const installExtension = devTools.default;
|
||||
const { REACT_DEVELOPER_TOOLS } = devTools;
|
||||
|
||||
// Handle creating/removing shortcuts on Windows when installing/uninstalling
|
||||
if (require("electron-squirrel-startup")) {
|
||||
|
@ -59,12 +60,17 @@ function createWindow() {
|
|||
// and load the index.html of the app.
|
||||
win.loadURL(
|
||||
isDev
|
||||
? "http://localhost:8420"
|
||||
? "http://localhost:8080"
|
||||
: `file://${path.join(__dirname, "../build/index.html")}`,
|
||||
);
|
||||
|
||||
if (isDev) {
|
||||
win.webContents.openDevTools({ mode: "detach" });
|
||||
|
||||
const reduxDevTools = require("@redux-devtools/cli").default;
|
||||
reduxDevTools({ hostname: "localhost", port: 8000 }).then(() => {
|
||||
console.log(chalk.blue("RemoteDev server running at http://localhost:8000/"));
|
||||
});
|
||||
}
|
||||
|
||||
// Register shortcut to open devtools
|
||||
|
@ -107,7 +113,7 @@ app.on("browser-window-blur", () => {
|
|||
// code. You can also put them in separate files and require them here.
|
||||
|
||||
function createTray() {
|
||||
const trayIcon = new Tray(getAssetPath("tray/tray-yellow-32.png"));
|
||||
const trayIcon = new Tray(getAssetPath("tray.ico"));
|
||||
const contextMenu = Menu.buildFromTemplate([
|
||||
{
|
||||
label: "Show",
|
||||
|
@ -115,13 +121,6 @@ function createTray() {
|
|||
mainWindow.show();
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Settings",
|
||||
click: () => {
|
||||
mainWindow.webContents.send("show-settings", true);
|
||||
mainWindow.show();
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Exit",
|
||||
click: () => {
|
||||
|
@ -130,7 +129,7 @@ function createTray() {
|
|||
},
|
||||
]);
|
||||
|
||||
trayIcon.setToolTip("Heliox");
|
||||
trayIcon.setToolTip("Light Control");
|
||||
trayIcon.setContextMenu(contextMenu);
|
||||
return trayIcon;
|
||||
}
|
||||
|
@ -147,13 +146,9 @@ if (!gotTheLock) {
|
|||
app.allowRendererProcessReuse = false;
|
||||
mainWindow = createWindow();
|
||||
|
||||
console.log("Installing extensions");
|
||||
installExtension(extensions)
|
||||
installExtension(REACT_DEVELOPER_TOOLS)
|
||||
.then((name) => console.log(`Added Extension: ${name}`))
|
||||
.catch((err) => console.log("An error occurred: ", err));
|
||||
|
||||
const ElectronStore = require("electron-store");
|
||||
ElectronStore.initRenderer();
|
||||
.catch((error) => console.log(`An error occurred: , ${error}`));
|
||||
|
||||
mainWindow.setMenu(null);
|
||||
|
||||
|
@ -166,18 +161,6 @@ if (!gotTheLock) {
|
|||
tray.on("click", () => {
|
||||
mainWindow.show();
|
||||
});
|
||||
|
||||
ipcMain.on("asynchronous-message", (event, arg) => {
|
||||
if (arg === "green") {
|
||||
tray.setImage(getAssetPath("tray/tray-green-32.png"));
|
||||
} else if (arg === "red") {
|
||||
tray.setImage(getAssetPath("tray/tray-red-32.png"));
|
||||
} else if (arg === "yellow") {
|
||||
tray.setImage(getAssetPath("tray/tray-yellow-32.png"));
|
||||
} else if (arg === "default") {
|
||||
tray.setImage(getAssetPath("tray/tray-default-32.png"));
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
|
@ -2,10 +2,9 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Heliox</title>
|
||||
<title>Light Control</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<div id="portal"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,10 +1,12 @@
|
|||
import PortController from "../PortController";
|
||||
|
||||
export default interface ISerialConnectionState {
|
||||
port: string;
|
||||
message: string;
|
||||
port: string | null;
|
||||
portController: PortController | null;
|
||||
status: {
|
||||
connecting: boolean;
|
||||
connected: boolean;
|
||||
error: string;
|
||||
error: string | null;
|
||||
};
|
||||
// eslint-disable-next-line semi
|
||||
}
|
43
Dashboard/src/redux/actions/asyncSerialConnectionActions.ts
Normal file
|
@ -0,0 +1,43 @@
|
|||
import { ThunkResult } from "typesafe-actions";
|
||||
import {
|
||||
connectionStart, connectionSuccess, connectionFailure, setPortController, connectionEnd,
|
||||
} from "./serialConnectionActions";
|
||||
import PortController from "../../PortController";
|
||||
|
||||
const connect = (): ThunkResult<void> => async (dispatch, getState) => {
|
||||
const state = getState();
|
||||
dispatch(connectionStart());
|
||||
|
||||
if (state.serialConnection.port === null) {
|
||||
dispatch(connectionFailure(new Error("No Serial Port set")));
|
||||
return;
|
||||
}
|
||||
|
||||
const controller = new PortController();
|
||||
controller.create(state.serialConnection.port);
|
||||
|
||||
dispatch(setPortController(controller));
|
||||
|
||||
controller.open((error) => {
|
||||
if (error === null || error === undefined) {
|
||||
dispatch(connectionSuccess());
|
||||
} else {
|
||||
dispatch(connectionFailure(error));
|
||||
}
|
||||
}, (error) => {
|
||||
if (error !== null && error !== undefined) {
|
||||
if (error.message === "Reading from COM port (ReadIOCompletion): Access denied") {
|
||||
dispatch(connectionFailure(new Error(`Device ${state.serialConnection.port} disconnected`)));
|
||||
dispatch(connectionEnd());
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const disconnect = (): ThunkResult<void> => async (dispatch, getState) => {
|
||||
const state = getState();
|
||||
state.serialConnection.portController?.close();
|
||||
dispatch(connectionEnd());
|
||||
};
|
||||
|
||||
export { connect, disconnect };
|
23
Dashboard/src/redux/actions/serialConnectionActions.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { action } from "typesafe-actions";
|
||||
import PortController from "../../PortController";
|
||||
|
||||
export enum SerialConnectionActionTypes {
|
||||
SET_SERIAL_PORT = "SET_SERIAL_PORT",
|
||||
CONNECTION_START = "CONNECTION_START",
|
||||
CONNECTION_SUCCESS = "CONNECTION_SUCCESS",
|
||||
CONNECTION_FAILURE = "CONNECTION_FAILURE",
|
||||
CONNECTION_END = "CONNECTION_END",
|
||||
SET_PORT_CONTROLLER = "SET_PORT_CONTROLLER"
|
||||
}
|
||||
|
||||
export const setSerialPort = (port: string) => action(SerialConnectionActionTypes.SET_SERIAL_PORT, port);
|
||||
|
||||
export const connectionStart = () => action(SerialConnectionActionTypes.CONNECTION_START);
|
||||
|
||||
export const connectionSuccess = () => action(SerialConnectionActionTypes.CONNECTION_SUCCESS);
|
||||
|
||||
export const connectionFailure = (error: Error) => action(SerialConnectionActionTypes.CONNECTION_FAILURE, error);
|
||||
|
||||
export const connectionEnd = () => action(SerialConnectionActionTypes.CONNECTION_END);
|
||||
|
||||
export const setPortController = (controller: PortController) => action(SerialConnectionActionTypes.SET_PORT_CONTROLLER, controller);
|
58
Dashboard/src/redux/reducers/serialConnectionReducer.ts
Normal file
|
@ -0,0 +1,58 @@
|
|||
import { createReducer } from "typesafe-actions";
|
||||
import ISerialConnectionState from "../../interfaces/ISerialConnectionState";
|
||||
import { SerialConnectionActionTypes } from "../actions/serialConnectionActions";
|
||||
|
||||
const initialState: ISerialConnectionState = {
|
||||
port: null,
|
||||
portController: null,
|
||||
status: {
|
||||
connecting: false,
|
||||
connected: false,
|
||||
error: null,
|
||||
},
|
||||
};
|
||||
|
||||
const SerialConnectionReducer = createReducer(initialState)
|
||||
.handleType(SerialConnectionActionTypes.SET_SERIAL_PORT, (state, action) => ({
|
||||
...state,
|
||||
port: action.payload,
|
||||
}))
|
||||
.handleType(SerialConnectionActionTypes.CONNECTION_START, (state) => ({
|
||||
...state,
|
||||
status: {
|
||||
connecting: true,
|
||||
connected: false,
|
||||
error: null,
|
||||
},
|
||||
}))
|
||||
.handleType(SerialConnectionActionTypes.CONNECTION_FAILURE, (state, action) => ({
|
||||
...state,
|
||||
status: {
|
||||
connecting: false,
|
||||
connected: false,
|
||||
error: action.payload.message,
|
||||
},
|
||||
}))
|
||||
.handleType(SerialConnectionActionTypes.CONNECTION_SUCCESS, (state) => ({
|
||||
...state,
|
||||
status: {
|
||||
connecting: false,
|
||||
connected: true,
|
||||
error: null,
|
||||
},
|
||||
}))
|
||||
.handleType(SerialConnectionActionTypes.CONNECTION_END, (state) => ({
|
||||
...state,
|
||||
portController: null,
|
||||
status: {
|
||||
...state.status,
|
||||
connecting: false,
|
||||
connected: false,
|
||||
},
|
||||
}))
|
||||
.handleType(SerialConnectionActionTypes.SET_PORT_CONTROLLER, (state, action) => ({
|
||||
...state,
|
||||
portController: action.payload,
|
||||
}));
|
||||
|
||||
export default SerialConnectionReducer;
|
7
Dashboard/src/redux/store/root-action.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import * as serialConnectionActions from "../actions/serialConnectionActions";
|
||||
|
||||
const rootAction = {
|
||||
serialConnection: serialConnectionActions,
|
||||
};
|
||||
|
||||
export default rootAction;
|
|
@ -1,5 +1,5 @@
|
|||
import { combineReducers } from "redux";
|
||||
import SerialConnectionReducer from "../slices/serialConnectionSlice";
|
||||
import SerialConnectionReducer from "../reducers/serialConnectionReducer";
|
||||
|
||||
const rootReducer = combineReducers({
|
||||
serialConnection: SerialConnectionReducer,
|
12
Dashboard/src/redux/store/utils.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { composeWithDevTools } from "remote-redux-devtools";
|
||||
|
||||
// Access Redux devtools via http://localhost:8000
|
||||
const composeEnhancers = composeWithDevTools({
|
||||
name: "Light-Control",
|
||||
realtime: true,
|
||||
secure: false,
|
||||
hostname: "localhost",
|
||||
port: 8000,
|
||||
});
|
||||
|
||||
export default composeEnhancers;
|
|
@ -3,7 +3,8 @@
|
|||
"target": "ES2018",
|
||||
"module": "CommonJS",
|
||||
"lib": ["dom", "esnext"],
|
||||
"declaration": false,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"noEmit": false,
|
||||
"jsx": "react",
|
||||
"strict": true,
|
|
@ -1,39 +1,39 @@
|
|||
|
||||
This directory is intended for project header files.
|
||||
|
||||
A header file is a file containing C declarations and macro definitions
|
||||
to be shared between several project source files. You request the use of a
|
||||
header file in your project source file (C, C++, etc) located in `src` folder
|
||||
by including it, with the C preprocessing directive `#include'.
|
||||
|
||||
```src/main.c
|
||||
|
||||
#include "header.h"
|
||||
|
||||
int main (void)
|
||||
{
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Including a header file produces the same results as copying the header file
|
||||
into each source file that needs it. Such copying would be time-consuming
|
||||
and error-prone. With a header file, the related declarations appear
|
||||
in only one place. If they need to be changed, they can be changed in one
|
||||
place, and programs that include the header file will automatically use the
|
||||
new version when next recompiled. The header file eliminates the labor of
|
||||
finding and changing all the copies as well as the risk that a failure to
|
||||
find one copy will result in inconsistencies within a program.
|
||||
|
||||
In C, the usual convention is to give header files names that end with `.h'.
|
||||
It is most portable to use only letters, digits, dashes, and underscores in
|
||||
header file names, and at most one dot.
|
||||
|
||||
Read more about using header files in official GCC documentation:
|
||||
|
||||
* Include Syntax
|
||||
* Include Operation
|
||||
* Once-Only Headers
|
||||
* Computed Includes
|
||||
|
||||
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
|
||||
|
||||
This directory is intended for project header files.
|
||||
|
||||
A header file is a file containing C declarations and macro definitions
|
||||
to be shared between several project source files. You request the use of a
|
||||
header file in your project source file (C, C++, etc) located in `src` folder
|
||||
by including it, with the C preprocessing directive `#include'.
|
||||
|
||||
```src/main.c
|
||||
|
||||
#include "header.h"
|
||||
|
||||
int main (void)
|
||||
{
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Including a header file produces the same results as copying the header file
|
||||
into each source file that needs it. Such copying would be time-consuming
|
||||
and error-prone. With a header file, the related declarations appear
|
||||
in only one place. If they need to be changed, they can be changed in one
|
||||
place, and programs that include the header file will automatically use the
|
||||
new version when next recompiled. The header file eliminates the labor of
|
||||
finding and changing all the copies as well as the risk that a failure to
|
||||
find one copy will result in inconsistencies within a program.
|
||||
|
||||
In C, the usual convention is to give header files names that end with `.h'.
|
||||
It is most portable to use only letters, digits, dashes, and underscores in
|
||||
header file names, and at most one dot.
|
||||
|
||||
Read more about using header files in official GCC documentation:
|
||||
|
||||
* Include Syntax
|
||||
* Include Operation
|
||||
* Once-Only Headers
|
||||
* Computed Includes
|
||||
|
||||
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
|
46
Devices/Console/Firmware/lib/README
Normal file
|
@ -0,0 +1,46 @@
|
|||
|
||||
This directory is intended for project specific (private) libraries.
|
||||
PlatformIO will compile them to static libraries and link into executable file.
|
||||
|
||||
The source code of each library should be placed in a an own separate directory
|
||||
("lib/your_library_name/[here are source files]").
|
||||
|
||||
For example, see a structure of the following two libraries `Foo` and `Bar`:
|
||||
|
||||
|--lib
|
||||
| |
|
||||
| |--Bar
|
||||
| | |--docs
|
||||
| | |--examples
|
||||
| | |--src
|
||||
| | |- Bar.c
|
||||
| | |- Bar.h
|
||||
| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
|
||||
| |
|
||||
| |--Foo
|
||||
| | |- Foo.c
|
||||
| | |- Foo.h
|
||||
| |
|
||||
| |- README --> THIS FILE
|
||||
|
|
||||
|- platformio.ini
|
||||
|--src
|
||||
|- main.c
|
||||
|
||||
and a contents of `src/main.c`:
|
||||
```
|
||||
#include <Foo.h>
|
||||
#include <Bar.h>
|
||||
|
||||
int main (void)
|
||||
{
|
||||
...
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
PlatformIO Library Dependency Finder will find automatically dependent
|
||||
libraries scanning project source files.
|
||||
|
||||
More information about PlatformIO Library Dependency Finder
|
||||
- https://docs.platformio.org/page/librarymanager/ldf.html
|
|
@ -1,11 +1,11 @@
|
|||
|
||||
This directory is intended for PlatformIO Unit Testing and project tests.
|
||||
|
||||
Unit Testing is a software testing method by which individual units of
|
||||
source code, sets of one or more MCU program modules together with associated
|
||||
control data, usage procedures, and operating procedures, are tested to
|
||||
determine whether they are fit for use. Unit testing finds problems early
|
||||
in the development cycle.
|
||||
|
||||
More information about PlatformIO Unit Testing:
|
||||
- https://docs.platformio.org/page/plus/unit-testing.html
|
||||
|
||||
This directory is intended for PlatformIO Unit Testing and project tests.
|
||||
|
||||
Unit Testing is a software testing method by which individual units of
|
||||
source code, sets of one or more MCU program modules together with associated
|
||||
control data, usage procedures, and operating procedures, are tested to
|
||||
determine whether they are fit for use. Unit testing finds problems early
|
||||
in the development cycle.
|
||||
|
||||
More information about PlatformIO Unit Testing:
|
||||
- https://docs.platformio.org/page/plus/unit-testing.html
|
5
Devices/Console/Hardware/Circuit/.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
*-bak
|
||||
*-cache*
|
||||
*-bak*
|
||||
_autosave*
|
||||
Gerber/*
|
1391
Devices/Console/Hardware/Circuit/Console-v1.kicad_pcb
Normal file
33
Devices/Console/Hardware/Circuit/Console-v1.pro
Normal file
|
@ -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]
|
3008
Devices/Console/Hardware/Circuit/Console-v2.kicad_pcb
Normal file
33
Devices/Console/Hardware/Circuit/Console-v2.pro
Normal file
|
@ -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]
|
3135
Devices/Console/Hardware/Circuit/Console-v3.kicad_pcb
Normal file
822
Devices/Console/Hardware/Circuit/Console.dsn
Normal file
|
@ -0,0 +1,822 @@
|
|||
(pcb "D:\Dokumente\Coding\Visual Studio Code\smart-lamp-control\Devices\Console\Hardware\Circuit\Console.dsn"
|
||||
(parser
|
||||
(string_quote ")
|
||||
(space_in_quoted_tokens on)
|
||||
(host_cad "KiCad's Pcbnew")
|
||||
(host_version "(5.1.10)-1")
|
||||
)
|
||||
(resolution um 10)
|
||||
(unit um)
|
||||
(structure
|
||||
(layer F.Cu
|
||||
(type signal)
|
||||
(property
|
||||
(index 0)
|
||||
)
|
||||
)
|
||||
(layer B.Cu
|
||||
(type signal)
|
||||
(property
|
||||
(index 1)
|
||||
)
|
||||
)
|
||||
(boundary
|
||||
(path pcb 0 197242 -126778 95238.5 -126778 95238.5 -64770 197242 -64770
|
||||
197242 -126778)
|
||||
)
|
||||
(via "Via[0-1]_800:400_um")
|
||||
(rule
|
||||
(width 250)
|
||||
(clearance 200.1)
|
||||
(clearance 200.1 (type default_smd))
|
||||
(clearance 50 (type smd_smd))
|
||||
)
|
||||
)
|
||||
(placement
|
||||
(component MountingHole:MountingHole_2.7mm_M2.5_Pad
|
||||
(place PAD4 194131 -123634 front 0 (PN MountingHole_2.7mm_M2.5_Pad))
|
||||
(place PAD3 98350 -123698 front 0 (PN MountingHole_2.7mm_M2.5_Pad))
|
||||
(place PAD2 194131 -67881.5 front 0 (PN MountingHole_2.7mm_M2.5_Pad))
|
||||
(place PAD1 98350 -67881.5 front 0 (PN MountingHole_2.7mm_M2.5_Pad))
|
||||
)
|
||||
(component Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder
|
||||
(place C1 133414 -107188 front 0 (PN 22p))
|
||||
(place C3 133540 -119126 front 0 (PN 100n))
|
||||
)
|
||||
(component "Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm"
|
||||
(place JP8 160985 -77292.2 front 0 (PN SolderJumper))
|
||||
(place JP3 160985 -72847.2 front 180 (PN SolderJumper))
|
||||
(place JP10 154635 -77292.2 front 0 (PN SolderJumper))
|
||||
)
|
||||
(component "AVR-ISP:AVR-ISP"
|
||||
(place J1 177356 -113030 front 0 (PN "AVR-ISP-6"))
|
||||
)
|
||||
(component Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder::1
|
||||
(place C2 133414 -112904 front 0 (PN 22p))
|
||||
)
|
||||
(component SKRKAEE020:SKRKAEE020
|
||||
(place SW5 185594 -71564.5 front 0 (PN SW_Push))
|
||||
)
|
||||
(component Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder
|
||||
(place R2 158877 -114682 front 0 (PN 200))
|
||||
(place R1 158877 -119190 front 0 (PN 10k))
|
||||
(place R4 161925 -82550 front 90 (PN 10k))
|
||||
(place R5 155575 -82580 front 90 (PN 10k))
|
||||
)
|
||||
(component Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical
|
||||
(place J4 153830 -123126 front 90 (PN Conn_01x04))
|
||||
(place J5 178689 -123126 front 90 (PN Conn_01x04))
|
||||
)
|
||||
(component "Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm::1"
|
||||
(place JP1 154635 -72847.2 front 180 (PN SolderJumper))
|
||||
)
|
||||
(component "Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm"
|
||||
(place JP2 132156 -77292.2 front 0 (PN SolderJumper_Bridged))
|
||||
(place JP9 132141 -72847.2 front 180 (PN SolderJumper_Bridged))
|
||||
(place JP5 137871 -72847.2 front 180 (PN SolderJumper_Bridged))
|
||||
)
|
||||
(component LED_SMD:LED_0805_2012Metric_Castellated
|
||||
(place D1 158940 -111442 front 0 (PN "17-21/BHC-XL2M2TY/3T"))
|
||||
)
|
||||
(component Connector_PinHeader_2.54mm:PinHeader_1x13_P2.54mm_Vertical
|
||||
(place J3 108077 -123126 front 90 (PN Conn_01x13))
|
||||
)
|
||||
(component "Bourns-PEC11R-4220F-S0012:Bourns-PEC11R-4220F-S0012-MFG"
|
||||
(place SW1 103124 -95773.8 front 0 (PN "PEC11R-4220F-S0012"))
|
||||
(place SW3 160613 -95773.8 front 0 (PN "PEC11R-4220F-S0012"))
|
||||
)
|
||||
(component "Crystal:Crystal_SMD_HC49-SD_HandSoldering"
|
||||
(place Y1 116459 -112966 front 0 (PN 16MHz))
|
||||
)
|
||||
(component "HRO_TYPE-C-31-M-12:HRO_TYPE-C-31-M-12"
|
||||
(place J2 146253 -67767.2 front 180 (PN "TYPE-C-31-M-12"))
|
||||
)
|
||||
(component "Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm::1"
|
||||
(place JP4 126441 -72847.2 front 0 (PN SolderJumper_Bridged))
|
||||
(place JP6 137871 -77292.2 front 0 (PN SolderJumper_Bridged))
|
||||
(place JP7 126441 -77292.2 front 180 (PN SolderJumper_Bridged))
|
||||
)
|
||||
(component "Package_QFP:TQFP-32_7x7mm_P0.8mm"
|
||||
(place U1 146240 -113030 front 45 (PN "ATmega328PB-AU"))
|
||||
)
|
||||
(component "Bourns-PEC11R-4220F-S0012:Bourns-PEC11R-4220F-S0012-MFG::1"
|
||||
(place SW2 131868 -95773.8 front 0 (PN "PEC11R-4220F-S0012"))
|
||||
(place SW4 189357 -95773.8 front 0 (PN "PEC11R-4220F-S0012"))
|
||||
)
|
||||
(component LED_SMD:LED_0805_2012Metric_Castellated::1
|
||||
(place D2 102314 -72453.5 front 180 (PN "17-21/BHC-XL2M2TY/3T"))
|
||||
)
|
||||
(component Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder::1
|
||||
(place R3 102314 -75755.5 front 180 (PN 200))
|
||||
)
|
||||
(component Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder::2
|
||||
(place C4 158919 -107188 front 0 (PN 100n))
|
||||
)
|
||||
(component Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder::2
|
||||
(place R6 125730 -82550 front 90 (PN 10k))
|
||||
)
|
||||
)
|
||||
(library
|
||||
(image MountingHole:MountingHole_2.7mm_M2.5_Pad
|
||||
(outline (path signal 150 2700 0 2621.54 -646.152 2390.73 -1254.75 2020.98 -1790.43
|
||||
1533.78 -2222.06 957.433 -2524.54 325.449 -2680.31 -325.449 -2680.31
|
||||
-957.433 -2524.54 -1533.78 -2222.06 -2020.98 -1790.43 -2390.73 -1254.75
|
||||
-2621.54 -646.152 -2700 0 -2621.54 646.152 -2390.73 1254.75
|
||||
-2020.98 1790.43 -1533.78 2222.06 -957.433 2524.54 -325.449 2680.31
|
||||
325.449 2680.31 957.433 2524.54 1533.78 2222.06 2020.98 1790.43
|
||||
2390.73 1254.75 2621.54 646.152 2700 0))
|
||||
(outline (path signal 50 2950 0 2870.48 -680.317 2636.22 -1323.96 2259.83 -1896.22
|
||||
1761.62 -2366.26 1168.43 -2708.74 512.262 -2905.18 -171.527 -2945.01
|
||||
-846.07 -2826.07 -1475 -2554.78 -2024.41 -2145.75 -2464.69 -1621.05
|
||||
-2772.09 -1008.96 -2930.05 -342.474 -2930.05 342.474 -2772.09 1008.96
|
||||
-2464.69 1621.05 -2024.41 2145.75 -1475 2554.78 -846.07 2826.07
|
||||
-171.527 2945.01 512.262 2905.18 1168.43 2708.74 1761.62 2366.26
|
||||
2259.83 1896.22 2636.22 1323.96 2870.48 680.317 2950 0))
|
||||
(pin Round[A]Pad_5400_um 1 0 0)
|
||||
)
|
||||
(image Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder
|
||||
(outline (path signal 50 1880 -980 -1880 -980))
|
||||
(outline (path signal 50 1880 980 1880 -980))
|
||||
(outline (path signal 50 -1880 980 1880 980))
|
||||
(outline (path signal 50 -1880 -980 -1880 980))
|
||||
(outline (path signal 120 -261.252 -735 261.252 -735))
|
||||
(outline (path signal 120 -261.252 735 261.252 735))
|
||||
(outline (path signal 100 1000 -625 -1000 -625))
|
||||
(outline (path signal 100 1000 625 1000 -625))
|
||||
(outline (path signal 100 -1000 625 1000 625))
|
||||
(outline (path signal 100 -1000 -625 -1000 625))
|
||||
(pin RoundRect[T]Pad_1175x1450_250.951_um 1 -1037.5 0)
|
||||
(pin RoundRect[T]Pad_1175x1450_250.951_um 2 1037.5 0)
|
||||
)
|
||||
(image "Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm"
|
||||
(outline (path signal 50 1650 -1250 -1650 -1250))
|
||||
(outline (path signal 50 1650 -1250 1650 1250))
|
||||
(outline (path signal 50 -1650 1250 -1650 -1250))
|
||||
(outline (path signal 50 -1650 1250 1650 1250))
|
||||
(outline (path signal 120 -1400 1000 1400 1000))
|
||||
(outline (path signal 120 1400 1000 1400 -1000))
|
||||
(outline (path signal 120 1400 -1000 -1400 -1000))
|
||||
(outline (path signal 120 -1400 -1000 -1400 1000))
|
||||
(pin Rect[T]Pad_1000x1500_um 2 650 0)
|
||||
(pin Rect[T]Pad_1000x1500_um 1 -650 0)
|
||||
)
|
||||
(image "AVR-ISP:AVR-ISP"
|
||||
(outline (path signal 127 -3810 2540 3810 2540))
|
||||
(outline (path signal 127 3810 2540 3810 -2540))
|
||||
(outline (path signal 127 3810 -2540 -3810 -2540))
|
||||
(outline (path signal 127 -3810 -2540 -3810 2540))
|
||||
(outline (path signal 200 -3964 -2794 -4014 -2880.6 -4114 -2880.6 -4164 -2794
|
||||
-4114 -2707.4 -4014 -2707.4 -3964 -2794))
|
||||
(pin Round[A]Pad_1700_um 6 2540 1270)
|
||||
(pin Round[A]Pad_1700_um 5 2540 -1270)
|
||||
(pin Rect[A]Pad_1700x1700_um 1 -2540 -1270)
|
||||
(pin Round[A]Pad_1700_um 2 -2540 1270)
|
||||
(pin Round[A]Pad_1700_um 3 0 -1270)
|
||||
(pin Round[A]Pad_1700_um 4 0 1270)
|
||||
)
|
||||
(image Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder::1
|
||||
(outline (path signal 100 -1000 -625 -1000 625))
|
||||
(outline (path signal 100 -1000 625 1000 625))
|
||||
(outline (path signal 100 1000 625 1000 -625))
|
||||
(outline (path signal 100 1000 -625 -1000 -625))
|
||||
(outline (path signal 120 -261.252 735 261.252 735))
|
||||
(outline (path signal 120 -261.252 -735 261.252 -735))
|
||||
(outline (path signal 50 -1880 -980 -1880 980))
|
||||
(outline (path signal 50 -1880 980 1880 980))
|
||||
(outline (path signal 50 1880 980 1880 -980))
|
||||
(outline (path signal 50 1880 -980 -1880 -980))
|
||||
(pin RoundRect[T]Pad_1175x1450_250.951_um 2 1037.5 0)
|
||||
(pin RoundRect[T]Pad_1175x1450_250.951_um 1 -1037.5 0)
|
||||
)
|
||||
(image SKRKAEE020:SKRKAEE020
|
||||
(outline (path signal 100 -1950 1450 1950 1450))
|
||||
(outline (path signal 100 -1950 -1450 1950 -1450))
|
||||
(outline (path signal 100 -3500 -2450 -3500 2450))
|
||||
(outline (path signal 100 3500 -2450 -3500 -2450))
|
||||
(outline (path signal 100 3500 2450 3500 -2450))
|
||||
(outline (path signal 100 -3500 2450 3500 2450))
|
||||
(outline (path signal 200 -1950 -1450 -1950 1450))
|
||||
(outline (path signal 200 1950 -1450 -1950 -1450))
|
||||
(outline (path signal 200 1950 1450 1950 -1450))
|
||||
(outline (path signal 200 -1950 1450 1950 1450))
|
||||
(pin Rect[T]Pad_800x2000_um 1 -2100 0)
|
||||
(pin Rect[T]Pad_800x2000_um 2 2100 0)
|
||||
)
|
||||
(image Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder
|
||||
(outline (path signal 50 1850 -950 -1850 -950))
|
||||
(outline (path signal 50 1850 950 1850 -950))
|
||||
(outline (path signal 50 -1850 950 1850 950))
|
||||
(outline (path signal 50 -1850 -950 -1850 950))
|
||||
(outline (path signal 120 -227.064 -735 227.064 -735))
|
||||
(outline (path signal 120 -227.064 735 227.064 735))
|
||||
(outline (path signal 100 1000 -625 -1000 -625))
|
||||
(outline (path signal 100 1000 625 1000 -625))
|
||||
(outline (path signal 100 -1000 625 1000 625))
|
||||
(outline (path signal 100 -1000 -625 -1000 625))
|
||||
(pin RoundRect[T]Pad_1200x1400_250.95_um 1 -1000 0)
|
||||
(pin RoundRect[T]Pad_1200x1400_250.95_um 2 1000 0)
|
||||
)
|
||||
(image Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical
|
||||
(outline (path signal 100 -635 1270 1270 1270))
|
||||
(outline (path signal 100 1270 1270 1270 -8890))
|
||||
(outline (path signal 100 1270 -8890 -1270 -8890))
|
||||
(outline (path signal 100 -1270 -8890 -1270 635))
|
||||
(outline (path signal 100 -1270 635 -635 1270))
|
||||
(outline (path signal 120 -1330 -8950 1330 -8950))
|
||||
(outline (path signal 120 -1330 -1270 -1330 -8950))
|
||||
(outline (path signal 120 1330 -1270 1330 -8950))
|
||||
(outline (path signal 120 -1330 -1270 1330 -1270))
|
||||
(outline (path signal 120 -1330 0 -1330 1330))
|
||||
(outline (path signal 120 -1330 1330 0 1330))
|
||||
(outline (path signal 50 -1800 1800 -1800 -9400))
|
||||
(outline (path signal 50 -1800 -9400 1800 -9400))
|
||||
(outline (path signal 50 1800 -9400 1800 1800))
|
||||
(outline (path signal 50 1800 1800 -1800 1800))
|
||||
(pin Oval[A]Pad_1700x1700_um 4 0 -7620)
|
||||
(pin Oval[A]Pad_1700x1700_um 3 0 -5080)
|
||||
(pin Oval[A]Pad_1700x1700_um 2 0 -2540)
|
||||
(pin Rect[A]Pad_1700x1700_um 1 0 0)
|
||||
)
|
||||
(image "Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm::1"
|
||||
(outline (path signal 120 -1400 -1000 -1400 1000))
|
||||
(outline (path signal 120 1400 -1000 -1400 -1000))
|
||||
(outline (path signal 120 1400 1000 1400 -1000))
|
||||
(outline (path signal 120 -1400 1000 1400 1000))
|
||||
(outline (path signal 50 -1650 1250 1650 1250))
|
||||
(outline (path signal 50 -1650 1250 -1650 -1250))
|
||||
(outline (path signal 50 1650 -1250 1650 1250))
|
||||
(outline (path signal 50 1650 -1250 -1650 -1250))
|
||||
(pin Rect[T]Pad_1000x1500_um 1 -650 0)
|
||||
(pin Rect[T]Pad_1000x1500_um 2 650 0)
|
||||
)
|
||||
(image "Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm"
|
||||
(outline (path signal 120 -1400 -1000 -1400 1000))
|
||||
(outline (path signal 120 1400 -1000 -1400 -1000))
|
||||
(outline (path signal 120 1400 1000 1400 -1000))
|
||||
(outline (path signal 120 -1400 1000 1400 1000))
|
||||
(outline (path signal 50 -1650 1250 1650 1250))
|
||||
(outline (path signal 50 -1650 1250 -1650 -1250))
|
||||
(outline (path signal 50 1650 -1250 1650 1250))
|
||||
(outline (path signal 50 1650 -1250 -1650 -1250))
|
||||
(pin Rect[T]Pad_1000x1500_um 2 650 0)
|
||||
(pin Rect[T]Pad_1000x1500_um 1 -650 0)
|
||||
)
|
||||
(image LED_SMD:LED_0805_2012Metric_Castellated
|
||||
(outline (path signal 50 1880 -900 -1880 -900))
|
||||
(outline (path signal 50 1880 900 1880 -900))
|
||||
(outline (path signal 50 -1880 900 1880 900))
|
||||
(outline (path signal 50 -1880 -900 -1880 900))
|
||||
(outline (path signal 120 -1885 -910 1000 -910))
|
||||
(outline (path signal 120 -1885 910 -1885 -910))
|
||||
(outline (path signal 120 1000 910 -1885 910))
|
||||
(outline (path signal 100 1000 -600 1000 600))
|
||||
(outline (path signal 100 -1000 -600 1000 -600))
|
||||
(outline (path signal 100 -1000 300 -1000 -600))
|
||||
(outline (path signal 100 -700 600 -1000 300))
|
||||
(outline (path signal 100 1000 600 -700 600))
|
||||
(pin RoundRect[T]Pad_1325x1300_250.95_um 1 -962.5 0)
|
||||
(pin RoundRect[T]Pad_1325x1300_250.95_um 2 962.5 0)
|
||||
)
|
||||
(image Connector_PinHeader_2.54mm:PinHeader_1x13_P2.54mm_Vertical
|
||||
(outline (path signal 100 -635 1270 1270 1270))
|
||||
(outline (path signal 100 1270 1270 1270 -31750))
|
||||
(outline (path signal 100 1270 -31750 -1270 -31750))
|
||||
(outline (path signal 100 -1270 -31750 -1270 635))
|
||||
(outline (path signal 100 -1270 635 -635 1270))
|
||||
(outline (path signal 120 -1330 -31810 1330 -31810))
|
||||
(outline (path signal 120 -1330 -1270 -1330 -31810))
|
||||
(outline (path signal 120 1330 -1270 1330 -31810))
|
||||
(outline (path signal 120 -1330 -1270 1330 -1270))
|
||||
(outline (path signal 120 -1330 0 -1330 1330))
|
||||
(outline (path signal 120 -1330 1330 0 1330))
|
||||
(outline (path signal 50 -1800 1800 -1800 -32250))
|
||||
(outline (path signal 50 -1800 -32250 1800 -32250))
|
||||
(outline (path signal 50 1800 -32250 1800 1800))
|
||||
(outline (path signal 50 1800 1800 -1800 1800))
|
||||
(pin Oval[A]Pad_1700x1700_um 13 0 -30480)
|
||||
(pin Oval[A]Pad_1700x1700_um 12 0 -27940)
|
||||
(pin Oval[A]Pad_1700x1700_um 11 0 -25400)
|
||||
(pin Oval[A]Pad_1700x1700_um 10 0 -22860)
|
||||
(pin Oval[A]Pad_1700x1700_um 9 0 -20320)
|
||||
(pin Oval[A]Pad_1700x1700_um 8 0 -17780)
|
||||
(pin Oval[A]Pad_1700x1700_um 7 0 -15240)
|
||||
(pin Oval[A]Pad_1700x1700_um 6 0 -12700)
|
||||
(pin Oval[A]Pad_1700x1700_um 5 0 -10160)
|
||||
(pin Oval[A]Pad_1700x1700_um 4 0 -7620)
|
||||
(pin Oval[A]Pad_1700x1700_um 3 0 -5080)
|
||||
(pin Oval[A]Pad_1700x1700_um 2 0 -2540)
|
||||
(pin Rect[A]Pad_1700x1700_um 1 0 0)
|
||||
)
|
||||
(image "Bourns-PEC11R-4220F-S0012:Bourns-PEC11R-4220F-S0012-MFG"
|
||||
(outline (path signal 150 -6500 -6950 -6500 6950))
|
||||
(outline (path signal 150 -6500 6950 6500 6950))
|
||||
(outline (path signal 150 6500 6950 6500 -6950))
|
||||
(outline (path signal 150 6500 -6950 -6500 -6950))
|
||||
(outline (path signal 150 6925 7800 6925 7800))
|
||||
(outline (path signal 150 6925 7800 -6925 7800))
|
||||
(outline (path signal 150 -6925 7800 -6925 -8300))
|
||||
(outline (path signal 150 -6925 -8300 6925 -8300))
|
||||
(outline (path signal 150 6925 -8300 6925 7800))
|
||||
(outline (path signal 150 -6500 6950 -3650 6950))
|
||||
(outline (path signal 150 -1350 6950 1350 6950))
|
||||
(outline (path signal 150 3650 6950 6500 6950))
|
||||
(outline (path signal 150 6500 -6950 6500 -2875))
|
||||
(outline (path signal 150 6500 2875 6500 6950))
|
||||
(outline (path signal 150 -6500 -6950 -3650 -6950))
|
||||
(outline (path signal 150 -1350 -6950 -1150 -6950))
|
||||
(outline (path signal 150 1150 -6950 1350 -6950))
|
||||
(outline (path signal 150 3650 -6950 6500 -6950))
|
||||
(outline (path signal 150 -6500 -6950 -6500 -2875))
|
||||
(outline (path signal 150 -6500 2875 -6500 6950))
|
||||
(outline (path signal 250 -2375 8325 -2437.5 8216.75 -2562.5 8216.75 -2625 8325
|
||||
-2562.5 8433.25 -2437.5 8433.25 -2375 8325))
|
||||
(pin Rect[A]Pad_1550x1550_um S1 -2500 7000)
|
||||
(pin Round[A]Pad_1550_um S2 2500 7000)
|
||||
(pin Round[A]Pad_1550_um A -2500 -7500)
|
||||
(pin Round[A]Pad_1550_um C 0 -7500)
|
||||
(pin Round[A]Pad_1550_um B 2500 -7500)
|
||||
(pin RoundRect[A]Pad_2400x5000_1204.57_um 3 -5600 0)
|
||||
(pin RoundRect[A]Pad_2400x5000_1204.57_um 4 5600 0)
|
||||
)
|
||||
(image "Crystal:Crystal_SMD_HC49-SD_HandSoldering"
|
||||
(outline (path signal 100 -5700 2350 -5700 -2350))
|
||||
(outline (path signal 100 -5700 -2350 5700 -2350))
|
||||
(outline (path signal 100 5700 -2350 5700 2350))
|
||||
(outline (path signal 100 5700 2350 -5700 2350))
|
||||
(outline (path signal 100 -3015 2115 3015 2115))
|
||||
(outline (path signal 100 -3015 -2115 3015 -2115))
|
||||
(outline (path signal 120 5900 2550 -10075 2550))
|
||||
(outline (path signal 120 -10075 2550 -10075 -2550))
|
||||
(outline (path signal 120 -10075 -2550 5900 -2550))
|
||||
(outline (path signal 50 -10200 2600 -10200 -2600))
|
||||
(outline (path signal 50 -10200 -2600 10200 -2600))
|
||||
(outline (path signal 50 10200 -2600 10200 2600))
|
||||
(outline (path signal 50 10200 2600 -10200 2600))
|
||||
(pin Rect[T]Pad_7875x2000_um 2 5937.5 0)
|
||||
(pin Rect[T]Pad_7875x2000_um 1 -5937.5 0)
|
||||
)
|
||||
(image "HRO_TYPE-C-31-M-12:HRO_TYPE-C-31-M-12"
|
||||
(outline (path signal 127 -4470 -2600 4470 -2600))
|
||||
(outline (path signal 127 4470 -2600 4470 4700))
|
||||
(outline (path signal 127 4470 4700 -4470 4700))
|
||||
(outline (path signal 127 -4470 4700 -4470 -2600))
|
||||
(outline (path signal 127 -4470 2810 -4470 1370))
|
||||
(outline (path signal 127 4470 2810 4470 1370))
|
||||
(outline (path signal 127 4470 -1370 4470 -2600))
|
||||
(outline (path signal 127 4470 -2600 -4470 -2600))
|
||||
(outline (path signal 127 -4470 -2600 -4470 -1370))
|
||||
(outline (path signal 50 -5095 -2850 5095 -2850))
|
||||
(outline (path signal 50 5095 -2850 5095 6070))
|
||||
(outline (path signal 50 5095 6070 -5095 6070))
|
||||
(outline (path signal 50 -5095 6070 -5095 -2850))
|
||||
(outline (path signal 200 -3300 6400 -3350 6313.4 -3450 6313.4 -3500 6400 -3450 6486.6
|
||||
-3350 6486.6 -3300 6400))
|
||||
(outline (path signal 200 -3300 6400 -3350 6313.4 -3450 6313.4 -3500 6400 -3450 6486.6
|
||||
-3350 6486.6 -3300 6400))
|
||||
(pin Rect[T]Pad_600x1450_um A1B12 -3250 5095)
|
||||
(pin Rect[T]Pad_600x1450_um A4B9 -2450 5095)
|
||||
(pin Rect[T]Pad_300x1450_um A6 -250 5095)
|
||||
(pin Rect[T]Pad_300x1450_um B7 -750 5095)
|
||||
(pin Rect[T]Pad_300x1450_um A5 -1250 5095)
|
||||
(pin Rect[T]Pad_300x1450_um B8 -1750 5095)
|
||||
(pin Rect[T]Pad_300x1450_um A7 250 5095)
|
||||
(pin Rect[T]Pad_300x1450_um B6 750 5095)
|
||||
(pin Rect[T]Pad_300x1450_um A8 1250 5095)
|
||||
(pin Rect[T]Pad_300x1450_um B5 1750 5095)
|
||||
(pin Rect[T]Pad_600x1450_um B4A9 2450 5095)
|
||||
(pin Rect[T]Pad_600x1450_um B1A12 3250 5095)
|
||||
(pin Oval[A]Pad_1050x2100_um S1 -4320 4180)
|
||||
(pin Oval[A]Pad_1050x2100_um S2 4320 4180)
|
||||
(pin Oval[A]Pad_1050x2100_um S3 -4320 0)
|
||||
(pin Oval[A]Pad_1050x2100_um S4 4320 0)
|
||||
(keepout "" (circle F.Cu 700 -2890 3650))
|
||||
(keepout "" (circle B.Cu 700 -2890 3650))
|
||||
(keepout "" (circle F.Cu 700 2890 3650))
|
||||
(keepout "" (circle B.Cu 700 2890 3650))
|
||||
)
|
||||
(image "Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm::1"
|
||||
(outline (path signal 50 1650 -1250 -1650 -1250))
|
||||
(outline (path signal 50 1650 -1250 1650 1250))
|
||||
(outline (path signal 50 -1650 1250 -1650 -1250))
|
||||
(outline (path signal 50 -1650 1250 1650 1250))
|
||||
(outline (path signal 120 -1400 1000 1400 1000))
|
||||
(outline (path signal 120 1400 1000 1400 -1000))
|
||||
(outline (path signal 120 1400 -1000 -1400 -1000))
|
||||
(outline (path signal 120 -1400 -1000 -1400 1000))
|
||||
(pin Rect[T]Pad_1000x1500_um 1 -650 0)
|
||||
(pin Rect[T]Pad_1000x1500_um 2 650 0)
|
||||
)
|
||||
(image "Package_QFP:TQFP-32_7x7mm_P0.8mm"
|
||||
(outline (path signal 150 -2500 3500 3500 3500))
|
||||
(outline (path signal 150 3500 3500 3500 -3500))
|
||||
(outline (path signal 150 3500 -3500 -3500 -3500))
|
||||
(outline (path signal 150 -3500 -3500 -3500 2500))
|
||||
(outline (path signal 150 -3500 2500 -2500 3500))
|
||||
(outline (path signal 50 -5300 5300 -5300 -5300))
|
||||
(outline (path signal 50 5300 5300 5300 -5300))
|
||||
(outline (path signal 50 -5300 5300 5300 5300))
|
||||
(outline (path signal 50 -5300 -5300 5300 -5300))
|
||||
(outline (path signal 150 -3625 3625 -3625 3400))
|
||||
(outline (path signal 150 3625 3625 3625 3300))
|
||||
(outline (path signal 150 3625 -3625 3625 -3300))
|
||||
(outline (path signal 150 -3625 -3625 -3625 -3300))
|
||||
(outline (path signal 150 -3625 3625 -3300 3625))
|
||||
(outline (path signal 150 -3625 -3625 -3300 -3625))
|
||||
(outline (path signal 150 3625 -3625 3300 -3625))
|
||||
(outline (path signal 150 3625 3625 3300 3625))
|
||||
(outline (path signal 150 -3625 3400 -5050 3400))
|
||||
(pin Rect[T]Pad_1600x550_um 1 -4250 2800)
|
||||
(pin Rect[T]Pad_1600x550_um 2 -4250 2000)
|
||||
(pin Rect[T]Pad_1600x550_um 3 -4250 1200)
|
||||
(pin Rect[T]Pad_1600x550_um 4 -4250 400)
|
||||
(pin Rect[T]Pad_1600x550_um 5 -4250 -400)
|
||||
(pin Rect[T]Pad_1600x550_um 6 -4250 -1200)
|
||||
(pin Rect[T]Pad_1600x550_um 7 -4250 -2000)
|
||||
(pin Rect[T]Pad_1600x550_um 8 -4250 -2800)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 9 -2800 -4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 10 -2000 -4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 11 -1200 -4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 12 -400 -4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 13 400 -4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 14 1200 -4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 15 2000 -4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 16 2800 -4250)
|
||||
(pin Rect[T]Pad_1600x550_um 17 4250 -2800)
|
||||
(pin Rect[T]Pad_1600x550_um 18 4250 -2000)
|
||||
(pin Rect[T]Pad_1600x550_um 19 4250 -1200)
|
||||
(pin Rect[T]Pad_1600x550_um 20 4250 -400)
|
||||
(pin Rect[T]Pad_1600x550_um 21 4250 400)
|
||||
(pin Rect[T]Pad_1600x550_um 22 4250 1200)
|
||||
(pin Rect[T]Pad_1600x550_um 23 4250 2000)
|
||||
(pin Rect[T]Pad_1600x550_um 24 4250 2800)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 25 2800 4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 26 2000 4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 27 1200 4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 28 400 4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 29 -400 4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 30 -1200 4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 31 -2000 4250)
|
||||
(pin Rect[T]Pad_1600x550_um (rotate 90) 32 -2800 4250)
|
||||
)
|
||||
(image "Bourns-PEC11R-4220F-S0012:Bourns-PEC11R-4220F-S0012-MFG::1"
|
||||
(outline (path signal 250 -2375 8325 -2437.5 8216.75 -2562.5 8216.75 -2625 8325
|
||||
-2562.5 8433.25 -2437.5 8433.25 -2375 8325))
|
||||
(outline (path signal 150 -6500 2875 -6500 6950))
|
||||
(outline (path signal 150 -6500 -6950 -6500 -2875))
|
||||
(outline (path signal 150 3650 -6950 6500 -6950))
|
||||
(outline (path signal 150 1150 -6950 1350 -6950))
|
||||
(outline (path signal 150 -1350 -6950 -1150 -6950))
|
||||
(outline (path signal 150 -6500 -6950 -3650 -6950))
|
||||
(outline (path signal 150 6500 2875 6500 6950))
|
||||
(outline (path signal 150 6500 -6950 6500 -2875))
|
||||
(outline (path signal 150 3650 6950 6500 6950))
|
||||
(outline (path signal 150 -1350 6950 1350 6950))
|
||||
(outline (path signal 150 -6500 6950 -3650 6950))
|
||||
(outline (path signal 150 6925 -8300 6925 7800))
|
||||
(outline (path signal 150 -6925 -8300 6925 -8300))
|
||||
(outline (path signal 150 -6925 7800 -6925 -8300))
|
||||
(outline (path signal 150 6925 7800 -6925 7800))
|
||||
(outline (path signal 150 6925 7800 6925 7800))
|
||||
(outline (path signal 150 6500 -6950 -6500 -6950))
|
||||
(outline (path signal 150 6500 6950 6500 -6950))
|
||||
(outline (path signal 150 -6500 6950 6500 6950))
|
||||
(outline (path signal 150 -6500 -6950 -6500 6950))
|
||||
(pin RoundRect[A]Pad_2400x5000_1204.57_um 4 5600 0)
|
||||
(pin RoundRect[A]Pad_2400x5000_1204.57_um 3 -5600 0)
|
||||
(pin Round[A]Pad_1550_um B 2500 -7500)
|
||||
(pin Round[A]Pad_1550_um C 0 -7500)
|
||||
(pin Round[A]Pad_1550_um A -2500 -7500)
|
||||
(pin Round[A]Pad_1550_um S2 2500 7000)
|
||||
(pin Rect[A]Pad_1550x1550_um S1 -2500 7000)
|
||||
)
|
||||
(image LED_SMD:LED_0805_2012Metric_Castellated::1
|
||||
(outline (path signal 100 1000 600 -700 600))
|
||||
(outline (path signal 100 -700 600 -1000 300))
|
||||
(outline (path signal 100 -1000 300 -1000 -600))
|
||||
(outline (path signal 100 -1000 -600 1000 -600))
|
||||
(outline (path signal 100 1000 -600 1000 600))
|
||||
(outline (path signal 120 1000 910 -1885 910))
|
||||
(outline (path signal 120 -1885 910 -1885 -910))
|
||||
(outline (path signal 120 -1885 -910 1000 -910))
|
||||
(outline (path signal 50 -1880 -900 -1880 900))
|
||||
(outline (path signal 50 -1880 900 1880 900))
|
||||
(outline (path signal 50 1880 900 1880 -900))
|
||||
(outline (path signal 50 1880 -900 -1880 -900))
|
||||
(pin RoundRect[T]Pad_1325x1300_250.95_um 1 -962.5 0)
|
||||
(pin RoundRect[T]Pad_1325x1300_250.95_um 2 962.5 0)
|
||||
)
|
||||
(image Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder::1
|
||||
(outline (path signal 100 -1000 -625 -1000 625))
|
||||
(outline (path signal 100 -1000 625 1000 625))
|
||||
(outline (path signal 100 1000 625 1000 -625))
|
||||
(outline (path signal 100 1000 -625 -1000 -625))
|
||||
(outline (path signal 120 -227.064 735 227.064 735))
|
||||
(outline (path signal 120 -227.064 -735 227.064 -735))
|
||||
(outline (path signal 50 -1850 -950 -1850 950))
|
||||
(outline (path signal 50 -1850 950 1850 950))
|
||||
(outline (path signal 50 1850 950 1850 -950))
|
||||
(outline (path signal 50 1850 -950 -1850 -950))
|
||||
(pin RoundRect[T]Pad_1200x1400_250.95_um 1 -1000 0)
|
||||
(pin RoundRect[T]Pad_1200x1400_250.95_um 2 1000 0)
|
||||
)
|
||||
(image Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder::2
|
||||
(outline (path signal 100 -1000 -625 -1000 625))
|
||||
(outline (path signal 100 -1000 625 1000 625))
|
||||
(outline (path signal 100 1000 625 1000 -625))
|
||||
(outline (path signal 100 1000 -625 -1000 -625))
|
||||
(outline (path signal 120 -261.252 735 261.252 735))
|
||||
(outline (path signal 120 -261.252 -735 261.252 -735))
|
||||
(outline (path signal 50 -1880 -980 -1880 980))
|
||||
(outline (path signal 50 -1880 980 1880 980))
|
||||
(outline (path signal 50 1880 980 1880 -980))
|
||||
(outline (path signal 50 1880 -980 -1880 -980))
|
||||
(pin RoundRect[T]Pad_1175x1450_250.951_um 1 -1037.5 0)
|
||||
(pin RoundRect[T]Pad_1175x1450_250.951_um 2 1037.5 0)
|
||||
)
|
||||
(image Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder::2
|
||||
(outline (path signal 100 -1000 -625 -1000 625))
|
||||
(outline (path signal 100 -1000 625 1000 625))
|
||||
(outline (path signal 100 1000 625 1000 -625))
|
||||
(outline (path signal 100 1000 -625 -1000 -625))
|
||||
(outline (path signal 120 -227.064 735 227.064 735))
|
||||
(outline (path signal 120 -227.064 -735 227.064 -735))
|
||||
(outline (path signal 50 -1850 -950 -1850 950))
|
||||
(outline (path signal 50 -1850 950 1850 950))
|
||||
(outline (path signal 50 1850 950 1850 -950))
|
||||
(outline (path signal 50 1850 -950 -1850 -950))
|
||||
(pin RoundRect[T]Pad_1200x1400_250.95_um 2 1000 0)
|
||||
(pin RoundRect[T]Pad_1200x1400_250.95_um 1 -1000 0)
|
||||
)
|
||||
(padstack Round[A]Pad_1550_um
|
||||
(shape (circle F.Cu 1550))
|
||||
(shape (circle B.Cu 1550))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Round[A]Pad_1700_um
|
||||
(shape (circle F.Cu 1700))
|
||||
(shape (circle B.Cu 1700))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Round[A]Pad_5400_um
|
||||
(shape (circle F.Cu 5400))
|
||||
(shape (circle B.Cu 5400))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Oval[A]Pad_1050x2100_um
|
||||
(shape (path F.Cu 1050 0 -525 0 525))
|
||||
(shape (path B.Cu 1050 0 -525 0 525))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Oval[A]Pad_1700x1700_um
|
||||
(shape (path F.Cu 1700 0 0 0 0))
|
||||
(shape (path B.Cu 1700 0 0 0 0))
|
||||
(attach off)
|
||||
)
|
||||
(padstack RoundRect[A]Pad_2400x5000_1204.57_um
|
||||
(shape (polygon F.Cu 0 209.172 2486.27 411.987 2431.92 602.284 2343.18 774.281 2222.75
|
||||
922.752 2074.28 1043.19 1902.28 1131.92 1711.99 1186.27 1509.17
|
||||
1204.57 1300 1204.57 -1300 1186.27 -1509.17 1131.92 -1711.99
|
||||
1043.19 -1902.28 922.752 -2074.28 774.281 -2222.75 602.284 -2343.18
|
||||
411.987 -2431.92 209.172 -2486.27 0.001 -2504.57 -0.001 -2504.57
|
||||
-209.172 -2486.27 -411.987 -2431.92 -602.284 -2343.18 -774.281 -2222.75
|
||||
-922.752 -2074.28 -1043.19 -1902.28 -1131.92 -1711.99 -1186.27 -1509.17
|
||||
-1204.57 -1300 -1204.57 1300 -1186.27 1509.17 -1131.92 1711.99
|
||||
-1043.19 1902.28 -922.752 2074.28 -774.281 2222.75 -602.284 2343.18
|
||||
-411.987 2431.92 -209.172 2486.27 -0.001 2504.57 0.001 2504.57
|
||||
209.172 2486.27))
|
||||
(shape (polygon B.Cu 0 209.172 2486.27 411.987 2431.92 602.284 2343.18 774.281 2222.75
|
||||
922.752 2074.28 1043.19 1902.28 1131.92 1711.99 1186.27 1509.17
|
||||
1204.57 1300 1204.57 -1300 1186.27 -1509.17 1131.92 -1711.99
|
||||
1043.19 -1902.28 922.752 -2074.28 774.281 -2222.75 602.284 -2343.18
|
||||
411.987 -2431.92 209.172 -2486.27 0.001 -2504.57 -0.001 -2504.57
|
||||
-209.172 -2486.27 -411.987 -2431.92 -602.284 -2343.18 -774.281 -2222.75
|
||||
-922.752 -2074.28 -1043.19 -1902.28 -1131.92 -1711.99 -1186.27 -1509.17
|
||||
-1204.57 -1300 -1204.57 1300 -1186.27 1509.17 -1131.92 1711.99
|
||||
-1043.19 1902.28 -922.752 2074.28 -774.281 2222.75 -602.284 2343.18
|
||||
-411.987 2431.92 -209.172 2486.27 -0.001 2504.57 0.001 2504.57
|
||||
209.172 2486.27))
|
||||
(attach off)
|
||||
)
|
||||
(padstack RoundRect[T]Pad_1175x1450_250.951_um
|
||||
(shape (polygon F.Cu 0 381.077 722.138 423.33 710.817 462.975 692.33 498.808 667.24
|
||||
529.74 636.308 554.83 600.476 573.317 560.83 584.638 518.577
|
||||
588.451 475 588.451 -475 584.638 -518.577 573.317 -560.83
|
||||
554.83 -600.475 529.74 -636.308 498.808 -667.24 462.976 -692.33
|
||||
423.33 -710.817 381.077 -722.138 337.5 -725.951 -337.5 -725.951
|
||||
-381.077 -722.138 -423.33 -710.817 -462.975 -692.33 -498.808 -667.24
|
||||
-529.74 -636.308 -554.83 -600.476 -573.317 -560.83 -584.638 -518.577
|
||||
-588.451 -475 -588.451 475 -584.638 518.577 -573.317 560.83
|
||||
-554.83 600.475 -529.74 636.308 -498.808 667.24 -462.976 692.33
|
||||
-423.33 710.817 -381.077 722.138 -337.5 725.951 337.5 725.951
|
||||
381.077 722.138))
|
||||
(attach off)
|
||||
)
|
||||
(padstack RoundRect[T]Pad_1200x1400_250.95_um
|
||||
(shape (polygon F.Cu 0 393.578 697.139 435.831 685.817 475.476 667.33 511.309 642.24
|
||||
542.24 611.309 567.33 575.476 585.817 535.831 597.139 493.578
|
||||
600.951 450.001 600.951 -450.001 597.139 -493.578 585.817 -535.831
|
||||
567.33 -575.476 542.24 -611.309 511.309 -642.24 475.476 -667.33
|
||||
435.831 -685.817 393.578 -697.139 350.001 -700.951 -350.001 -700.951
|
||||
-393.578 -697.139 -435.831 -685.817 -475.476 -667.33 -511.309 -642.24
|
||||
-542.24 -611.309 -567.33 -575.476 -585.817 -535.831 -597.139 -493.578
|
||||
-600.951 -450.001 -600.951 450.001 -597.139 493.578 -585.817 535.831
|
||||
-567.33 575.476 -542.24 611.309 -511.309 642.24 -475.476 667.33
|
||||
-435.831 685.817 -393.578 697.139 -350.001 700.951 350.001 700.951
|
||||
393.578 697.139))
|
||||
(attach off)
|
||||
)
|
||||
(padstack RoundRect[T]Pad_1325x1300_250.95_um
|
||||
(shape (polygon F.Cu 0 456.078 647.139 498.331 635.817 537.976 617.33 573.809 592.24
|
||||
604.74 561.309 629.83 525.476 648.317 485.831 659.639 443.578
|
||||
663.451 400.001 663.451 -400.001 659.639 -443.578 648.317 -485.831
|
||||
629.83 -525.476 604.74 -561.309 573.809 -592.24 537.976 -617.33
|
||||
498.331 -635.817 456.078 -647.139 412.501 -650.951 -412.501 -650.951
|
||||
-456.078 -647.139 -498.331 -635.817 -537.976 -617.33 -573.809 -592.24
|
||||
-604.74 -561.309 -629.83 -525.476 -648.317 -485.831 -659.639 -443.578
|
||||
-663.451 -400.001 -663.451 400.001 -659.639 443.578 -648.317 485.831
|
||||
-629.83 525.476 -604.74 561.309 -573.809 592.24 -537.976 617.33
|
||||
-498.331 635.817 -456.078 647.139 -412.501 650.951 412.501 650.951
|
||||
456.078 647.139))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Rect[T]Pad_300x1450_um
|
||||
(shape (rect F.Cu -150 -725 150 725))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Rect[T]Pad_600x1450_um
|
||||
(shape (rect F.Cu -300 -725 300 725))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Rect[T]Pad_7875x2000_um
|
||||
(shape (rect F.Cu -3937.5 -1000 3937.5 1000))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Rect[T]Pad_800x2000_um
|
||||
(shape (rect F.Cu -400 -1000 400 1000))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Rect[T]Pad_1000x1500_um
|
||||
(shape (rect F.Cu -500 -750 500 750))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Rect[A]Pad_1550x1550_um
|
||||
(shape (rect F.Cu -775 -775 775 775))
|
||||
(shape (rect B.Cu -775 -775 775 775))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Rect[T]Pad_1600x550_um
|
||||
(shape (rect F.Cu -800 -275 800 275))
|
||||
(attach off)
|
||||
)
|
||||
(padstack Rect[A]Pad_1700x1700_um
|
||||
(shape (rect F.Cu -850 -850 850 850))
|
||||
(shape (rect B.Cu -850 -850 850 850))
|
||||
(attach off)
|
||||
)
|
||||
(padstack "Via[0-1]_800:400_um"
|
||||
(shape (circle F.Cu 800))
|
||||
(shape (circle B.Cu 800))
|
||||
(attach off)
|
||||
)
|
||||
)
|
||||
(network
|
||||
(net "Net-(U1-Pad19)"
|
||||
(pins U1-19)
|
||||
)
|
||||
(net "Net-(U1-Pad20)"
|
||||
(pins U1-20)
|
||||
)
|
||||
(net "Net-(U1-Pad22)"
|
||||
(pins U1-22)
|
||||
)
|
||||
(net GND
|
||||
(pins C1-2 J1-6 C2-2 SW5-2 J4-1 D1-1 J3-1 J5-1 SW1-S1 SW1-C J2-A1B12 J2-B1A12
|
||||
J2-S1 J2-S2 J2-S3 J2-S4 C3-2 U1-5 U1-21 SW2-C SW2-S1 D2-1 SW3-S1 SW3-C SW4-C
|
||||
SW4-S1 C4-2)
|
||||
)
|
||||
(net VCC
|
||||
(pins J1-2 R2-2 J5-4 J2-A4B9 J2-B4A9 C3-1 R1-2 U1-4 U1-18 C4-1 R4-1 R5-1 R6-1)
|
||||
)
|
||||
(net XTAL1
|
||||
(pins C1-1 Y1-1 U1-7)
|
||||
)
|
||||
(net XTAL2
|
||||
(pins C2-1 Y1-2 U1-8)
|
||||
)
|
||||
(net "Net-(D1-Pad2)"
|
||||
(pins R2-1 D1-2)
|
||||
)
|
||||
(net MOSI
|
||||
(pins J1-4 U1-15)
|
||||
)
|
||||
(net SCK
|
||||
(pins J1-3 U1-17)
|
||||
)
|
||||
(net MISO
|
||||
(pins J1-1 U1-16)
|
||||
)
|
||||
(net RST
|
||||
(pins J1-5 SW5-1 J4-4 R1-1 JP5-1 JP6-2 U1-29)
|
||||
)
|
||||
(net "Net-(J2-PadA6)"
|
||||
(pins JP1-2 JP2-2 J2-A6)
|
||||
)
|
||||
(net "Net-(J2-PadB7)"
|
||||
(pins JP8-1 J2-B7 JP7-1)
|
||||
)
|
||||
(net "Net-(J2-PadA5)"
|
||||
(pins J2-A5)
|
||||
)
|
||||
(net "Net-(J2-PadB8)"
|
||||
(pins J2-B8 JP6-1)
|
||||
)
|
||||
(net "Net-(J2-PadA7)"
|
||||
(pins JP3-2 J2-A7 JP4-2)
|
||||
)
|
||||
(net "Net-(J2-PadB6)"
|
||||
(pins JP10-1 JP9-1 J2-B6)
|
||||
)
|
||||
(net "Net-(J2-PadA8)"
|
||||
(pins J2-A8 JP5-2)
|
||||
)
|
||||
(net "Net-(J2-PadB5)"
|
||||
(pins J2-B5)
|
||||
)
|
||||
(net BTN4
|
||||
(pins J3-13 U1-26 SW4-S2)
|
||||
)
|
||||
(net BTN3
|
||||
(pins J3-12 U1-25 SW3-S2)
|
||||
)
|
||||
(net BTN2
|
||||
(pins J3-11 U1-24 SW2-S2)
|
||||
)
|
||||
(net BTN1
|
||||
(pins J3-10 SW1-S2 U1-23)
|
||||
)
|
||||
(net ENC4B
|
||||
(pins J3-9 U1-13 SW4-B)
|
||||
)
|
||||
(net ENC4A
|
||||
(pins J3-8 U1-12 SW4-A)
|
||||
)
|
||||
(net ENC3B
|
||||
(pins J3-7 U1-11 SW3-B)
|
||||
)
|
||||
(net ENC3A
|
||||
(pins J3-6 U1-10 SW3-A)
|
||||
)
|
||||
(net ENC2B
|
||||
(pins J3-5 U1-9 SW2-B)
|
||||
)
|
||||
(net ENC2A
|
||||
(pins J3-4 U1-2 SW2-A)
|
||||
)
|
||||
(net ENC1B
|
||||
(pins J3-3 SW1-B U1-1)
|
||||
)
|
||||
(net ENC1A
|
||||
(pins J3-2 SW1-A U1-32)
|
||||
)
|
||||
(net TX
|
||||
(pins J4-3 JP2-1 JP9-2 U1-31)
|
||||
)
|
||||
(net RX
|
||||
(pins J4-2 JP4-1 JP7-2 U1-30 R6-2)
|
||||
)
|
||||
(net SDA
|
||||
(pins JP1-1 JP10-2 J5-2 U1-27 R5-2)
|
||||
)
|
||||
(net SCL
|
||||
(pins JP8-2 JP3-1 J5-3 U1-28 R4-2)
|
||||
)
|
||||
(net "Net-(D2-Pad2)"
|
||||
(pins D2-2 R3-1)
|
||||
)
|
||||
(net LED
|
||||
(pins U1-14 R3-2)
|
||||
)
|
||||
(net "Net-(U1-Pad3)"
|
||||
(pins U1-3)
|
||||
)
|
||||
(net "Net-(U1-Pad6)"
|
||||
(pins U1-6)
|
||||
)
|
||||
(class kicad_default "" BTN1 BTN2 BTN3 BTN4 ENC1A ENC1B ENC2A ENC2B ENC3A
|
||||
ENC3B ENC4A ENC4B GND LED MISO MOSI "Net-(D1-Pad2)" "Net-(D2-Pad2)"
|
||||
"Net-(J2-PadA5)" "Net-(J2-PadA6)" "Net-(J2-PadA7)" "Net-(J2-PadA8)"
|
||||
"Net-(J2-PadB5)" "Net-(J2-PadB6)" "Net-(J2-PadB7)" "Net-(J2-PadB8)"
|
||||
"Net-(U1-Pad19)" "Net-(U1-Pad20)" "Net-(U1-Pad22)" "Net-(U1-Pad3)" "Net-(U1-Pad6)"
|
||||
RST RX SCK SCL SDA TX VCC XTAL1 XTAL2
|
||||
(circuit
|
||||
(use_via Via[0-1]_800:400_um)
|
||||
)
|
||||
(rule
|
||||
(width 250)
|
||||
(clearance 200.1)
|
||||
)
|
||||
)
|
||||
)
|
||||
(wiring
|
||||
)
|
||||
)
|
3285
Devices/Console/Hardware/Circuit/Console.kicad_pcb
Normal file
674
Devices/Console/Hardware/Circuit/Console.net
Normal file
|
@ -0,0 +1,674 @@
|
|||
(export (version D)
|
||||
(design
|
||||
(source "D:\\Dokumente\\Coding\\Visual Studio Code\\smart-lamp-control\\Devices\\Console\\Hardware\\Circuit\\Console.sch")
|
||||
(date "29.08.2021 11:57:42")
|
||||
(tool "Eeschema (5.1.10)-1")
|
||||
(sheet (number 1) (name /) (tstamps /)
|
||||
(title_block
|
||||
(title "LightControl Console")
|
||||
(company)
|
||||
(rev v00)
|
||||
(date 2021-08-10)
|
||||
(source Console.sch)
|
||||
(comment (number 1) (value ""))
|
||||
(comment (number 2) (value ""))
|
||||
(comment (number 3) (value ""))
|
||||
(comment (number 4) (value "Author: GHOSCHT")))))
|
||||
(components
|
||||
(comp (ref SW1)
|
||||
(value PEC11R-4220F-S0012)
|
||||
(footprint Bourns-PEC11R-4220F-S0012:Bourns-PEC11R-4220F-S0012-MFG)
|
||||
(datasheet https://datasheet.octopart.com/PEC11R-4220F-S0012-Bourns-datasheet-68303416.pdf)
|
||||
(libsource (lib Device) (part Rotary_Encoder_Switch) (description "Rotary encoder, dual channel, incremental quadrate outputs, with switch"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6112A1C1))
|
||||
(comp (ref J2)
|
||||
(value TYPE-C-31-M-12)
|
||||
(footprint HRO_TYPE-C-31-M-12:HRO_TYPE-C-31-M-12)
|
||||
(datasheet https://datasheet.lcsc.com/lcsc/1811131825_Korean-Hroparts-Elec-TYPE-C-31-M-12_C165948.pdf)
|
||||
(fields
|
||||
(field (name MANUFACTURER) "HRO Electronics")
|
||||
(field (name MAXIMUM_PACKAGE_HEIGHT) 3.31mm)
|
||||
(field (name PARTREV) A)
|
||||
(field (name STANDARD) "Manufacturer Recommendations"))
|
||||
(libsource (lib TYPE-C-31-M-12) (part TYPE-C-31-M-12) (description ""))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6112D89A))
|
||||
(comp (ref JP1)
|
||||
(value SolderJumper)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Open) (description "Solder Jumper, 2-pole, open"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6113282A))
|
||||
(comp (ref JP3)
|
||||
(value SolderJumper)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Open) (description "Solder Jumper, 2-pole, open"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6118262C))
|
||||
(comp (ref JP8)
|
||||
(value SolderJumper)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Open) (description "Solder Jumper, 2-pole, open"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611A3587))
|
||||
(comp (ref SW2)
|
||||
(value PEC11R-4220F-S0012)
|
||||
(footprint Bourns-PEC11R-4220F-S0012:Bourns-PEC11R-4220F-S0012-MFG)
|
||||
(datasheet https://datasheet.octopart.com/PEC11R-4220F-S0012-Bourns-datasheet-68303416.pdf)
|
||||
(libsource (lib Device) (part Rotary_Encoder_Switch) (description "Rotary encoder, dual channel, incremental quadrate outputs, with switch"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611CC8B9))
|
||||
(comp (ref SW3)
|
||||
(value PEC11R-4220F-S0012)
|
||||
(footprint Bourns-PEC11R-4220F-S0012:Bourns-PEC11R-4220F-S0012-MFG)
|
||||
(datasheet https://datasheet.octopart.com/PEC11R-4220F-S0012-Bourns-datasheet-68303416.pdf)
|
||||
(libsource (lib Device) (part Rotary_Encoder_Switch) (description "Rotary encoder, dual channel, incremental quadrate outputs, with switch"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611CDF12))
|
||||
(comp (ref SW4)
|
||||
(value PEC11R-4220F-S0012)
|
||||
(footprint Bourns-PEC11R-4220F-S0012:Bourns-PEC11R-4220F-S0012-MFG)
|
||||
(datasheet https://datasheet.octopart.com/PEC11R-4220F-S0012-Bourns-datasheet-68303416.pdf)
|
||||
(libsource (lib Device) (part Rotary_Encoder_Switch) (description "Rotary encoder, dual channel, incremental quadrate outputs, with switch"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611CEA4E))
|
||||
(comp (ref J3)
|
||||
(value Conn_01x13)
|
||||
(footprint Connector_PinHeader_2.54mm:PinHeader_1x13_P2.54mm_Vertical)
|
||||
(datasheet ~)
|
||||
(libsource (lib Connector_Generic) (part Conn_01x13) (description "Generic connector, single row, 01x13, script generated (kicad-library-utils/schlib/autogen/connector/)"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61285557))
|
||||
(comp (ref J5)
|
||||
(value Conn_01x04)
|
||||
(footprint Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical)
|
||||
(datasheet ~)
|
||||
(libsource (lib Connector_Generic) (part Conn_01x04) (description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 613021A3))
|
||||
(comp (ref J4)
|
||||
(value Conn_01x04)
|
||||
(footprint Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical)
|
||||
(datasheet ~)
|
||||
(libsource (lib Connector_Generic) (part Conn_01x04) (description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 613031C0))
|
||||
(comp (ref D1)
|
||||
(value 17-21/BHC-XL2M2TY/3T)
|
||||
(footprint LED_SMD:LED_0805_2012Metric_Castellated)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part LED) (description "Light emitting diode"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6113FB23))
|
||||
(comp (ref R2)
|
||||
(value 200)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6114AFDD))
|
||||
(comp (ref R1)
|
||||
(value 10k)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611669B4))
|
||||
(comp (ref J1)
|
||||
(value AVR-ISP-6)
|
||||
(footprint AVR-ISP:AVR-ISP)
|
||||
(datasheet " ~")
|
||||
(libsource (lib Connector) (part AVR-ISP-6) (description "Atmel 6-pin ISP connector"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61134728))
|
||||
(comp (ref Y1)
|
||||
(value 16MHz)
|
||||
(footprint Crystal:Crystal_SMD_HC49-SD_HandSoldering)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part Crystal) (description "Two pin crystal"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6113484F))
|
||||
(comp (ref C1)
|
||||
(value 22p)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6113DC2F))
|
||||
(comp (ref C2)
|
||||
(value 22p)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611448F1))
|
||||
(comp (ref C3)
|
||||
(value 100n)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6115564D))
|
||||
(comp (ref JP2)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611AC9C3))
|
||||
(comp (ref JP4)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611AE464))
|
||||
(comp (ref JP5)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611AECF9))
|
||||
(comp (ref JP6)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611AF363))
|
||||
(comp (ref JP7)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611B0523))
|
||||
(comp (ref JP9)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611B0A60))
|
||||
(comp (ref JP10)
|
||||
(value SolderJumper)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Open) (description "Solder Jumper, 2-pole, open"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611A3577))
|
||||
(comp (ref SW5)
|
||||
(value SW_Push)
|
||||
(footprint SKRKAEE020:SKRKAEE020)
|
||||
(datasheet ~)
|
||||
(libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6132D0B4))
|
||||
(comp (ref U1)
|
||||
(value ATmega328PB-AU)
|
||||
(footprint Package_QFP:TQFP-32_7x7mm_P0.8mm)
|
||||
(datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/40001906C.pdf)
|
||||
(libsource (lib MCU_Microchip_ATmega) (part ATmega328PB-AU) (description "20MHz, 32kB Flash, 2kB SRAM, 1kB EEPROM, TQFP-32"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61C8D3E7))
|
||||
(comp (ref D2)
|
||||
(value 17-21/BHC-XL2M2TY/3T)
|
||||
(footprint LED_SMD:LED_0805_2012Metric_Castellated)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part LED) (description "Light emitting diode"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61D1A3B1))
|
||||
(comp (ref R3)
|
||||
(value 200)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61D1A3B7))
|
||||
(comp (ref C4)
|
||||
(value 100n)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611FCAF6))
|
||||
(comp (ref R6)
|
||||
(value 10k)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 612D3AC9))
|
||||
(comp (ref R4)
|
||||
(value 10k)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 612D449E))
|
||||
(comp (ref R5)
|
||||
(value 10k)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 612D4F68)))
|
||||
(libparts
|
||||
(libpart (lib Connector) (part AVR-ISP-6)
|
||||
(description "Atmel 6-pin ISP connector")
|
||||
(docs " ~")
|
||||
(footprints
|
||||
(fp IDC?Header*2x03*)
|
||||
(fp Pin?Header*2x03*))
|
||||
(fields
|
||||
(field (name Reference) J)
|
||||
(field (name Value) AVR-ISP-6))
|
||||
(pins
|
||||
(pin (num 1) (name MISO) (type passive))
|
||||
(pin (num 2) (name VCC) (type passive))
|
||||
(pin (num 3) (name SCK) (type passive))
|
||||
(pin (num 4) (name MOSI) (type passive))
|
||||
(pin (num 5) (name ~RST) (type passive))
|
||||
(pin (num 6) (name GND) (type passive))))
|
||||
(libpart (lib Connector_Generic) (part Conn_01x04)
|
||||
(description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp Connector*:*_1x??_*))
|
||||
(fields
|
||||
(field (name Reference) J)
|
||||
(field (name Value) Conn_01x04))
|
||||
(pins
|
||||
(pin (num 1) (name Pin_1) (type passive))
|
||||
(pin (num 2) (name Pin_2) (type passive))
|
||||
(pin (num 3) (name Pin_3) (type passive))
|
||||
(pin (num 4) (name Pin_4) (type passive))))
|
||||
(libpart (lib Connector_Generic) (part Conn_01x13)
|
||||
(description "Generic connector, single row, 01x13, script generated (kicad-library-utils/schlib/autogen/connector/)")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp Connector*:*_1x??_*))
|
||||
(fields
|
||||
(field (name Reference) J)
|
||||
(field (name Value) Conn_01x13))
|
||||
(pins
|
||||
(pin (num 1) (name Pin_1) (type passive))
|
||||
(pin (num 2) (name Pin_2) (type passive))
|
||||
(pin (num 3) (name Pin_3) (type passive))
|
||||
(pin (num 4) (name Pin_4) (type passive))
|
||||
(pin (num 5) (name Pin_5) (type passive))
|
||||
(pin (num 6) (name Pin_6) (type passive))
|
||||
(pin (num 7) (name Pin_7) (type passive))
|
||||
(pin (num 8) (name Pin_8) (type passive))
|
||||
(pin (num 9) (name Pin_9) (type passive))
|
||||
(pin (num 10) (name Pin_10) (type passive))
|
||||
(pin (num 11) (name Pin_11) (type passive))
|
||||
(pin (num 12) (name Pin_12) (type passive))
|
||||
(pin (num 13) (name Pin_13) (type passive))))
|
||||
(libpart (lib Device) (part C)
|
||||
(description "Unpolarized capacitor")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp C_*))
|
||||
(fields
|
||||
(field (name Reference) C)
|
||||
(field (name Value) C))
|
||||
(pins
|
||||
(pin (num 1) (name ~) (type passive))
|
||||
(pin (num 2) (name ~) (type passive))))
|
||||
(libpart (lib Device) (part Crystal)
|
||||
(description "Two pin crystal")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp Crystal*))
|
||||
(fields
|
||||
(field (name Reference) Y)
|
||||
(field (name Value) Crystal))
|
||||
(pins
|
||||
(pin (num 1) (name 1) (type passive))
|
||||
(pin (num 2) (name 2) (type passive))))
|
||||
(libpart (lib Device) (part LED)
|
||||
(description "Light emitting diode")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp LED*)
|
||||
(fp LED_SMD:*)
|
||||
(fp LED_THT:*))
|
||||
(fields
|
||||
(field (name Reference) D)
|
||||
(field (name Value) LED))
|
||||
(pins
|
||||
(pin (num 1) (name K) (type passive))
|
||||
(pin (num 2) (name A) (type passive))))
|
||||
(libpart (lib Device) (part R)
|
||||
(description Resistor)
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp R_*))
|
||||
(fields
|
||||
(field (name Reference) R)
|
||||
(field (name Value) R))
|
||||
(pins
|
||||
(pin (num 1) (name ~) (type passive))
|
||||
(pin (num 2) (name ~) (type passive))))
|
||||
(libpart (lib Device) (part Rotary_Encoder_Switch)
|
||||
(description "Rotary encoder, dual channel, incremental quadrate outputs, with switch")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp RotaryEncoder*Switch*))
|
||||
(fields
|
||||
(field (name Reference) SW)
|
||||
(field (name Value) Rotary_Encoder_Switch))
|
||||
(pins
|
||||
(pin (num A) (name A) (type passive))
|
||||
(pin (num B) (name B) (type passive))
|
||||
(pin (num C) (name C) (type passive))
|
||||
(pin (num S1) (name S1) (type passive))
|
||||
(pin (num S2) (name S2) (type passive))))
|
||||
(libpart (lib Jumper) (part SolderJumper_2_Bridged)
|
||||
(description "Solder Jumper, 2-pole, closed/bridged")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp SolderJumper*Bridged*))
|
||||
(fields
|
||||
(field (name Reference) JP)
|
||||
(field (name Value) SolderJumper_2_Bridged))
|
||||
(pins
|
||||
(pin (num 1) (name A) (type passive))
|
||||
(pin (num 2) (name B) (type passive))))
|
||||
(libpart (lib Jumper) (part SolderJumper_2_Open)
|
||||
(description "Solder Jumper, 2-pole, open")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp SolderJumper*Open*))
|
||||
(fields
|
||||
(field (name Reference) JP)
|
||||
(field (name Value) SolderJumper_2_Open))
|
||||
(pins
|
||||
(pin (num 1) (name A) (type passive))
|
||||
(pin (num 2) (name B) (type passive))))
|
||||
(libpart (lib MCU_Microchip_ATmega) (part ATmega48PB-AU)
|
||||
(aliases
|
||||
(alias ATmega88PB-AU)
|
||||
(alias ATmega168PB-AU)
|
||||
(alias ATmega328PB-AU))
|
||||
(description "20MHz, 4kB Flash, 512B SRAM, 256B EEPROM, TQFP-32")
|
||||
(docs http://ww1.microchip.com/downloads/en/DeviceDoc/40001909A.pdf)
|
||||
(footprints
|
||||
(fp TQFP*7x7mm*P0.8mm*))
|
||||
(fields
|
||||
(field (name Reference) U)
|
||||
(field (name Value) ATmega48PB-AU)
|
||||
(field (name Footprint) Package_QFP:TQFP-32_7x7mm_P0.8mm))
|
||||
(pins
|
||||
(pin (num 1) (name PD3) (type BiDi))
|
||||
(pin (num 2) (name PD4) (type BiDi))
|
||||
(pin (num 3) (name PE0) (type BiDi))
|
||||
(pin (num 4) (name VCC) (type power_in))
|
||||
(pin (num 5) (name GND) (type power_in))
|
||||
(pin (num 6) (name PE1) (type BiDi))
|
||||
(pin (num 7) (name XTAL1/PB6) (type BiDi))
|
||||
(pin (num 8) (name XTAL2/PB7) (type BiDi))
|
||||
(pin (num 9) (name PD5) (type BiDi))
|
||||
(pin (num 10) (name PD6) (type BiDi))
|
||||
(pin (num 11) (name PD7) (type BiDi))
|
||||
(pin (num 12) (name PB0) (type BiDi))
|
||||
(pin (num 13) (name PB1) (type BiDi))
|
||||
(pin (num 14) (name PB2) (type BiDi))
|
||||
(pin (num 15) (name PB3) (type BiDi))
|
||||
(pin (num 16) (name PB4) (type BiDi))
|
||||
(pin (num 17) (name PB5) (type BiDi))
|
||||
(pin (num 18) (name AVCC) (type power_in))
|
||||
(pin (num 19) (name PE2) (type BiDi))
|
||||
(pin (num 20) (name AREF) (type passive))
|
||||
(pin (num 21) (name GND) (type passive))
|
||||
(pin (num 22) (name PE3) (type BiDi))
|
||||
(pin (num 23) (name PC0) (type BiDi))
|
||||
(pin (num 24) (name PC1) (type BiDi))
|
||||
(pin (num 25) (name PC2) (type BiDi))
|
||||
(pin (num 26) (name PC3) (type BiDi))
|
||||
(pin (num 27) (name PC4) (type BiDi))
|
||||
(pin (num 28) (name PC5) (type BiDi))
|
||||
(pin (num 29) (name ~RESET~/PC6) (type BiDi))
|
||||
(pin (num 30) (name PD0) (type BiDi))
|
||||
(pin (num 31) (name PD1) (type BiDi))
|
||||
(pin (num 32) (name PD2) (type BiDi))))
|
||||
(libpart (lib Switch) (part SW_Push)
|
||||
(description "Push button switch, generic, two pins")
|
||||
(docs ~)
|
||||
(fields
|
||||
(field (name Reference) SW)
|
||||
(field (name Value) SW_Push))
|
||||
(pins
|
||||
(pin (num 1) (name 1) (type passive))
|
||||
(pin (num 2) (name 2) (type passive))))
|
||||
(libpart (lib TYPE-C-31-M-12) (part TYPE-C-31-M-12)
|
||||
(fields
|
||||
(field (name Reference) J)
|
||||
(field (name Value) TYPE-C-31-M-12)
|
||||
(field (name Footprint) HRO_TYPE-C-31-M-12)
|
||||
(field (name MAXIMUM_PACKAGE_HEIGHT) 3.31mm)
|
||||
(field (name STANDARD) "Manufacturer Recommendations")
|
||||
(field (name PARTREV) A)
|
||||
(field (name MANUFACTURER) "HRO Electronics"))
|
||||
(pins
|
||||
(pin (num A5) (name CC1) (type BiDi))
|
||||
(pin (num A6) (name DP1) (type BiDi))
|
||||
(pin (num A7) (name DN1) (type BiDi))
|
||||
(pin (num A8) (name SBU1) (type BiDi))
|
||||
(pin (num A1B12) (name GND) (type power_in))
|
||||
(pin (num A4B9) (name VBUS) (type power_in))
|
||||
(pin (num B5) (name CC2) (type BiDi))
|
||||
(pin (num B6) (name DP2) (type BiDi))
|
||||
(pin (num B7) (name DN2) (type BiDi))
|
||||
(pin (num B8) (name SBU2) (type BiDi))
|
||||
(pin (num B1A12) (name GND) (type power_in))
|
||||
(pin (num B4A9) (name VBUS) (type power_in))
|
||||
(pin (num S1) (name SHIELD) (type passive))
|
||||
(pin (num S2) (name SHIELD) (type passive))
|
||||
(pin (num S3) (name SHIELD) (type passive))
|
||||
(pin (num S4) (name SHIELD) (type passive)))))
|
||||
(libraries
|
||||
(library (logical Connector)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Connector.lib"))
|
||||
(library (logical Connector_Generic)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Connector_Generic.lib"))
|
||||
(library (logical Device)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Device.lib"))
|
||||
(library (logical Jumper)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Jumper.lib"))
|
||||
(library (logical MCU_Microchip_ATmega)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/MCU_Microchip_ATmega.lib"))
|
||||
(library (logical Switch)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Switch.lib"))
|
||||
(library (logical TYPE-C-31-M-12)
|
||||
(uri "D:\\Dokumente\\Coding\\Visual Studio Code\\smart-lamp-control\\Devices\\Console\\Hardware\\Circuit/Libraries/TYPE-C-31-M-12.lib")))
|
||||
(nets
|
||||
(net (code 1) (name GND)
|
||||
(node (ref U1) (pin 5))
|
||||
(node (ref D2) (pin 1))
|
||||
(node (ref C2) (pin 2))
|
||||
(node (ref C1) (pin 2))
|
||||
(node (ref J1) (pin 6))
|
||||
(node (ref J5) (pin 1))
|
||||
(node (ref J4) (pin 1))
|
||||
(node (ref C4) (pin 2))
|
||||
(node (ref J2) (pin S3))
|
||||
(node (ref J2) (pin S4))
|
||||
(node (ref J2) (pin S2))
|
||||
(node (ref J2) (pin S1))
|
||||
(node (ref J2) (pin B1A12))
|
||||
(node (ref J2) (pin A1B12))
|
||||
(node (ref SW1) (pin C))
|
||||
(node (ref SW2) (pin S1))
|
||||
(node (ref SW4) (pin S1))
|
||||
(node (ref SW4) (pin C))
|
||||
(node (ref SW3) (pin S1))
|
||||
(node (ref SW3) (pin C))
|
||||
(node (ref SW1) (pin S1))
|
||||
(node (ref SW2) (pin C))
|
||||
(node (ref J3) (pin 1))
|
||||
(node (ref U1) (pin 21))
|
||||
(node (ref D1) (pin 1))
|
||||
(node (ref C3) (pin 2))
|
||||
(node (ref SW5) (pin 2)))
|
||||
(net (code 2) (name "Net-(J2-PadA7)")
|
||||
(node (ref JP3) (pin 2))
|
||||
(node (ref J2) (pin A7))
|
||||
(node (ref JP4) (pin 2)))
|
||||
(net (code 3) (name VCC)
|
||||
(node (ref R1) (pin 2))
|
||||
(node (ref R2) (pin 2))
|
||||
(node (ref R6) (pin 1))
|
||||
(node (ref R4) (pin 1))
|
||||
(node (ref R5) (pin 1))
|
||||
(node (ref J2) (pin A4B9))
|
||||
(node (ref J1) (pin 2))
|
||||
(node (ref U1) (pin 18))
|
||||
(node (ref U1) (pin 4))
|
||||
(node (ref J2) (pin B4A9))
|
||||
(node (ref C4) (pin 1))
|
||||
(node (ref C3) (pin 1))
|
||||
(node (ref J5) (pin 4)))
|
||||
(net (code 4) (name XTAL2)
|
||||
(node (ref U1) (pin 8))
|
||||
(node (ref Y1) (pin 2))
|
||||
(node (ref C2) (pin 1)))
|
||||
(net (code 5) (name XTAL1)
|
||||
(node (ref Y1) (pin 1))
|
||||
(node (ref U1) (pin 7))
|
||||
(node (ref C1) (pin 1)))
|
||||
(net (code 6) (name "Net-(U1-Pad22)")
|
||||
(node (ref U1) (pin 22)))
|
||||
(net (code 7) (name "Net-(U1-Pad20)")
|
||||
(node (ref U1) (pin 20)))
|
||||
(net (code 8) (name "Net-(U1-Pad19)")
|
||||
(node (ref U1) (pin 19)))
|
||||
(net (code 9) (name LED)
|
||||
(node (ref R3) (pin 2))
|
||||
(node (ref U1) (pin 14)))
|
||||
(net (code 10) (name RST)
|
||||
(node (ref JP5) (pin 1))
|
||||
(node (ref J1) (pin 5))
|
||||
(node (ref J4) (pin 4))
|
||||
(node (ref U1) (pin 29))
|
||||
(node (ref SW5) (pin 1))
|
||||
(node (ref JP6) (pin 2))
|
||||
(node (ref R1) (pin 1)))
|
||||
(net (code 11) (name "Net-(D1-Pad2)")
|
||||
(node (ref R2) (pin 1))
|
||||
(node (ref D1) (pin 2)))
|
||||
(net (code 12) (name SDA)
|
||||
(node (ref JP1) (pin 1))
|
||||
(node (ref U1) (pin 27))
|
||||
(node (ref J5) (pin 2))
|
||||
(node (ref JP10) (pin 2))
|
||||
(node (ref R5) (pin 2)))
|
||||
(net (code 13) (name MOSI)
|
||||
(node (ref U1) (pin 15))
|
||||
(node (ref J1) (pin 4)))
|
||||
(net (code 14) (name SCK)
|
||||
(node (ref J1) (pin 3))
|
||||
(node (ref U1) (pin 17)))
|
||||
(net (code 15) (name MISO)
|
||||
(node (ref U1) (pin 16))
|
||||
(node (ref J1) (pin 1)))
|
||||
(net (code 16) (name "Net-(D2-Pad2)")
|
||||
(node (ref D2) (pin 2))
|
||||
(node (ref R3) (pin 1)))
|
||||
(net (code 17) (name "Net-(U1-Pad6)")
|
||||
(node (ref U1) (pin 6)))
|
||||
(net (code 18) (name "Net-(U1-Pad3)")
|
||||
(node (ref U1) (pin 3)))
|
||||
(net (code 19) (name ENC3B)
|
||||
(node (ref U1) (pin 11))
|
||||
(node (ref SW3) (pin B))
|
||||
(node (ref J3) (pin 7)))
|
||||
(net (code 20) (name ENC3A)
|
||||
(node (ref J3) (pin 6))
|
||||
(node (ref SW3) (pin A))
|
||||
(node (ref U1) (pin 10)))
|
||||
(net (code 21) (name ENC2A)
|
||||
(node (ref J3) (pin 4))
|
||||
(node (ref U1) (pin 2))
|
||||
(node (ref SW2) (pin A)))
|
||||
(net (code 22) (name ENC1B)
|
||||
(node (ref SW1) (pin B))
|
||||
(node (ref J3) (pin 3))
|
||||
(node (ref U1) (pin 1)))
|
||||
(net (code 23) (name ENC2B)
|
||||
(node (ref J3) (pin 5))
|
||||
(node (ref U1) (pin 9))
|
||||
(node (ref SW2) (pin B)))
|
||||
(net (code 24) (name ENC1A)
|
||||
(node (ref SW1) (pin A))
|
||||
(node (ref U1) (pin 32))
|
||||
(node (ref J3) (pin 2)))
|
||||
(net (code 25) (name TX)
|
||||
(node (ref JP9) (pin 2))
|
||||
(node (ref U1) (pin 31))
|
||||
(node (ref J4) (pin 3))
|
||||
(node (ref JP2) (pin 1)))
|
||||
(net (code 26) (name RX)
|
||||
(node (ref U1) (pin 30))
|
||||
(node (ref JP7) (pin 2))
|
||||
(node (ref R6) (pin 2))
|
||||
(node (ref JP4) (pin 1))
|
||||
(node (ref J4) (pin 2)))
|
||||
(net (code 27) (name SCL)
|
||||
(node (ref J5) (pin 3))
|
||||
(node (ref R4) (pin 2))
|
||||
(node (ref JP3) (pin 1))
|
||||
(node (ref JP8) (pin 2))
|
||||
(node (ref U1) (pin 28)))
|
||||
(net (code 28) (name BTN4)
|
||||
(node (ref U1) (pin 26))
|
||||
(node (ref J3) (pin 13))
|
||||
(node (ref SW4) (pin S2)))
|
||||
(net (code 29) (name BTN3)
|
||||
(node (ref SW3) (pin S2))
|
||||
(node (ref U1) (pin 25))
|
||||
(node (ref J3) (pin 12)))
|
||||
(net (code 30) (name BTN2)
|
||||
(node (ref J3) (pin 11))
|
||||
(node (ref U1) (pin 24))
|
||||
(node (ref SW2) (pin S2)))
|
||||
(net (code 31) (name BTN1)
|
||||
(node (ref SW1) (pin S2))
|
||||
(node (ref U1) (pin 23))
|
||||
(node (ref J3) (pin 10)))
|
||||
(net (code 32) (name ENC4B)
|
||||
(node (ref SW4) (pin B))
|
||||
(node (ref U1) (pin 13))
|
||||
(node (ref J3) (pin 9)))
|
||||
(net (code 33) (name ENC4A)
|
||||
(node (ref J3) (pin 8))
|
||||
(node (ref U1) (pin 12))
|
||||
(node (ref SW4) (pin A)))
|
||||
(net (code 34) (name "Net-(J2-PadB7)")
|
||||
(node (ref JP8) (pin 1))
|
||||
(node (ref J2) (pin B7))
|
||||
(node (ref JP7) (pin 1)))
|
||||
(net (code 35) (name "Net-(J2-PadB6)")
|
||||
(node (ref JP10) (pin 1))
|
||||
(node (ref JP9) (pin 1))
|
||||
(node (ref J2) (pin B6)))
|
||||
(net (code 36) (name "Net-(J2-PadA6)")
|
||||
(node (ref JP2) (pin 2))
|
||||
(node (ref J2) (pin A6))
|
||||
(node (ref JP1) (pin 2)))
|
||||
(net (code 37) (name "Net-(J2-PadB5)")
|
||||
(node (ref J2) (pin B5)))
|
||||
(net (code 38) (name "Net-(J2-PadB8)")
|
||||
(node (ref JP6) (pin 1))
|
||||
(node (ref J2) (pin B8)))
|
||||
(net (code 39) (name "Net-(J2-PadA8)")
|
||||
(node (ref J2) (pin A8))
|
||||
(node (ref JP5) (pin 2)))
|
||||
(net (code 40) (name "Net-(J2-PadA5)")
|
||||
(node (ref J2) (pin A5)))))
|
|
@ -1,249 +1,249 @@
|
|||
update=19.08.2021 18:10:15
|
||||
version=1
|
||||
last_client=kicad
|
||||
[general]
|
||||
version=1
|
||||
RootSch=
|
||||
BoardNm=
|
||||
[cvpcb]
|
||||
version=1
|
||||
NetIExt=net
|
||||
[eeschema]
|
||||
version=1
|
||||
LibDir=
|
||||
[eeschema/libraries]
|
||||
[schematic_editor]
|
||||
version=1
|
||||
PageLayoutDescrFile=
|
||||
PlotDirectoryName=
|
||||
SubpartIdSeparator=0
|
||||
SubpartFirstId=65
|
||||
NetFmtName=Pcbnew
|
||||
SpiceAjustPassiveValues=0
|
||||
LabSize=50
|
||||
ERC_TestSimilarLabels=1
|
||||
[pcbnew]
|
||||
version=1
|
||||
PageLayoutDescrFile=
|
||||
LastNetListRead=Console.net
|
||||
CopperLayerCount=2
|
||||
BoardThickness=1.6
|
||||
AllowMicroVias=0
|
||||
AllowBlindVias=0
|
||||
RequireCourtyardDefinitions=0
|
||||
ProhibitOverlappingCourtyards=1
|
||||
MinTrackWidth=0.2
|
||||
MinViaDiameter=0.4
|
||||
MinViaDrill=0.3
|
||||
MinMicroViaDiameter=0.2
|
||||
MinMicroViaDrill=0.09999999999999999
|
||||
MinHoleToHole=0.25
|
||||
TrackWidth1=0.25
|
||||
TrackWidth2=0.3
|
||||
ViaDiameter1=0.8
|
||||
ViaDrill1=0.4
|
||||
dPairWidth1=0.2
|
||||
dPairGap1=0.25
|
||||
dPairViaGap1=0.25
|
||||
SilkLineWidth=0.12
|
||||
SilkTextSizeV=1
|
||||
SilkTextSizeH=1
|
||||
SilkTextSizeThickness=0.15
|
||||
SilkTextItalic=0
|
||||
SilkTextUpright=1
|
||||
CopperLineWidth=0.2
|
||||
CopperTextSizeV=1.5
|
||||
CopperTextSizeH=1.5
|
||||
CopperTextThickness=0.3
|
||||
CopperTextItalic=0
|
||||
CopperTextUpright=1
|
||||
EdgeCutLineWidth=0.05
|
||||
CourtyardLineWidth=0.05
|
||||
OthersLineWidth=0.15
|
||||
OthersTextSizeV=1
|
||||
OthersTextSizeH=1
|
||||
OthersTextSizeThickness=0.15
|
||||
OthersTextItalic=0
|
||||
OthersTextUpright=1
|
||||
SolderMaskClearance=0
|
||||
SolderMaskMinWidth=0
|
||||
SolderPasteClearance=0
|
||||
SolderPasteRatio=-0
|
||||
[pcbnew/Layer.F.Cu]
|
||||
Name=F.Cu
|
||||
Type=0
|
||||
Enabled=1
|
||||
[pcbnew/Layer.In1.Cu]
|
||||
Name=In1.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In2.Cu]
|
||||
Name=In2.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In3.Cu]
|
||||
Name=In3.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In4.Cu]
|
||||
Name=In4.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In5.Cu]
|
||||
Name=In5.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In6.Cu]
|
||||
Name=In6.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In7.Cu]
|
||||
Name=In7.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In8.Cu]
|
||||
Name=In8.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In9.Cu]
|
||||
Name=In9.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In10.Cu]
|
||||
Name=In10.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In11.Cu]
|
||||
Name=In11.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In12.Cu]
|
||||
Name=In12.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In13.Cu]
|
||||
Name=In13.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In14.Cu]
|
||||
Name=In14.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In15.Cu]
|
||||
Name=In15.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In16.Cu]
|
||||
Name=In16.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In17.Cu]
|
||||
Name=In17.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In18.Cu]
|
||||
Name=In18.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In19.Cu]
|
||||
Name=In19.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In20.Cu]
|
||||
Name=In20.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In21.Cu]
|
||||
Name=In21.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In22.Cu]
|
||||
Name=In22.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In23.Cu]
|
||||
Name=In23.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In24.Cu]
|
||||
Name=In24.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In25.Cu]
|
||||
Name=In25.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In26.Cu]
|
||||
Name=In26.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In27.Cu]
|
||||
Name=In27.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In28.Cu]
|
||||
Name=In28.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In29.Cu]
|
||||
Name=In29.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In30.Cu]
|
||||
Name=In30.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.B.Cu]
|
||||
Name=B.Cu
|
||||
Type=0
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.Adhes]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.Adhes]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.Paste]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.Paste]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.SilkS]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.SilkS]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.Mask]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.Mask]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Dwgs.User]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Cmts.User]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Eco1.User]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Eco2.User]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Edge.Cuts]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Margin]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.CrtYd]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.CrtYd]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.Fab]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.Fab]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Rescue]
|
||||
Enabled=0
|
||||
[pcbnew/Netclasses]
|
||||
[pcbnew/Netclasses/Default]
|
||||
Name=Default
|
||||
Clearance=0.2
|
||||
TrackWidth=0.25
|
||||
ViaDiameter=0.8
|
||||
ViaDrill=0.4
|
||||
uViaDiameter=0.3
|
||||
uViaDrill=0.1
|
||||
dPairWidth=0.2
|
||||
dPairGap=0.25
|
||||
dPairViaGap=0.25
|
||||
update=19.08.2021 18:10:15
|
||||
version=1
|
||||
last_client=kicad
|
||||
[general]
|
||||
version=1
|
||||
RootSch=
|
||||
BoardNm=
|
||||
[cvpcb]
|
||||
version=1
|
||||
NetIExt=net
|
||||
[eeschema]
|
||||
version=1
|
||||
LibDir=
|
||||
[eeschema/libraries]
|
||||
[schematic_editor]
|
||||
version=1
|
||||
PageLayoutDescrFile=
|
||||
PlotDirectoryName=
|
||||
SubpartIdSeparator=0
|
||||
SubpartFirstId=65
|
||||
NetFmtName=Pcbnew
|
||||
SpiceAjustPassiveValues=0
|
||||
LabSize=50
|
||||
ERC_TestSimilarLabels=1
|
||||
[pcbnew]
|
||||
version=1
|
||||
PageLayoutDescrFile=
|
||||
LastNetListRead=Console.net
|
||||
CopperLayerCount=2
|
||||
BoardThickness=1.6
|
||||
AllowMicroVias=0
|
||||
AllowBlindVias=0
|
||||
RequireCourtyardDefinitions=0
|
||||
ProhibitOverlappingCourtyards=1
|
||||
MinTrackWidth=0.2
|
||||
MinViaDiameter=0.4
|
||||
MinViaDrill=0.3
|
||||
MinMicroViaDiameter=0.2
|
||||
MinMicroViaDrill=0.09999999999999999
|
||||
MinHoleToHole=0.25
|
||||
TrackWidth1=0.25
|
||||
TrackWidth2=0.3
|
||||
ViaDiameter1=0.8
|
||||
ViaDrill1=0.4
|
||||
dPairWidth1=0.2
|
||||
dPairGap1=0.25
|
||||
dPairViaGap1=0.25
|
||||
SilkLineWidth=0.12
|
||||
SilkTextSizeV=1
|
||||
SilkTextSizeH=1
|
||||
SilkTextSizeThickness=0.15
|
||||
SilkTextItalic=0
|
||||
SilkTextUpright=1
|
||||
CopperLineWidth=0.2
|
||||
CopperTextSizeV=1.5
|
||||
CopperTextSizeH=1.5
|
||||
CopperTextThickness=0.3
|
||||
CopperTextItalic=0
|
||||
CopperTextUpright=1
|
||||
EdgeCutLineWidth=0.05
|
||||
CourtyardLineWidth=0.05
|
||||
OthersLineWidth=0.15
|
||||
OthersTextSizeV=1
|
||||
OthersTextSizeH=1
|
||||
OthersTextSizeThickness=0.15
|
||||
OthersTextItalic=0
|
||||
OthersTextUpright=1
|
||||
SolderMaskClearance=0
|
||||
SolderMaskMinWidth=0
|
||||
SolderPasteClearance=0
|
||||
SolderPasteRatio=-0
|
||||
[pcbnew/Layer.F.Cu]
|
||||
Name=F.Cu
|
||||
Type=0
|
||||
Enabled=1
|
||||
[pcbnew/Layer.In1.Cu]
|
||||
Name=In1.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In2.Cu]
|
||||
Name=In2.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In3.Cu]
|
||||
Name=In3.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In4.Cu]
|
||||
Name=In4.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In5.Cu]
|
||||
Name=In5.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In6.Cu]
|
||||
Name=In6.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In7.Cu]
|
||||
Name=In7.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In8.Cu]
|
||||
Name=In8.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In9.Cu]
|
||||
Name=In9.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In10.Cu]
|
||||
Name=In10.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In11.Cu]
|
||||
Name=In11.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In12.Cu]
|
||||
Name=In12.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In13.Cu]
|
||||
Name=In13.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In14.Cu]
|
||||
Name=In14.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In15.Cu]
|
||||
Name=In15.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In16.Cu]
|
||||
Name=In16.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In17.Cu]
|
||||
Name=In17.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In18.Cu]
|
||||
Name=In18.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In19.Cu]
|
||||
Name=In19.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In20.Cu]
|
||||
Name=In20.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In21.Cu]
|
||||
Name=In21.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In22.Cu]
|
||||
Name=In22.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In23.Cu]
|
||||
Name=In23.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In24.Cu]
|
||||
Name=In24.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In25.Cu]
|
||||
Name=In25.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In26.Cu]
|
||||
Name=In26.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In27.Cu]
|
||||
Name=In27.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In28.Cu]
|
||||
Name=In28.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In29.Cu]
|
||||
Name=In29.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.In30.Cu]
|
||||
Name=In30.Cu
|
||||
Type=0
|
||||
Enabled=0
|
||||
[pcbnew/Layer.B.Cu]
|
||||
Name=B.Cu
|
||||
Type=0
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.Adhes]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.Adhes]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.Paste]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.Paste]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.SilkS]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.SilkS]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.Mask]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.Mask]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Dwgs.User]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Cmts.User]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Eco1.User]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Eco2.User]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Edge.Cuts]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Margin]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.CrtYd]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.CrtYd]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.B.Fab]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.F.Fab]
|
||||
Enabled=1
|
||||
[pcbnew/Layer.Rescue]
|
||||
Enabled=0
|
||||
[pcbnew/Netclasses]
|
||||
[pcbnew/Netclasses/Default]
|
||||
Name=Default
|
||||
Clearance=0.2
|
||||
TrackWidth=0.25
|
||||
ViaDiameter=0.8
|
||||
ViaDrill=0.4
|
||||
uViaDiameter=0.3
|
||||
uViaDrill=0.1
|
||||
dPairWidth=0.2
|
||||
dPairGap=0.25
|
||||
dPairViaGap=0.25
|
1918
Devices/Console/Hardware/Circuit/Console.ses
Normal file
|
@ -1,22 +1,22 @@
|
|||
(module AVR-ISP (layer F.Cu) (tedit 611E649A)
|
||||
(fp_text reference REF** (at 0 0) (layer F.SilkS)
|
||||
(effects (font (size 0.787402 0.787402) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value AVR-ISP (at 0 0) (layer F.Fab)
|
||||
(effects (font (size 0.787402 0.787402) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start -3.81 -2.54) (end 3.81 -2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start 3.81 -2.54) (end 3.81 2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start 3.81 2.54) (end -3.81 2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start -3.81 2.54) (end -3.81 -2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_circle (center -4.064 2.794) (end -3.964 2.794) (layer F.SilkS) (width 0.2))
|
||||
(fp_text user ICSP (at 0 -3.302) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(pad 4 thru_hole circle (at 0 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 3 thru_hole circle (at 0 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 2 thru_hole circle (at -2.54 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 1 thru_hole rect (at -2.54 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 5 thru_hole circle (at 2.54 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 6 thru_hole circle (at 2.54 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
)
|
||||
(module AVR-ISP (layer F.Cu) (tedit 611E649A)
|
||||
(fp_text reference REF** (at 0 0) (layer F.SilkS)
|
||||
(effects (font (size 0.787402 0.787402) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value AVR-ISP (at 0 0) (layer F.Fab)
|
||||
(effects (font (size 0.787402 0.787402) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start -3.81 -2.54) (end 3.81 -2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start 3.81 -2.54) (end 3.81 2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start 3.81 2.54) (end -3.81 2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start -3.81 2.54) (end -3.81 -2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_circle (center -4.064 2.794) (end -3.964 2.794) (layer F.SilkS) (width 0.2))
|
||||
(fp_text user ICSP (at 0 -3.302) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(pad 4 thru_hole circle (at 0 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 3 thru_hole circle (at 0 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 2 thru_hole circle (at -2.54 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 1 thru_hole rect (at -2.54 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 5 thru_hole circle (at 2.54 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 6 thru_hole circle (at 2.54 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
)
|
|
@ -1,41 +1,41 @@
|
|||
(module Bourns-PEC11R-4220F-S0012-MFG (layer F.Cu) (tedit 611E52A7)
|
||||
(fp_text reference REF** (at -6.5 -8.65) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)) (justify left))
|
||||
)
|
||||
(fp_text value Val** (at 0 0) (layer F.SilkS)
|
||||
(effects (font (size 1.27 1.27) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start -6.5 6.95) (end -6.5 -6.95) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start -6.5 -6.95) (end 6.5 -6.95) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start 6.5 -6.95) (end 6.5 6.95) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start 6.5 6.95) (end -6.5 6.95) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start 6.925 -7.8) (end 6.925 -7.8) (layer F.CrtYd) (width 0.15))
|
||||
(fp_line (start 6.925 -7.8) (end -6.925 -7.8) (layer F.CrtYd) (width 0.15))
|
||||
(fp_line (start -6.925 -7.8) (end -6.925 8.3) (layer F.CrtYd) (width 0.15))
|
||||
(fp_line (start -6.925 8.3) (end 6.925 8.3) (layer F.CrtYd) (width 0.15))
|
||||
(fp_line (start 6.925 8.3) (end 6.925 -7.8) (layer F.CrtYd) (width 0.15))
|
||||
(fp_line (start -6.5 -6.95) (end -3.65 -6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -1.35 -6.95) (end 1.35 -6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 3.65 -6.95) (end 6.5 -6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 6.5 6.95) (end 6.5 2.875) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 6.5 -2.875) (end 6.5 -6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -6.5 6.95) (end -3.65 6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -1.35 6.95) (end -1.15 6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 1.15 6.95) (end 1.35 6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 3.65 6.95) (end 6.5 6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -6.5 6.95) (end -6.5 2.875) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -6.5 -2.875) (end -6.5 -6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_circle (center -2.5 -8.325) (end -2.375 -8.325) (layer F.SilkS) (width 0.25))
|
||||
(pad S1 thru_hole rect (at -2.5 -7) (size 1.55 1.55) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad S2 thru_hole circle (at 2.5 -7) (size 1.55 1.55) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad A thru_hole circle (at -2.5 7.5) (size 1.55 1.55) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad C thru_hole circle (at 0 7.5) (size 1.55 1.55) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad B thru_hole circle (at 2.5 7.5) (size 1.55 1.55) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 3 thru_hole roundrect (at -5.6 0) (size 2.4 5) (drill oval 1.5 2.8) (layers *.Cu *.Mask) (roundrect_rratio 0.5))
|
||||
(pad 4 thru_hole roundrect (at 5.6 0) (size 2.4 5) (drill oval 1.5 2.8) (layers *.Cu *.Mask) (roundrect_rratio 0.5))
|
||||
(model eec.models/Bourns_-_PEC11R-4220F-S0012.step
|
||||
(at (xyz 0 0 0))
|
||||
(scale (xyz 1 1 1))
|
||||
(rotate (xyz 0 0 0))
|
||||
)
|
||||
)
|
||||
(module Bourns-PEC11R-4220F-S0012-MFG (layer F.Cu) (tedit 611E52A7)
|
||||
(fp_text reference REF** (at -6.5 -8.65) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)) (justify left))
|
||||
)
|
||||
(fp_text value Val** (at 0 0) (layer F.SilkS)
|
||||
(effects (font (size 1.27 1.27) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start -6.5 6.95) (end -6.5 -6.95) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start -6.5 -6.95) (end 6.5 -6.95) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start 6.5 -6.95) (end 6.5 6.95) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start 6.5 6.95) (end -6.5 6.95) (layer F.Fab) (width 0.15))
|
||||
(fp_line (start 6.925 -7.8) (end 6.925 -7.8) (layer F.CrtYd) (width 0.15))
|
||||
(fp_line (start 6.925 -7.8) (end -6.925 -7.8) (layer F.CrtYd) (width 0.15))
|
||||
(fp_line (start -6.925 -7.8) (end -6.925 8.3) (layer F.CrtYd) (width 0.15))
|
||||
(fp_line (start -6.925 8.3) (end 6.925 8.3) (layer F.CrtYd) (width 0.15))
|
||||
(fp_line (start 6.925 8.3) (end 6.925 -7.8) (layer F.CrtYd) (width 0.15))
|
||||
(fp_line (start -6.5 -6.95) (end -3.65 -6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -1.35 -6.95) (end 1.35 -6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 3.65 -6.95) (end 6.5 -6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 6.5 6.95) (end 6.5 2.875) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 6.5 -2.875) (end 6.5 -6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -6.5 6.95) (end -3.65 6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -1.35 6.95) (end -1.15 6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 1.15 6.95) (end 1.35 6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start 3.65 6.95) (end 6.5 6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -6.5 6.95) (end -6.5 2.875) (layer F.SilkS) (width 0.15))
|
||||
(fp_line (start -6.5 -2.875) (end -6.5 -6.95) (layer F.SilkS) (width 0.15))
|
||||
(fp_circle (center -2.5 -8.325) (end -2.375 -8.325) (layer F.SilkS) (width 0.25))
|
||||
(pad S1 thru_hole rect (at -2.5 -7) (size 1.55 1.55) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad S2 thru_hole circle (at 2.5 -7) (size 1.55 1.55) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad A thru_hole circle (at -2.5 7.5) (size 1.55 1.55) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad C thru_hole circle (at 0 7.5) (size 1.55 1.55) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad B thru_hole circle (at 2.5 7.5) (size 1.55 1.55) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 3 thru_hole roundrect (at -5.6 0) (size 2.4 5) (drill oval 1.5 2.8) (layers *.Cu *.Mask) (roundrect_rratio 0.5))
|
||||
(pad 4 thru_hole roundrect (at 5.6 0) (size 2.4 5) (drill oval 1.5 2.8) (layers *.Cu *.Mask) (roundrect_rratio 0.5))
|
||||
(model eec.models/Bourns_-_PEC11R-4220F-S0012.step
|
||||
(at (xyz 0 0 0))
|
||||
(scale (xyz 1 1 1))
|
||||
(rotate (xyz 0 0 0))
|
||||
)
|
||||
)
|
|
@ -1,31 +1,31 @@
|
|||
(module "SKRKAEE020" (layer F.Cu)
|
||||
(descr "SKRKAEE020")
|
||||
(tags "Switch")
|
||||
(attr smd)
|
||||
(fp_text reference S** (at 0.000 -0) (layer F.SilkS)
|
||||
(effects (font (size 1.27 1.27) (thickness 0.254)))
|
||||
)
|
||||
(fp_text user %R (at 0.000 -0) (layer F.Fab)
|
||||
(effects (font (size 1.27 1.27) (thickness 0.254)))
|
||||
)
|
||||
(fp_text value "SKRKAEE020" (at 0.000 -0) (layer F.SilkS) hide
|
||||
(effects (font (size 1.27 1.27) (thickness 0.254)))
|
||||
)
|
||||
(fp_line (start -1.95 -1.45) (end 1.95 -1.45) (layer F.Fab) (width 0.2))
|
||||
(fp_line (start 1.95 -1.45) (end 1.95 1.45) (layer F.Fab) (width 0.2))
|
||||
(fp_line (start 1.95 1.45) (end -1.95 1.45) (layer F.Fab) (width 0.2))
|
||||
(fp_line (start -1.95 1.45) (end -1.95 -1.45) (layer F.Fab) (width 0.2))
|
||||
(fp_line (start -3.5 -2.45) (end 3.5 -2.45) (layer F.CrtYd) (width 0.1))
|
||||
(fp_line (start 3.5 -2.45) (end 3.5 2.45) (layer F.CrtYd) (width 0.1))
|
||||
(fp_line (start 3.5 2.45) (end -3.5 2.45) (layer F.CrtYd) (width 0.1))
|
||||
(fp_line (start -3.5 2.45) (end -3.5 -2.45) (layer F.CrtYd) (width 0.1))
|
||||
(fp_line (start -1.95 1.45) (end 1.95 1.45) (layer F.SilkS) (width 0.1))
|
||||
(fp_line (start -1.95 -1.45) (end 1.95 -1.45) (layer F.SilkS) (width 0.1))
|
||||
(pad 1 smd rect (at -2.100 -0 0) (size 0.800 2.000) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 2 smd rect (at 2.100 -0 0) (size 0.800 2.000) (layers F.Cu F.Paste F.Mask))
|
||||
(model SKRKAEE020.stp
|
||||
(at (xyz 0 0 0.029527559055118))
|
||||
(scale (xyz 1 1 1))
|
||||
(rotate (xyz -90 0 0))
|
||||
)
|
||||
)
|
||||
(module "SKRKAEE020" (layer F.Cu)
|
||||
(descr "SKRKAEE020")
|
||||
(tags "Switch")
|
||||
(attr smd)
|
||||
(fp_text reference S** (at 0.000 -0) (layer F.SilkS)
|
||||
(effects (font (size 1.27 1.27) (thickness 0.254)))
|
||||
)
|
||||
(fp_text user %R (at 0.000 -0) (layer F.Fab)
|
||||
(effects (font (size 1.27 1.27) (thickness 0.254)))
|
||||
)
|
||||
(fp_text value "SKRKAEE020" (at 0.000 -0) (layer F.SilkS) hide
|
||||
(effects (font (size 1.27 1.27) (thickness 0.254)))
|
||||
)
|
||||
(fp_line (start -1.95 -1.45) (end 1.95 -1.45) (layer F.Fab) (width 0.2))
|
||||
(fp_line (start 1.95 -1.45) (end 1.95 1.45) (layer F.Fab) (width 0.2))
|
||||
(fp_line (start 1.95 1.45) (end -1.95 1.45) (layer F.Fab) (width 0.2))
|
||||
(fp_line (start -1.95 1.45) (end -1.95 -1.45) (layer F.Fab) (width 0.2))
|
||||
(fp_line (start -3.5 -2.45) (end 3.5 -2.45) (layer F.CrtYd) (width 0.1))
|
||||
(fp_line (start 3.5 -2.45) (end 3.5 2.45) (layer F.CrtYd) (width 0.1))
|
||||
(fp_line (start 3.5 2.45) (end -3.5 2.45) (layer F.CrtYd) (width 0.1))
|
||||
(fp_line (start -3.5 2.45) (end -3.5 -2.45) (layer F.CrtYd) (width 0.1))
|
||||
(fp_line (start -1.95 1.45) (end 1.95 1.45) (layer F.SilkS) (width 0.1))
|
||||
(fp_line (start -1.95 -1.45) (end 1.95 -1.45) (layer F.SilkS) (width 0.1))
|
||||
(pad 1 smd rect (at -2.100 -0 0) (size 0.800 2.000) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 2 smd rect (at 2.100 -0 0) (size 0.800 2.000) (layers F.Cu F.Paste F.Mask))
|
||||
(model SKRKAEE020.stp
|
||||
(at (xyz 0 0 0.029527559055118))
|
||||
(scale (xyz 1 1 1))
|
||||
(rotate (xyz -90 0 0))
|
||||
)
|
||||
)
|
|
@ -1,3 +1,3 @@
|
|||
EESchema-DOCLIB Version 2.0
|
||||
#
|
||||
#End Doc Library
|
||||
EESchema-DOCLIB Version 2.0
|
||||
#
|
||||
#End Doc Library
|
|
@ -1,36 +1,36 @@
|
|||
EESchema-LIBRARY Version 2.4
|
||||
#encoding utf-8
|
||||
#
|
||||
# TYPE-C-31-M-12
|
||||
#
|
||||
DEF TYPE-C-31-M-12 J 0 40 Y Y 1 L N
|
||||
F0 "J" -50 600 50 H V L BNN
|
||||
F1 "TYPE-C-31-M-12" -400 520 50 H V L BNN
|
||||
F2 "HRO_TYPE-C-31-M-12" 0 0 50 H I L BNN
|
||||
F3 "" 0 0 50 H I L BNN
|
||||
F4 "3.31mm" 0 0 50 H I L BNN "MAXIMUM_PACKAGE_HEIGHT"
|
||||
F5 "Manufacturer Recommendations" 0 0 50 H I L BNN "STANDARD"
|
||||
F6 "A" 0 0 50 H I L BNN "PARTREV"
|
||||
F7 "HRO Electronics" 0 0 50 H I L BNN "MANUFACTURER"
|
||||
DRAW
|
||||
S -500 -500 500 500 0 0 10 f
|
||||
X GND A1B12 -700 -400 200 R 40 40 0 0 W
|
||||
X VBUS A4B9 -700 400 200 R 40 40 0 0 W
|
||||
X CC1 A5 -700 200 200 R 40 40 0 0 B
|
||||
X DP1 A6 -700 100 200 R 40 40 0 0 B
|
||||
X DN1 A7 -700 0 200 R 40 40 0 0 B
|
||||
X SBU1 A8 -700 -100 200 R 40 40 0 0 B
|
||||
X GND B1A12 700 -400 200 L 40 40 0 0 W
|
||||
X VBUS B4A9 700 400 200 L 40 40 0 0 W
|
||||
X CC2 B5 700 -100 200 L 40 40 0 0 B
|
||||
X DP2 B6 700 0 200 L 40 40 0 0 B
|
||||
X DN2 B7 700 100 200 L 40 40 0 0 B
|
||||
X SBU2 B8 700 200 200 L 40 40 0 0 B
|
||||
X SHIELD S1 -250 -700 200 U 40 40 0 0 P
|
||||
X SHIELD S2 -100 -700 200 U 40 40 0 0 P
|
||||
X SHIELD S3 100 -700 200 U 40 40 0 0 P
|
||||
X SHIELD S4 250 -700 200 U 40 40 0 0 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
#End Library
|
||||
EESchema-LIBRARY Version 2.4
|
||||
#encoding utf-8
|
||||
#
|
||||
# TYPE-C-31-M-12
|
||||
#
|
||||
DEF TYPE-C-31-M-12 J 0 40 Y Y 1 L N
|
||||
F0 "J" -50 600 50 H V L BNN
|
||||
F1 "TYPE-C-31-M-12" -400 520 50 H V L BNN
|
||||
F2 "HRO_TYPE-C-31-M-12" 0 0 50 H I L BNN
|
||||
F3 "" 0 0 50 H I L BNN
|
||||
F4 "3.31mm" 0 0 50 H I L BNN "MAXIMUM_PACKAGE_HEIGHT"
|
||||
F5 "Manufacturer Recommendations" 0 0 50 H I L BNN "STANDARD"
|
||||
F6 "A" 0 0 50 H I L BNN "PARTREV"
|
||||
F7 "HRO Electronics" 0 0 50 H I L BNN "MANUFACTURER"
|
||||
DRAW
|
||||
S -500 -500 500 500 0 0 10 f
|
||||
X GND A1B12 -700 -400 200 R 40 40 0 0 W
|
||||
X VBUS A4B9 -700 400 200 R 40 40 0 0 W
|
||||
X CC1 A5 -700 200 200 R 40 40 0 0 B
|
||||
X DP1 A6 -700 100 200 R 40 40 0 0 B
|
||||
X DN1 A7 -700 0 200 R 40 40 0 0 B
|
||||
X SBU1 A8 -700 -100 200 R 40 40 0 0 B
|
||||
X GND B1A12 700 -400 200 L 40 40 0 0 W
|
||||
X VBUS B4A9 700 400 200 L 40 40 0 0 W
|
||||
X CC2 B5 700 -100 200 L 40 40 0 0 B
|
||||
X DP2 B6 700 0 200 L 40 40 0 0 B
|
||||
X DN2 B7 700 100 200 L 40 40 0 0 B
|
||||
X SBU2 B8 700 200 200 L 40 40 0 0 B
|
||||
X SHIELD S1 -250 -700 200 U 40 40 0 0 P
|
||||
X SHIELD S2 -100 -700 200 U 40 40 0 0 P
|
||||
X SHIELD S3 100 -700 200 U 40 40 0 0 P
|
||||
X SHIELD S4 250 -700 200 U 40 40 0 0 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
#End Library
|
|
@ -1,38 +1,38 @@
|
|||
(module XKB_U254-051T-4BH83-F1S (layer F.Cu) (tedit 611255A8)
|
||||
(fp_text reference REF** (at -0.825 -6.385) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value XKB_U254-051T-4BH83-F1S (at 10.605 -4.885) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_circle (center -1.3 -3.95) (end -1.2 -3.95) (layer F.SilkS) (width 0.2))
|
||||
(fp_line (start -4.9 1.45) (end 6.2 1.45) (layer F.Fab) (width 0.127))
|
||||
(fp_line (start -3.9 1.45) (end 3.9 1.45) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start 3.98 -1.35) (end 3.98 1.45) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start -3.98 -1.35) (end -3.98 1.45) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start -4.4 2.4) (end -4.4 -3.6) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 4.4 2.4) (end 4.4 -3.6) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -4.4 2.4) (end 4.4 2.4) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -4.4 -3.6) (end 4.4 -3.6) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -3.98 2.15) (end -3.98 -2.85) (layer F.Fab) (width 0.127))
|
||||
(fp_line (start -3.98 2.15) (end 3.98 2.15) (layer F.Fab) (width 0.127))
|
||||
(fp_line (start 3.98 2.15) (end 3.98 -2.85) (layer F.Fab) (width 0.127))
|
||||
(fp_line (start -3.98 -2.85) (end 3.98 -2.85) (layer F.Fab) (width 0.127))
|
||||
(fp_circle (center -1.3 -3.95) (end -1.2 -3.95) (layer F.Fab) (width 0.2))
|
||||
(fp_text user PCB-EDGE (at 4.6 1.35) (layer F.Fab)
|
||||
(effects (font (size 0.590551 0.590551) (thickness 0.15)))
|
||||
)
|
||||
(pad 1 smd rect (at -1.3 -2.675) (size 0.4 1.35) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 2 smd rect (at -0.65 -2.675) (size 0.4 1.35) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 3 smd rect (at 0 -2.675) (size 0.4 1.35) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 4 smd rect (at 0.65 -2.675) (size 0.4 1.35) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 5 smd rect (at 1.3 -2.675) (size 0.4 1.35) (layers F.Cu F.Paste F.Mask))
|
||||
(pad S3 smd rect (at -1.2 0) (size 1.9 1.9) (layers F.Cu F.Paste F.Mask))
|
||||
(pad S4 smd rect (at 1.2 0) (size 1.9 1.9) (layers F.Cu F.Paste F.Mask))
|
||||
(pad S1 smd rect (at -3.1 -2.55) (size 2.1 1.6) (layers F.Cu F.Paste F.Mask))
|
||||
(pad S2 smd rect (at 3.1 -2.55) (size 2.1 1.6) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 5 thru_hole oval (at -2.825 0) (size 0.85 1.7) (drill oval 0.5 1.2) (layers *.Cu *.Mask))
|
||||
(pad 6 thru_hole oval (at 2.825 0) (size 0.85 1.7) (drill oval 0.5 1.2) (layers *.Cu *.Mask))
|
||||
(pad None np_thru_hole circle (at -2 -2.35) (size 0.6 0.6) (drill 0.6) (layers *.Cu *.Mask))
|
||||
(pad None np_thru_hole circle (at 2 -2.35) (size 0.6 0.6) (drill 0.6) (layers *.Cu *.Mask))
|
||||
)
|
||||
(module XKB_U254-051T-4BH83-F1S (layer F.Cu) (tedit 611255A8)
|
||||
(fp_text reference REF** (at -0.825 -6.385) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value XKB_U254-051T-4BH83-F1S (at 10.605 -4.885) (layer F.Fab)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(fp_circle (center -1.3 -3.95) (end -1.2 -3.95) (layer F.SilkS) (width 0.2))
|
||||
(fp_line (start -4.9 1.45) (end 6.2 1.45) (layer F.Fab) (width 0.127))
|
||||
(fp_line (start -3.9 1.45) (end 3.9 1.45) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start 3.98 -1.35) (end 3.98 1.45) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start -3.98 -1.35) (end -3.98 1.45) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start -4.4 2.4) (end -4.4 -3.6) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start 4.4 2.4) (end 4.4 -3.6) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -4.4 2.4) (end 4.4 2.4) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -4.4 -3.6) (end 4.4 -3.6) (layer F.CrtYd) (width 0.05))
|
||||
(fp_line (start -3.98 2.15) (end -3.98 -2.85) (layer F.Fab) (width 0.127))
|
||||
(fp_line (start -3.98 2.15) (end 3.98 2.15) (layer F.Fab) (width 0.127))
|
||||
(fp_line (start 3.98 2.15) (end 3.98 -2.85) (layer F.Fab) (width 0.127))
|
||||
(fp_line (start -3.98 -2.85) (end 3.98 -2.85) (layer F.Fab) (width 0.127))
|
||||
(fp_circle (center -1.3 -3.95) (end -1.2 -3.95) (layer F.Fab) (width 0.2))
|
||||
(fp_text user PCB-EDGE (at 4.6 1.35) (layer F.Fab)
|
||||
(effects (font (size 0.590551 0.590551) (thickness 0.15)))
|
||||
)
|
||||
(pad 1 smd rect (at -1.3 -2.675) (size 0.4 1.35) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 2 smd rect (at -0.65 -2.675) (size 0.4 1.35) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 3 smd rect (at 0 -2.675) (size 0.4 1.35) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 4 smd rect (at 0.65 -2.675) (size 0.4 1.35) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 5 smd rect (at 1.3 -2.675) (size 0.4 1.35) (layers F.Cu F.Paste F.Mask))
|
||||
(pad S3 smd rect (at -1.2 0) (size 1.9 1.9) (layers F.Cu F.Paste F.Mask))
|
||||
(pad S4 smd rect (at 1.2 0) (size 1.9 1.9) (layers F.Cu F.Paste F.Mask))
|
||||
(pad S1 smd rect (at -3.1 -2.55) (size 2.1 1.6) (layers F.Cu F.Paste F.Mask))
|
||||
(pad S2 smd rect (at 3.1 -2.55) (size 2.1 1.6) (layers F.Cu F.Paste F.Mask))
|
||||
(pad 5 thru_hole oval (at -2.825 0) (size 0.85 1.7) (drill oval 0.5 1.2) (layers *.Cu *.Mask))
|
||||
(pad 6 thru_hole oval (at 2.825 0) (size 0.85 1.7) (drill oval 0.5 1.2) (layers *.Cu *.Mask))
|
||||
(pad None np_thru_hole circle (at -2 -2.35) (size 0.6 0.6) (drill 0.6) (layers *.Cu *.Mask))
|
||||
(pad None np_thru_hole circle (at 2 -2.35) (size 0.6 0.6) (drill 0.6) (layers *.Cu *.Mask))
|
||||
)
|
7
Devices/Console/Hardware/Circuit/fp-lib-table
Normal file
|
@ -0,0 +1,7 @@
|
|||
(fp_lib_table
|
||||
(lib (name Bourns-PEC11R-4220F-S0012)(type KiCad)(uri ${KIPRJMOD}/Libraries/Bourns-PEC11R-4220F-S0012.pretty)(options "")(descr ""))
|
||||
(lib (name XKB-U254-051T-4BH83-F1S)(type KiCad)(uri ${KIPRJMOD}/Libraries/XKB-U254-051T-4BH83-F1S.pretty)(options "")(descr ""))
|
||||
(lib (name AVR-ISP)(type KiCad)(uri ${KIPRJMOD}/Libraries/AVR-ISP.pretty)(options "")(descr ""))
|
||||
(lib (name HRO_TYPE-C-31-M-12)(type KiCad)(uri ${KIPRJMOD}/Libraries/HRO_TYPE-C-31-M-12.pretty)(options "")(descr ""))
|
||||
(lib (name SKRKAEE020)(type KiCad)(uri "D:/Dokumente/Coding/Visual Studio Code/smart-lamp-control/Devices/Control/Hardware/Circuit/Libraries/SKRKAEE020.pretty")(options "")(descr ""))
|
||||
)
|
3
Devices/Console/Hardware/Circuit/sym-lib-table
Normal file
|
@ -0,0 +1,3 @@
|
|||
(sym_lib_table
|
||||
(lib (name TYPE-C-31-M-12)(type Legacy)(uri ${KIPRJMOD}/Libraries/TYPE-C-31-M-12.lib)(options "")(descr ""))
|
||||
)
|
|
@ -3,4 +3,3 @@
|
|||
.vscode/c_cpp_properties.json
|
||||
.vscode/launch.json
|
||||
.vscode/ipch
|
||||
include/Credentials/Credentials.h
|
|
@ -1,10 +1,7 @@
|
|||
{
|
||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"platformio.platformio-ide"
|
||||
],
|
||||
"unwantedRecommendations": [
|
||||
"ms-vscode.cpptools-extension-pack"
|
||||
]
|
||||
}
|
||||
{
|
||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"platformio.platformio-ide"
|
||||
]
|
||||
}
|
24
Devices/Control/Firmware/enableReset.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
import serial
|
||||
import time
|
||||
import sys
|
||||
|
||||
class bcolors:
|
||||
HEADER = '\033[95m'
|
||||
OKBLUE = '\033[94m'
|
||||
OKCYAN = '\033[96m'
|
||||
OKGREEN = '\033[92m'
|
||||
WARNING = '\033[93m'
|
||||
FAIL = '\033[91m'
|
||||
ENDC = '\033[0m'
|
||||
BOLD = '\033[1m'
|
||||
UNDERLINE = '\033[4m'
|
||||
|
||||
if len(sys.argv) == 1:
|
||||
print(f"{bcolors.FAIL}Please enter COM Port as argument{bcolors.ENDC}")
|
||||
|
||||
else:
|
||||
ser = serial.Serial(sys.argv[1])
|
||||
ser.write(b'r')
|
||||
ser.close()
|
||||
print(f"{bcolors.OKGREEN}Reset enabled{bcolors.ENDC}")
|
||||
time.sleep(1)
|
39
Devices/Control/Firmware/include/README
Normal file
|
@ -0,0 +1,39 @@
|
|||
|
||||
This directory is intended for project header files.
|
||||
|
||||
A header file is a file containing C declarations and macro definitions
|
||||
to be shared between several project source files. You request the use of a
|
||||
header file in your project source file (C, C++, etc) located in `src` folder
|
||||
by including it, with the C preprocessing directive `#include'.
|
||||
|
||||
```src/main.c
|
||||
|
||||
#include "header.h"
|
||||
|
||||
int main (void)
|
||||
{
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Including a header file produces the same results as copying the header file
|
||||
into each source file that needs it. Such copying would be time-consuming
|
||||
and error-prone. With a header file, the related declarations appear
|
||||
in only one place. If they need to be changed, they can be changed in one
|
||||
place, and programs that include the header file will automatically use the
|
||||
new version when next recompiled. The header file eliminates the labor of
|
||||
finding and changing all the copies as well as the risk that a failure to
|
||||
find one copy will result in inconsistencies within a program.
|
||||
|
||||
In C, the usual convention is to give header files names that end with `.h'.
|
||||
It is most portable to use only letters, digits, dashes, and underscores in
|
||||
header file names, and at most one dot.
|
||||
|
||||
Read more about using header files in official GCC documentation:
|
||||
|
||||
* Include Syntax
|
||||
* Include Operation
|
||||
* Once-Only Headers
|
||||
* Computed Includes
|
||||
|
||||
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
|
46
Devices/Control/Firmware/lib/README
Normal file
|
@ -0,0 +1,46 @@
|
|||
|
||||
This directory is intended for project specific (private) libraries.
|
||||
PlatformIO will compile them to static libraries and link into executable file.
|
||||
|
||||
The source code of each library should be placed in a an own separate directory
|
||||
("lib/your_library_name/[here are source files]").
|
||||
|
||||
For example, see a structure of the following two libraries `Foo` and `Bar`:
|
||||
|
||||
|--lib
|
||||
| |
|
||||
| |--Bar
|
||||
| | |--docs
|
||||
| | |--examples
|
||||
| | |--src
|
||||
| | |- Bar.c
|
||||
| | |- Bar.h
|
||||
| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
|
||||
| |
|
||||
| |--Foo
|
||||
| | |- Foo.c
|
||||
| | |- Foo.h
|
||||
| |
|
||||
| |- README --> THIS FILE
|
||||
|
|
||||
|- platformio.ini
|
||||
|--src
|
||||
|- main.c
|
||||
|
||||
and a contents of `src/main.c`:
|
||||
```
|
||||
#include <Foo.h>
|
||||
#include <Bar.h>
|
||||
|
||||
int main (void)
|
||||
{
|
||||
...
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
PlatformIO Library Dependency Finder will find automatically dependent
|
||||
libraries scanning project source files.
|
||||
|
||||
More information about PlatformIO Library Dependency Finder
|
||||
- https://docs.platformio.org/page/librarymanager/ldf.html
|
77
Devices/Control/Firmware/platformio.ini
Normal file
|
@ -0,0 +1,77 @@
|
|||
[platformio]
|
||||
default_envs = Upload_UART ; Default build target
|
||||
|
||||
|
||||
; Common settings for all environments
|
||||
[env]
|
||||
platform = atmelavr
|
||||
framework = arduino
|
||||
|
||||
; TARGET SETTINGS
|
||||
; Chip in use
|
||||
board = ATmega328P
|
||||
; Clock frequency in [Hz]
|
||||
board_build.f_cpu = 16000000L
|
||||
|
||||
; BUILD OPTIONS
|
||||
; Comment out to enable LTO (this line unflags it)
|
||||
build_unflags = -flto
|
||||
; Extra build flags
|
||||
build_flags =
|
||||
|
||||
; SERIAL MONITOR OPTIONS
|
||||
; Serial monitor port defined in the Upload_UART environment
|
||||
monitor_port = ${env:Upload_UART.upload_port}
|
||||
; Serial monitor baud rate
|
||||
monitor_speed = 9600
|
||||
|
||||
|
||||
; Run the following command to upload with this environment
|
||||
; pio run -e Upload_UART -t upload
|
||||
[env:Upload_UART]
|
||||
; Serial bootloader protocol
|
||||
upload_protocol = custom
|
||||
; Serial upload port
|
||||
upload_port = COM5
|
||||
; Get upload baud rate defined in the fuses_bootloader environment
|
||||
board_upload.speed = ${env:fuses_bootloader.board_bootloader.speed}
|
||||
upload_flags =
|
||||
-C$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
|
||||
-p$BOARD_MCU
|
||||
-P${env:Upload_UART.upload_port}
|
||||
-carduino
|
||||
-v
|
||||
-V
|
||||
-D
|
||||
upload_command = python enableReset.py ${env:Upload_UART.upload_port} && avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
|
||||
|
||||
; Run the following command to upload with this environment
|
||||
; pio run -e Upload_ISP -t upload
|
||||
[env:Upload_ISP]
|
||||
; Custom upload procedure
|
||||
upload_protocol = custom
|
||||
; Avrdude upload flags
|
||||
upload_flags =
|
||||
-C$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
|
||||
-p$BOARD_MCU
|
||||
-PUSB
|
||||
-cusbasp
|
||||
-D
|
||||
; Avrdude upload command
|
||||
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
|
||||
|
||||
|
||||
; Run the following command to set fuses
|
||||
; pio run -e fuses_bootloader -t fuses
|
||||
; Run the following command to set fuses + burn bootloader
|
||||
; pio run -e fuses_bootloader -t bootloader
|
||||
[env:fuses_bootloader]
|
||||
board_hardware.oscillator = external ; Oscillator type
|
||||
board_hardware.uart = uart0 ; Set UART to use for serial upload
|
||||
board_bootloader.speed = 115200 ; Set bootloader baud rate
|
||||
board_hardware.bod = 2.7v ; Set brown-out detection
|
||||
board_hardware.eesave = yes ; Preserve EEPROM when uploading using programmer
|
||||
upload_protocol = usbasp ; Use the USBasp as programmer
|
||||
upload_flags = ; Select USB as upload port and divide the SPI clock by 8
|
||||
-PUSB
|
||||
-B8
|
119
Devices/Control/Firmware/src/main.cpp
Normal file
|
@ -0,0 +1,119 @@
|
|||
#include <Arduino.h>
|
||||
#include <EEPROM.h>
|
||||
#include <Wire.h>
|
||||
|
||||
#define SLAVE_ADDR 9
|
||||
const int bjtCount = 4;
|
||||
|
||||
const int bjtPin[bjtCount] = {6, 5, 3, 10};
|
||||
int bjtState[bjtCount] = {255, 255, 255, 255}; //255 -> bjt max "open"
|
||||
|
||||
char receivedSerialData[4];
|
||||
char receivedI2cData[4];
|
||||
String pendingSerialData;
|
||||
|
||||
void changeLights(char data[])
|
||||
{
|
||||
for (int i = 0; i < bjtCount; i++)
|
||||
{
|
||||
char numChar[2];
|
||||
itoa(i, numChar, 10);
|
||||
|
||||
if (data[0] == numChar[0])
|
||||
{
|
||||
if (data[1] == 't')
|
||||
{
|
||||
if (bjtState[i] != 0)
|
||||
{
|
||||
bjtState[i] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bjtState[i] = 255;
|
||||
}
|
||||
}
|
||||
else if (data[1] == 'i')
|
||||
{
|
||||
bjtState[i] += 5;
|
||||
}
|
||||
else if (data[1] == 'd')
|
||||
{
|
||||
bjtState[i] -= 5;
|
||||
}
|
||||
}
|
||||
|
||||
//clamp state between 0 and 255
|
||||
if (bjtState[i] > 255)
|
||||
{
|
||||
bjtState[i] = 255;
|
||||
}
|
||||
|
||||
if (bjtState[i] < 0)
|
||||
{
|
||||
bjtState[i] = 0;
|
||||
}
|
||||
|
||||
//set absolute state for all
|
||||
if (!strcmp(data, "off"))
|
||||
{
|
||||
bjtState[i] = 0;
|
||||
}
|
||||
|
||||
if (!strcmp(data, "on"))
|
||||
{
|
||||
bjtState[i] = 255;
|
||||
}
|
||||
|
||||
analogWrite(bjtPin[i], bjtState[i]);
|
||||
EEPROM.update(i, bjtState[i]);
|
||||
}
|
||||
|
||||
memset(data, ' ', 3);
|
||||
}
|
||||
|
||||
void receiveEvent(int byteCount)
|
||||
{
|
||||
char buffer[byteCount];
|
||||
for (int i = 0; i < byteCount; i++)
|
||||
{
|
||||
buffer[i] = Wire.read();
|
||||
}
|
||||
memset(receivedI2cData, ' ', 3);
|
||||
strcpy(receivedI2cData, buffer);
|
||||
}
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(9600);
|
||||
Serial.setTimeout(5);
|
||||
Wire.begin(SLAVE_ADDR);
|
||||
Wire.onReceive(receiveEvent);
|
||||
|
||||
for (int i = 0; i < bjtCount; i++)
|
||||
{
|
||||
pinMode(bjtPin[i], OUTPUT);
|
||||
bjtState[i] = EEPROM.read(i);
|
||||
analogWrite(bjtPin[i], bjtState[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
while (Serial.available())
|
||||
{
|
||||
strcpy(receivedSerialData, Serial.readString().c_str());
|
||||
}
|
||||
|
||||
changeLights(receivedSerialData);
|
||||
changeLights(receivedI2cData);
|
||||
|
||||
pendingSerialData = "";
|
||||
for (int i = 0; i < bjtCount; i++)
|
||||
{
|
||||
noInterrupts();
|
||||
pendingSerialData += String(bjtState[i]) + ",";
|
||||
interrupts();
|
||||
}
|
||||
pendingSerialData.remove(pendingSerialData.length() - 1);
|
||||
Serial.println(pendingSerialData);
|
||||
}
|
|
@ -1,11 +1,11 @@
|
|||
|
||||
This directory is intended for PlatformIO Unit Testing and project tests.
|
||||
|
||||
Unit Testing is a software testing method by which individual units of
|
||||
source code, sets of one or more MCU program modules together with associated
|
||||
control data, usage procedures, and operating procedures, are tested to
|
||||
determine whether they are fit for use. Unit testing finds problems early
|
||||
in the development cycle.
|
||||
|
||||
More information about PlatformIO Unit Testing:
|
||||
- https://docs.platformio.org/page/plus/unit-testing.html
|
||||
|
||||
This directory is intended for PlatformIO Unit Testing and project tests.
|
||||
|
||||
Unit Testing is a software testing method by which individual units of
|
||||
source code, sets of one or more MCU program modules together with associated
|
||||
control data, usage procedures, and operating procedures, are tested to
|
||||
determine whether they are fit for use. Unit testing finds problems early
|
||||
in the development cycle.
|
||||
|
||||
More information about PlatformIO Unit Testing:
|
||||
- https://docs.platformio.org/page/plus/unit-testing.html
|
5
Devices/Control/Hardware/Circuit/.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
*-bak
|
||||
*-cache*
|
||||
*-bak*
|
||||
_autosave*
|
||||
Gerber/*
|
1092
Devices/Control/Hardware/Circuit/Control.dsn
Normal file
4565
Devices/Control/Hardware/Circuit/Control.kicad_pcb
Normal file
988
Devices/Control/Hardware/Circuit/Control.net
Normal file
|
@ -0,0 +1,988 @@
|
|||
(export (version D)
|
||||
(design
|
||||
(source "D:\\Dokumente\\Coding\\Visual Studio Code\\smart-lamp-control\\Devices\\Control\\Hardware\\Circuit\\Control.sch")
|
||||
(date "29.08.2021 17:03:30")
|
||||
(tool "Eeschema (5.1.10)-1")
|
||||
(sheet (number 1) (name /) (tstamps /)
|
||||
(title_block
|
||||
(title "LightControl Console")
|
||||
(company)
|
||||
(rev v00)
|
||||
(date 2021-08-10)
|
||||
(source Control.sch)
|
||||
(comment (number 1) (value ""))
|
||||
(comment (number 2) (value ""))
|
||||
(comment (number 3) (value ""))
|
||||
(comment (number 4) (value "Author: GHOSCHT")))))
|
||||
(components
|
||||
(comp (ref J8)
|
||||
(value TYPE-C-31-M-12)
|
||||
(footprint HRO_TYPE-C-31-M-12:HRO_TYPE-C-31-M-12)
|
||||
(datasheet https://datasheet.lcsc.com/lcsc/1811131825_Korean-Hroparts-Elec-TYPE-C-31-M-12_C165948.pdf)
|
||||
(fields
|
||||
(field (name MANUFACTURER) "HRO Electronics")
|
||||
(field (name MAXIMUM_PACKAGE_HEIGHT) 3.31mm)
|
||||
(field (name PARTREV) A)
|
||||
(field (name STANDARD) "Manufacturer Recommendations"))
|
||||
(libsource (lib TYPE-C-31-M-12) (part TYPE-C-31-M-12) (description ""))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6112D89A))
|
||||
(comp (ref JP1)
|
||||
(value SolderJumper)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Open) (description "Solder Jumper, 2-pole, open"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6113282A))
|
||||
(comp (ref JP3)
|
||||
(value SolderJumper)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Open) (description "Solder Jumper, 2-pole, open"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6118262C))
|
||||
(comp (ref JP10)
|
||||
(value SolderJumper)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Open) (description "Solder Jumper, 2-pole, open"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611A3577))
|
||||
(comp (ref JP8)
|
||||
(value SolderJumper)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Open) (description "Solder Jumper, 2-pole, open"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611A3587))
|
||||
(comp (ref J5)
|
||||
(value Conn_01x04)
|
||||
(footprint Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical)
|
||||
(datasheet ~)
|
||||
(libsource (lib Connector_Generic) (part Conn_01x04) (description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 613021A3))
|
||||
(comp (ref J3)
|
||||
(value Conn_01x04)
|
||||
(footprint Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical)
|
||||
(datasheet ~)
|
||||
(libsource (lib Connector_Generic) (part Conn_01x04) (description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 613031C0))
|
||||
(comp (ref D2)
|
||||
(value 17-21/BHC-XL2M2TY/3T)
|
||||
(footprint LED_SMD:LED_0805_2012Metric_Castellated)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part LED) (description "Light emitting diode"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6113FB23))
|
||||
(comp (ref R6)
|
||||
(value 200)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6114AFDD))
|
||||
(comp (ref J6)
|
||||
(value AVR-ISP-6)
|
||||
(footprint AVR-ISP:AVR-ISP)
|
||||
(datasheet " ~")
|
||||
(libsource (lib Connector) (part AVR-ISP-6) (description "Atmel 6-pin ISP connector"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61134728))
|
||||
(comp (ref Y1)
|
||||
(value 16MHz)
|
||||
(footprint Crystal:Crystal_SMD_HC49-SD_HandSoldering)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part Crystal) (description "Two pin crystal"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6113484F))
|
||||
(comp (ref C1)
|
||||
(value 22p)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6113DC2F))
|
||||
(comp (ref C3)
|
||||
(value 22p)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611448F1))
|
||||
(comp (ref C2)
|
||||
(value 100n)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6115564D))
|
||||
(comp (ref J1)
|
||||
(value Screw_Terminal_01x03)
|
||||
(footprint CUI_TB006-508-03BE:CUI_TB006-508-03BE)
|
||||
(datasheet ~)
|
||||
(libsource (lib Connector) (part Screw_Terminal_01x03) (description "Generic screw terminal, single row, 01x03, script generated (kicad-library-utils/schlib/autogen/connector/)"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6117AFF9))
|
||||
(comp (ref J7)
|
||||
(value TYPE-C-31-M-12)
|
||||
(footprint HRO_TYPE-C-31-M-12:HRO_TYPE-C-31-M-12)
|
||||
(datasheet https://datasheet.lcsc.com/lcsc/1811131825_Korean-Hroparts-Elec-TYPE-C-31-M-12_C165948.pdf)
|
||||
(fields
|
||||
(field (name MANUFACTURER) "HRO Electronics")
|
||||
(field (name MAXIMUM_PACKAGE_HEIGHT) 3.31mm)
|
||||
(field (name PARTREV) A)
|
||||
(field (name STANDARD) "Manufacturer Recommendations"))
|
||||
(libsource (lib TYPE-C-31-M-12) (part TYPE-C-31-M-12) (description ""))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6118AF6C))
|
||||
(comp (ref U4)
|
||||
(value CH340C)
|
||||
(footprint Package_SO:SOIC-16_3.9x9.9mm_P1.27mm)
|
||||
(datasheet https://datasheet.lcsc.com/szlcsc/Jiangsu-Qin-Heng-CH340C_C84681.pdf)
|
||||
(libsource (lib Interface_USB) (part CH340C) (description "USB serial converter, UART, SOIC-16"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6118DFFB))
|
||||
(comp (ref J2)
|
||||
(value Screw_Terminal_01x03)
|
||||
(footprint CUI_TB006-508-03BE:CUI_TB006-508-03BE)
|
||||
(datasheet ~)
|
||||
(libsource (lib Connector) (part Screw_Terminal_01x03) (description "Generic screw terminal, single row, 01x03, script generated (kicad-library-utils/schlib/autogen/connector/)"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61192611))
|
||||
(comp (ref R4)
|
||||
(value 120)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611931AE))
|
||||
(comp (ref R2)
|
||||
(value 10k)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611669B4))
|
||||
(comp (ref JP2)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6119BC53))
|
||||
(comp (ref JP4)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6119D4AD))
|
||||
(comp (ref JP5)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6119DE73))
|
||||
(comp (ref JP6)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6119E34D))
|
||||
(comp (ref JP7)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6119F385))
|
||||
(comp (ref JP9)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6119F7AD))
|
||||
(comp (ref C8)
|
||||
(value 100n)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6124E822))
|
||||
(comp (ref C5)
|
||||
(value 100n)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 612767EE))
|
||||
(comp (ref C6)
|
||||
(value 100n)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61296637))
|
||||
(comp (ref R10)
|
||||
(value 40.2)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6132AA9D))
|
||||
(comp (ref R7)
|
||||
(value 10k)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 612495F2))
|
||||
(comp (ref Q1)
|
||||
(value Q_NPN_BCE)
|
||||
(footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part Q_NPN_BCE) (description "NPN transistor, base/collector/emitter"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611AC231))
|
||||
(comp (ref SW2)
|
||||
(value SW_Push)
|
||||
(footprint SKRKAEE020:SKRKAEE020)
|
||||
(datasheet ~)
|
||||
(libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61257FBA))
|
||||
(comp (ref R9)
|
||||
(value 40.2)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61303408))
|
||||
(comp (ref R3)
|
||||
(value 40.2)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611A5CE7))
|
||||
(comp (ref U1)
|
||||
(value ATmega328PB-AU)
|
||||
(footprint Package_QFP:TQFP-32_7x7mm_P0.8mm)
|
||||
(datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/40001906C.pdf)
|
||||
(libsource (lib MCU_Microchip_ATmega) (part ATmega328PB-AU) (description "20MHz, 32kB Flash, 2kB SRAM, 1kB EEPROM, TQFP-32"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611B4248))
|
||||
(comp (ref C4)
|
||||
(value 100n)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611E06B0))
|
||||
(comp (ref U2)
|
||||
(value CD74HC4053PWR)
|
||||
(footprint CD74HC4053PWR:SOP65P640X120-16N)
|
||||
(libsource (lib CD74HC4053PWR) (part CD74HC4053PWR) (description ""))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 611A257A))
|
||||
(comp (ref J4)
|
||||
(value Conn_01x04)
|
||||
(footprint Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical)
|
||||
(datasheet ~)
|
||||
(libsource (lib Connector_Generic) (part Conn_01x04) (description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61885232))
|
||||
(comp (ref JP12)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6191A11B))
|
||||
(comp (ref JP11)
|
||||
(value SolderJumper)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Open) (description "Solder Jumper, 2-pole, open"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6191ADB7))
|
||||
(comp (ref JP14)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 619337D7))
|
||||
(comp (ref JP13)
|
||||
(value SolderJumper)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Open) (description "Solder Jumper, 2-pole, open"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 619337DD))
|
||||
(comp (ref JP16)
|
||||
(value SolderJumper_Bridged)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Bridged2Bar_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Bridged) (description "Solder Jumper, 2-pole, closed/bridged"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 619648E7))
|
||||
(comp (ref JP15)
|
||||
(value SolderJumper)
|
||||
(footprint Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm)
|
||||
(datasheet ~)
|
||||
(libsource (lib Jumper) (part SolderJumper_2_Open) (description "Solder Jumper, 2-pole, open"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 619648ED))
|
||||
(comp (ref D1)
|
||||
(value 17-21/BHC-XL2M2TY/3T)
|
||||
(footprint LED_SMD:LED_0805_2012Metric_Castellated)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part LED) (description "Light emitting diode"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61C08A60))
|
||||
(comp (ref R1)
|
||||
(value 200)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61C08A66))
|
||||
(comp (ref R8)
|
||||
(value 10k)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61207BF0))
|
||||
(comp (ref U3)
|
||||
(value CD74HC4053PWR)
|
||||
(footprint CD74HC4053PWR:SOP65P640X120-16N)
|
||||
(libsource (lib CD74HC4053PWR) (part CD74HC4053PWR) (description ""))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61207BFE))
|
||||
(comp (ref C7)
|
||||
(value 100n)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 612205DD))
|
||||
(comp (ref SW1)
|
||||
(value SW_Push)
|
||||
(footprint SKRKAEE020:SKRKAEE020)
|
||||
(datasheet ~)
|
||||
(libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 6128EB08))
|
||||
(comp (ref R5)
|
||||
(value 40.2)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 612A80A8))
|
||||
(comp (ref R12)
|
||||
(value 10k)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 612EAB9B))
|
||||
(comp (ref R13)
|
||||
(value 10k)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 612ECBE9))
|
||||
(comp (ref R11)
|
||||
(value 10k)
|
||||
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part R) (description Resistor))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 61382EBC))
|
||||
(comp (ref C9)
|
||||
(value 100n)
|
||||
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder)
|
||||
(datasheet ~)
|
||||
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
|
||||
(sheetpath (names /) (tstamps /))
|
||||
(tstamp 614BF013)))
|
||||
(libparts
|
||||
(libpart (lib CD74HC4053PWR) (part CD74HC4053PWR)
|
||||
(fields
|
||||
(field (name Reference) U)
|
||||
(field (name Value) CD74HC4053PWR)
|
||||
(field (name Footprint) SOP65P640X120-16N))
|
||||
(pins
|
||||
(pin (num 1) (name B1) (type BiDi))
|
||||
(pin (num 2) (name B0) (type BiDi))
|
||||
(pin (num 3) (name C1) (type BiDi))
|
||||
(pin (num 4) (name CN) (type BiDi))
|
||||
(pin (num 5) (name C0) (type BiDi))
|
||||
(pin (num 6) (name ~E) (type input))
|
||||
(pin (num 7) (name VEE) (type power_in))
|
||||
(pin (num 8) (name GND) (type power_in))
|
||||
(pin (num 9) (name S2) (type input))
|
||||
(pin (num 10) (name S1) (type input))
|
||||
(pin (num 11) (name S0) (type input))
|
||||
(pin (num 12) (name A0) (type BiDi))
|
||||
(pin (num 13) (name A1) (type BiDi))
|
||||
(pin (num 14) (name AN) (type BiDi))
|
||||
(pin (num 15) (name BN) (type BiDi))
|
||||
(pin (num 16) (name VCC) (type power_in))))
|
||||
(libpart (lib Connector) (part AVR-ISP-6)
|
||||
(description "Atmel 6-pin ISP connector")
|
||||
(docs " ~")
|
||||
(footprints
|
||||
(fp IDC?Header*2x03*)
|
||||
(fp Pin?Header*2x03*))
|
||||
(fields
|
||||
(field (name Reference) J)
|
||||
(field (name Value) AVR-ISP-6))
|
||||
(pins
|
||||
(pin (num 1) (name MISO) (type passive))
|
||||
(pin (num 2) (name VCC) (type passive))
|
||||
(pin (num 3) (name SCK) (type passive))
|
||||
(pin (num 4) (name MOSI) (type passive))
|
||||
(pin (num 5) (name ~RST) (type passive))
|
||||
(pin (num 6) (name GND) (type passive))))
|
||||
(libpart (lib Connector) (part Screw_Terminal_01x03)
|
||||
(description "Generic screw terminal, single row, 01x03, script generated (kicad-library-utils/schlib/autogen/connector/)")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp TerminalBlock*:*))
|
||||
(fields
|
||||
(field (name Reference) J)
|
||||
(field (name Value) Screw_Terminal_01x03))
|
||||
(pins
|
||||
(pin (num 1) (name Pin_1) (type passive))
|
||||
(pin (num 2) (name Pin_2) (type passive))
|
||||
(pin (num 3) (name Pin_3) (type passive))))
|
||||
(libpart (lib Connector_Generic) (part Conn_01x04)
|
||||
(description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp Connector*:*_1x??_*))
|
||||
(fields
|
||||
(field (name Reference) J)
|
||||
(field (name Value) Conn_01x04))
|
||||
(pins
|
||||
(pin (num 1) (name Pin_1) (type passive))
|
||||
(pin (num 2) (name Pin_2) (type passive))
|
||||
(pin (num 3) (name Pin_3) (type passive))
|
||||
(pin (num 4) (name Pin_4) (type passive))))
|
||||
(libpart (lib Device) (part C)
|
||||
(description "Unpolarized capacitor")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp C_*))
|
||||
(fields
|
||||
(field (name Reference) C)
|
||||
(field (name Value) C))
|
||||
(pins
|
||||
(pin (num 1) (name ~) (type passive))
|
||||
(pin (num 2) (name ~) (type passive))))
|
||||
(libpart (lib Device) (part Crystal)
|
||||
(description "Two pin crystal")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp Crystal*))
|
||||
(fields
|
||||
(field (name Reference) Y)
|
||||
(field (name Value) Crystal))
|
||||
(pins
|
||||
(pin (num 1) (name 1) (type passive))
|
||||
(pin (num 2) (name 2) (type passive))))
|
||||
(libpart (lib Device) (part LED)
|
||||
(description "Light emitting diode")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp LED*)
|
||||
(fp LED_SMD:*)
|
||||
(fp LED_THT:*))
|
||||
(fields
|
||||
(field (name Reference) D)
|
||||
(field (name Value) LED))
|
||||
(pins
|
||||
(pin (num 1) (name K) (type passive))
|
||||
(pin (num 2) (name A) (type passive))))
|
||||
(libpart (lib Device) (part Q_NPN_BCE)
|
||||
(description "NPN transistor, base/collector/emitter")
|
||||
(docs ~)
|
||||
(fields
|
||||
(field (name Reference) Q)
|
||||
(field (name Value) Q_NPN_BCE))
|
||||
(pins
|
||||
(pin (num 1) (name B) (type input))
|
||||
(pin (num 2) (name C) (type passive))
|
||||
(pin (num 3) (name E) (type passive))))
|
||||
(libpart (lib Device) (part R)
|
||||
(description Resistor)
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp R_*))
|
||||
(fields
|
||||
(field (name Reference) R)
|
||||
(field (name Value) R))
|
||||
(pins
|
||||
(pin (num 1) (name ~) (type passive))
|
||||
(pin (num 2) (name ~) (type passive))))
|
||||
(libpart (lib Interface_USB) (part CH340C)
|
||||
(description "USB serial converter, UART, SOIC-16")
|
||||
(docs https://datasheet.lcsc.com/szlcsc/Jiangsu-Qin-Heng-CH340C_C84681.pdf)
|
||||
(footprints
|
||||
(fp SOIC*3.9x9.9mm*P1.27mm*))
|
||||
(fields
|
||||
(field (name Reference) U)
|
||||
(field (name Value) CH340C)
|
||||
(field (name Footprint) Package_SO:SOIC-16_3.9x9.9mm_P1.27mm))
|
||||
(pins
|
||||
(pin (num 1) (name GND) (type power_in))
|
||||
(pin (num 2) (name TXD) (type output))
|
||||
(pin (num 3) (name RXD) (type input))
|
||||
(pin (num 4) (name V3) (type passive))
|
||||
(pin (num 5) (name UD+) (type BiDi))
|
||||
(pin (num 6) (name UD-) (type BiDi))
|
||||
(pin (num 7) (name NC) (type NotConnected))
|
||||
(pin (num 8) (name NC) (type NotConnected))
|
||||
(pin (num 9) (name ~CTS) (type input))
|
||||
(pin (num 10) (name ~DSR) (type input))
|
||||
(pin (num 11) (name ~RI) (type input))
|
||||
(pin (num 12) (name ~DCD) (type input))
|
||||
(pin (num 13) (name ~DTR) (type output))
|
||||
(pin (num 14) (name ~RTS) (type output))
|
||||
(pin (num 15) (name R232) (type input))
|
||||
(pin (num 16) (name VCC) (type power_in))))
|
||||
(libpart (lib Jumper) (part SolderJumper_2_Bridged)
|
||||
(description "Solder Jumper, 2-pole, closed/bridged")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp SolderJumper*Bridged*))
|
||||
(fields
|
||||
(field (name Reference) JP)
|
||||
(field (name Value) SolderJumper_2_Bridged))
|
||||
(pins
|
||||
(pin (num 1) (name A) (type passive))
|
||||
(pin (num 2) (name B) (type passive))))
|
||||
(libpart (lib Jumper) (part SolderJumper_2_Open)
|
||||
(description "Solder Jumper, 2-pole, open")
|
||||
(docs ~)
|
||||
(footprints
|
||||
(fp SolderJumper*Open*))
|
||||
(fields
|
||||
(field (name Reference) JP)
|
||||
(field (name Value) SolderJumper_2_Open))
|
||||
(pins
|
||||
(pin (num 1) (name A) (type passive))
|
||||
(pin (num 2) (name B) (type passive))))
|
||||
(libpart (lib MCU_Microchip_ATmega) (part ATmega48PB-AU)
|
||||
(aliases
|
||||
(alias ATmega88PB-AU)
|
||||
(alias ATmega168PB-AU)
|
||||
(alias ATmega328PB-AU))
|
||||
(description "20MHz, 4kB Flash, 512B SRAM, 256B EEPROM, TQFP-32")
|
||||
(docs http://ww1.microchip.com/downloads/en/DeviceDoc/40001909A.pdf)
|
||||
(footprints
|
||||
(fp TQFP*7x7mm*P0.8mm*))
|
||||
(fields
|
||||
(field (name Reference) U)
|
||||
(field (name Value) ATmega48PB-AU)
|
||||
(field (name Footprint) Package_QFP:TQFP-32_7x7mm_P0.8mm))
|
||||
(pins
|
||||
(pin (num 1) (name PD3) (type BiDi))
|
||||
(pin (num 2) (name PD4) (type BiDi))
|
||||
(pin (num 3) (name PE0) (type BiDi))
|
||||
(pin (num 4) (name VCC) (type power_in))
|
||||
(pin (num 5) (name GND) (type power_in))
|
||||
(pin (num 6) (name PE1) (type BiDi))
|
||||
(pin (num 7) (name XTAL1/PB6) (type BiDi))
|
||||
(pin (num 8) (name XTAL2/PB7) (type BiDi))
|
||||
(pin (num 9) (name PD5) (type BiDi))
|
||||
(pin (num 10) (name PD6) (type BiDi))
|
||||
(pin (num 11) (name PD7) (type BiDi))
|
||||
(pin (num 12) (name PB0) (type BiDi))
|
||||
(pin (num 13) (name PB1) (type BiDi))
|
||||
(pin (num 14) (name PB2) (type BiDi))
|
||||
(pin (num 15) (name PB3) (type BiDi))
|
||||
(pin (num 16) (name PB4) (type BiDi))
|
||||
(pin (num 17) (name PB5) (type BiDi))
|
||||
(pin (num 18) (name AVCC) (type power_in))
|
||||
(pin (num 19) (name PE2) (type BiDi))
|
||||
(pin (num 20) (name AREF) (type passive))
|
||||
(pin (num 21) (name GND) (type passive))
|
||||
(pin (num 22) (name PE3) (type BiDi))
|
||||
(pin (num 23) (name PC0) (type BiDi))
|
||||
(pin (num 24) (name PC1) (type BiDi))
|
||||
(pin (num 25) (name PC2) (type BiDi))
|
||||
(pin (num 26) (name PC3) (type BiDi))
|
||||
(pin (num 27) (name PC4) (type BiDi))
|
||||
(pin (num 28) (name PC5) (type BiDi))
|
||||
(pin (num 29) (name ~RESET~/PC6) (type BiDi))
|
||||
(pin (num 30) (name PD0) (type BiDi))
|
||||
(pin (num 31) (name PD1) (type BiDi))
|
||||
(pin (num 32) (name PD2) (type BiDi))))
|
||||
(libpart (lib Switch) (part SW_Push)
|
||||
(description "Push button switch, generic, two pins")
|
||||
(docs ~)
|
||||
(fields
|
||||
(field (name Reference) SW)
|
||||
(field (name Value) SW_Push))
|
||||
(pins
|
||||
(pin (num 1) (name 1) (type passive))
|
||||
(pin (num 2) (name 2) (type passive))))
|
||||
(libpart (lib TYPE-C-31-M-12) (part TYPE-C-31-M-12)
|
||||
(fields
|
||||
(field (name Reference) J)
|
||||
(field (name Value) TYPE-C-31-M-12)
|
||||
(field (name Footprint) HRO_TYPE-C-31-M-12)
|
||||
(field (name MAXIMUM_PACKAGE_HEIGHT) 3.31mm)
|
||||
(field (name STANDARD) "Manufacturer Recommendations")
|
||||
(field (name PARTREV) A)
|
||||
(field (name MANUFACTURER) "HRO Electronics"))
|
||||
(pins
|
||||
(pin (num A5) (name CC1) (type BiDi))
|
||||
(pin (num A6) (name DP1) (type BiDi))
|
||||
(pin (num A7) (name DN1) (type BiDi))
|
||||
(pin (num A8) (name SBU1) (type BiDi))
|
||||
(pin (num A1B12) (name GND) (type power_in))
|
||||
(pin (num A4B9) (name VBUS) (type power_in))
|
||||
(pin (num B5) (name CC2) (type BiDi))
|
||||
(pin (num B6) (name DP2) (type BiDi))
|
||||
(pin (num B7) (name DN2) (type BiDi))
|
||||
(pin (num B8) (name SBU2) (type BiDi))
|
||||
(pin (num B1A12) (name GND) (type power_in))
|
||||
(pin (num B4A9) (name VBUS) (type power_in))
|
||||
(pin (num S1) (name SHIELD) (type passive))
|
||||
(pin (num S2) (name SHIELD) (type passive))
|
||||
(pin (num S3) (name SHIELD) (type passive))
|
||||
(pin (num S4) (name SHIELD) (type passive)))))
|
||||
(libraries
|
||||
(library (logical CD74HC4053PWR)
|
||||
(uri "D:\\Dokumente\\Coding\\Visual Studio Code\\smart-lamp-control\\Devices\\Control\\Hardware\\Circuit/Libraries/CD74HC4053PWR.lib"))
|
||||
(library (logical Connector)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Connector.lib"))
|
||||
(library (logical Connector_Generic)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Connector_Generic.lib"))
|
||||
(library (logical Device)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Device.lib"))
|
||||
(library (logical Interface_USB)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Interface_USB.lib"))
|
||||
(library (logical Jumper)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Jumper.lib"))
|
||||
(library (logical MCU_Microchip_ATmega)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/MCU_Microchip_ATmega.lib"))
|
||||
(library (logical Switch)
|
||||
(uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Switch.lib"))
|
||||
(library (logical TYPE-C-31-M-12)
|
||||
(uri "D:\\Dokumente\\Coding\\Visual Studio Code\\smart-lamp-control\\Devices\\Control\\Hardware\\Circuit/Libraries/TYPE-C-31-M-12.lib")))
|
||||
(nets
|
||||
(net (code 1) (name MISO)
|
||||
(node (ref U3) (pin 15))
|
||||
(node (ref J6) (pin 1))
|
||||
(node (ref U1) (pin 16)))
|
||||
(net (code 2) (name MOSI)
|
||||
(node (ref U1) (pin 15))
|
||||
(node (ref J6) (pin 4))
|
||||
(node (ref U3) (pin 14)))
|
||||
(net (code 3) (name STOPRST)
|
||||
(node (ref R3) (pin 2))
|
||||
(node (ref U1) (pin 23)))
|
||||
(net (code 4) (name RST)
|
||||
(node (ref U2) (pin 5))
|
||||
(node (ref JP15) (pin 2))
|
||||
(node (ref SW2) (pin 1))
|
||||
(node (ref U1) (pin 29))
|
||||
(node (ref R2) (pin 1))
|
||||
(node (ref J6) (pin 5))
|
||||
(node (ref J3) (pin 4))
|
||||
(node (ref R4) (pin 1)))
|
||||
(net (code 5) (name SCL)
|
||||
(node (ref J5) (pin 3))
|
||||
(node (ref JP8) (pin 1))
|
||||
(node (ref JP3) (pin 1))
|
||||
(node (ref U1) (pin 28))
|
||||
(node (ref R12) (pin 2)))
|
||||
(net (code 6) (name SDA)
|
||||
(node (ref J5) (pin 2))
|
||||
(node (ref JP1) (pin 1))
|
||||
(node (ref JP10) (pin 1))
|
||||
(node (ref R13) (pin 2))
|
||||
(node (ref U1) (pin 27)))
|
||||
(net (code 7) (name RX)
|
||||
(node (ref J3) (pin 3))
|
||||
(node (ref R11) (pin 2))
|
||||
(node (ref U1) (pin 30))
|
||||
(node (ref JP11) (pin 2))
|
||||
(node (ref U2) (pin 2)))
|
||||
(net (code 8) (name VCC)
|
||||
(node (ref R11) (pin 1))
|
||||
(node (ref R9) (pin 1))
|
||||
(node (ref J5) (pin 4))
|
||||
(node (ref U1) (pin 4))
|
||||
(node (ref U3) (pin 16))
|
||||
(node (ref R13) (pin 1))
|
||||
(node (ref R12) (pin 1))
|
||||
(node (ref C9) (pin 1))
|
||||
(node (ref U1) (pin 18))
|
||||
(node (ref C7) (pin 1))
|
||||
(node (ref U2) (pin 16))
|
||||
(node (ref R10) (pin 1))
|
||||
(node (ref J7) (pin B4A9))
|
||||
(node (ref C5) (pin 1))
|
||||
(node (ref R2) (pin 2))
|
||||
(node (ref C2) (pin 1))
|
||||
(node (ref C4) (pin 1))
|
||||
(node (ref U4) (pin 16))
|
||||
(node (ref J7) (pin A4B9))
|
||||
(node (ref J6) (pin 2))
|
||||
(node (ref R6) (pin 2))
|
||||
(node (ref Q1) (pin 2)))
|
||||
(net (code 9) (name "Net-(U1-Pad20)")
|
||||
(node (ref U1) (pin 20)))
|
||||
(net (code 10) (name TX)
|
||||
(node (ref J3) (pin 2))
|
||||
(node (ref U2) (pin 12))
|
||||
(node (ref JP13) (pin 2))
|
||||
(node (ref U1) (pin 31)))
|
||||
(net (code 11) (name XTAL2)
|
||||
(node (ref U1) (pin 8))
|
||||
(node (ref Y1) (pin 2))
|
||||
(node (ref C3) (pin 1)))
|
||||
(net (code 12) (name XTAL1)
|
||||
(node (ref Y1) (pin 1))
|
||||
(node (ref U1) (pin 7))
|
||||
(node (ref C1) (pin 1)))
|
||||
(net (code 13) (name SCK)
|
||||
(node (ref J6) (pin 3))
|
||||
(node (ref U1) (pin 17)))
|
||||
(net (code 14) (name "Net-(U1-Pad12)")
|
||||
(node (ref U1) (pin 12)))
|
||||
(net (code 15) (name GND)
|
||||
(node (ref D2) (pin 1))
|
||||
(node (ref SW2) (pin 2))
|
||||
(node (ref J7) (pin A1B12))
|
||||
(node (ref U2) (pin 7))
|
||||
(node (ref J2) (pin 3))
|
||||
(node (ref J5) (pin 1))
|
||||
(node (ref J3) (pin 1))
|
||||
(node (ref U1) (pin 5))
|
||||
(node (ref U1) (pin 21))
|
||||
(node (ref J6) (pin 6))
|
||||
(node (ref C1) (pin 2))
|
||||
(node (ref R7) (pin 1))
|
||||
(node (ref C3) (pin 2))
|
||||
(node (ref C5) (pin 2))
|
||||
(node (ref C6) (pin 1))
|
||||
(node (ref J1) (pin 3))
|
||||
(node (ref J8) (pin B1A12))
|
||||
(node (ref J8) (pin S1))
|
||||
(node (ref J8) (pin S2))
|
||||
(node (ref J8) (pin S3))
|
||||
(node (ref J8) (pin S4))
|
||||
(node (ref C2) (pin 2))
|
||||
(node (ref C4) (pin 2))
|
||||
(node (ref U4) (pin 1))
|
||||
(node (ref J7) (pin S4))
|
||||
(node (ref J7) (pin S3))
|
||||
(node (ref J7) (pin S1))
|
||||
(node (ref J7) (pin B1A12))
|
||||
(node (ref J7) (pin S2))
|
||||
(node (ref R5) (pin 1))
|
||||
(node (ref R8) (pin 1))
|
||||
(node (ref D1) (pin 1))
|
||||
(node (ref C9) (pin 2))
|
||||
(node (ref U3) (pin 8))
|
||||
(node (ref U3) (pin 7))
|
||||
(node (ref J8) (pin A1B12))
|
||||
(node (ref U2) (pin 8))
|
||||
(node (ref J4) (pin 1))
|
||||
(node (ref C7) (pin 2)))
|
||||
(net (code 16) (name MUX1S2)
|
||||
(node (ref U2) (pin 9))
|
||||
(node (ref U1) (pin 2)))
|
||||
(net (code 17) (name MUX1S0)
|
||||
(node (ref U2) (pin 11))
|
||||
(node (ref U1) (pin 32)))
|
||||
(net (code 18) (name MUX1S1)
|
||||
(node (ref U1) (pin 1))
|
||||
(node (ref U2) (pin 10)))
|
||||
(net (code 19) (name SIG2A)
|
||||
(node (ref J2) (pin 1))
|
||||
(node (ref U1) (pin 9)))
|
||||
(net (code 20) (name SIG2B)
|
||||
(node (ref U1) (pin 10))
|
||||
(node (ref J2) (pin 2)))
|
||||
(net (code 21) (name "Net-(U1-Pad22)")
|
||||
(node (ref U1) (pin 22)))
|
||||
(net (code 22) (name "Net-(U1-Pad25)")
|
||||
(node (ref U1) (pin 25)))
|
||||
(net (code 23) (name "Net-(U1-Pad26)")
|
||||
(node (ref U1) (pin 26)))
|
||||
(net (code 24) (name SIG1B)
|
||||
(node (ref J1) (pin 2))
|
||||
(node (ref U1) (pin 14)))
|
||||
(net (code 25) (name SIG1A)
|
||||
(node (ref J1) (pin 1))
|
||||
(node (ref U1) (pin 13)))
|
||||
(net (code 26) (name EXTRX)
|
||||
(node (ref JP2) (pin 1))
|
||||
(node (ref J4) (pin 3))
|
||||
(node (ref U2) (pin 1))
|
||||
(node (ref JP9) (pin 2))
|
||||
(node (ref U3) (pin 2)))
|
||||
(net (code 27) (name EXTTX)
|
||||
(node (ref U3) (pin 12))
|
||||
(node (ref J4) (pin 2))
|
||||
(node (ref JP4) (pin 1))
|
||||
(node (ref U2) (pin 13))
|
||||
(node (ref JP7) (pin 2)))
|
||||
(net (code 28) (name EXTRST)
|
||||
(node (ref JP5) (pin 1))
|
||||
(node (ref U2) (pin 3))
|
||||
(node (ref J4) (pin 4))
|
||||
(node (ref JP6) (pin 2)))
|
||||
(net (code 29) (name "Net-(Q1-Pad1)")
|
||||
(node (ref R3) (pin 1))
|
||||
(node (ref Q1) (pin 1)))
|
||||
(net (code 30) (name "Net-(Q1-Pad3)")
|
||||
(node (ref SW1) (pin 1))
|
||||
(node (ref R4) (pin 2))
|
||||
(node (ref Q1) (pin 3)))
|
||||
(net (code 31) (name "Net-(R7-Pad2)")
|
||||
(node (ref R7) (pin 2))
|
||||
(node (ref U2) (pin 6)))
|
||||
(net (code 32) (name "Net-(U1-Pad24)")
|
||||
(node (ref U1) (pin 24)))
|
||||
(net (code 33) (name MUX2S1)
|
||||
(node (ref U3) (pin 10))
|
||||
(node (ref U1) (pin 6)))
|
||||
(net (code 34) (name "Net-(J8-PadA4B9)")
|
||||
(node (ref J8) (pin A4B9))
|
||||
(node (ref R9) (pin 2)))
|
||||
(net (code 35) (name "Net-(U3-Pad3)")
|
||||
(node (ref U3) (pin 3)))
|
||||
(net (code 36) (name "Net-(U3-Pad4)")
|
||||
(node (ref U3) (pin 4)))
|
||||
(net (code 37) (name "Net-(U3-Pad5)")
|
||||
(node (ref U3) (pin 5)))
|
||||
(net (code 38) (name MUX2S0)
|
||||
(node (ref U3) (pin 11))
|
||||
(node (ref U1) (pin 3)))
|
||||
(net (code 39) (name MUX2S2)
|
||||
(node (ref U1) (pin 19))
|
||||
(node (ref U3) (pin 9)))
|
||||
(net (code 40) (name "Net-(U3-Pad1)")
|
||||
(node (ref U3) (pin 1)))
|
||||
(net (code 41) (name "Net-(U3-Pad13)")
|
||||
(node (ref U3) (pin 13)))
|
||||
(net (code 42) (name "Net-(R5-Pad2)")
|
||||
(node (ref SW1) (pin 2))
|
||||
(node (ref R5) (pin 2)))
|
||||
(net (code 43) (name "Net-(C8-Pad1)")
|
||||
(node (ref C8) (pin 1))
|
||||
(node (ref JP16) (pin 2))
|
||||
(node (ref JP15) (pin 1)))
|
||||
(net (code 44) (name MUXRX)
|
||||
(node (ref U2) (pin 15))
|
||||
(node (ref JP12) (pin 1)))
|
||||
(net (code 45) (name MUXTX)
|
||||
(node (ref JP14) (pin 1))
|
||||
(node (ref U2) (pin 14)))
|
||||
(net (code 46) (name "Net-(JP13-Pad1)")
|
||||
(node (ref JP14) (pin 2))
|
||||
(node (ref JP13) (pin 1))
|
||||
(node (ref U4) (pin 3)))
|
||||
(net (code 47) (name MUXRST)
|
||||
(node (ref U2) (pin 4))
|
||||
(node (ref JP16) (pin 1)))
|
||||
(net (code 48) (name "Net-(R8-Pad2)")
|
||||
(node (ref R8) (pin 2))
|
||||
(node (ref U3) (pin 6)))
|
||||
(net (code 49) (name LED)
|
||||
(node (ref U1) (pin 11))
|
||||
(node (ref R1) (pin 2)))
|
||||
(net (code 50) (name "Net-(U4-Pad14)")
|
||||
(node (ref U4) (pin 14)))
|
||||
(net (code 51) (name "Net-(D1-Pad2)")
|
||||
(node (ref D1) (pin 2))
|
||||
(node (ref R1) (pin 1)))
|
||||
(net (code 52) (name "Net-(J8-PadB8)")
|
||||
(node (ref JP6) (pin 1))
|
||||
(node (ref J8) (pin B8)))
|
||||
(net (code 53) (name "Net-(J8-PadB5)")
|
||||
(node (ref J8) (pin B5)))
|
||||
(net (code 54) (name "Net-(D2-Pad2)")
|
||||
(node (ref D2) (pin 2))
|
||||
(node (ref R6) (pin 1)))
|
||||
(net (code 55) (name "Net-(J8-PadB4A9)")
|
||||
(node (ref R10) (pin 2))
|
||||
(node (ref J8) (pin B4A9)))
|
||||
(net (code 56) (name "Net-(J8-PadA7)")
|
||||
(node (ref JP3) (pin 2))
|
||||
(node (ref J8) (pin A7))
|
||||
(node (ref JP4) (pin 2)))
|
||||
(net (code 57) (name "Net-(J8-PadA5)")
|
||||
(node (ref J8) (pin A5)))
|
||||
(net (code 58) (name "Net-(J8-PadA6)")
|
||||
(node (ref JP1) (pin 2))
|
||||
(node (ref J8) (pin A6))
|
||||
(node (ref JP2) (pin 2)))
|
||||
(net (code 59) (name "Net-(J8-PadB6)")
|
||||
(node (ref J8) (pin B6))
|
||||
(node (ref JP9) (pin 1))
|
||||
(node (ref JP10) (pin 2)))
|
||||
(net (code 60) (name "Net-(J8-PadB7)")
|
||||
(node (ref J8) (pin B7))
|
||||
(node (ref JP7) (pin 1))
|
||||
(node (ref JP8) (pin 2)))
|
||||
(net (code 61) (name "Net-(J8-PadA8)")
|
||||
(node (ref JP5) (pin 2))
|
||||
(node (ref J8) (pin A8)))
|
||||
(net (code 62) (name "Net-(U4-Pad15)")
|
||||
(node (ref U4) (pin 15)))
|
||||
(net (code 63) (name "Net-(U4-Pad12)")
|
||||
(node (ref U4) (pin 12)))
|
||||
(net (code 64) (name "Net-(C6-Pad2)")
|
||||
(node (ref U4) (pin 4))
|
||||
(node (ref C6) (pin 2)))
|
||||
(net (code 65) (name "Net-(U4-Pad9)")
|
||||
(node (ref U4) (pin 9)))
|
||||
(net (code 66) (name "Net-(U4-Pad10)")
|
||||
(node (ref U4) (pin 10)))
|
||||
(net (code 67) (name "Net-(U4-Pad11)")
|
||||
(node (ref U4) (pin 11)))
|
||||
(net (code 68) (name "Net-(J7-PadB8)")
|
||||
(node (ref J7) (pin B8)))
|
||||
(net (code 69) (name "Net-(J7-PadB5)")
|
||||
(node (ref J7) (pin B5)))
|
||||
(net (code 70) (name "Net-(J7-PadA5)")
|
||||
(node (ref J7) (pin A5)))
|
||||
(net (code 71) (name "Net-(J7-PadA8)")
|
||||
(node (ref J7) (pin A8)))
|
||||
(net (code 72) (name "Net-(C8-Pad2)")
|
||||
(node (ref U4) (pin 13))
|
||||
(node (ref C8) (pin 2)))
|
||||
(net (code 73) (name "Net-(JP11-Pad1)")
|
||||
(node (ref JP12) (pin 2))
|
||||
(node (ref JP11) (pin 1))
|
||||
(node (ref U4) (pin 2)))
|
||||
(net (code 74) (name D+)
|
||||
(node (ref J7) (pin B6))
|
||||
(node (ref J7) (pin A6))
|
||||
(node (ref U4) (pin 5)))
|
||||
(net (code 75) (name D-)
|
||||
(node (ref U4) (pin 6))
|
||||
(node (ref J7) (pin A7))
|
||||
(node (ref J7) (pin B7)))
|
||||
(net (code 76) (name "Net-(U4-Pad7)")
|
||||
(node (ref U4) (pin 7)))
|
||||
(net (code 77) (name "Net-(U4-Pad8)")
|
||||
(node (ref U4) (pin 8)))))
|
2827
Devices/Control/Hardware/Circuit/Control.ses
Normal file
|
@ -1,22 +1,22 @@
|
|||
(module AVR-ISP (layer F.Cu) (tedit 611E46B0)
|
||||
(fp_text reference REF** (at 0 0) (layer F.SilkS)
|
||||
(effects (font (size 0.787402 0.787402) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value AVR-ISP (at 0 0) (layer F.Fab)
|
||||
(effects (font (size 0.787402 0.787402) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start -3.81 -2.54) (end 3.81 -2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start 3.81 -2.54) (end 3.81 2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start 3.81 2.54) (end -3.81 2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start -3.81 2.54) (end -3.81 -2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_circle (center -4.064 2.794) (end -3.964 2.794) (layer F.SilkS) (width 0.2))
|
||||
(fp_text user ICSP (at 0 -3.302) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(pad 4 thru_hole circle (at 0 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 3 thru_hole circle (at 0 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 2 thru_hole circle (at -2.54 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 1 thru_hole rect (at -2.54 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 5 thru_hole circle (at 2.54 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 6 thru_hole circle (at 2.54 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
)
|
||||
(module AVR-ISP (layer F.Cu) (tedit 611E46B0)
|
||||
(fp_text reference REF** (at 0 0) (layer F.SilkS)
|
||||
(effects (font (size 0.787402 0.787402) (thickness 0.15)))
|
||||
)
|
||||
(fp_text value AVR-ISP (at 0 0) (layer F.Fab)
|
||||
(effects (font (size 0.787402 0.787402) (thickness 0.15)))
|
||||
)
|
||||
(fp_line (start -3.81 -2.54) (end 3.81 -2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start 3.81 -2.54) (end 3.81 2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start 3.81 2.54) (end -3.81 2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_line (start -3.81 2.54) (end -3.81 -2.54) (layer F.SilkS) (width 0.127))
|
||||
(fp_circle (center -4.064 2.794) (end -3.964 2.794) (layer F.SilkS) (width 0.2))
|
||||
(fp_text user ICSP (at 0 -3.302) (layer F.SilkS)
|
||||
(effects (font (size 1 1) (thickness 0.15)))
|
||||
)
|
||||
(pad 4 thru_hole circle (at 0 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 3 thru_hole circle (at 0 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 2 thru_hole circle (at -2.54 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 1 thru_hole rect (at -2.54 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 5 thru_hole circle (at 2.54 1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
(pad 6 thru_hole circle (at 2.54 -1.27) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask))
|
||||
)
|
|
@ -1,3 +1,3 @@
|
|||
EESchema-DOCLIB Version 2.0
|
||||
#
|
||||
#End Doc Library
|
||||
EESchema-DOCLIB Version 2.0
|
||||
#
|
||||
#End Doc Library
|