This commit is contained in:
2021-02-22 15:09:19 +01:00
61 changed files with 29223 additions and 79 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -44,5 +44,6 @@
"streambuf": "cpp",
"cinttypes": "cpp",
"typeinfo": "cpp"
}
},
"cmake.configureOnOpen": true
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

View File

@@ -0,0 +1,100 @@
// Arduino Button Library
// https://github.com/JChristensen/JC_Button
// Copyright (C) 2018 by Jack Christensen and licensed under
// GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
#include "JC_Button.h"
/*----------------------------------------------------------------------*
/ initialize a Button object and the pin it's connected to. *
/-----------------------------------------------------------------------*/
void Button::begin()
{
pinMode(m_pin, m_puEnable ? INPUT_PULLUP : INPUT);
m_state = digitalRead(m_pin);
if (m_invert) m_state = !m_state;
m_time = millis();
m_lastState = m_state;
m_changed = false;
m_lastChange = m_time;
}
/*----------------------------------------------------------------------*
/ returns the state of the button, true if pressed, false if released. *
/ does debouncing, captures and maintains times, previous state, etc. *
/-----------------------------------------------------------------------*/
bool Button::read()
{
uint32_t ms = millis();
bool pinVal = digitalRead(m_pin);
if (m_invert) pinVal = !pinVal;
if (ms - m_lastChange < m_dbTime)
{
m_changed = false;
}
else
{
m_lastState = m_state;
m_state = pinVal;
m_changed = (m_state != m_lastState);
if (m_changed) m_lastChange = ms;
}
m_time = ms;
return m_state;
}
/*----------------------------------------------------------------------*
* isPressed() and isReleased() check the button state when it was last *
* read, and return false (0) or true (!=0) accordingly. *
* These functions do not cause the button to be read. *
*----------------------------------------------------------------------*/
bool Button::isPressed()
{
return m_state;
}
bool Button::isReleased()
{
return !m_state;
}
/*----------------------------------------------------------------------*
* wasPressed() and wasReleased() check the button state to see if it *
* changed between the last two reads and return false (0) or *
* true (!=0) accordingly. *
* These functions do not cause the button to be read. *
*----------------------------------------------------------------------*/
bool Button::wasPressed()
{
return m_state && m_changed;
}
bool Button::wasReleased()
{
return !m_state && m_changed;
}
/*----------------------------------------------------------------------*
* pressedFor(ms) and releasedFor(ms) check to see if the button is *
* pressed (or released), and has been in that state for the specified *
* time in milliseconds. Returns false (0) or true (!=0) accordingly. *
* These functions do not cause the button to be read. *
*----------------------------------------------------------------------*/
bool Button::pressedFor(uint32_t ms)
{
return m_state && m_time - m_lastChange >= ms;
}
bool Button::releasedFor(uint32_t ms)
{
return !m_state && m_time - m_lastChange >= ms;
}
/*----------------------------------------------------------------------*
* lastChange() returns the time the button last changed state, *
* in milliseconds. *
*----------------------------------------------------------------------*/
uint32_t Button::lastChange()
{
return m_lastChange;
}

View File

@@ -0,0 +1,111 @@
// Arduino Button Library
// https://github.com/JChristensen/JC_Button
// Copyright (C) 2018 by Jack Christensen and licensed under
// GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
#ifndef JC_BUTTON_H_INCLUDED
#define JC_BUTTON_H_INCLUDED
#include <Arduino.h>
class Button
{
public:
// Button(pin, dbTime, puEnable, invert) instantiates a button object.
//
// Required parameter:
// pin The Arduino pin the button is connected to
//
// Optional parameters:
// dbTime Debounce time in milliseconds (default 25ms)
// puEnable true to enable the AVR internal pullup resistor (default true)
// invert true to interpret a low logic level as pressed (default true)
Button(uint8_t pin, uint32_t dbTime=25, uint8_t puEnable=true, uint8_t invert=true)
: m_pin(pin), m_dbTime(dbTime), m_puEnable(puEnable), m_invert(invert) {}
// Initialize a Button object and the pin it's connected to
void begin();
// Returns the current debounced button state, true for pressed,
// false for released. Call this function frequently to ensure
// the sketch is responsive to user input.
bool read();
// Returns true if the button state was pressed at the last call to read().
// Does not cause the button to be read.
bool isPressed();
// Returns true if the button state was released at the last call to read().
// Does not cause the button to be read.
bool isReleased();
// Returns true if the button state at the last call to read() was pressed,
// and this was a change since the previous read.
bool wasPressed();
// Returns true if the button state at the last call to read() was released,
// and this was a change since the previous read.
bool wasReleased();
// Returns true if the button state at the last call to read() was pressed,
// and has been in that state for at least the given number of milliseconds.
bool pressedFor(uint32_t ms);
// Returns true if the button state at the last call to read() was released,
// and has been in that state for at least the given number of milliseconds.
bool releasedFor(uint32_t ms);
// Returns the time in milliseconds (from millis) that the button last
// changed state.
uint32_t lastChange();
private:
uint8_t m_pin; // arduino pin number connected to button
uint32_t m_dbTime; // debounce time (ms)
bool m_puEnable; // internal pullup resistor enabled
bool m_invert; // if true, interpret logic low as pressed, else interpret logic high as pressed
bool m_state; // current button state, true=pressed
bool m_lastState; // previous button state
bool m_changed; // state changed since last read
uint32_t m_time; // time of current state (ms from millis)
uint32_t m_lastChange; // time of last state change (ms)
};
// a derived class for a "push-on, push-off" (toggle) type button.
// initial state can be given, default is off (false).
class ToggleButton : public Button
{
public:
// constructor is similar to Button, but includes the initial state for the toggle.
ToggleButton(uint8_t pin, bool initialState=false, uint32_t dbTime=25, uint8_t puEnable=true, uint8_t invert=true)
: Button(pin, dbTime, puEnable, invert), m_toggleState(initialState) {}
// read the button and return its state.
// should be called frequently.
bool read()
{
Button::read();
if (wasPressed())
{
m_toggleState = !m_toggleState;
m_changed = true;
}
else
{
m_changed = false;
}
return m_toggleState;
}
// has the state changed?
bool changed() {return m_changed;}
// return the current state
bool toggleState() {return m_toggleState;}
private:
bool m_toggleState;
bool m_changed;
};
#endif

BIN
manufacturing/.DS_Store vendored Normal file

Binary file not shown.

BIN
manufacturing/CAD/.DS_Store vendored Normal file

Binary file not shown.

BIN
manufacturing/CAD/ledTruck/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,15 @@
(module 3,5mm_straight_circular (layer F.Cu) (tedit 6027E55C)
(fp_text reference REF** (at 0 -4) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value 3,5mm_straight_circular (at 0 3) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_circle (center 0 0) (end 8 0) (layer F.SilkS) (width 0.15))
(pad 1 thru_hole oval (at 0 -2.5) (size 3.2 1.4) (drill oval 2.6 0.8) (layers *.Cu *.Mask)
(die_length 1))
(pad 2 thru_hole oval (at -2.5 0 90) (size 3.2 1.4) (drill oval 2.6 0.8) (layers *.Cu *.Mask)
(die_length 1))
(pad 3 thru_hole oval (at 2.5 0 90) (size 3.2 1.4) (drill oval 2.6 0.8) (layers *.Cu *.Mask)
(die_length 1))
)

View File

@@ -0,0 +1,14 @@
(module 428-202569-MG01 (layer F.Cu) (tedit 602ED7AC)
(fp_text reference REF** (at -0.5 2.5) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value 428-202569-MG01 (at 0 4.5) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start 2 -1) (end 2 1) (layer F.SilkS) (width 0.12))
(fp_line (start 2 1) (end -2 1) (layer F.SilkS) (width 0.12))
(fp_line (start -2 1) (end -2 -1) (layer F.SilkS) (width 0.12))
(fp_line (start -2 -1) (end 2 -1) (layer F.SilkS) (width 0.12))
(pad 1 smd rect (at -1.25 0) (size 1 1.8) (layers F.Cu F.Paste F.Mask))
(pad 2 smd rect (at 1.25 0) (size 1 1.8) (layers F.Cu F.Paste F.Mask))
)

View File

@@ -0,0 +1,9 @@
(module TestPoint_SMD_R (layer F.Cu) (tedit 602EC615)
(fp_text reference REF** (at -3.5 -2.5) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value TestPoint_SMD_R (at 0 -0.5) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(pad 1 smd circle (at 0 -2.5) (size 1 1) (layers F.Cu F.Paste F.Mask))
)

View File

@@ -0,0 +1,43 @@
(module USB_Micro_B_Female (layer F.Cu) (tedit 602ED58C)
(descr https://cdn.amphenol-icc.com/media/wysiwyg/files/drawing/10103594.pdf)
(attr smd)
(fp_text reference J2 (at 0 -5.13 180) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value USB_B_Micro (at 0 2.79 180) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start 4.68 1.75) (end 4.68 -4.22) (layer F.CrtYd) (width 0.05))
(fp_line (start -4.68 -4.22) (end 4.68 -4.22) (layer F.CrtYd) (width 0.05))
(fp_line (start -4.68 1.75) (end 4.68 1.75) (layer F.CrtYd) (width 0.05))
(fp_line (start -4.68 1.75) (end -4.68 -4.22) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.6 -3.6) (end -1.6 -2) (layer F.SilkS) (width 0.1))
(fp_line (start 0 -4.1) (end 0.3 -4.1) (layer F.SilkS) (width 0.1))
(fp_line (start 0 -4.1) (end -0.3 -4.1) (layer F.SilkS) (width 0.1))
(fp_line (start 3.9 1.4) (end 3.9 1.1) (layer F.SilkS) (width 0.1))
(fp_line (start 3.9 1.4) (end 3.6 1.4) (layer F.SilkS) (width 0.1))
(fp_line (start -3.9 1.4) (end -3.9 1.1) (layer F.SilkS) (width 0.1))
(fp_line (start -3.9 1.4) (end -3.6 1.4) (layer F.SilkS) (width 0.1))
(fp_line (start -3.9 -4.1) (end -3.6 -4.1) (layer F.SilkS) (width 0.1))
(fp_line (start -3.9 -4.1) (end -3.9 -3.8) (layer F.SilkS) (width 0.1))
(fp_line (start 3.9 -4.1) (end 3.6 -4.1) (layer F.SilkS) (width 0.1))
(fp_line (start 3.9 -4.1) (end 3.9 -3.8) (layer F.SilkS) (width 0.1))
(fp_line (start -3.75 1.29) (end 3.75 1.29) (layer F.Fab) (width 0.1))
(fp_line (start 3.75 -3.97) (end 3.75 1.29) (layer F.Fab) (width 0.1))
(fp_line (start -3.75 -3.97) (end 3.75 -3.97) (layer F.Fab) (width 0.1))
(fp_line (start -3.75 -3.97) (end -3.75 1.29) (layer F.Fab) (width 0.1))
(fp_line (start 3.75 2.15) (end -3.75 2.15) (layer F.SilkS) (width 0.12))
(pad SH smd rect (at -1.5 1.15) (size 1 1) (layers F.Cu F.Paste F.Mask))
(pad 1 smd rect (at -1.3 -3.16) (size 0.4 2.15) (layers F.Cu F.Paste F.Mask))
(pad SH thru_hole rect (at -3.6 -3.16) (size 2 1.8) (drill oval 0.7 1.3 (offset -0.2 0)) (layers *.Cu *.Mask))
(pad SH thru_hole oval (at -3.6 0) (size 1.3 2.15) (drill oval 0.7 1.3) (layers *.Cu *.Mask))
(pad SH thru_hole rect (at 3.6 -3.16 180) (size 2 1.8) (drill oval 0.7 1.3 (offset -0.2 0)) (layers *.Cu *.Mask))
(pad SH thru_hole oval (at 3.6 0) (size 1.3 2.15) (drill oval 0.7 1.3) (layers *.Cu *.Mask))
(pad "" np_thru_hole circle (at -2 -2.15) (size 0.6 0.6) (drill 0.6) (layers *.Cu *.Mask))
(pad "" np_thru_hole circle (at 2 -2.15) (size 0.6 0.6) (drill 0.6) (layers *.Cu *.Mask))
(pad SH smd rect (at 1.5 1.15) (size 1 1) (layers F.Cu F.Paste F.Mask))
(pad 2 smd rect (at -0.65 -3.16) (size 0.4 2.15) (layers F.Cu F.Paste F.Mask))
(pad 3 smd rect (at 0 -3.16) (size 0.4 2.15) (layers F.Cu F.Paste F.Mask))
(pad 4 smd rect (at 0.65 -3.16) (size 0.4 2.15) (layers F.Cu F.Paste F.Mask))
(pad 5 smd rect (at 1.3 -3.16) (size 0.4 2.15) (layers F.Cu F.Paste F.Mask))
)

View File

@@ -0,0 +1,20 @@
(module slids_switch_spdt (layer F.Cu) (tedit 6027F33B)
(fp_text reference REF** (at 0.5 -3.5) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value slids_switch_spdt (at 0.5 3.5) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -6.5 -2.85) (end -6.5 2.85) (layer F.SilkS) (width 0.12))
(fp_line (start -6.5 2.85) (end 6.5 2.85) (layer F.SilkS) (width 0.12))
(fp_line (start 6.5 -2.85) (end 6.5 2.85) (layer F.SilkS) (width 0.12))
(fp_line (start 6.5 -2.85) (end -6.5 -2.85) (layer F.SilkS) (width 0.12))
(fp_line (start -3 2.85) (end -3 6.85) (layer F.SilkS) (width 0.12))
(fp_line (start -3 6.85) (end 0 6.85) (layer F.SilkS) (width 0.12))
(fp_line (start 0 2.85) (end 0 6.85) (layer F.SilkS) (width 0.12))
(pad 1 thru_hole circle (at -3 0) (size 1.4 1.4) (drill 0.85) (layers *.Cu *.Mask))
(pad 2 thru_hole circle (at 0 0) (size 1.4 1.4) (drill 0.85) (layers *.Cu *.Mask))
(pad 3 thru_hole circle (at 3 0) (size 1.4 1.4) (drill 0.85) (layers *.Cu *.Mask))
(pad 4 thru_hole oval (at -6.3 0) (size 0.8 1.8) (drill oval 0.4 1.4) (layers *.Cu *.Mask))
(pad 5 thru_hole oval (at 6.3 0) (size 0.8 1.8) (drill oval 0.4 1.4) (layers *.Cu *.Mask))
)

View File

@@ -0,0 +1,36 @@
8067501134943
MySymbols
3,5mm_straight_circular
0
3
3
MySymbols
428-202569-MG01
0
2
2
MySymbols
TestPoint_SMD_R
0
1
1
MySymbols
USB_Micro_B_Female
https://cdn.amphenol-icc.com/media/wysiwyg/files/drawing/10103594.pdf
0
11
6
MySymbols
slids_switch_spdt
0
5
5

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,137 @@
%TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*%
%TF.CreationDate,2021-02-18T22:12:25+01:00*%
%TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,rev?*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Soldermask,Bot*%
%TF.FilePolarity,Negative*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-02-18 22:12:25*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%ADD10C,0.600000*%
%ADD11O,2.150000X1.300000*%
%ADD12R,1.800000X2.000000*%
%ADD13C,2.850000*%
%ADD14R,2.850000X2.850000*%
%ADD15C,2.020000*%
%ADD16O,1.700000X2.000000*%
%ADD17O,3.200000X1.400000*%
%ADD18O,1.400000X3.200000*%
%ADD19C,0.400000*%
%ADD20C,1.400000*%
%ADD21O,1.800000X0.800000*%
G04 APERTURE END LIST*
D10*
%TO.C,J2*%
X111116000Y-98012000D03*
X111116000Y-94012000D03*
D11*
X108966000Y-99612000D03*
D12*
X112126000Y-99812000D03*
D11*
X108966000Y-92412000D03*
D12*
X112126000Y-92212000D03*
%TD*%
D13*
%TO.C,SW3*%
X170034000Y-76612000D03*
X170034000Y-81312000D03*
D14*
X170034000Y-86012000D03*
%TD*%
D13*
%TO.C,SW2*%
X145034000Y-76612000D03*
X145034000Y-81312000D03*
D14*
X145034000Y-86012000D03*
%TD*%
D13*
%TO.C,SW1*%
X120034000Y-76612000D03*
X120034000Y-81312000D03*
D14*
X120034000Y-86012000D03*
%TD*%
D15*
%TO.C,J3*%
X180594000Y-91186000D03*
X180594000Y-93726000D03*
X180594000Y-96266000D03*
X180594000Y-98806000D03*
%TD*%
D16*
%TO.C,J1*%
X180034000Y-78012000D03*
G36*
G01*
X176684000Y-78762000D02*
X176684000Y-77262000D01*
G75*
G02*
X176934000Y-77012000I250000J0D01*
G01*
X178134000Y-77012000D01*
G75*
G02*
X178384000Y-77262000I0J-250000D01*
G01*
X178384000Y-78762000D01*
G75*
G02*
X178134000Y-79012000I-250000J0D01*
G01*
X176934000Y-79012000D01*
G75*
G02*
X176684000Y-78762000I0J250000D01*
G01*
G37*
%TD*%
D17*
%TO.C,CON1*%
X120034000Y-107012000D03*
D18*
X117534000Y-109512000D03*
X122534000Y-109512000D03*
%TD*%
D17*
%TO.C,CON2*%
X145034000Y-107012000D03*
D18*
X142534000Y-109512000D03*
X147534000Y-109512000D03*
%TD*%
%TO.C,CON3*%
X172534000Y-109512000D03*
X167534000Y-109512000D03*
D17*
X170034000Y-107012000D03*
%TD*%
D19*
%TO.C,U1*%
X153190000Y-85962000D03*
X153190000Y-84962000D03*
X153190000Y-83962000D03*
X154190000Y-85962000D03*
X154190000Y-84962000D03*
X154190000Y-83962000D03*
X155190000Y-85962000D03*
X155190000Y-84962000D03*
X155190000Y-83962000D03*
%TD*%
D20*
%TO.C,S1*%
X111034000Y-79512000D03*
X111034000Y-82512000D03*
X111034000Y-85512000D03*
D21*
X111034000Y-76212000D03*
X111034000Y-88812000D03*
%TD*%
M02*

View File

@@ -0,0 +1,15 @@
%TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*%
%TF.CreationDate,2021-02-18T22:12:25+01:00*%
%TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,rev?*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Paste,Bot*%
%TF.FilePolarity,Positive*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-02-18 22:12:25*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
G04 APERTURE END LIST*
M02*

View File

@@ -0,0 +1,15 @@
%TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*%
%TF.CreationDate,2021-02-18T22:12:25+01:00*%
%TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,rev?*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Legend,Bot*%
%TF.FilePolarity,Positive*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-02-18 22:12:25*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
G04 APERTURE END LIST*
M02*

View File

@@ -0,0 +1,26 @@
%TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*%
%TF.CreationDate,2021-02-18T22:12:25+01:00*%
%TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,rev?*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Profile,NP*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-02-18 22:12:25*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%TA.AperFunction,Profile*%
%ADD10C,0.050000*%
%TD*%
G04 APERTURE END LIST*
D10*
X107034000Y-118012000D02*
X107034000Y-74012000D01*
X107034000Y-118012000D02*
X183034000Y-118012000D01*
X183034000Y-74012000D02*
X183034000Y-118012000D01*
X107034000Y-74012000D02*
X183034000Y-74012000D01*
M02*

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,221 @@
%TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*%
%TF.CreationDate,2021-02-18T22:12:25+01:00*%
%TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,rev?*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Paste,Top*%
%TF.FilePolarity,Positive*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-02-18 22:12:25*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%ADD10R,1.800000X1.000000*%
%ADD11R,2.150000X0.400000*%
%ADD12R,1.000000X1.000000*%
%ADD13C,1.000000*%
%ADD14R,1.200000X1.200000*%
%ADD15R,0.600000X1.050000*%
%ADD16R,0.600000X0.800000*%
%ADD17R,0.800000X0.600000*%
%ADD18R,0.280000X0.850000*%
%ADD19R,0.850000X0.280000*%
%ADD20R,3.450000X3.450000*%
G04 APERTURE END LIST*
D10*
%TO.C,Y1*%
X161544000Y-83078000D03*
X161544000Y-85578000D03*
%TD*%
D11*
%TO.C,J2*%
X112126000Y-97312000D03*
X112126000Y-96662000D03*
X112126000Y-96012000D03*
X112126000Y-95362000D03*
D12*
X107816000Y-97512000D03*
D11*
X112126000Y-94712000D03*
D12*
X107816000Y-94512000D03*
%TD*%
D13*
%TO.C,BOOT0*%
X156718000Y-89194000D03*
%TD*%
%TO.C,RST1*%
X155956000Y-77470000D03*
%TD*%
D14*
%TO.C,C9*%
X126204000Y-87122000D03*
X128304000Y-87122000D03*
%TD*%
%TO.C,C7*%
X134586000Y-83566000D03*
X136686000Y-83566000D03*
%TD*%
%TO.C,C4*%
X126204000Y-83566000D03*
X128304000Y-83566000D03*
%TD*%
%TO.C,C1*%
X134586000Y-87122000D03*
X136686000Y-87122000D03*
%TD*%
D15*
%TO.C,U2*%
X135316000Y-75358000D03*
X134366000Y-75358000D03*
X133416000Y-75358000D03*
X133416000Y-78058000D03*
X135316000Y-78058000D03*
%TD*%
D16*
%TO.C,R13*%
X160844000Y-78486000D03*
X162244000Y-78486000D03*
%TD*%
%TO.C,R12*%
X160844000Y-76962000D03*
X162244000Y-76962000D03*
%TD*%
%TO.C,R11*%
X108834000Y-114012000D03*
X110234000Y-114012000D03*
%TD*%
%TO.C,R10*%
X108834000Y-115512000D03*
X110234000Y-115512000D03*
%TD*%
%TO.C,R9*%
X151446000Y-80010000D03*
X152846000Y-80010000D03*
%TD*%
D17*
%TO.C,R8*%
X163830000Y-84774000D03*
X163830000Y-83374000D03*
%TD*%
D16*
%TO.C,R7*%
X137222000Y-78232000D03*
X138622000Y-78232000D03*
%TD*%
%TO.C,R6*%
X157672000Y-109728000D03*
X156272000Y-109728000D03*
%TD*%
%TO.C,R5*%
X156272000Y-106426000D03*
X157672000Y-106426000D03*
%TD*%
%TO.C,R4*%
X132142000Y-113284000D03*
X133542000Y-113284000D03*
%TD*%
%TO.C,R3*%
X157672000Y-108204000D03*
X156272000Y-108204000D03*
%TD*%
%TO.C,R2*%
X157672000Y-104902000D03*
X156272000Y-104902000D03*
%TD*%
%TO.C,R1*%
X132128000Y-111760000D03*
X133528000Y-111760000D03*
%TD*%
D14*
%TO.C,L1*%
X128338000Y-80264000D03*
X126238000Y-80264000D03*
%TD*%
%TO.C,D2*%
X109034000Y-107462000D03*
X109034000Y-109562000D03*
%TD*%
%TO.C,D1*%
X109034000Y-102912000D03*
X109034000Y-105012000D03*
%TD*%
D16*
%TO.C,C8*%
X152846000Y-78486000D03*
X151446000Y-78486000D03*
%TD*%
%TO.C,C6*%
X152846000Y-76962000D03*
X151446000Y-76962000D03*
%TD*%
%TO.C,C5*%
X152846000Y-75464000D03*
X151446000Y-75464000D03*
%TD*%
%TO.C,C3*%
X160844000Y-80010000D03*
X162244000Y-80010000D03*
%TD*%
%TO.C,C2*%
X160844000Y-88138000D03*
X162244000Y-88138000D03*
%TD*%
D18*
%TO.C,U1*%
X152440000Y-87437000D03*
D19*
X151715000Y-83212000D03*
D18*
X155940000Y-82487000D03*
D20*
X154190000Y-84962000D03*
D19*
X156665000Y-86712000D03*
X156665000Y-86212000D03*
X156665000Y-85712000D03*
X156665000Y-85212000D03*
X156665000Y-84712000D03*
X156665000Y-84212000D03*
X156665000Y-83712000D03*
X156665000Y-83212000D03*
D18*
X155440000Y-82487000D03*
X154940000Y-82487000D03*
X154440000Y-82487000D03*
X153940000Y-82487000D03*
X153440000Y-82487000D03*
X152940000Y-82487000D03*
X152440000Y-82487000D03*
D19*
X151715000Y-83712000D03*
X151715000Y-84212000D03*
X151715000Y-84712000D03*
X151715000Y-85212000D03*
X151715000Y-85712000D03*
X151715000Y-86212000D03*
X151715000Y-86712000D03*
D18*
X152940000Y-87437000D03*
X153440000Y-87437000D03*
X153940000Y-87437000D03*
X154440000Y-87437000D03*
X154940000Y-87437000D03*
X155440000Y-87437000D03*
X155940000Y-87437000D03*
%TD*%
D17*
%TO.C,R14*%
X115062000Y-80964000D03*
X115062000Y-79564000D03*
%TD*%
D15*
%TO.C,U3*%
X128204000Y-78058000D03*
X126304000Y-78058000D03*
X126304000Y-75358000D03*
X127254000Y-75358000D03*
X128204000Y-75358000D03*
%TD*%
M02*

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,17 @@
M48
; DRILL file {KiCad (5.1.9-0-10_14)} date Thursday, February 18, 2021 at 10:12:30 PM
; FORMAT={-:-/ absolute / inch / decimal}
; #@! TF.CreationDate,2021-02-18T22:12:30+01:00
; #@! TF.GenerationSoftware,Kicad,Pcbnew,(5.1.9-0-10_14)
; #@! TF.FileFunction,NonPlated,1,2,NPTH
FMAT,2
INCH
T1C0.0236
%
G90
G05
T1
X4.3746Y-3.7013
X4.3746Y-3.8587
T0
M30

View File

@@ -0,0 +1,232 @@
M48
; DRILL file {KiCad (5.1.9-0-10_14)} date Thursday, February 18, 2021 at 10:12:30 PM
; FORMAT={-:-/ absolute / inch / decimal}
; #@! TF.CreationDate,2021-02-18T22:12:30+01:00
; #@! TF.GenerationSoftware,Kicad,Pcbnew,(5.1.9-0-10_14)
; #@! TF.FileFunction,Plated,1,2,PTH
FMAT,2
INCH
T1C0.0079
T2C0.0157
T3C0.0276
T4C0.0315
T5C0.0335
T6C0.0394
T7C0.0402
T8C0.0728
%
G90
G05
T1
X6.0311Y-3.3056
X6.0311Y-3.345
X6.0311Y-3.3843
X6.0705Y-3.3056
X6.0705Y-3.345
X6.0705Y-3.3843
X6.1098Y-3.3056
X6.1098Y-3.345
X6.1098Y-3.3843
T2
X4.46Y-4.14
X4.46Y-4.37
X4.5034Y-3.3666
X4.52Y-2.97
X4.53Y-3.77
X4.59Y-3.19
X4.61Y-3.94
X4.6312Y-3.7288
X4.64Y-3.65
X4.75Y-3.6857
X4.78Y-3.85
X4.83Y-3.9
X4.8398Y-2.9702
X4.8398Y-3.2702
X4.89Y-3.16
X4.89Y-3.29
X4.89Y-3.43
X4.91Y-4.41
X4.99Y-4.34
X5.02Y-3.55
X5.02Y-3.83
X5.02Y-4.0
X5.08Y-4.26
X5.1487Y-3.2013
X5.15Y-3.02
X5.15Y-3.29
X5.15Y-3.43
X5.16Y-4.55
X5.2Y-2.96
X5.2Y-3.07
X5.2188Y-3.7288
X5.22Y-3.43
X5.26Y-4.06
X5.26Y-4.34
X5.28Y-3.21
X5.28Y-3.77
X5.3Y-4.02
X5.3Y-4.46
X5.33Y-4.58
X5.41Y-2.96
X5.41Y-4.49
X5.46Y-3.14
X5.46Y-3.29
X5.46Y-3.43
X5.54Y-2.97
X5.54Y-3.54
X5.54Y-4.17
X5.63Y-3.83
X5.71Y-3.6
X5.72Y-4.58
X5.8084Y-3.9016
X5.8643Y-3.6857
X5.89Y-3.83
X5.92Y-3.09
X5.97Y-3.24
X5.99Y-3.2
X6.0115Y-4.0661
X6.0615Y-3.1267
X6.07Y-3.01
X6.09Y-3.09
X6.09Y-3.52
X6.09Y-4.26
X6.12Y-4.02
X6.14Y-3.17
X6.17Y-3.24
X6.17Y-4.58
X6.18Y-3.08
X6.1885Y-3.66
X6.2Y-4.07
X6.21Y-4.01
X6.21Y-2.94
X6.23Y-3.09
X6.24Y-3.47
X6.26Y-3.33
X6.26Y-4.36
X6.2675Y-3.0174
X6.27Y-2.95
X6.2793Y-3.16
X6.28Y-3.09
X6.2934Y-3.2809
X6.33Y-3.42
X6.3438Y-2.96
X6.37Y-3.65
X6.41Y-3.9
X6.44Y-3.09
X6.54Y-3.06
X6.56Y-3.15
X6.56Y-3.47
X6.62Y-4.58
X6.66Y-3.69
X6.66Y-3.84
X6.79Y-3.9
X6.84Y-3.55
X6.99Y-3.77
X7.12Y-3.31
X7.12Y-3.44
X7.12Y-4.03
X7.12Y-4.19
X7.12Y-4.37
X7.12Y-4.58
T5
X4.3714Y-3.1304
X4.3714Y-3.2485
X4.3714Y-3.3666
T6
X6.9895Y-3.0713
X7.088Y-3.0713
T7
X7.11Y-3.59
X7.11Y-3.69
X7.11Y-3.79
X7.11Y-3.89
T8
X4.7257Y-3.0162
X4.7257Y-3.2013
X4.7257Y-3.3863
X5.71Y-3.0162
X5.71Y-3.2013
X5.71Y-3.3863
X6.6943Y-3.0162
X6.6943Y-3.2013
X6.6943Y-3.3863
T2
G00X4.3911Y-3.0005
M15
G01X4.3517Y-3.0005
M16
G05
G00X4.3911Y-3.4965
M15
G01X4.3517Y-3.4965
M16
G05
T3
G00X4.3018Y-3.6383
M15
G01X4.2782Y-3.6383
M16
G05
G00X4.3018Y-3.9217
M15
G01X4.2782Y-3.9217
M16
G05
G00X4.4262Y-3.6383
M15
G01X4.4026Y-3.6383
M16
G05
G00X4.4026Y-3.9217
M15
G01X4.4262Y-3.9217
M16
G05
T4
G00X4.6273Y-4.3469
M15
G01X4.6273Y-4.2761
M16
G05
G00X4.6903Y-4.2131
M15
G01X4.7612Y-4.2131
M16
G05
G00X4.8242Y-4.3469
M15
G01X4.8242Y-4.2761
M16
G05
G00X5.6116Y-4.3469
M15
G01X5.6116Y-4.2761
M16
G05
G00X5.6746Y-4.2131
M15
G01X5.7454Y-4.2131
M16
G05
G00X5.8084Y-4.3469
M15
G01X5.8084Y-4.2761
M16
G05
G00X6.5958Y-4.3469
M15
G01X6.5958Y-4.2761
M16
G05
G00X6.6588Y-4.2131
M15
G01X6.7297Y-4.2131
M16
G05
G00X6.7927Y-4.3469
M15
G01X6.7927Y-4.2761
M16
G05
T0
M30

View File

@@ -0,0 +1,128 @@
{
"Header":
{
"GenerationSoftware":
{
"Vendor": "KiCad",
"Application": "Pcbnew",
"Version": "(5.1.9-0-10_14)"
},
"CreationDate": "2021-02-18T22:12:25+01:00"
},
"GeneralSpecs":
{
"ProjectId":
{
"Name": "ledTruck",
"GUID": "6c656454-7275-4636-9b2e-6b696361645f",
"Revision": "rev?"
},
"Size":
{
"X": 76.050,
"Y": 44.050
},
"LayerNumber": 2,
"BoardThickness": 1.600
},
"DesignRules":
[
{
"Layers": "Outer",
"PadToPad": 0.200,
"PadToTrack": 0.200,
"TrackToTrack": 0.200,
"MinLineWidth": 0.250,
"TrackToRegion": 0.508,
"RegionToRegion": 0.508
}
],
"FilesAttributes":
[
{
"Path": "ledTruck-F_Cu.gbr",
"FileFunction": "Copper,L1,Top",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-B_Cu.gbr",
"FileFunction": "Copper,L2,Bot",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-F_Paste.gbr",
"FileFunction": "SolderPaste,Top",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-B_Paste.gbr",
"FileFunction": "SolderPaste,Bot",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-F_SilkS.gbr",
"FileFunction": "Legend,Top",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-B_SilkS.gbr",
"FileFunction": "Legend,Bot",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-F_Mask.gbr",
"FileFunction": "SolderMask,Top",
"FilePolarity": "Negative"
},
{
"Path": "ledTruck-B_Mask.gbr",
"FileFunction": "SolderMask,Bot",
"FilePolarity": "Negative"
},
{
"Path": "ledTruck-Edge_Cuts.gbr",
"FileFunction": "Profile",
"FilePolarity": "Positive"
}
],
"MaterialStackup":
[
{
"Type": "Legend",
"Notes": "Layer F.SilkS"
},
{
"Type": "SolderPaste",
"Notes": "Layer F.Paste"
},
{
"Type": "SolderMask",
"Notes": "Layer F.Mask"
},
{
"Type": "Copper",
"Notes": "Layer F.Cu"
},
{
"Type": "Dielectric",
"Material": "FR4",
"Notes": "Layers L1/L2"
},
{
"Type": "Copper",
"Notes": "Layer B.Cu"
},
{
"Type": "SolderMask",
"Notes": "Layer B.Mask"
},
{
"Type": "SolderPaste",
"Notes": "Layer B.Paste"
},
{
"Type": "Legend",
"Notes": "Layer B.SilkS"
}
]
}

View File

@@ -0,0 +1,450 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# Connector_Conn_01x02_Male
#
DEF Connector_Conn_01x02_Male J 0 40 Y N 1 F N
F0 "J" 0 100 50 H V C CNN
F1 "Connector_Conn_01x02_Male" 0 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_1x??_*
$ENDFPLIST
DRAW
S 34 -95 0 -105 1 1 6 F
S 34 5 0 -5 1 1 6 F
P 2 1 1 6 50 -100 34 -100 N
P 2 1 1 6 50 0 34 0 N
X Pin_1 1 200 0 150 L 50 50 1 1 P
X Pin_2 2 200 -100 150 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Connector_Generic_Conn_01x04
#
DEF Connector_Generic_Conn_01x04 J 0 40 Y N 1 F N
F0 "J" 0 200 50 H V C CNN
F1 "Connector_Generic_Conn_01x04" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_1x??_*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 50 -250 1 1 10 f
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 -200 0 150 R 50 50 1 1 P
X Pin_3 3 -200 -100 150 R 50 50 1 1 P
X Pin_4 4 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Connector_TestPoint
#
DEF Connector_TestPoint TP 0 30 N N 1 F N
F0 "TP" 0 270 50 H V C CNN
F1 "Connector_TestPoint" 0 200 50 H V C CNN
F2 "" 200 0 50 H I C CNN
F3 "" 200 0 50 H I C CNN
$FPLIST
Pin*
Test*
$ENDFPLIST
DRAW
C 0 130 30 0 1 0 N
X 1 1 0 0 100 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Connector_USB_B_Micro
#
DEF Connector_USB_B_Micro J 0 40 Y Y 1 F N
F0 "J" -200 450 50 H V L CNN
F1 "Connector_USB_B_Micro" -200 350 50 H V L CNN
F2 "" 150 -50 50 H I C CNN
F3 "" 150 -50 50 H I C CNN
ALIAS USB_B_Mini
$FPLIST
USB*
$ENDFPLIST
DRAW
C -150 85 25 0 1 10 F
C -25 135 15 0 1 10 F
S -200 -300 200 300 0 1 10 f
S -5 -300 5 -270 0 1 0 N
S 10 50 -20 20 0 1 10 F
S 200 -205 170 -195 0 1 0 N
S 200 -105 170 -95 0 1 0 N
S 200 -5 170 5 0 1 0 N
S 200 195 170 205 0 1 0 N
P 2 0 1 10 -75 85 25 85 N
P 4 0 1 10 -125 85 -100 85 -50 135 -25 135 N
P 4 0 1 10 -100 85 -75 85 -50 35 0 35 N
P 4 0 1 10 25 110 25 60 75 85 25 110 F
P 5 0 1 0 -170 220 -70 220 -80 190 -160 190 -170 220 F
P 9 0 1 0 -185 230 -185 220 -175 190 -175 180 -65 180 -65 190 -55 220 -55 230 -185 230 N
X VBUS 1 300 200 100 L 50 50 1 1 w
X D- 2 300 -100 100 L 50 50 1 1 B
X D+ 3 300 0 100 L 50 50 1 1 B
X ID 4 300 -200 100 L 50 50 1 1 P
X GND 5 0 -400 100 U 50 50 1 1 w
X Shield SH -100 -400 100 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_C
#
DEF Device_C C 0 10 N Y 1 F N
F0 "C" 25 100 50 H V L CNN
F1 "Device_C" 25 -100 50 H V L CNN
F2 "" 38 -150 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
C_*
$ENDFPLIST
DRAW
P 2 0 1 20 -80 -30 80 -30 N
P 2 0 1 20 -80 30 80 30 N
X ~ 1 0 150 110 D 50 50 1 1 P
X ~ 2 0 -150 110 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_C_Polarized
#
DEF Device_C_Polarized C 0 10 N Y 1 F N
F0 "C" 25 100 50 H V L CNN
F1 "Device_C_Polarized" 25 -100 50 H V L CNN
F2 "" 38 -150 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
CP_*
$ENDFPLIST
DRAW
S -90 20 90 40 0 1 0 N
S 90 -20 -90 -40 0 1 0 F
P 2 0 1 0 -70 90 -30 90 N
P 2 0 1 0 -50 110 -50 70 N
X ~ 1 0 150 110 D 50 50 1 1 P
X ~ 2 0 -150 110 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_Crystal
#
DEF Device_Crystal Y 0 40 N N 1 F N
F0 "Y" 0 150 50 H V C CNN
F1 "Device_Crystal" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Crystal*
$ENDFPLIST
DRAW
S -45 100 45 -100 0 1 12 N
P 2 0 1 0 -100 0 -75 0 N
P 2 0 1 20 -75 -50 -75 50 N
P 2 0 1 20 75 -50 75 50 N
P 2 0 1 0 100 0 75 0 N
X 1 1 -150 0 50 R 50 50 1 1 P
X 2 2 150 0 50 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_L
#
DEF Device_L L 0 40 N N 1 F N
F0 "L" -50 0 50 V V C CNN
F1 "Device_L" 75 0 50 V V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Choke_*
*Coil*
Inductor_*
L_*
$ENDFPLIST
DRAW
A 0 -75 25 -899 899 0 1 0 N 0 -100 0 -50
A 0 -25 25 -899 899 0 1 0 N 0 -50 0 0
A 0 25 25 -899 899 0 1 0 N 0 0 0 50
A 0 75 25 -899 899 0 1 0 N 0 50 0 100
X 1 1 0 150 50 D 50 50 1 1 P
X 2 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_LED
#
DEF Device_LED D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "Device_LED" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
LED*
LED_SMD:*
LED_THT:*
$ENDFPLIST
DRAW
P 2 0 1 10 -50 -50 -50 50 N
P 2 0 1 0 -50 0 50 0 N
P 4 0 1 10 50 -50 50 50 -50 0 50 -50 N
P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N
P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_R
#
DEF Device_R R 0 0 N Y 1 F N
F0 "R" 80 0 50 V V C CNN
F1 "Device_R" 0 0 50 V V C CNN
F2 "" -70 0 50 V I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
R_*
$ENDFPLIST
DRAW
S -40 -100 40 100 0 1 10 N
X ~ 1 0 150 50 D 50 50 1 1 P
X ~ 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# MCU_ST_STM32L0_STM32L031K6Ux
#
DEF MCU_ST_STM32L0_STM32L031K6Ux U 0 20 Y Y 1 F N
F0 "U" -500 850 50 H V L CNN
F1 "MCU_ST_STM32L0_STM32L031K6Ux" 200 850 50 H V L CNN
F2 "Package_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.45x3.45mm" -500 -900 50 H I R CNN
F3 "" 0 0 50 H I C CNN
ALIAS STM32L031K6Ux
$FPLIST
QFN*1EP*5x5mm*P0.5mm*
$ENDFPLIST
DRAW
S -500 -900 400 800 0 1 10 f
X VDD 1 -100 900 100 D 50 50 1 1 W
X PA4 10 500 300 100 L 50 50 1 1 B
X PA5 11 500 200 100 L 50 50 1 1 B
X PA6 12 500 100 100 L 50 50 1 1 B
X PA7 13 500 0 100 L 50 50 1 1 B
X PB0 14 -600 0 100 R 50 50 1 1 B
X PB1 15 -600 -100 100 R 50 50 1 1 B
X PB2 16 -600 -200 100 R 50 50 1 1 B
X VDD 17 0 900 100 D 50 50 1 1 W
X PA8 18 500 -100 100 L 50 50 1 1 B
X PA9 19 500 -200 100 L 50 50 1 1 B
X PC14/OSC_IN 2 -600 300 100 R 50 50 1 1 B
X PA10 20 500 -300 100 L 50 50 1 1 B
X PA11 21 500 -400 100 L 50 50 1 1 B
X PA12 22 500 -500 100 L 50 50 1 1 B
X PA13/SWDIO 23 500 -600 100 L 50 50 1 1 B
X PA14/SWCLK 24 500 -700 100 L 50 50 1 1 B
X PA15 25 500 -800 100 L 50 50 1 1 B
X PB3 26 -600 -300 100 R 50 50 1 1 B
X PB4 27 -600 -400 100 R 50 50 1 1 B
X PB5 28 -600 -500 100 R 50 50 1 1 B
X PB6 29 -600 -600 100 R 50 50 1 1 B
X PC15/OSC_OUT 3 -600 200 100 R 50 50 1 1 B
X PB7 30 -600 -700 100 R 50 50 1 1 B
X BOOT0 31 -600 500 100 R 50 50 1 1 I
X PB8 32 -600 -800 100 R 50 50 1 1 B
X VSS 33 0 -1000 100 U 50 50 1 1 W
X NRST 4 -600 700 100 R 50 50 1 1 I
X VDDA 5 100 900 100 D 50 50 1 1 W
X PA0 6 500 700 100 L 50 50 1 1 B
X PA1 7 500 600 100 L 50 50 1 1 B
X PA2 8 500 500 100 L 50 50 1 1 B
X PA3 9 500 400 100 L 50 50 1 1 B
ENDDRAW
ENDDEF
#
# Regulator_Switching_LM3670MF
#
DEF Regulator_Switching_LM3670MF U 0 20 Y Y 1 F N
F0 "U" -200 200 50 H V L CNN
F1 "Regulator_Switching_LM3670MF" 0 200 50 H V L CNN
F2 "Package_TO_SOT_SMD:TSOT-23-5" 50 -250 50 H I L CNN
F3 "" -250 -350 50 H I C CNN
ALIAS ADP2108AUJ-1.1 ADP2108AUJ-1.2 ADP2108AUJ-1.3 ADP2108AUJ-1.5 ADP2108AUJ-1.8 ADP2108AUJ-1.82 ADP2108AUJ-2.3 ADP2108AUJ-2.5 ADP2108AUJ-3.0 ADP2108AUJ-3.3 LM3670MF
$FPLIST
TSOT?23*
$ENDFPLIST
DRAW
S -200 150 200 -200 0 1 10 f
X Vin 1 -300 100 100 R 50 50 1 1 W
X GND 2 0 -300 100 U 50 50 1 1 W
X EN 3 -300 0 100 R 50 50 1 1 I
X FB 4 300 -100 100 L 50 50 1 1 I
X SW 5 300 100 100 L 50 50 1 1 I
ENDDRAW
ENDDEF
#
# Switch_SW_SPDT_MSM
#
DEF Switch_SW_SPDT_MSM SW 0 0 Y N 1 F N
F0 "SW" 0 200 50 H V C CNN
F1 "Switch_SW_SPDT_MSM" 0 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
C -80 0 20 0 0 0 N
C 80 -100 20 0 0 0 N
C 80 100 20 0 1 0 N
C 90 0 20 0 1 0 N
P 2 0 0 0 -60 5 70 40 N
X 1 1 200 100 100 L 50 50 1 1 P
X 2 2 -200 0 100 R 50 50 1 1 P
X 3 3 200 -100 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# dk_Barrel-Audio-Connectors_SJ1-3523N
#
DEF dk_Barrel-Audio-Connectors_SJ1-3523N CON 0 2 Y Y 1 F N
F0 "CON" -300 250 60 H V L CNN
F1 "dk_Barrel-Audio-Connectors_SJ1-3523N" -50 -250 60 H V C CNN
F2 "digikey-footprints:Headphone_Jack_3.5mm_SJ1-3523N" 200 200 60 H I L CNN
F3 "https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf" 200 300 60 H I L CNN
F4 "CP1-3523N-ND" 200 400 60 H I L CNN "Digi-Key_PN"
F5 "SJ1-3523N" 200 500 60 H I L CNN "MPN"
F6 "Connectors, Interconnects" 200 600 60 H I L CNN "Category"
F7 "Barrel - Audio Connectors" 200 700 60 H I L CNN "Family"
F8 "https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf" 200 800 60 H I L CNN "DK_Datasheet_Link"
F9 "/product-detail/en/cui-inc/SJ1-3523N/CP1-3523N-ND/738689" 200 900 60 H I L CNN "DK_Detail_Page"
F10 "CONN JACK STEREO 3.5MM R/A" 200 1000 60 H I L CNN "Description"
F11 "CUI Inc." 200 1100 60 H I L CNN "Manufacturer"
F12 "Active" 200 1200 60 H I L CNN "Status"
DRAW
S 200 200 -300 -200 0 1 0 f
P 4 0 1 0 200 0 100 0 50 -50 0 0 N
P 4 0 1 0 200 100 0 100 -50 50 -100 100 N
P 6 0 1 0 200 -100 -150 -100 -150 100 -200 100 -200 -50 -150 -50 N
X S 1 400 -100 200 L 50 50 1 1 P
X T 2 400 0 200 L 50 50 1 1 P
X R 3 400 100 200 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# dk_PMIC-Battery-Chargers_MCP73832T-2ACI_OT
#
DEF dk_PMIC-Battery-Chargers_MCP73832T-2ACI_OT U 0 40 Y Y 1 F N
F0 "U" -200 40 60 H V R CNN
F1 "dk_PMIC-Battery-Chargers_MCP73832T-2ACI_OT" 10 -450 60 H V L CNN
F2 "digikey-footprints:SOT-753" 200 200 60 H I L CNN
F3 "http://ww1.microchip.com/downloads/en/DeviceDoc/20001984g.pdf" 200 300 60 H I L CNN
F4 "MCP73832T-2ACI/OTCT-ND" 200 400 60 H I L CNN "Digi-Key_PN"
F5 "MCP73832T-2ACI/OT" 200 500 60 H I L CNN "MPN"
F6 "Integrated Circuits (ICs)" 200 600 60 H I L CNN "Category"
F7 "PMIC - Battery Chargers" 200 700 60 H I L CNN "Family"
F8 "http://ww1.microchip.com/downloads/en/DeviceDoc/20001984g.pdf" 200 800 60 H I L CNN "DK_Datasheet_Link"
F9 "/product-detail/en/microchip-technology/MCP73832T-2ACI-OT/MCP73832T-2ACI-OTCT-ND/1979805" 200 900 60 H I L CNN "DK_Detail_Page"
F10 "IC LI-ION/LI-POLY CTRLR SOT23-5" 200 1000 60 H I L CNN "Description"
F11 "Microchip Technology" 200 1100 60 H I L CNN "Manufacturer"
F12 "Active" 200 1200 60 H I L CNN "Status"
DRAW
S -300 0 300 -400 0 1 0 f
X STAT 1 400 -100 100 L 50 50 1 1 O
X VSS 2 0 -500 100 U 50 50 1 1 W
X VBAT 3 400 -200 100 L 50 50 1 1 w
X VDD 4 0 100 100 D 50 50 1 1 W
X PROG 5 -400 -200 100 R 50 50 1 1 I
ENDDRAW
ENDDEF
#
# dk_Slide-Switches_EG1218
#
DEF dk_Slide-Switches_EG1218 S 0 0 Y Y 1 F N
F0 "S" -150 90 50 H V C CNN
F1 "dk_Slide-Switches_EG1218" 0 -210 50 H V C CNN
F2 "digikey-footprints:Switch_Slide_11.6x4mm_EG1218" 200 200 50 H I L CNN
F3 "http://spec_sheets.e-switch.com/specs/P040040.pdf" 200 300 60 H I L CNN
F4 "EG1903-ND" 200 400 60 H I L CNN "Digi-Key_PN"
F5 "EG1218" 200 500 60 H I L CNN "MPN"
F6 "Switches" 200 600 60 H I L CNN "Category"
F7 "Slide Switches" 200 700 60 H I L CNN "Family"
F8 "http://spec_sheets.e-switch.com/specs/P040040.pdf" 200 800 60 H I L CNN "DK_Datasheet_Link"
F9 "/product-detail/en/e-switch/EG1218/EG1903-ND/101726" 200 900 60 H I L CNN "DK_Detail_Page"
F10 "SWITCH SLIDE SPDT 200MA 30V" 200 1000 60 H I L CNN "Description"
F11 "E-Switch" 200 1100 60 H I L CNN "Manufacturer"
F12 "Active" 200 1200 60 H I L CNN "Status"
DRAW
C -90 0 14 0 1 0 F
C 90 -100 14 0 1 0 F
C 100 100 14 0 1 0 F
P 2 0 1 0 -80 0 120 90 N
X ~ 1 200 100 100 L 50 50 1 1 P
X ~ 2 -200 0 100 R 50 50 1 1 P
X ~ 3 200 -100 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# power_+3.3V
#
DEF power_+3.3V #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "power_+3.3V" 0 140 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
ALIAS +3.3V
DRAW
P 2 0 1 0 -30 50 0 100 N
P 2 0 1 0 0 0 0 100 N
P 2 0 1 0 0 100 30 50 N
X +3V3 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# power_+BATT
#
DEF power_+BATT #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "power_+BATT" 0 140 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 2 0 1 0 -30 50 0 100 N
P 2 0 1 0 0 0 0 100 N
P 2 0 1 0 0 100 30 50 N
X +BATT 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# power_GND
#
DEF power_GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -250 50 H I C CNN
F1 "power_GND" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
X GND 1 0 0 0 D 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# power_VBUS
#
DEF power_VBUS #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "power_VBUS" 0 150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 2 0 1 0 -30 50 0 100 N
P 2 0 1 0 0 0 0 100 N
P 2 0 1 0 0 100 30 50 N
X VBUS 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
#End Library

View File

@@ -0,0 +1,800 @@
(pcb /Users/willemoldemans/Documents/PROJECTEN/leo_3led_truck/manufacturing/CAD/ledTruck/ledTruck.dsn
(parser
(string_quote ")
(space_in_quoted_tokens on)
(host_cad "KiCad's Pcbnew")
(host_version "(5.1.9-0-10_14)")
)
(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 38000 -22000 -38000 -22000 -38000 22000 38000 22000
38000 -22000)
)
(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 "digikey-footprints:Oscillator_XLH536025.000000I"
(place Y1 17526 10668 front 90 (PN 32Khz))
)
(component "digikey-footprints:SOT-753"
(place U2 -10668 19304 front 180 (PN "MCP73832T-2ACI_OT"))
)
(component "digikey-footprints:PC_TEST_POINT_SMD"
(place TP1 12700 19304 front 0 (PN TestPoint))
)
(component "digikey-footprints:Toggle_Switch_100SP1T1B4M2QE"
(place SW3 25000 10000 front 90 (PN SW_SPDT_MSM))
(place SW2 0 10000 front 90 (PN SW_SPDT_MSM))
(place SW1 -25000 10000 front 90 (PN SW_SPDT_MSM))
)
(component "digikey-footprints:0603"
(place R13 16510 17526 front 180 (PN 100K))
(place R12 16510 19050 front 0 (PN 200K))
(place R11 -35500 -18000 front 0 (PN R))
(place R10 -35500 -19500 front 0 (PN R))
(place R9 7112 16002 front 0 (PN 1K))
(place R8 19558 11938 front 90 (PN 1M))
(place R7 -6096 18796 front 180 (PN 10K))
(place R6 11938 -15240 front 180 (PN 10K))
(place R5 11938 -12192 front 0 (PN 10K))
(place R4 11938 -9144 front 0 (PN 10K))
(place R3 11938 -16764 front 180 (PN 105E))
(place R2 11938 -13716 front 180 (PN 105E))
(place R1 11924 -10668 front 0 (PN 105E))
(place C8 7112 17526 front 180 (PN 100nF))
(place C6 7112 19050 front 180 (PN 100nF))
(place C5 7112 20548 front 180 (PN 100nF))
(place C3 16510 16002 front 0 (PN 4,3pF))
(place C2 16510 7874 front 0 (PN 4,3pF))
)
(component "digikey-footprints:0805"
(place L1 -17746 15748 front 180 (PN 2,2uH))
(place D2 -36000 -12500 front 270 (PN LED))
(place D1 -36000 -7950 front 270 (PN LED))
)
(component "digikey-footprints:PinHeader_1x4_P2.54mm_Drill1.02mm"
(place J3 36576 4572 front 270 (PN Conn_01x04))
)
(component "digikey-footprints:USB_Micro_B_Female_10118193-0001LF"
(place J2 -35000 0 front 270 (PN USB_B_Micro))
)
(component "Connector_JST:JST_XH_S2B-XH-A_1x02_P2.50mm_Horizontal"
(place J1 32500 18000 front 0 (PN Conn_01x02_Male))
)
(component "Capacitor_Tantalum_SMD:CP_EIA-3528-21_Kemet-B"
(place C9 -17780 8890 front 0 (PN 4,7uF))
(place C7 -9398 12446 front 0 (PN 4,7uF))
(place C4 -17780 12446 front 0 (PN 1uF))
(place C1 -9398 8890 front 0 (PN 4,7uF))
)
(component MySymbols:3,5mm_straight_circular
(place CON1 -25000 -13500 front 0 (PN "SJ1-3523N"))
(place CON2 0 -13500 front 0 (PN "SJ1-3523N"))
)
(component MySymbols:3,5mm_straight_circular::1
(place CON3 25000 -13500 front 0 (PN "SJ1-3523N"))
)
(component "digikey-footprints:QFN-32-1EP_5x5mm"
(place U1 8624 11500 front 180 (PN STM32L031K6Tx))
)
(component MySymbols:slids_switch_spdt
(place S1 -34000 13500 front 270 (PN EG1218))
)
(component "digikey-footprints:0603::1"
(place R14 -6096 20574 front 180 (PN R))
)
(component "digikey-footprints:SOT-753::1"
(place U3 -17780 19304 front 180 (PN "LM3671MF-3.3"))
)
)
(library
(image "digikey-footprints:Oscillator_XLH536025.000000I"
(outline (path signal 50 -1625 -875 -1625 3125))
(outline (path signal 50 4150 -875 -1625 -875))
(outline (path signal 50 4150 3125 4150 -875))
(outline (path signal 50 -1625 3125 4150 3125))
(outline (path signal 100 -1450 2300 -1450 2525))
(outline (path signal 100 -1450 2525 -1025 2925))
(outline (path signal 100 -1025 2925 -150 2925))
(outline (path signal 100 -1325 -550 -1325 2450))
(outline (path signal 100 -950 2800 3837.5 2800))
(outline (path signal 100 -950 2800 -1325 2450))
(outline (path signal 100 -700 -675 -1425 -675))
(outline (path signal 100 -1425 -675 -1425 -125))
(outline (path signal 100 3950 -150 3950 -675))
(outline (path signal 100 3950 -675 3475 -675))
(outline (path signal 100 3400 2925 3950 2925))
(outline (path signal 100 3950 2925 3950 2450))
(outline (path signal 100 -1312.5 -550 3837.5 -550))
(outline (path signal 100 3837.5 2800 3837.5 -550))
(pin Rect[T]Pad_1290x1240_um 2 2540 2250)
(pin Rect[T]Pad_1290x1240_um 4 2540 0)
(pin Rect[T]Pad_1290x1240_um 1 0 2250)
(pin Rect[T]Pad_1290x1240_um 3 0 0)
)
(image "digikey-footprints:SOT-753"
(outline (path signal 50 -1825 -2125 -1825 2125))
(outline (path signal 50 1825 -2125 -1825 -2125))
(outline (path signal 50 1825 2125 1825 -2125))
(outline (path signal 50 -1825 2125 1825 2125))
(outline (path signal 100 -1325 1000 -1650 1000))
(outline (path signal 100 -1650 1000 -1650 700))
(outline (path signal 100 1325 -1000 1650 -1000))
(outline (path signal 100 1650 -1000 1650 -700))
(outline (path signal 100 1350 1000 1650 1000))
(outline (path signal 100 1650 1000 1650 675))
(outline (path signal 100 -1650 -675 -1425 -1000))
(outline (path signal 100 -1425 -1000 -1325 -1000))
(outline (path signal 100 -1325 -1000 -1325 -1525))
(outline (path signal 100 -1650 -675 -1650 -300))
(outline (path signal 100 -1525 -625 -1525 875))
(outline (path signal 100 -1350 -875 1525 -875))
(outline (path signal 100 -1525 -625 -1350 -875))
(outline (path signal 100 1525 875 1525 -875))
(outline (path signal 100 -1525 875 1525 875))
(pin Rect[T]Pad_600x1050_um 1 -950 -1350)
(pin Rect[T]Pad_600x1050_um 2 0 -1350)
(pin Rect[T]Pad_600x1050_um 3 950 -1350)
(pin Rect[T]Pad_600x1050_um 4 950 1350)
(pin Rect[T]Pad_600x1050_um 5 -950 1350)
)
(image "digikey-footprints:PC_TEST_POINT_SMD"
(outline (path signal 50 -1870 1070 -1870 -1070))
(outline (path signal 50 1870 -1070 -1870 -1070))
(outline (path signal 50 1870 1070 1870 -1070))
(outline (path signal 50 1870 1070 -1870 1070))
(outline (path signal 100 -1800 1000 -1300 1000))
(outline (path signal 100 -1800 1000 -1800 500))
(outline (path signal 100 -1800 -1000 -1800 -500))
(outline (path signal 100 -1800 -1000 -1300 -1000))
(outline (path signal 100 1800 -1000 1300 -1000))
(outline (path signal 100 1800 -1000 1800 -500))
(outline (path signal 100 1800 1000 1800 500))
(outline (path signal 100 1800 1000 1300 1000))
(outline (path signal 100 -1625 825 1625 825))
(outline (path signal 100 -1625 -825 -1625 825))
(outline (path signal 100 1625 -825 1625 825))
(outline (path signal 100 -1625 -825 1625 -825))
(pin Rect[T]Pad_3450x1850_um 1 0 0)
)
(image "digikey-footprints:Toggle_Switch_100SP1T1B4M2QE"
(outline (path signal 100 8100 0 8020.51 -730.899 7785.76 -1427.62 7406.72 -2057.59
6901.11 -2591.35 6292.59 -3003.94 5609.6 -3276.07 4884.07 -3395.01
4149.94 -3355.21 3441.53 -3158.52 2791.96 -2814.14 2231.61 -2338.18
1786.69 -1752.88 1477.98 -1085.62 1319.93 -367.605 1319.93 367.605
1477.98 1085.62 1786.69 1752.88 2231.61 2338.18 2791.96 2814.14
3441.53 3158.52 4149.94 3355.21 4884.07 3395.01 5609.6 3276.07
6292.59 3003.94 6901.11 2591.35 7406.72 2057.59 7785.76 1427.62
8020.51 730.899 8100 0))
(outline (path signal 50 11300 3680 11300 -3680))
(outline (path signal 50 11300 -3680 -1900 -3680))
(outline (path signal 50 -1900 -3680 -1900 3680))
(outline (path signal 50 -1900 3680 11300 3680))
(outline (path signal 100 11150 -3525 11150 -3100))
(outline (path signal 100 11125 -3525 10675 -3525))
(outline (path signal 100 -1750 -3525 -1300 -3525))
(outline (path signal 100 -1750 -3525 -1750 -3100))
(outline (path signal 100 -1750 3525 -1750 3150))
(outline (path signal 100 -1750 3525 -1350 3525))
(outline (path signal 100 10775 3525 11150 3525))
(outline (path signal 100 11150 3525 11150 3175))
(outline (path signal 100 11050 -3430 11050 3430))
(outline (path signal 100 -1650 3430 -1650 -3430))
(outline (path signal 100 -1650 -3430 11050 -3430))
(outline (path signal 100 -1650 3430 11050 3430))
(pin Round[A]Pad_2850_um 3 9400 0)
(pin Round[A]Pad_2850_um 2 4700 0)
(pin Rect[A]Pad_2850x2850_um 1 0 0)
)
(image "digikey-footprints:0603"
(outline (path signal 50 1110 -710 1250 -710))
(outline (path signal 50 1110 710 1250 710))
(outline (path signal 50 -1110 710 -1250 710))
(outline (path signal 50 -1110 -710 -1250 -710))
(outline (path signal 50 -1110 710 1110 710))
(outline (path signal 50 1250 710 1250 -710))
(outline (path signal 50 1110 -710 -1110 -710))
(outline (path signal 50 -1250 -710 -1250 710))
(outline (path signal 120 -300 -300 300 -300))
(outline (path signal 120 -300 300 300 300))
(outline (path signal 120 -800 400 -800 -400))
(outline (path signal 120 -800 -400 800 -400))
(outline (path signal 120 800 -400 800 400))
(outline (path signal 120 800 400 -800 400))
(pin Rect[T]Pad_600x800_um 1 -700 0)
(pin Rect[T]Pad_600x800_um 2 700 0)
)
(image "digikey-footprints:0805"
(outline (path signal 50 -1900 -930 1900 -930))
(outline (path signal 50 -1900 930 1900 930))
(outline (path signal 50 1900 -930 1900 930))
(outline (path signal 50 -1900 -930 -1900 930))
(outline (path signal 120 -320 -800 280 -800))
(outline (path signal 120 -300 800 300 800))
(outline (path signal 120 -950 -680 950 -680))
(outline (path signal 120 -950 680 950 680))
(outline (path signal 120 950 675 950 -675))
(outline (path signal 120 -950 675 -950 -675))
(pin Rect[T]Pad_1200x1200_um 1 -1050 0)
(pin Rect[T]Pad_1200x1200_um 2 1050 0)
)
(image "digikey-footprints:PinHeader_1x4_P2.54mm_Drill1.02mm"
(outline (path signal 50 9060 3420 9060 -3420))
(outline (path signal 100 8810 3170 8810 -3170))
(outline (path signal 100 -1200 -3170 8810 -3170))
(outline (path signal 50 9060 -3420 -1450 -3420))
(outline (path signal 50 -1450 3420 -1450 -3420))
(outline (path signal 50 9060 3420 -1450 3420))
(outline (path signal 100 -1300 3300 -1300 2800))
(outline (path signal 100 -1300 3300 -800 3300))
(outline (path signal 100 -1300 -3300 -1300 -2800))
(outline (path signal 100 -1300 -3300 -800 -3300))
(outline (path signal 100 -1200 3170 -1200 -3170))
(outline (path signal 100 -1200 3170 8810 3170))
(pin Round[A]Pad_2020_um 4 7620 0)
(pin Round[A]Pad_2020_um 3 5080 0)
(pin Round[A]Pad_2020_um 2 2540 0)
(pin Round[A]Pad_2020_um 1 0 0)
)
(image "digikey-footprints:USB_Micro_B_Female_10118193-0001LF"
(outline (path signal 50 -4250 3750 -4250 -3000))
(outline (path signal 50 -4250 -3000 4250 -3000))
(outline (path signal 50 -4250 3750 4250 3750))
(outline (path signal 50 4250 3750 4250 -3000))
(outline (path signal 100 -3930 -2750 -3930 2340))
(outline (path signal 100 3930 2900 -3370 2900))
(outline (path signal 100 -3930 2340 -3370 2900))
(outline (path signal 100 -3930 -2750 3930 -2750))
(outline (path signal 100 3930 -2750 3930 2900))
(outline (path signal 100 -4050 3200 -4050 1750))
(outline (path signal 100 -4050 3210 -2400 3210))
(outline (path signal 100 4060 3220 2400 3220))
(outline (path signal 100 4060 3220 4060 1750))
(outline (path signal 100 -4013.32 -2460 -4013.32 -2840))
(outline (path signal 100 -4013.32 -2840 -3643.32 -2840))
(outline (path signal 100 4014.91 -2841.85 3644.91 -2841.85))
(outline (path signal 100 4014.91 -2461.85 4014.91 -2841.85))
(pin Rect[T]Pad_1900x1900_um SH 1200 0)
(pin Rect[T]Pad_1900x1900_um SH@1 -1200 0)
(pin Rect[T]Pad_1600x1400_um SH@2 3200 2450)
(pin Rect[T]Pad_1600x1400_um SH@3 -3200 2450)
(pin Oval[A]Pad_900x1600_um SH@4 -3300 0)
(pin Oval[A]Pad_900x1600_um SH@5 3300 0)
(pin Rect[T]Pad_400x1350_um 1 -1300 2675)
(pin Rect[T]Pad_400x1350_um 2 -650 2675)
(pin Rect[T]Pad_400x1350_um 5 1300 2675)
(pin Rect[T]Pad_400x1350_um 4 650 2675)
(pin Rect[T]Pad_400x1350_um 3 0 2675)
)
(image "Connector_JST:JST_XH_S2B-XH-A_1x02_P2.50mm_Horizontal"
(outline (path signal 50 -2950 2800 -2950 -9700))
(outline (path signal 50 -2950 -9700 5450 -9700))
(outline (path signal 50 5450 -9700 5450 2800))
(outline (path signal 50 5450 2800 -2950 2800))
(outline (path signal 120 1250 -9310 -2560 -9310))
(outline (path signal 120 -2560 -9310 -2560 2410))
(outline (path signal 120 -2560 2410 -1140 2410))
(outline (path signal 120 -1140 2410 -1140 -2090))
(outline (path signal 120 -1140 -2090 1250 -2090))
(outline (path signal 120 1250 -9310 5060 -9310))
(outline (path signal 120 5060 -9310 5060 2410))
(outline (path signal 120 5060 2410 3640 2410))
(outline (path signal 120 3640 2410 3640 -2090))
(outline (path signal 120 3640 -2090 1250 -2090))
(outline (path signal 100 1250 -9200 -2450 -9200))
(outline (path signal 100 -2450 -9200 -2450 2300))
(outline (path signal 100 -2450 2300 -1250 2300))
(outline (path signal 100 -1250 2300 -1250 -2200))
(outline (path signal 100 -1250 -2200 1250 -2200))
(outline (path signal 100 1250 -9200 4950 -9200))
(outline (path signal 100 4950 -9200 4950 2300))
(outline (path signal 100 4950 2300 3750 2300))
(outline (path signal 100 3750 2300 3750 -2200))
(outline (path signal 100 3750 -2200 1250 -2200))
(outline (path signal 120 -250 -3200 -250 -8700))
(outline (path signal 120 -250 -8700 250 -8700))
(outline (path signal 120 250 -8700 250 -3200))
(outline (path signal 120 250 -3200 -250 -3200))
(outline (path signal 120 2250 -3200 2250 -8700))
(outline (path signal 120 2250 -8700 2750 -8700))
(outline (path signal 120 2750 -8700 2750 -3200))
(outline (path signal 120 2750 -3200 2250 -3200))
(outline (path signal 120 0 1500 -300 2100))
(outline (path signal 120 -300 2100 300 2100))
(outline (path signal 120 300 2100 0 1500))
(outline (path signal 100 -625 -2200 0 -1200))
(outline (path signal 100 0 -1200 625 -2200))
(pin Oval[A]Pad_1700x2000_um 2 2500 0)
(pin RoundRect[A]Pad_1700x2000_250.951_um 1 0 0)
)
(image "Capacitor_Tantalum_SMD:CP_EIA-3528-21_Kemet-B"
(outline (path signal 100 1750 1400 -1050 1400))
(outline (path signal 100 -1050 1400 -1750 700))
(outline (path signal 100 -1750 700 -1750 -1400))
(outline (path signal 100 -1750 -1400 1750 -1400))
(outline (path signal 100 1750 -1400 1750 1400))
(outline (path signal 120 1750 1510 -2460 1510))
(outline (path signal 120 -2460 1510 -2460 -1510))
(outline (path signal 120 -2460 -1510 1750 -1510))
(outline (path signal 50 -2450 -1650 -2450 1650))
(outline (path signal 50 -2450 1650 2450 1650))
(outline (path signal 50 2450 1650 2450 -1650))
(outline (path signal 50 2450 -1650 -2450 -1650))
(pin RoundRect[T]Pad_1325x2350_250.95_um 2 1537.5 0)
(pin RoundRect[T]Pad_1325x2350_250.95_um 1 -1537.5 0)
)
(image MySymbols:3,5mm_straight_circular
(outline (path signal 150 8000 0 7918.57 -1138.52 7675.94 -2253.86 7277.06 -3323.32
6730.03 -4325.13 6046 -5238.89 5238.89 -6046 4325.13 -6730.03
3323.32 -7277.06 2253.86 -7675.94 1138.52 -7918.57 0 -8000
-1138.52 -7918.57 -2253.86 -7675.94 -3323.32 -7277.06 -4325.13 -6730.03
-5238.89 -6046 -6046 -5238.89 -6730.03 -4325.13 -7277.06 -3323.32
-7675.94 -2253.86 -7918.57 -1138.52 -8000 0 -7918.57 1138.52
-7675.94 2253.86 -7277.06 3323.32 -6730.03 4325.13 -6046 5238.89
-5238.89 6046 -4325.13 6730.03 -3323.32 7277.06 -2253.86 7675.94
-1138.52 7918.57 0 8000 1138.52 7918.57 2253.86 7675.94 3323.32 7277.06
4325.13 6730.03 5238.89 6046 6046 5238.89 6730.03 4325.13
7277.06 3323.32 7675.94 2253.86 7918.57 1138.52 8000 0))
(pin Oval[A]Pad_3200x1400_um 1 0 2500)
(pin Oval[A]Pad_3200x1400_um (rotate 90) 2 -2500 0)
(pin Oval[A]Pad_3200x1400_um (rotate 90) 3 2500 0)
)
(image MySymbols:3,5mm_straight_circular::1
(outline (path signal 150 8000 0 7918.57 -1138.52 7675.94 -2253.86 7277.06 -3323.32
6730.03 -4325.13 6046 -5238.89 5238.89 -6046 4325.13 -6730.03
3323.32 -7277.06 2253.86 -7675.94 1138.52 -7918.57 0 -8000
-1138.52 -7918.57 -2253.86 -7675.94 -3323.32 -7277.06 -4325.13 -6730.03
-5238.89 -6046 -6046 -5238.89 -6730.03 -4325.13 -7277.06 -3323.32
-7675.94 -2253.86 -7918.57 -1138.52 -8000 0 -7918.57 1138.52
-7675.94 2253.86 -7277.06 3323.32 -6730.03 4325.13 -6046 5238.89
-5238.89 6046 -4325.13 6730.03 -3323.32 7277.06 -2253.86 7675.94
-1138.52 7918.57 0 8000 1138.52 7918.57 2253.86 7675.94 3323.32 7277.06
4325.13 6730.03 5238.89 6046 6046 5238.89 6730.03 4325.13
7277.06 3323.32 7675.94 2253.86 7918.57 1138.52 8000 0))
(pin Oval[A]Pad_3200x1400_um (rotate 90) 3 2500 0)
(pin Oval[A]Pad_3200x1400_um (rotate 90) 2 -2500 0)
(pin Oval[A]Pad_3200x1400_um 1 0 2500)
)
(image "digikey-footprints:QFN-32-1EP_5x5mm"
(outline (path signal 100 1980 -2050 -3020 -2050))
(outline (path signal 100 1980 2950 1980 -2050))
(outline (path signal 100 2080 -2150 1680 -2150))
(outline (path signal 100 2080 -1750 2080 -2150))
(outline (path signal 100 2080 3050 2080 2650))
(outline (path signal 100 2080 3050 1680 3050))
(outline (path signal 100 -3120 -2150 -3120 -1750))
(outline (path signal 100 -2720 -2150 -3120 -2150))
(outline (path signal 100 -2620 2950 -3020 2550))
(outline (path signal 100 -3020 2550 -3020 -2050))
(outline (path signal 100 -2620 2950 1980 2950))
(outline (path signal 100 -3120 2450 -3320 2450))
(outline (path signal 100 -3120 2650 -3120 2450))
(outline (path signal 100 -2720 3050 -3120 2650))
(outline (path signal 100 -2520 3050 -2720 3050))
(outline (path signal 50 2610 -2680 -3650 -2680))
(outline (path signal 50 2610 3580 -3650 3580))
(outline (path signal 50 2610 3580 2610 -2680))
(outline (path signal 50 -3650 -2680 -3650 3580))
(pin Rect[T]Pad_850x280_um (rotate 270) 25 1230 2925)
(pin Rect[T]Pad_280x850_um (rotate 270) 17 1955 -1300)
(pin Rect[T]Pad_850x280_um (rotate 270) 9 -2270 -2025)
(pin Rect[T]Pad_3450x3450_um (rotate 270) 33 -520 450)
(pin Rect[T]Pad_280x850_um (rotate 270) 1 -2995 2200)
(pin Rect[T]Pad_280x850_um (rotate 270) 2 -2995 1700)
(pin Rect[T]Pad_280x850_um (rotate 270) 3 -2995 1200)
(pin Rect[T]Pad_280x850_um (rotate 270) 4 -2995 700)
(pin Rect[T]Pad_280x850_um (rotate 270) 5 -2995 200)
(pin Rect[T]Pad_280x850_um (rotate 270) 6 -2995 -300)
(pin Rect[T]Pad_280x850_um (rotate 270) 7 -2995 -800)
(pin Rect[T]Pad_280x850_um (rotate 270) 8 -2995 -1300)
(pin Rect[T]Pad_850x280_um (rotate 270) 10 -1770 -2025)
(pin Rect[T]Pad_850x280_um (rotate 270) 11 -1270 -2025)
(pin Rect[T]Pad_850x280_um (rotate 270) 12 -770 -2025)
(pin Rect[T]Pad_850x280_um (rotate 270) 13 -270 -2025)
(pin Rect[T]Pad_850x280_um (rotate 270) 14 230 -2025)
(pin Rect[T]Pad_850x280_um (rotate 270) 15 730 -2025)
(pin Rect[T]Pad_850x280_um (rotate 270) 16 1230 -2025)
(pin Rect[T]Pad_280x850_um (rotate 270) 18 1955 -800)
(pin Rect[T]Pad_280x850_um (rotate 270) 19 1955 -300)
(pin Rect[T]Pad_280x850_um (rotate 270) 20 1955 200)
(pin Rect[T]Pad_280x850_um (rotate 270) 21 1955 700)
(pin Rect[T]Pad_280x850_um (rotate 270) 22 1955 1200)
(pin Rect[T]Pad_280x850_um (rotate 270) 23 1955 1700)
(pin Rect[T]Pad_280x850_um (rotate 270) 24 1955 2200)
(pin Rect[T]Pad_850x280_um (rotate 270) 26 730 2925)
(pin Rect[T]Pad_850x280_um (rotate 270) 27 230 2925)
(pin Rect[T]Pad_850x280_um (rotate 270) 28 -270 2925)
(pin Rect[T]Pad_850x280_um (rotate 270) 29 -770 2925)
(pin Rect[T]Pad_850x280_um (rotate 270) 30 -1270 2925)
(pin Rect[T]Pad_850x280_um (rotate 270) 31 -1770 2925)
(pin Rect[T]Pad_850x280_um (rotate 270) 32 -2270 2925)
(keepout "" (circle F.Cu 200 480 1450))
(keepout "" (circle B.Cu 200 480 1450))
(keepout "" (circle F.Cu 200 480 450))
(keepout "" (circle B.Cu 200 480 450))
(keepout "" (circle F.Cu 200 480 -550))
(keepout "" (circle B.Cu 200 480 -550))
(keepout "" (circle F.Cu 200 -520 1450))
(keepout "" (circle B.Cu 200 -520 1450))
(keepout "" (circle F.Cu 200 -520 450))
(keepout "" (circle B.Cu 200 -520 450))
(keepout "" (circle F.Cu 200 -520 -550))
(keepout "" (circle B.Cu 200 -520 -550))
(keepout "" (circle F.Cu 200 -1520 1450))
(keepout "" (circle B.Cu 200 -1520 1450))
(keepout "" (circle F.Cu 200 -1520 450))
(keepout "" (circle B.Cu 200 -1520 450))
(keepout "" (circle F.Cu 200 -1520 -550))
(keepout "" (circle B.Cu 200 -1520 -550))
)
(image MySymbols:slids_switch_spdt
(outline (path signal 120 0 -2850 0 -6850))
(outline (path signal 120 -3000 -6850 0 -6850))
(outline (path signal 120 -3000 -2850 -3000 -6850))
(outline (path signal 120 6500 2850 -6500 2850))
(outline (path signal 120 6500 2850 6500 -2850))
(outline (path signal 120 -6500 -2850 6500 -2850))
(outline (path signal 120 -6500 2850 -6500 -2850))
(pin Round[A]Pad_1400_um 1 -3000 0)
(pin Round[A]Pad_1400_um 2 0 0)
(pin Round[A]Pad_1400_um 3 3000 0)
(pin Oval[A]Pad_800x1800_um SH -6300 0)
(pin Oval[A]Pad_800x1800_um SH@1 6300 0)
)
(image "digikey-footprints:0603::1"
(outline (path signal 120 800 400 -800 400))
(outline (path signal 120 800 -400 800 400))
(outline (path signal 120 -800 -400 800 -400))
(outline (path signal 120 -800 400 -800 -400))
(outline (path signal 120 -300 300 300 300))
(outline (path signal 120 -300 -300 300 -300))
(outline (path signal 50 -1250 -710 -1250 710))
(outline (path signal 50 1110 -710 -1110 -710))
(outline (path signal 50 1250 710 1250 -710))
(outline (path signal 50 -1110 710 1110 710))
(outline (path signal 50 -1110 -710 -1250 -710))
(outline (path signal 50 -1110 710 -1250 710))
(outline (path signal 50 1110 710 1250 710))
(outline (path signal 50 1110 -710 1250 -710))
(pin Rect[T]Pad_600x800_um 2 700 0)
(pin Rect[T]Pad_600x800_um 1 -700 0)
)
(image "digikey-footprints:SOT-753::1"
(outline (path signal 100 -1525 875 1525 875))
(outline (path signal 100 1525 875 1525 -875))
(outline (path signal 100 -1525 -625 -1350 -875))
(outline (path signal 100 -1350 -875 1525 -875))
(outline (path signal 100 -1525 -625 -1525 875))
(outline (path signal 100 -1650 -675 -1650 -300))
(outline (path signal 100 -1325 -1000 -1325 -1525))
(outline (path signal 100 -1425 -1000 -1325 -1000))
(outline (path signal 100 -1650 -675 -1425 -1000))
(outline (path signal 100 1650 1000 1650 675))
(outline (path signal 100 1350 1000 1650 1000))
(outline (path signal 100 1650 -1000 1650 -700))
(outline (path signal 100 1325 -1000 1650 -1000))
(outline (path signal 100 -1650 1000 -1650 700))
(outline (path signal 100 -1325 1000 -1650 1000))
(outline (path signal 50 -1825 2125 1825 2125))
(outline (path signal 50 1825 2125 1825 -2125))
(outline (path signal 50 1825 -2125 -1825 -2125))
(outline (path signal 50 -1825 -2125 -1825 2125))
(pin Rect[T]Pad_600x1050_um 5 -950 1350)
(pin Rect[T]Pad_600x1050_um 4 950 1350)
(pin Rect[T]Pad_600x1050_um 3 950 -1350)
(pin Rect[T]Pad_600x1050_um 2 0 -1350)
(pin Rect[T]Pad_600x1050_um 1 -950 -1350)
)
(padstack Round[A]Pad_1400_um
(shape (circle F.Cu 1400))
(shape (circle B.Cu 1400))
(attach off)
)
(padstack Round[A]Pad_2020_um
(shape (circle F.Cu 2020))
(shape (circle B.Cu 2020))
(attach off)
)
(padstack Round[A]Pad_2850_um
(shape (circle F.Cu 2850))
(shape (circle B.Cu 2850))
(attach off)
)
(padstack Oval[A]Pad_3200x1400_um
(shape (path F.Cu 1400 -900 0 900 0))
(shape (path B.Cu 1400 -900 0 900 0))
(attach off)
)
(padstack Oval[A]Pad_1700x2000_um
(shape (path F.Cu 1700 0 -150 0 150))
(shape (path B.Cu 1700 0 -150 0 150))
(attach off)
)
(padstack Oval[A]Pad_800x1800_um
(shape (path F.Cu 800 0 -500 0 500))
(shape (path B.Cu 800 0 -500 0 500))
(attach off)
)
(padstack Oval[A]Pad_900x1600_um
(shape (path F.Cu 900 0 -350 0 350))
(shape (path B.Cu 900 0 -350 0 350))
(attach off)
)
(padstack RoundRect[T]Pad_1325x2350_250.95_um
(shape (polygon F.Cu 0 456.078 1172.14 498.331 1160.82 537.976 1142.33 573.809 1117.24
604.74 1086.31 629.83 1050.48 648.317 1010.83 659.639 968.578
663.451 925.001 663.451 -925.001 659.639 -968.578 648.317 -1010.83
629.83 -1050.48 604.74 -1086.31 573.809 -1117.24 537.976 -1142.33
498.331 -1160.82 456.078 -1172.14 412.501 -1175.95 -412.501 -1175.95
-456.078 -1172.14 -498.331 -1160.82 -537.976 -1142.33 -573.809 -1117.24
-604.74 -1086.31 -629.83 -1050.48 -648.317 -1010.83 -659.639 -968.578
-663.451 -925.001 -663.451 925.001 -659.639 968.578 -648.317 1010.83
-629.83 1050.48 -604.74 1086.31 -573.809 1117.24 -537.976 1142.33
-498.331 1160.82 -456.078 1172.14 -412.501 1175.95 412.501 1175.95
456.078 1172.14))
(attach off)
)
(padstack RoundRect[A]Pad_1700x2000_250.951_um
(shape (polygon F.Cu 0 643.577 997.138 685.83 985.817 725.475 967.33 761.308 942.24
792.24 911.308 817.33 875.476 835.817 835.83 847.138 793.577
850.951 750 850.951 -750 847.138 -793.577 835.817 -835.83
817.33 -875.475 792.24 -911.308 761.308 -942.24 725.476 -967.33
685.83 -985.817 643.577 -997.138 600 -1000.95 -600 -1000.95
-643.577 -997.138 -685.83 -985.817 -725.475 -967.33 -761.308 -942.24
-792.24 -911.308 -817.33 -875.476 -835.817 -835.83 -847.138 -793.577
-850.951 -750 -850.951 750 -847.138 793.577 -835.817 835.83
-817.33 875.475 -792.24 911.308 -761.308 942.24 -725.476 967.33
-685.83 985.817 -643.577 997.138 -600 1000.95 600 1000.95
643.577 997.138))
(shape (polygon B.Cu 0 643.577 997.138 685.83 985.817 725.475 967.33 761.308 942.24
792.24 911.308 817.33 875.476 835.817 835.83 847.138 793.577
850.951 750 850.951 -750 847.138 -793.577 835.817 -835.83
817.33 -875.475 792.24 -911.308 761.308 -942.24 725.476 -967.33
685.83 -985.817 643.577 -997.138 600 -1000.95 -600 -1000.95
-643.577 -997.138 -685.83 -985.817 -725.475 -967.33 -761.308 -942.24
-792.24 -911.308 -817.33 -875.476 -835.817 -835.83 -847.138 -793.577
-850.951 -750 -850.951 750 -847.138 793.577 -835.817 835.83
-817.33 875.475 -792.24 911.308 -761.308 942.24 -725.476 967.33
-685.83 985.817 -643.577 997.138 -600 1000.95 600 1000.95
643.577 997.138))
(attach off)
)
(padstack Rect[T]Pad_280x850_um
(shape (rect F.Cu -140 -425 140 425))
(attach off)
)
(padstack Rect[A]Pad_2850x2850_um
(shape (rect F.Cu -1425 -1425 1425 1425))
(shape (rect B.Cu -1425 -1425 1425 1425))
(attach off)
)
(padstack Rect[T]Pad_3450x3450_um
(shape (rect F.Cu -1725 -1725 1725 1725))
(attach off)
)
(padstack Rect[T]Pad_3450x1850_um
(shape (rect F.Cu -1725 -925 1725 925))
(attach off)
)
(padstack Rect[T]Pad_400x1350_um
(shape (rect F.Cu -200 -675 200 675))
(attach off)
)
(padstack Rect[T]Pad_600x800_um
(shape (rect F.Cu -300 -400 300 400))
(attach off)
)
(padstack Rect[T]Pad_600x1050_um
(shape (rect F.Cu -300 -525 300 525))
(attach off)
)
(padstack Rect[T]Pad_850x280_um
(shape (rect F.Cu -425 -140 425 140))
(attach off)
)
(padstack Rect[T]Pad_1200x1200_um
(shape (rect F.Cu -600 -600 600 600))
(attach off)
)
(padstack Rect[T]Pad_1290x1240_um
(shape (rect F.Cu -645 -620 645 620))
(attach off)
)
(padstack Rect[T]Pad_1600x1400_um
(shape (rect F.Cu -800 -700 800 700))
(attach off)
)
(padstack Rect[T]Pad_1900x1900_um
(shape (rect F.Cu -950 -950 950 950))
(attach off)
)
(padstack "Via[0-1]_800:400_um"
(shape (circle F.Cu 800))
(shape (circle B.Cu 800))
(attach off)
)
)
(network
(net GND
(pins U2-2 SW3-2 SW2-2 SW1-2 R13-2 R7-2 J3-4 J2-5 J2-4 J1-2 D2-1 D1-1 C9-2 C8-2
C7-2 C6-2 C5-2 C4-2 C3-2 C2-2 C1-2 U1-16 U1-32 U3-2)
)
(net VBUS
(pins U2-4 R10-2 J2-1 C1-1 R14-2)
)
(net "Net-(C2-Pad1)"
(pins Y1-1 R8-1 C2-1 U1-2)
)
(net "Net-(C3-Pad1)"
(pins Y1-2 R8-2 C3-1 U1-3)
)
(net +3V3
(pins R9-1 L1-2 J3-1 C9-1 C6-1 C5-1 C4-1 CON1-3 CON2-3 CON3-3 U1-17 U1-1 U1-5
U3-4)
)
(net +BATT
(pins U2-3 R12-1 J1-1 C7-1 S1-3)
)
(net RST
(pins TP1-1 R9-2 C8-1 U1-4)
)
(net "Net-(CON1-Pad1)"
(pins R1-1 CON1-1)
)
(net "Net-(CON1-Pad2)"
(pins R4-1 CON1-2)
)
(net "Net-(CON2-Pad1)"
(pins R2-2 CON2-1)
)
(net "Net-(CON2-Pad2)"
(pins R5-1 CON2-2)
)
(net "Net-(CON3-Pad1)"
(pins R3-1 CON3-1)
)
(net "Net-(CON3-Pad2)"
(pins R6-1 CON3-2)
)
(net "Net-(D1-Pad2)"
(pins R10-1 D1-2)
)
(net "Net-(D2-Pad2)"
(pins R11-1 D2-2)
)
(net "Net-(J2-Pad2)"
(pins J2-2)
)
(net "Net-(J2-Pad3)"
(pins J2-3)
)
(net SWCLK
(pins J3-3 U1-24)
)
(net SWDIO
(pins J3-2 U1-23)
)
(net "Net-(L1-Pad1)"
(pins L1-1 U3-5)
)
(net LED1
(pins R1-2 U1-14)
)
(net LED2
(pins R2-1 U1-30)
)
(net LED3
(pins R3-2 U1-29)
)
(net DET1
(pins R4-2 U1-12)
)
(net DET2
(pins R5-2 U1-11)
)
(net DET3
(pins R6-2 U1-10)
)
(net "Net-(R7-Pad1)"
(pins U2-5 R7-1)
)
(net "Net-(R11-Pad2)"
(pins U2-1 R11-2)
)
(net MEAS_VBATT
(pins R13-1 R12-2 U1-6)
)
(net SWITCH12
(pins SW1-3 U1-8)
)
(net SWITCH1
(pins SW1-1 U1-13)
)
(net SWITCH22
(pins SW2-3 U1-9)
)
(net SWITCH2
(pins SW2-1 U1-7)
)
(net SWITCH32
(pins SW3-3 U1-27)
)
(net SWITCH3
(pins SW3-1 U1-28)
)
(net "Net-(U1-Pad25)"
(pins U1-25)
)
(net "Net-(U1-Pad15)"
(pins U1-15)
)
(net "Net-(U1-Pad18)"
(pins U1-18)
)
(net "Net-(U1-Pad19)"
(pins U1-19)
)
(net "Net-(U1-Pad20)"
(pins U1-20)
)
(net "Net-(U1-Pad21)"
(pins U1-21)
)
(net "Net-(U1-Pad22)"
(pins U1-22)
)
(net "Net-(U1-Pad26)"
(pins U1-26)
)
(net BOOT0
(pins U1-31)
)
(net "Net-(R14-Pad1)"
(pins S1-1 R14-1)
)
(net +BATT_SWITCHED
(pins S1-2)
)
(net "Net-(U3-Pad1)"
(pins U3-3 U3-1)
)
(class kicad_default "" +3V3 +BATT +BATT_SWITCHED BOOT0 DET1 DET2 DET3
GND LED1 LED2 LED3 MEAS_VBATT "Net-(C2-Pad1)" "Net-(C3-Pad1)" "Net-(CON1-Pad1)"
"Net-(CON1-Pad2)" "Net-(CON2-Pad1)" "Net-(CON2-Pad2)" "Net-(CON3-Pad1)"
"Net-(CON3-Pad2)" "Net-(D1-Pad2)" "Net-(D2-Pad2)" "Net-(J2-Pad2)" "Net-(J2-Pad3)"
"Net-(L1-Pad1)" "Net-(R11-Pad2)" "Net-(R14-Pad1)" "Net-(R7-Pad1)" "Net-(U1-Pad15)"
"Net-(U1-Pad18)" "Net-(U1-Pad19)" "Net-(U1-Pad20)" "Net-(U1-Pad21)"
"Net-(U1-Pad22)" "Net-(U1-Pad25)" "Net-(U1-Pad26)" "Net-(U3-Pad1)" RST
SWCLK SWDIO SWITCH1 SWITCH12 SWITCH2 SWITCH22 SWITCH3 SWITCH32 VBUS
(circuit
(use_via Via[0-1]_800:400_um)
)
(rule
(width 250)
(clearance 200.1)
)
)
)
(wiring
)
)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,832 @@
(export (version D)
(design
(source /Users/willemoldemans/Documents/PROJECTEN/leo_3led_truck/manufacturing/CAD/ledTruck/ledTruck.sch)
(date "2021 February 18, Thursday 20:53:53")
(tool "Eeschema (5.1.9-0-10_14)")
(sheet (number 1) (name /) (tstamps /)
(title_block
(title)
(company)
(rev)
(date)
(source ledTruck.sch)
(comment (number 1) (value ""))
(comment (number 2) (value ""))
(comment (number 3) (value ""))
(comment (number 4) (value "")))))
(components
(comp (ref CON1)
(value SJ1-3523N)
(footprint MySymbols:3,5mm_straight_circular)
(datasheet https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf)
(fields
(field (name Category) "Connectors, Interconnects")
(field (name DK_Datasheet_Link) https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf)
(field (name DK_Detail_Page) /product-detail/en/cui-inc/SJ1-3523N/CP1-3523N-ND/738689)
(field (name Description) "CONN JACK STEREO 3.5MM R/A")
(field (name Digi-Key_PN) CP1-3523N-ND)
(field (name Family) "Barrel - Audio Connectors")
(field (name MPN) SJ1-3523N)
(field (name Manufacturer) "CUI Inc.")
(field (name Status) Active))
(libsource (lib dk_Barrel-Audio-Connectors) (part SJ1-3523N) (description "CONN JACK STEREO 3.5MM R/A"))
(sheetpath (names /) (tstamps /))
(tstamp 6021CA8A))
(comp (ref CON2)
(value SJ1-3523N)
(footprint MySymbols:3,5mm_straight_circular)
(datasheet https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf)
(fields
(field (name Category) "Connectors, Interconnects")
(field (name DK_Datasheet_Link) https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf)
(field (name DK_Detail_Page) /product-detail/en/cui-inc/SJ1-3523N/CP1-3523N-ND/738689)
(field (name Description) "CONN JACK STEREO 3.5MM R/A")
(field (name Digi-Key_PN) CP1-3523N-ND)
(field (name Family) "Barrel - Audio Connectors")
(field (name MPN) SJ1-3523N)
(field (name Manufacturer) "CUI Inc.")
(field (name Status) Active))
(libsource (lib dk_Barrel-Audio-Connectors) (part SJ1-3523N) (description "CONN JACK STEREO 3.5MM R/A"))
(sheetpath (names /) (tstamps /))
(tstamp 6021DB86))
(comp (ref CON3)
(value SJ1-3523N)
(footprint MySymbols:3,5mm_straight_circular)
(datasheet https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf)
(fields
(field (name Category) "Connectors, Interconnects")
(field (name DK_Datasheet_Link) https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf)
(field (name DK_Detail_Page) /product-detail/en/cui-inc/SJ1-3523N/CP1-3523N-ND/738689)
(field (name Description) "CONN JACK STEREO 3.5MM R/A")
(field (name Digi-Key_PN) CP1-3523N-ND)
(field (name Family) "Barrel - Audio Connectors")
(field (name MPN) SJ1-3523N)
(field (name Manufacturer) "CUI Inc.")
(field (name Status) Active))
(libsource (lib dk_Barrel-Audio-Connectors) (part SJ1-3523N) (description "CONN JACK STEREO 3.5MM R/A"))
(sheetpath (names /) (tstamps /))
(tstamp 6021F7DC))
(comp (ref U2)
(value MCP73832T-2ACI_OT)
(footprint digikey-footprints:SOT-753)
(datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/20001984g.pdf)
(fields
(field (name Category) "Integrated Circuits (ICs)")
(field (name DK_Datasheet_Link) http://ww1.microchip.com/downloads/en/DeviceDoc/20001984g.pdf)
(field (name DK_Detail_Page) /product-detail/en/microchip-technology/MCP73832T-2ACI-OT/MCP73832T-2ACI-OTCT-ND/1979805)
(field (name Description) "IC LI-ION/LI-POLY CTRLR SOT23-5")
(field (name Digi-Key_PN) MCP73832T-2ACI/OTCT-ND)
(field (name Family) "PMIC - Battery Chargers")
(field (name MPN) MCP73832T-2ACI/OT)
(field (name Manufacturer) "Microchip Technology")
(field (name Status) Active))
(libsource (lib dk_PMIC-Battery-Chargers) (part MCP73832T-2ACI_OT) (description "IC LI-ION/LI-POLY CTRLR SOT23-5"))
(sheetpath (names /) (tstamps /))
(tstamp 60220E3E))
(comp (ref J1)
(value Conn_01x02_Male)
(footprint Connector_JST:JST_XH_S2B-XH-A_1x02_P2.50mm_Horizontal)
(datasheet ~)
(libsource (lib Connector) (part Conn_01x02_Male) (description "Generic connector, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)"))
(sheetpath (names /) (tstamps /))
(tstamp 60232097))
(comp (ref J3)
(value Conn_01x04)
(footprint digikey-footprints:PinHeader_1x4_P2.54mm_Drill1.02mm)
(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 6023E390))
(comp (ref SW1)
(value SW_SPDT_MSM)
(footprint digikey-footprints:Toggle_Switch_100SP1T1B4M2QE)
(datasheet ~)
(libsource (lib Switch) (part SW_SPDT_MSM) (description "Switch, single pole double throw, center OFF position"))
(sheetpath (names /) (tstamps /))
(tstamp 6024D1C8))
(comp (ref SW2)
(value SW_SPDT_MSM)
(footprint digikey-footprints:Toggle_Switch_100SP1T1B4M2QE)
(datasheet ~)
(libsource (lib Switch) (part SW_SPDT_MSM) (description "Switch, single pole double throw, center OFF position"))
(sheetpath (names /) (tstamps /))
(tstamp 6024DE6D))
(comp (ref SW3)
(value SW_SPDT_MSM)
(footprint digikey-footprints:Toggle_Switch_100SP1T1B4M2QE)
(datasheet ~)
(libsource (lib Switch) (part SW_SPDT_MSM) (description "Switch, single pole double throw, center OFF position"))
(sheetpath (names /) (tstamps /))
(tstamp 6024E1D7))
(comp (ref R2)
(value 105E)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 6024E7D0))
(comp (ref R1)
(value 105E)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 6024F4D7))
(comp (ref R3)
(value 105E)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 6024FF14))
(comp (ref R6)
(value 10K)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 6025CE8E))
(comp (ref R5)
(value 10K)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 6025DA85))
(comp (ref R4)
(value 10K)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 6025E6DF))
(comp (ref R7)
(value 10K)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 60299759))
(comp (ref D2)
(value LED)
(footprint digikey-footprints:0805)
(datasheet ~)
(libsource (lib Device) (part LED) (description "Light emitting diode"))
(sheetpath (names /) (tstamps /))
(tstamp 602A475E))
(comp (ref D1)
(value LED)
(footprint digikey-footprints:0805)
(datasheet ~)
(libsource (lib Device) (part LED) (description "Light emitting diode"))
(sheetpath (names /) (tstamps /))
(tstamp 602A57C9))
(comp (ref R10)
(value 470E)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 602AE2E0))
(comp (ref R11)
(value 1K)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 602AF25A))
(comp (ref TP1)
(value TestPoint)
(footprint MySymbols:TestPoint_SMD_R)
(datasheet ~)
(libsource (lib Connector) (part TestPoint) (description "test point"))
(sheetpath (names /) (tstamps /))
(tstamp 602E0E6F))
(comp (ref R9)
(value 1K)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 602E1D33))
(comp (ref Y1)
(value 32Khz)
(footprint digikey-footprints:Oscillator_XLH536025.000000I)
(datasheet ~)
(libsource (lib Device) (part Crystal) (description "Two pin crystal"))
(sheetpath (names /) (tstamps /))
(tstamp 602F463F))
(comp (ref C8)
(value 100nF)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 602F7127))
(comp (ref C5)
(value 100nF)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 603022A1))
(comp (ref C6)
(value 100nF)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 603026D2))
(comp (ref C4)
(value 1uF)
(footprint digikey-footprints:0805)
(datasheet ~)
(libsource (lib Device) (part C_Polarized) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 603063AF))
(comp (ref U1)
(value STM32L031K6Ux)
(footprint digikey-footprints:QFN-32-1EP_5x5mm)
(datasheet http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/DM00140359.pdf)
(libsource (lib MCU_ST_STM32L0) (part STM32L031K6Ux) (description "ARM Cortex-M0+ MCU, 32KB flash, 8KB RAM, 32MHz, 1.65-3.6V, 27 GPIO, UFQFPN-32"))
(sheetpath (names /) (tstamps /))
(tstamp 6032319F))
(comp (ref C2)
(value 4,3pF)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 603CA5B8))
(comp (ref C3)
(value 4,3pF)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 603CB8C0))
(comp (ref R8)
(value 1M)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 603F8E75))
(comp (ref R13)
(value 100K)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 60403C7A))
(comp (ref R12)
(value 200K)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 6040529B))
(comp (ref C7)
(value 4,7uF)
(footprint digikey-footprints:0805)
(datasheet ~)
(libsource (lib Device) (part C_Polarized) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 6043A641))
(comp (ref C1)
(value 4,7uF)
(footprint digikey-footprints:0805)
(datasheet ~)
(libsource (lib Device) (part C_Polarized) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 60446C89))
(comp (ref U3)
(value LM3671MF-3.3)
(footprint digikey-footprints:SOT-753)
(datasheet http://www.ti.com/lit/ds/symlink/lm3670.pdf)
(libsource (lib Regulator_Switching) (part LM3670MF) (description "Miniature Step-Down DC-DC Converter for Ultralow Voltage Circuits, 2.5V < Vin < 5.5V, adjustable output voltage, SOT-23-5"))
(sheetpath (names /) (tstamps /))
(tstamp 604D4EA0))
(comp (ref L1)
(value 2,2uH)
(footprint digikey-footprints:0805)
(datasheet ~)
(libsource (lib Device) (part L) (description Inductor))
(sheetpath (names /) (tstamps /))
(tstamp 604EE10C))
(comp (ref C9)
(value 4,7uF)
(footprint digikey-footprints:0805)
(datasheet ~)
(libsource (lib Device) (part C_Polarized) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 60506A3D))
(comp (ref S1)
(value EG1218)
(footprint MySymbols:slids_switch_spdt)
(datasheet http://spec_sheets.e-switch.com/specs/P040040.pdf)
(fields
(field (name Category) Switches)
(field (name DK_Datasheet_Link) http://spec_sheets.e-switch.com/specs/P040040.pdf)
(field (name DK_Detail_Page) /product-detail/en/e-switch/EG1218/EG1903-ND/101726)
(field (name Description) "SWITCH SLIDE SPDT 200MA 30V")
(field (name Digi-Key_PN) EG1903-ND)
(field (name Family) "Slide Switches")
(field (name MPN) EG1218)
(field (name Manufacturer) E-Switch)
(field (name Status) Active))
(libsource (lib dk_Slide-Switches) (part EG1218) (description "SWITCH SLIDE SPDT 200MA 30V"))
(sheetpath (names /) (tstamps /))
(tstamp 602A1158))
(comp (ref R14)
(value 0E)
(footprint digikey-footprints:0603)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 60310C7E))
(comp (ref J2)
(value USB_B_Micro)
(footprint digikey-footprints:USB_Micro_B_Female_10103594-0001LF)
(datasheet ~)
(libsource (lib Connector) (part USB_B_Micro) (description "USB Micro Type B connector"))
(sheetpath (names /) (tstamps /))
(tstamp 60428AF4))
(comp (ref TP2)
(value TestPoint)
(footprint MySymbols:TestPoint_SMD_R)
(datasheet ~)
(libsource (lib Connector) (part TestPoint) (description "test point"))
(sheetpath (names /) (tstamps /))
(tstamp 603CA33B)))
(libparts
(libpart (lib Connector) (part Conn_01x02_Male)
(description "Generic connector, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)")
(docs ~)
(footprints
(fp Connector*:*_1x??_*))
(fields
(field (name Reference) J)
(field (name Value) Conn_01x02_Male))
(pins
(pin (num 1) (name Pin_1) (type passive))
(pin (num 2) (name Pin_2) (type passive))))
(libpart (lib Connector) (part TestPoint)
(description "test point")
(docs ~)
(footprints
(fp Pin*)
(fp Test*))
(fields
(field (name Reference) TP)
(field (name Value) TestPoint))
(pins
(pin (num 1) (name 1) (type passive))))
(libpart (lib Connector) (part USB_B_Micro)
(aliases
(alias USB_B_Mini))
(description "USB Micro Type B connector")
(docs ~)
(footprints
(fp USB*))
(fields
(field (name Reference) J)
(field (name Value) USB_B_Micro))
(pins
(pin (num 1) (name VBUS) (type power_out))
(pin (num 2) (name D-) (type BiDi))
(pin (num 3) (name D+) (type BiDi))
(pin (num 4) (name ID) (type passive))
(pin (num 5) (name GND) (type power_out))
(pin (num SH) (name Shield) (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 C_Polarized)
(description "Polarized capacitor")
(docs ~)
(footprints
(fp CP_*))
(fields
(field (name Reference) C)
(field (name Value) C_Polarized))
(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 L)
(description Inductor)
(docs ~)
(footprints
(fp Choke_*)
(fp *Coil*)
(fp Inductor_*)
(fp L_*))
(fields
(field (name Reference) L)
(field (name Value) L))
(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 MCU_ST_STM32L0) (part STM32L031K4Ux)
(aliases
(alias STM32L031K6Ux))
(description "ARM Cortex-M0+ MCU, 16KB flash, 8KB RAM, 32MHz, 1.65-3.6V, 27 GPIO, UFQFPN-32")
(docs http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/DM00140359.pdf)
(footprints
(fp QFN*1EP*5x5mm*P0.5mm*))
(fields
(field (name Reference) U)
(field (name Value) STM32L031K4Ux)
(field (name Footprint) Package_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.45x3.45mm))
(pins
(pin (num 1) (name VDD) (type power_in))
(pin (num 2) (name PC14/OSC_IN) (type BiDi))
(pin (num 3) (name PC15/OSC_OUT) (type BiDi))
(pin (num 4) (name NRST) (type input))
(pin (num 5) (name VDDA) (type power_in))
(pin (num 6) (name PA0) (type BiDi))
(pin (num 7) (name PA1) (type BiDi))
(pin (num 8) (name PA2) (type BiDi))
(pin (num 9) (name PA3) (type BiDi))
(pin (num 10) (name PA4) (type BiDi))
(pin (num 11) (name PA5) (type BiDi))
(pin (num 12) (name PA6) (type BiDi))
(pin (num 13) (name PA7) (type BiDi))
(pin (num 14) (name PB0) (type BiDi))
(pin (num 15) (name PB1) (type BiDi))
(pin (num 16) (name PB2) (type BiDi))
(pin (num 17) (name VDD) (type power_in))
(pin (num 18) (name PA8) (type BiDi))
(pin (num 19) (name PA9) (type BiDi))
(pin (num 20) (name PA10) (type BiDi))
(pin (num 21) (name PA11) (type BiDi))
(pin (num 22) (name PA12) (type BiDi))
(pin (num 23) (name PA13/SWDIO) (type BiDi))
(pin (num 24) (name PA14/SWCLK) (type BiDi))
(pin (num 25) (name PA15) (type BiDi))
(pin (num 26) (name PB3) (type BiDi))
(pin (num 27) (name PB4) (type BiDi))
(pin (num 28) (name PB5) (type BiDi))
(pin (num 29) (name PB6) (type BiDi))
(pin (num 30) (name PB7) (type BiDi))
(pin (num 31) (name BOOT0) (type input))
(pin (num 32) (name PB8) (type BiDi))
(pin (num 33) (name VSS) (type power_in))))
(libpart (lib Regulator_Switching) (part ADP2108AUJ-1.0)
(aliases
(alias ADP2108AUJ-1.1)
(alias ADP2108AUJ-1.2)
(alias ADP2108AUJ-1.3)
(alias ADP2108AUJ-1.5)
(alias ADP2108AUJ-1.8)
(alias ADP2108AUJ-1.82)
(alias ADP2108AUJ-2.3)
(alias ADP2108AUJ-2.5)
(alias ADP2108AUJ-3.0)
(alias ADP2108AUJ-3.3)
(alias LM3670MF))
(description "3MHz switching bucK regulator, 600mA 1.0V output voltage,")
(docs https://www.analog.com/media/en/technical-documentation/data-sheets/ADP2108.pdf)
(footprints
(fp TSOT?23*))
(fields
(field (name Reference) U)
(field (name Value) ADP2108AUJ-1.0)
(field (name Footprint) Package_TO_SOT_SMD:TSOT-23-5))
(pins
(pin (num 1) (name Vin) (type power_in))
(pin (num 2) (name GND) (type power_in))
(pin (num 3) (name EN) (type input))
(pin (num 4) (name FB) (type input))
(pin (num 5) (name SW) (type input))))
(libpart (lib Switch) (part SW_SPDT_MSM)
(description "Switch, single pole double throw, center OFF position")
(docs ~)
(fields
(field (name Reference) SW)
(field (name Value) SW_SPDT_MSM))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (type passive))
(pin (num 3) (name 3) (type passive))))
(libpart (lib dk_Barrel-Audio-Connectors) (part SJ1-3523N)
(description "CONN JACK STEREO 3.5MM R/A")
(docs https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf)
(fields
(field (name Reference) CON)
(field (name Value) SJ1-3523N)
(field (name Footprint) digikey-footprints:Headphone_Jack_3.5mm_SJ1-3523N)
(field (name Datasheet) https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf)
(field (name Digi-Key_PN) CP1-3523N-ND)
(field (name MPN) SJ1-3523N)
(field (name Category) "Connectors, Interconnects")
(field (name Family) "Barrel - Audio Connectors")
(field (name DK_Datasheet_Link) https://www.cui.com/product/resource/digikeypdf/sj1-352xn_series.pdf)
(field (name DK_Detail_Page) /product-detail/en/cui-inc/SJ1-3523N/CP1-3523N-ND/738689)
(field (name Description) "CONN JACK STEREO 3.5MM R/A")
(field (name Manufacturer) "CUI Inc.")
(field (name Status) Active))
(pins
(pin (num 1) (name S) (type passive))
(pin (num 2) (name T) (type passive))
(pin (num 3) (name R) (type passive))))
(libpart (lib dk_PMIC-Battery-Chargers) (part MCP73832T-2ACI_OT)
(description "IC LI-ION/LI-POLY CTRLR SOT23-5")
(docs http://ww1.microchip.com/downloads/en/DeviceDoc/20001984g.pdf)
(fields
(field (name Reference) U)
(field (name Value) MCP73832T-2ACI_OT)
(field (name Footprint) digikey-footprints:SOT-753)
(field (name Datasheet) http://ww1.microchip.com/downloads/en/DeviceDoc/20001984g.pdf)
(field (name Digi-Key_PN) MCP73832T-2ACI/OTCT-ND)
(field (name MPN) MCP73832T-2ACI/OT)
(field (name Category) "Integrated Circuits (ICs)")
(field (name Family) "PMIC - Battery Chargers")
(field (name DK_Datasheet_Link) http://ww1.microchip.com/downloads/en/DeviceDoc/20001984g.pdf)
(field (name DK_Detail_Page) /product-detail/en/microchip-technology/MCP73832T-2ACI-OT/MCP73832T-2ACI-OTCT-ND/1979805)
(field (name Description) "IC LI-ION/LI-POLY CTRLR SOT23-5")
(field (name Manufacturer) "Microchip Technology")
(field (name Status) Active))
(pins
(pin (num 1) (name STAT) (type output))
(pin (num 2) (name VSS) (type power_in))
(pin (num 3) (name VBAT) (type power_out))
(pin (num 4) (name VDD) (type power_in))
(pin (num 5) (name PROG) (type input))))
(libpart (lib dk_Slide-Switches) (part EG1218)
(description "SWITCH SLIDE SPDT 200MA 30V")
(docs http://spec_sheets.e-switch.com/specs/P040040.pdf)
(fields
(field (name Reference) S)
(field (name Value) EG1218)
(field (name Footprint) digikey-footprints:Switch_Slide_11.6x4mm_EG1218)
(field (name Datasheet) http://spec_sheets.e-switch.com/specs/P040040.pdf)
(field (name Digi-Key_PN) EG1903-ND)
(field (name MPN) EG1218)
(field (name Category) Switches)
(field (name Family) "Slide Switches")
(field (name DK_Datasheet_Link) http://spec_sheets.e-switch.com/specs/P040040.pdf)
(field (name DK_Detail_Page) /product-detail/en/e-switch/EG1218/EG1903-ND/101726)
(field (name Description) "SWITCH SLIDE SPDT 200MA 30V")
(field (name Manufacturer) E-Switch)
(field (name Status) Active))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))
(pin (num 3) (name ~) (type passive)))))
(libraries
(library (logical Connector)
(uri /Users/willemoldemans/Documents/PROJECTEN/libs/kicad-symbols/Connector.lib))
(library (logical Connector_Generic)
(uri /Users/willemoldemans/Documents/PROJECTEN/libs/kicad-symbols/Connector_Generic.lib))
(library (logical Device)
(uri /Users/willemoldemans/Documents/PROJECTEN/libs/kicad-symbols/Device.lib))
(library (logical MCU_ST_STM32L0)
(uri /Users/willemoldemans/Documents/PROJECTEN/libs/kicad-symbols/MCU_ST_STM32L0.lib))
(library (logical Regulator_Switching)
(uri /Users/willemoldemans/Documents/PROJECTEN/libs/kicad-symbols/Regulator_Switching.lib))
(library (logical Switch)
(uri /Users/willemoldemans/Documents/PROJECTEN/libs/kicad-symbols/Switch.lib))
(library (logical dk_Barrel-Audio-Connectors)
(uri /Users/willemoldemans/Documents/PROJECTEN/libs/digikey-kicad-library/digikey-symbols/dk_Barrel-Audio-Connectors.lib))
(library (logical dk_PMIC-Battery-Chargers)
(uri /Users/willemoldemans/Documents/PROJECTEN/libs/digikey-kicad-library/digikey-symbols/dk_PMIC-Battery-Chargers.lib))
(library (logical dk_Slide-Switches)
(uri /Users/willemoldemans/Documents/PROJECTEN/libs/digikey-kicad-library/digikey-symbols/dk_Slide-Switches.lib)))
(nets
(net (code 1) (name "Net-(CON1-Pad2)")
(node (ref CON1) (pin 2))
(node (ref R4) (pin 1)))
(net (code 2) (name "Net-(CON3-Pad2)")
(node (ref CON3) (pin 2))
(node (ref R6) (pin 1)))
(net (code 3) (name "Net-(R7-Pad1)")
(node (ref R7) (pin 1))
(node (ref U2) (pin 5)))
(net (code 4) (name +BATT)
(node (ref S1) (pin 3))
(node (ref U2) (pin 3))
(node (ref J1) (pin 1))
(node (ref R12) (pin 1))
(node (ref C7) (pin 1)))
(net (code 5) (name GND)
(node (ref SW2) (pin 2))
(node (ref SW1) (pin 2))
(node (ref SW3) (pin 2))
(node (ref U3) (pin 2))
(node (ref C1) (pin 2))
(node (ref J3) (pin 4))
(node (ref C9) (pin 2))
(node (ref C7) (pin 2))
(node (ref R13) (pin 2))
(node (ref J1) (pin 2))
(node (ref U2) (pin 2))
(node (ref J2) (pin 4))
(node (ref J2) (pin 5))
(node (ref J2) (pin SH))
(node (ref C3) (pin 2))
(node (ref C2) (pin 2))
(node (ref U1) (pin 33))
(node (ref C4) (pin 2))
(node (ref C6) (pin 2))
(node (ref C5) (pin 2))
(node (ref C8) (pin 2))
(node (ref D1) (pin 1))
(node (ref D2) (pin 1))
(node (ref R7) (pin 2)))
(net (code 6) (name "Net-(CON2-Pad1)")
(node (ref CON2) (pin 1))
(node (ref R2) (pin 2)))
(net (code 7) (name "Net-(CON1-Pad1)")
(node (ref CON1) (pin 1))
(node (ref R1) (pin 1)))
(net (code 8) (name "Net-(CON3-Pad1)")
(node (ref CON3) (pin 1))
(node (ref R3) (pin 1)))
(net (code 9) (name LED1)
(node (ref R1) (pin 2))
(node (ref U1) (pin 16)))
(net (code 10) (name LED2)
(node (ref R2) (pin 1))
(node (ref U1) (pin 32)))
(net (code 11) (name LED3)
(node (ref U1) (pin 30))
(node (ref R3) (pin 2)))
(net (code 12) (name "Net-(CON2-Pad2)")
(node (ref R5) (pin 1))
(node (ref CON2) (pin 2)))
(net (code 13) (name DET2)
(node (ref R5) (pin 2))
(node (ref U1) (pin 11)))
(net (code 14) (name DET1)
(node (ref R4) (pin 2))
(node (ref U1) (pin 12)))
(net (code 15) (name DET3)
(node (ref R6) (pin 2))
(node (ref U1) (pin 10)))
(net (code 16) (name SWITCH12)
(node (ref SW1) (pin 3))
(node (ref U1) (pin 8)))
(net (code 17) (name SWITCH2)
(node (ref SW2) (pin 1))
(node (ref U1) (pin 7)))
(net (code 18) (name SWITCH22)
(node (ref U1) (pin 9))
(node (ref SW2) (pin 3)))
(net (code 19) (name SWITCH3)
(node (ref SW3) (pin 1))
(node (ref U1) (pin 29)))
(net (code 20) (name SWITCH32)
(node (ref SW3) (pin 3))
(node (ref U1) (pin 28)))
(net (code 21) (name "Net-(D1-Pad2)")
(node (ref D1) (pin 2))
(node (ref R10) (pin 1)))
(net (code 22) (name VBUS)
(node (ref U2) (pin 4))
(node (ref R14) (pin 2))
(node (ref J2) (pin 1))
(node (ref C1) (pin 1))
(node (ref R10) (pin 2)))
(net (code 23) (name "Net-(D2-Pad2)")
(node (ref D2) (pin 2))
(node (ref R11) (pin 1)))
(net (code 24) (name "Net-(R11-Pad2)")
(node (ref U2) (pin 1))
(node (ref R11) (pin 2)))
(net (code 25) (name RST)
(node (ref R9) (pin 2))
(node (ref U1) (pin 4))
(node (ref TP1) (pin 1))
(node (ref C8) (pin 1)))
(net (code 26) (name SWITCH1)
(node (ref SW1) (pin 1))
(node (ref U1) (pin 13)))
(net (code 27) (name "Net-(U1-Pad14)")
(node (ref U1) (pin 14)))
(net (code 28) (name "Net-(U1-Pad15)")
(node (ref U1) (pin 15)))
(net (code 29) (name "Net-(U1-Pad18)")
(node (ref U1) (pin 18)))
(net (code 30) (name "Net-(U1-Pad19)")
(node (ref U1) (pin 19)))
(net (code 31) (name "Net-(C2-Pad1)")
(node (ref C2) (pin 1))
(node (ref Y1) (pin 1))
(node (ref R8) (pin 1))
(node (ref U1) (pin 2)))
(net (code 32) (name "Net-(U1-Pad20)")
(node (ref U1) (pin 20)))
(net (code 33) (name "Net-(U1-Pad21)")
(node (ref U1) (pin 21)))
(net (code 34) (name "Net-(U1-Pad22)")
(node (ref U1) (pin 22)))
(net (code 35) (name SWDIO)
(node (ref J3) (pin 2))
(node (ref U1) (pin 23)))
(net (code 36) (name SWCLK)
(node (ref J3) (pin 3))
(node (ref U1) (pin 24)))
(net (code 37) (name "Net-(U1-Pad25)")
(node (ref U1) (pin 25)))
(net (code 38) (name "Net-(U1-Pad26)")
(node (ref U1) (pin 26)))
(net (code 39) (name "Net-(U1-Pad27)")
(node (ref U1) (pin 27)))
(net (code 40) (name +3V3)
(node (ref CON3) (pin 3))
(node (ref R9) (pin 1))
(node (ref U1) (pin 5))
(node (ref CON2) (pin 3))
(node (ref U1) (pin 17))
(node (ref U1) (pin 1))
(node (ref CON1) (pin 3))
(node (ref U3) (pin 4))
(node (ref J3) (pin 1))
(node (ref C9) (pin 1))
(node (ref C4) (pin 1))
(node (ref C6) (pin 1))
(node (ref C5) (pin 1))
(node (ref L1) (pin 2)))
(net (code 41) (name "Net-(C3-Pad1)")
(node (ref C3) (pin 1))
(node (ref Y1) (pin 2))
(node (ref R8) (pin 2))
(node (ref U1) (pin 3)))
(net (code 42) (name MEAS_VBATT)
(node (ref U1) (pin 6))
(node (ref R13) (pin 1))
(node (ref R12) (pin 2)))
(net (code 43) (name "Net-(L1-Pad1)")
(node (ref L1) (pin 1))
(node (ref U3) (pin 5)))
(net (code 44) (name +BATT_SWITCHED)
(node (ref S1) (pin 2))
(node (ref U3) (pin 1))
(node (ref U3) (pin 3)))
(net (code 45) (name "Net-(R14-Pad1)")
(node (ref R14) (pin 1))
(node (ref S1) (pin 1)))
(net (code 46) (name "Net-(J2-Pad2)")
(node (ref J2) (pin 2)))
(net (code 47) (name "Net-(J2-Pad3)")
(node (ref J2) (pin 3)))
(net (code 48) (name "Net-(TP2-Pad1)")
(node (ref U1) (pin 31))
(node (ref TP2) (pin 1)))))

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

View File

@@ -0,0 +1,259 @@
update=2021 February 14, Sunday 15:43:05
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=ledTruck.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
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
[pcbnew/Netclasses/1]
Name=POWER
Clearance=0.2
TrackWidth=0.3048
ViaDiameter=0.8
ViaDrill=0.4
uViaDiameter=0.3
uViaDrill=0.1
dPairWidth=0.2
dPairGap=0.25
dPairViaGap=0.25

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,25 @@
"Id";"Designator";"Package";"Quantity";"Designation";"Supplier and ref";
1;"J2";"USB_Micro_B_Female_10118193-0001LF";1;"USB_B_Micro";;;
2;"Y1";"Oscillator_XLH536025.000000I";1;"32Khz";;;
3;"U2";"SOT-753";1;"MCP73832T-2ACI_OT";;;
4;"TP1";"PC_TEST_POINT_SMD";1;"TestPoint";;;
5;"SW3,SW2,SW1";"Toggle_Switch_100SP1T1B4M2QE";3;"SW_SPDT_MSM";;;
6;"R13";"0603";1;"100K";;;
7;"R12";"0603";1;"200K";;;
8;"R11,R10,R14";"0603";3;"R";;;
9;"R9";"0603";1;"1K";;;
10;"R8";"0603";1;"1M";;;
11;"R7,R6,R5,R4";"0603";4;"10K";;;
12;"R3,R2,R1";"0603";3;"105E";;;
13;"L1";"0805";1;"2,2uH";;;
14;"J3";"PinHeader_1x4_P2.54mm_Drill1.02mm";1;"Conn_01x04";;;
15;"J1";"JST_XH_S2B-XH-A_1x02_P2.50mm_Horizontal";1;"Conn_01x02_Male";;;
16;"D2,D1";"0805";2;"LED";;;
17;"C9,C7,C1";"CP_EIA-3528-21_Kemet-B";3;"4,7uF";;;
18;"C8,C6,C5";"0603";3;"100nF";;;
19;"C4";"CP_EIA-3528-21_Kemet-B";1;"1uF";;;
20;"C3,C2";"0603";2;"4,3pF";;;
21;"CON1,CON2,CON3";"3,5mm_straight_circular";3;"SJ1-3523N";;;
22;"U1";"QFN-32-1EP_5x5mm";1;"STM32L031K6Tx";;;
23;"S1";"slids_switch_spdt";1;"EG1218";;;
24;"U3";"SOT-753";1;"LM3671MF-3.3";;;
1 Id Designator Package Quantity Designation Supplier and ref
2 1 J2 USB_Micro_B_Female_10118193-0001LF 1 USB_B_Micro
3 2 Y1 Oscillator_XLH536025.000000I 1 32Khz
4 3 U2 SOT-753 1 MCP73832T-2ACI_OT
5 4 TP1 PC_TEST_POINT_SMD 1 TestPoint
6 5 SW3,SW2,SW1 Toggle_Switch_100SP1T1B4M2QE 3 SW_SPDT_MSM
7 6 R13 0603 1 100K
8 7 R12 0603 1 200K
9 8 R11,R10,R14 0603 3 R
10 9 R9 0603 1 1K
11 10 R8 0603 1 1M
12 11 R7,R6,R5,R4 0603 4 10K
13 12 R3,R2,R1 0603 3 105E
14 13 L1 0805 1 2,2uH
15 14 J3 PinHeader_1x4_P2.54mm_Drill1.02mm 1 Conn_01x04
16 15 J1 JST_XH_S2B-XH-A_1x02_P2.50mm_Horizontal 1 Conn_01x02_Male
17 16 D2,D1 0805 2 LED
18 17 C9,C7,C1 CP_EIA-3528-21_Kemet-B 3 4,7uF
19 18 C8,C6,C5 0603 3 100nF
20 19 C4 CP_EIA-3528-21_Kemet-B 1 1uF
21 20 C3,C2 0603 2 4,3pF
22 21 CON1,CON2,CON3 3,5mm_straight_circular 3 SJ1-3523N
23 22 U1 QFN-32-1EP_5x5mm 1 STM32L031K6Tx
24 23 S1 slids_switch_spdt 1 EG1218
25 24 U3 SOT-753 1 LM3671MF-3.3

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -14,6 +14,14 @@ board = nucleo_l031K6
framework = arduino
upload_port = stlink
debug_tool = stlink
lib_deps =
http://192.168.2.3/Bonobo.Git.Server/JCButton.git
; [env:native]
; platform = native
; build_flags =
; -std=gnu++11
; -D UNIT_TEST
; lib_deps =
; ArduinoFake

View File

@@ -1,27 +1,55 @@
#ifndef BOARDH
#define BOARDH
#define LED1 PB0 //D3
#define LED2 PB7 //D4
#define LED3 PB6 //D5
#ifndef UNIT_TEST
#define DETECT1 PA6 //A5
#define DETECT2 PA5 //A4
#define DETECT3 PA4 //A3
#define LED1 PB0 //D3
#define LED2 PB7 //D4
#define LED3 PB6 //D5
#define SWITCH1 PA7 //A6 TOGGLE1
#define SWITCH12 PA2 //A7 MOMENTARY1
#define SWITCH2 PA1 //A1 TOGGLE1
#define SWITCH22 PA3 //A2 MOMENTARY1
#define SWITCH3 PB5 //D11 TOGGLE1
#define SWITCH32 PB4 //D12 MOMENTARY1
#define DETECT1 PA6 //A5
#define DETECT2 PA5 //A4
#define DETECT3 PA4 //A3
#define LD3LED PB3
#define WAKEUPPIN PA2
#define SWITCH1 PA7 //A6 TOGGLE1
#define SWITCH12 PA2 //A7 MOMENTARY1
#define SWITCH2 PA1 //A1 TOGGLE1
#define SWITCH22 PA3 //A2 MOMENTARY1
#define SWITCH3 PB5 //D11 TOGGLE1
#define SWITCH32 PB4 //D12 MOMENTARY1
#define REDLEDRES
#define YELLOWLEDRES
#define GREENLEDRES
#define LD3LED PB3
#define WAKEUPPIN PA2
#define REDLEDRES
#define YELLOWLEDRES
#define GREENLEDRES
#else
#define LED1 0 //D3
#define LED2 1 //D4
#define LED3 2 //D5
#define DETECT1 3 //A5
#define DETECT2 4 //A4
#define DETECT3 5 //A3
#define SWITCH1 6 //A6 TOGGLE1
#define SWITCH12 7 //A7 MOMENTARY1
#define SWITCH2 8 //A1 TOGGLE1
#define SWITCH22 9 //A2 MOMENTARY1
#define SWITCH3 10 //D11 TOGGLE1
#define SWITCH32 11 //D12 MOMENTARY1
#define LD3LED 12
#define WAKEUPPIN 13
#define REDLEDRES
#define YELLOWLEDRES
#define GREENLEDRES
#endif //unit_test
#endif //BOARDH

View File

@@ -1,8 +1,6 @@
#include "buttons.h"
#include "board.h"
#include <vector>
#include "Arduino.h"
#include "JC_Button.h"
std::vector<c_button *> buttonlist;
@@ -113,4 +111,4 @@ c_button *getButton(e_ledcolor color)
std::vector<c_button *> *getButtonlist(void)
{
return &buttonlist;
}
}

View File

@@ -1,9 +1,10 @@
#ifndef BUTTONSH
#define BUTTONSH
#include <Arduino.h>
#include "Arduino.h"
#include <vector>
#include "JC_Button.h"
#include "board.h"
#include "led.h"
class c_button : public ToggleButton

View File

@@ -1,30 +1,21 @@
#include "chainGame.h"
#include "Arduino.h"
#include "buttons.h"
#ifndef UNIT_TEST
#ifdef ARDUINO
#include "chainGame.h"
uint8_t patternIndex = 0;
bool patternFlag = false;
bool firstpattern = false;
//e_ledcolor cheatbutton = NONE;
//bool firstpattern = false;
uint16_t cheatbutton = 0;
bool cheatButtonFlag = false;
// e_ledcolor ledpattern[4] =
// {
// YELLOW,
// GREEN,
// YELLOW,
// RED};
uint16_t ledpattern[4] =
{
1,
3,
1,
2
};
{
1,
3,
1,
2};
int patternlength = sizeof(ledpattern) / sizeof(ledpattern[0]);
@@ -44,36 +35,44 @@ void ResetChainGame(void)
{
patternIndex = 0;
patternFlag = false;
firstpattern = false;
//firstpattern = false;
cheatbutton = 0;
cheatButtonFlag = false;
}
void HandleChainGame(void)
{
if (buttonIsPressed(ledpattern[patternIndex]) && !patternFlag && !cheatButtonFlag)
if (!patternFlag && !cheatButtonFlag)
{
turnOnLed(ledpattern[patternIndex]);
patternFlag = true;
cheatbutton = 0;
}
else if (buttonIsPressed(cheatbutton) && !patternFlag && !cheatButtonFlag)
{
turnOnLed(cheatbutton);
cheatButtonFlag = true;
}
else if (anybutton() && !patternFlag && !cheatButtonFlag )
{
cheatbutton = 0;
if (buttonIsPressed(ledpattern[patternIndex]))
{
//pattern button pressed, turn on LED, set flag
turnOnLed(ledpattern[patternIndex]);
patternFlag = true;
cheatbutton = 0;
}
else if (buttonIsPressed(cheatbutton))
{
// cheatbutton pressed, turn on cheat led, set flag
turnOnLed(cheatbutton);
cheatButtonFlag = true;
}
else if (anybutton())
{
// if any other button is pressed, clear cheat button
//cheatbutton = 0;
}
}
if (!buttonIsPressed(ledpattern[patternIndex]))
{
// pattern switch is open, turn off pattern LED
turnOffLed(ledpattern[patternIndex]);
}
if (!buttonIsPressed(cheatbutton) && cheatButtonFlag)
{
// cheat switch is open, turn of cheat LED
turnOffLed(cheatbutton);
cheatButtonFlag = false;
cheatbutton = 0;
@@ -81,25 +80,33 @@ void HandleChainGame(void)
if (!anybutton())
{
//all switches are open, turn off all LEDs
turnOffAllLed();
if (patternFlag)
{
// pattern LED was triggerd, reset flag, move to next pattern
patternFlag = false;
nextPattern();
}
}
//check cheatbuttons
if (buttonIsPressed(4) && (cheatbutton == 0))
{
// cheatbutton 4 (momentary 1) was closed, set cheatbutton to 1
cheatbutton = 1;
}
else if (buttonIsPressed(5) && (cheatbutton == 0))
{
// cheatbutton 5 (momentary 2) was closed, set cheatbutton to 2
cheatbutton = 2;
}
else if (buttonIsPressed(6) && (cheatbutton == 0))
{
// cheatbutton 5 (momentary 3) was closed, set cheatbutton to 3
cheatbutton = 3;
}
}
}
#endif
#endif

View File

@@ -1,6 +1,8 @@
#ifndef CHAINGAMEH
#define CHAINGAMEH
#include "Arduino.h"
#include "buttons.h"
void HandleChainGame( void );
void ResetChainGame(void);

View File

@@ -1,9 +1,5 @@
#include "Arduino.h"
#include "detectled.h"
#include "buttons.h"
#include "board.h"
#include "led.h"
#include "vector"
#define CHANNELS 3
#define SAMPLES 20
@@ -34,6 +30,8 @@ void handleDetectLed(void)
void initDetectLed(void)
{
ledlist_ptr = getledlist();
#ifndef UNIT_TEST
analogReadResolution(10);
}
#endif
}

View File

@@ -1,6 +1,11 @@
#ifndef DETECTLEDH
#define DETECTLEDH
#include "buttons.h"
#include "board.h"
#include "led.h"
#include "vector"
void handleDetectLed( void );
void initDetectLed( void );

18
src/game.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef GAMEH
#define GAMEH
class c_game
{
protected:
bool _status;
public:
c_game(void): _status(false) {};
void runGame(void);
void initGame(void);
bool getStatus(void) { return _status;}
};
#endif //GAMEH

View File

@@ -1,5 +1,6 @@
#include "led.h"
#include "Arduino.h"
c_leds ledlist;
@@ -174,8 +175,10 @@ bool c_leds::verifyLed(uint16_t index)
void c_ledport::begin(void)
{
#ifndef UNIT_TEST
pinMode(_pin, OUTPUT);
pinMode(_analogPin, INPUT_ANALOG);
#endif
turnOff();
}
@@ -237,3 +240,4 @@ bool c_led::checkIndex(uint16_t index)
}
return false;
}

View File

@@ -1,8 +1,9 @@
#ifndef LEDH
#define LEDH
#include "arduino.h"
#include "Arduino.h"
#include "vector"
#include "board.h"
enum e_ledcolor
{
@@ -35,6 +36,8 @@ public:
void writeLed(bool state);
bool getLedState( void ) {return _state; }
uint16_t ledRead(void);
uint16_t getIndex(void) { return _index; }
@@ -92,4 +95,5 @@ void turnOffLed(uint16_t index);
void turnOnLed(uint16_t index);
void turnOffAllLed();
#endif //LEDH
#endif //LEDH

View File

@@ -1,7 +1,6 @@
#include "magicSwitchBoard.h"
#include "Arduino.h"
#include "buttons.h"
//#include "JC_Button.h"
#define CHANNELS 3
#define TIMEOUT 7000 //game timeout
@@ -171,3 +170,5 @@ void handleMagicSwitchBoard(void)
}

View File

@@ -1,6 +1,8 @@
#ifndef MAGICSWITCHBOARDH
#define MAGICSWITCHBOARDH
#include "buttons.h"
void handleMagicSwitchBoard( void );
#endif //MAGICSWITCHBOARDH

View File

@@ -1,4 +1,6 @@
#include <Arduino.h>
#ifndef UNIT_TEST
#include "Arduino.h"
#include "board.h"
#include "chainGame.h"
#include "detectled.h"
@@ -8,7 +10,7 @@
#include "led.h"
#define TIMEOUT 15000 // 15sec * 1000ms
#define GAMESELECTTIMEOUT 5000 // 7sec * 1000ms
#define GAMESELECTTIMEOUT 10000 // 7sec * 1000ms
typedef enum
{
@@ -188,4 +190,6 @@ void loop()
}
break;
}
}
}
#endif

View File

@@ -1,7 +1,17 @@
#include "simpleled.h"
#include "led.h"
#include "buttons.h"
#include "vector"
void c_simpleLed::runGame(void)
{
handleSimpleLed();
}
void c_simpleLed::initGame(void)
{
initSimpleLed();
_status = true;
}
extern std::vector<c_button *> buttonlist;
@@ -25,4 +35,9 @@ void handleSimpleLed(void)
turnOffLed(button->getIndex());
}
}
}
bool getStatusSimpleLed( void )
{
return status;
}

View File

@@ -1,8 +1,21 @@
#ifndef SIMPLELEDH
#define SIMPLELEDH
#include "led.h"
#include "buttons.h"
#include "vector"
#include "game.h"
class c_simpleLed : public c_game
{
void runGame(void);
void initGame(void);
};
void initSimpleLed( void );
void handleSimpleLed( void );
bool getStatusSimpleLed( void );
#endif //SIMPLELEDH

30
test/native/test_main.cpp Normal file
View File

@@ -0,0 +1,30 @@
#include <Arduino.h>
#include <cstdlib>
#include <unity.h>
#include "test_simpleled.h"
#ifdef UNIT_TEST
#define RUN_TEST_GROUP(TEST) \
if (!std::getenv("TEST_GROUP") || (strcmp(#TEST, std::getenv("TEST_GROUP")) == 0)) { \
TEST::run_tests(); \
}
void setUp(void)
{
ArduinoFakeReset();
}
int main(int argc, char **argv) {
UNITY_BEGIN();
RUN_TEST_GROUP(simpleLedTest);
UNITY_END();
}
#endif //UNIT_TEST

View File

@@ -0,0 +1,12 @@
#ifdef UNIT_TEST
namespace simpleLedTest
{
void test_initfunction( void )
{
}
}
#endif