├── .gitignore
├── LICENSE
├── README.md
├── doc
├── RTC-Pinout.png
└── RTC-Pinout.svg
├── examples
└── TimedWake
│ └── TimedWake.cpp
├── hardware
├── bom
│ └── ibom.html
├── rtcbrd-cache.lib
├── rtcbrd.kicad_pcb
├── rtcbrd.pro
└── rtcbrd.sch
├── library.properties
├── upoff.cpp
└── upoff.h
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # Created by https://www.gitignore.io/api/kicad,platformio
3 | # Edit at https://www.gitignore.io/?templates=kicad,platformio
4 |
5 | ### KiCad ###
6 | # For PCBs designed using KiCad: http://www.kicad-pcb.org/
7 | # Format documentation: http://kicad-pcb.org/help/file-formats/
8 |
9 | # Temporary files
10 | *.000
11 | *.bak
12 | *.bck
13 | *.sch-bak
14 | *.kicad_pcb-bak
15 | *~
16 | _autosave-*
17 | *.tmp
18 | *-save.pro
19 | *-save.kicad_pcb
20 | fp-info-cache
21 |
22 | # Netlist files (exported from Eeschema)
23 | *.net
24 |
25 | # Autorouter files (exported from Pcbnew)
26 | *.dsn
27 | *.ses
28 |
29 | # Exported BOM files
30 | *.xml
31 | *.csv
32 |
33 | ### KiCad Patch ###
34 | escue-backup/
35 |
36 | *.tsv
37 | #bom/
38 |
39 | # Gerber export output
40 | out/
41 |
42 | ### PlatformIO ###
43 | .pioenvs
44 | .piolibdeps
45 | .clang_complete
46 | .gcc-flags.json
47 | .pio
48 |
49 | # End of https://www.gitignore.io/api/kicad,platformio
50 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 2-Clause License
2 |
3 | Copyright (c) 2020, Florian Knodt · www.adlerweb.info
4 | All rights reserved.
5 |
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions are met:
8 |
9 | 1. Redistributions of source code must retain the above copyright notice, this
10 | list of conditions and the following disclaimer.
11 |
12 | 2. Redistributions in binary form must reproduce the above copyright notice,
13 | this list of conditions and the following disclaimer in the documentation
14 | and/or other materials provided with the distribution.
15 |
16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # µPoff - External deep sleep circuit
2 | *µPoff* is a circuit placed high-side between your power source and your microcontroller. It is designed to cut power to the µC until a external sensor activates it. Additionally a onboard RTC can wake the µC in programmed intervals.
3 |
4 | It is mainly aimed at battery powered sensor applications like door sensors, which also should report their battery level and presence regularly.
5 |
6 | ## Pinout
7 |
8 | 
9 |
10 | ## Connecting your µC
11 |
12 | Remove the positive connection between your power source and µC. Connect the battery to **VCC** and your µC to **OUT**. Additionally connect **GND** to your existing ground. The external sensor should pull **^SW** low to activate the circuit. Lastly run a wire between one of your GPIO-Pins and **ON**. If you want to use the included RTC you'll also need to connect the I²C-Lines **SDA** and **SCL**. On AVR and STM32 based microcontrollers you'll have to use the predefined I²C pins, on ESP8266, ESP32 you can use any free GPIO.
13 |
14 | ## Software control
15 |
16 | Usually power only stays on as long as **^ON** is low, however most tasks take longer to complete. To keep power on it is crucial to drive **ON** high as soon as your µC is started. When finished you can turn off power by driving **ON** LOW.
17 |
18 | ### Dependencies
19 |
20 | * Wire.h (usually included)
21 | * elpaso Rtc_Pcf8563 (https://github.com/elpaso/Rtc_Pcf8563)
22 |
23 | ### Manual wake only
24 | ```
25 | #include "upoff.h"
26 | UPOFF upoff;
27 |
28 | void setup() {
29 | upoff.on(D1); //ON connected to D1
30 | }
31 |
32 | void loop() {
33 | //do something
34 | upoff.off();
35 | }
36 | ```
37 |
38 | ### Manual and timed wake
39 |
40 | ```
41 | #include "upoff.h"
42 | UPOFF upoff;
43 |
44 | bool reason;
45 |
46 | void setup() {
47 | reason = upoff.on(D1, D2, D3); //D1 = ON; D2 = SDA; D3 = SCL
48 | //reason = upoff.on(D1, true); //Use predefined I²C-Pins
49 |
50 | /* Set clock */
51 | while(!upoff.isValid(false)) {
52 | upoff.setTime(20, 02, 02, 02, 02, 02); //2020-02-02 02:02:02
53 | yield();
54 | }
55 | }
56 |
57 | void loop() {
58 | pinMode(LED_BUILTIN, OUTPUT);
59 | if(reason) {
60 | /* either first boot or caused by RTC */
61 | byte loops=5;
62 | while(loops > 0) {
63 | digitalWrite(LED_BUILTIN, LOW);
64 | delay(100);
65 | digitalWrite(LED_BUILTIN, HIGH);
66 | delay(100);
67 | loops--;
68 | }
69 | }else{
70 | /* manual trigger */
71 | digitalWrite(LED_BUILTIN, LOW);
72 | delay(1000);
73 | digitalWrite(LED_BUILTIN, HIGH);
74 | delay(1000);
75 | }
76 |
77 | /* Sleep for 15 seconds */
78 | upoff.off(15);
79 | }
80 | ```
81 |
82 | ## Power
83 | While sleeping current draw for *µPoff* is ~10µA. Output should be fine for up to 1A.
84 |
85 | ## Common problems
86 |
87 | ### Boot-time vs. signal time
88 | The external sensor has to keep **^ON** low until the µC is running and driving **ON**. Some µCs take several hundreds of milliseconds to boot. If your sensors pulse is too short you might be able to stretch it using some R+C magic.
89 |
90 |
91 |
--------------------------------------------------------------------------------
/doc/RTC-Pinout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adlerweb/uPoff/04df6ec41c1b8b9138bb1d624d86b5e7cc7fc336/doc/RTC-Pinout.png
--------------------------------------------------------------------------------
/doc/RTC-Pinout.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
544 |
--------------------------------------------------------------------------------
/examples/TimedWake/TimedWake.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include "upoff.h"
3 |
4 | UPOFF upoff;
5 | bool reason;
6 |
7 | void setup() {
8 | /**
9 | * Keep circuit switched on and read reason for wake
10 | * D1 = On-Pin
11 | * D3 = SDA
12 | * D2 = SCL
13 | */
14 | reason = upoff.on(D1, D3, D2);
15 |
16 | /**
17 | * RTC may do silly stuff if no date is set
18 | * if it appears to be unprogrammed choose a
19 | * random date, as we only use relative times
20 | * anyway. Feel free to sync with NTP if desired.
21 | */
22 | while(!upoff.isValid(false)) {
23 | upoff.setTime(20, 02, 02, 02, 02, 02);
24 | yield();
25 | }
26 | }
27 |
28 | void loop() {
29 | pinMode(LED_BUILTIN, OUTPUT);
30 | if(reason) {
31 | /* either first boot or caused by RTC */
32 | byte loops=5;
33 | while(loops > 0) {
34 | digitalWrite(LED_BUILTIN, LOW);
35 | delay(100);
36 | digitalWrite(LED_BUILTIN, HIGH);
37 | delay(100);
38 | loops--;
39 | }
40 | }else{
41 | /* manual trigger */
42 | digitalWrite(LED_BUILTIN, LOW);
43 | delay(1000);
44 | digitalWrite(LED_BUILTIN, HIGH);
45 | delay(1000);
46 | }
47 |
48 | /* Sleep for 15 seconds */
49 | upoff.off(15);
50 | }
51 |
--------------------------------------------------------------------------------
/hardware/rtcbrd-cache.lib:
--------------------------------------------------------------------------------
1 | EESchema-LIBRARY Version 2.4
2 | #encoding utf-8
3 | #
4 | # Connector_Generic_Conn_02x04_Counter_Clockwise
5 | #
6 | DEF Connector_Generic_Conn_02x04_Counter_Clockwise J 0 40 Y N 1 F N
7 | F0 "J" 50 200 50 H V C CNN
8 | F1 "Connector_Generic_Conn_02x04_Counter_Clockwise" 50 -300 50 H V C CNN
9 | F2 "" 0 0 50 H I C CNN
10 | F3 "" 0 0 50 H I C CNN
11 | $FPLIST
12 | Connector*:*_2x??_*
13 | $ENDFPLIST
14 | DRAW
15 | S -50 -195 0 -205 1 1 6 N
16 | S -50 -95 0 -105 1 1 6 N
17 | S -50 5 0 -5 1 1 6 N
18 | S -50 105 0 95 1 1 6 N
19 | S -50 150 150 -250 1 1 10 f
20 | S 150 -195 100 -205 1 1 6 N
21 | S 150 -95 100 -105 1 1 6 N
22 | S 150 5 100 -5 1 1 6 N
23 | S 150 105 100 95 1 1 6 N
24 | X Pin_1 1 -200 100 150 R 50 50 1 1 P
25 | X Pin_2 2 -200 0 150 R 50 50 1 1 P
26 | X Pin_3 3 -200 -100 150 R 50 50 1 1 P
27 | X Pin_4 4 -200 -200 150 R 50 50 1 1 P
28 | X Pin_5 5 300 -200 150 L 50 50 1 1 P
29 | X Pin_6 6 300 -100 150 L 50 50 1 1 P
30 | X Pin_7 7 300 0 150 L 50 50 1 1 P
31 | X Pin_8 8 300 100 150 L 50 50 1 1 P
32 | ENDDRAW
33 | ENDDEF
34 | #
35 | # Device_C
36 | #
37 | DEF Device_C C 0 10 N Y 1 F N
38 | F0 "C" 25 100 50 H V L CNN
39 | F1 "Device_C" 25 -100 50 H V L CNN
40 | F2 "" 38 -150 50 H I C CNN
41 | F3 "" 0 0 50 H I C CNN
42 | $FPLIST
43 | C_*
44 | $ENDFPLIST
45 | DRAW
46 | P 2 0 1 20 -80 -30 80 -30 N
47 | P 2 0 1 20 -80 30 80 30 N
48 | X ~ 1 0 150 110 D 50 50 1 1 P
49 | X ~ 2 0 -150 110 U 50 50 1 1 P
50 | ENDDRAW
51 | ENDDEF
52 | #
53 | # Device_Crystal
54 | #
55 | DEF Device_Crystal Y 0 40 N N 1 F N
56 | F0 "Y" 0 150 50 H V C CNN
57 | F1 "Device_Crystal" 0 -150 50 H V C CNN
58 | F2 "" 0 0 50 H I C CNN
59 | F3 "" 0 0 50 H I C CNN
60 | $FPLIST
61 | Crystal*
62 | $ENDFPLIST
63 | DRAW
64 | S -45 100 45 -100 0 1 12 N
65 | P 2 0 1 0 -100 0 -75 0 N
66 | P 2 0 1 20 -75 -50 -75 50 N
67 | P 2 0 1 20 75 -50 75 50 N
68 | P 2 0 1 0 100 0 75 0 N
69 | X 1 1 -150 0 50 R 50 50 1 1 P
70 | X 2 2 150 0 50 L 50 50 1 1 P
71 | ENDDRAW
72 | ENDDEF
73 | #
74 | # Device_Q_NMOS_GSD
75 | #
76 | DEF Device_Q_NMOS_GSD Q 0 0 Y N 1 F N
77 | F0 "Q" 200 50 50 H V L CNN
78 | F1 "Device_Q_NMOS_GSD" 200 -50 50 H V L CNN
79 | F2 "" 200 100 50 H I C CNN
80 | F3 "" 0 0 50 H I C CNN
81 | DRAW
82 | C 65 0 110 0 1 10 N
83 | C 100 -70 10 0 1 0 F
84 | C 100 70 10 0 1 0 F
85 | P 2 0 1 0 10 0 -100 0 N
86 | P 2 0 1 10 10 75 10 -75 N
87 | P 2 0 1 10 30 -50 30 -90 N
88 | P 2 0 1 10 30 20 30 -20 N
89 | P 2 0 1 10 30 90 30 50 N
90 | P 2 0 1 0 100 100 100 70 N
91 | P 3 0 1 0 100 -100 100 0 30 0 N
92 | P 4 0 1 0 30 -70 130 -70 130 70 30 70 N
93 | P 4 0 1 0 40 0 80 15 80 -15 40 0 F
94 | P 4 0 1 0 110 20 115 15 145 15 150 10 N
95 | P 4 0 1 0 130 15 115 -10 145 -10 130 15 N
96 | X G 1 -200 0 100 R 50 50 1 1 I
97 | X S 2 100 -200 100 U 50 50 1 1 P
98 | X D 3 100 200 100 D 50 50 1 1 P
99 | ENDDRAW
100 | ENDDEF
101 | #
102 | # Device_Q_PMOS_GSD
103 | #
104 | DEF Device_Q_PMOS_GSD Q 0 0 Y N 1 F N
105 | F0 "Q" 200 50 50 H V L CNN
106 | F1 "Device_Q_PMOS_GSD" 200 -50 50 H V L CNN
107 | F2 "" 200 100 50 H I C CNN
108 | F3 "" 0 0 50 H I C CNN
109 | DRAW
110 | C 65 0 110 0 1 10 N
111 | C 100 -70 10 0 1 0 F
112 | C 100 70 10 0 1 0 F
113 | P 2 0 1 0 10 0 -100 0 N
114 | P 2 0 1 10 10 75 10 -75 N
115 | P 2 0 1 10 30 -50 30 -90 N
116 | P 2 0 1 10 30 20 30 -20 N
117 | P 2 0 1 10 30 90 30 50 N
118 | P 2 0 1 0 100 100 100 70 N
119 | P 3 0 1 0 100 -100 100 0 30 0 N
120 | P 4 0 1 0 30 70 130 70 130 -70 30 -70 N
121 | P 4 0 1 0 90 0 50 15 50 -15 90 0 F
122 | P 4 0 1 0 110 -20 115 -15 145 -15 150 -10 N
123 | P 4 0 1 0 130 -15 115 10 145 10 130 -15 N
124 | X G 1 -200 0 100 R 50 50 1 1 I
125 | X S 2 100 -200 100 U 50 50 1 1 P
126 | X D 3 100 200 100 D 50 50 1 1 P
127 | ENDDRAW
128 | ENDDEF
129 | #
130 | # Device_R
131 | #
132 | DEF Device_R R 0 0 N Y 1 F N
133 | F0 "R" 80 0 50 V V C CNN
134 | F1 "Device_R" 0 0 50 V V C CNN
135 | F2 "" -70 0 50 V I C CNN
136 | F3 "" 0 0 50 H I C CNN
137 | $FPLIST
138 | R_*
139 | $ENDFPLIST
140 | DRAW
141 | S -40 -100 40 100 0 1 10 N
142 | X ~ 1 0 150 50 D 50 50 1 1 P
143 | X ~ 2 0 -150 50 U 50 50 1 1 P
144 | ENDDRAW
145 | ENDDEF
146 | #
147 | # Timer_RTC_PCF8563TS
148 | #
149 | DEF Timer_RTC_PCF8563TS U 0 20 Y Y 1 F N
150 | F0 "U" -300 350 50 H V L CNN
151 | F1 "Timer_RTC_PCF8563TS" 100 350 50 H V L CNN
152 | F2 "Package_SO:MSOP-8_3x3mm_P0.65mm" 0 0 50 H I C CNN
153 | F3 "" 0 0 50 H I C CNN
154 | $FPLIST
155 | MSOP*3x3mm*P0.65mm*
156 | $ENDFPLIST
157 | DRAW
158 | S -300 300 300 -300 0 1 10 f
159 | X OSCI 1 -400 200 100 R 50 50 1 1 I
160 | X OSCO 2 -400 -200 100 R 50 50 1 1 O
161 | X ~INT~ 3 400 -200 100 L 50 50 1 1 O
162 | X VSS 4 0 -400 100 U 50 50 1 1 W
163 | X SDA 5 400 100 100 L 50 50 1 1 B
164 | X SCL 6 400 200 100 L 50 50 1 1 I
165 | X CLKO 7 400 -100 100 L 50 50 1 1 O C
166 | X VDD 8 0 400 100 D 50 50 1 1 W
167 | ENDDRAW
168 | ENDDEF
169 | #
170 | # power_GND
171 | #
172 | DEF power_GND #PWR 0 0 Y Y 1 F P
173 | F0 "#PWR" 0 -250 50 H I C CNN
174 | F1 "power_GND" 0 -150 50 H V C CNN
175 | F2 "" 0 0 50 H I C CNN
176 | F3 "" 0 0 50 H I C CNN
177 | DRAW
178 | P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
179 | X GND 1 0 0 0 D 50 50 1 1 W N
180 | ENDDRAW
181 | ENDDEF
182 | #
183 | # power_VBUS
184 | #
185 | DEF power_VBUS #PWR 0 0 Y Y 1 F P
186 | F0 "#PWR" 0 -150 50 H I C CNN
187 | F1 "power_VBUS" 0 150 50 H V C CNN
188 | F2 "" 0 0 50 H I C CNN
189 | F3 "" 0 0 50 H I C CNN
190 | DRAW
191 | P 2 0 1 0 -30 50 0 100 N
192 | P 2 0 1 0 0 0 0 100 N
193 | P 2 0 1 0 0 100 30 50 N
194 | X VBUS 1 0 0 0 U 50 50 1 1 W N
195 | ENDDRAW
196 | ENDDEF
197 | #
198 | # power_VCC
199 | #
200 | DEF power_VCC #PWR 0 0 Y Y 1 F P
201 | F0 "#PWR" 0 -150 50 H I C CNN
202 | F1 "power_VCC" 0 150 50 H V C CNN
203 | F2 "" 0 0 50 H I C CNN
204 | F3 "" 0 0 50 H I C CNN
205 | DRAW
206 | C 0 75 25 0 1 0 N
207 | P 2 0 1 0 0 0 0 50 N
208 | X VCC 1 0 0 0 U 50 50 1 1 W N
209 | ENDDRAW
210 | ENDDEF
211 | #
212 | #End Library
213 |
--------------------------------------------------------------------------------
/hardware/rtcbrd.kicad_pcb:
--------------------------------------------------------------------------------
1 | (kicad_pcb (version 20171130) (host pcbnew 5.1.5)
2 |
3 | (general
4 | (thickness 1.6)
5 | (drawings 22)
6 | (tracks 118)
7 | (zones 0)
8 | (modules 17)
9 | (nets 15)
10 | )
11 |
12 | (page A4)
13 | (layers
14 | (0 F.Cu signal)
15 | (31 B.Cu signal)
16 | (32 B.Adhes user hide)
17 | (33 F.Adhes user hide)
18 | (34 B.Paste user hide)
19 | (35 F.Paste user hide)
20 | (36 B.SilkS user hide)
21 | (37 F.SilkS user)
22 | (38 B.Mask user hide)
23 | (39 F.Mask user hide)
24 | (40 Dwgs.User user hide)
25 | (41 Cmts.User user hide)
26 | (42 Eco1.User user hide)
27 | (43 Eco2.User user hide)
28 | (44 Edge.Cuts user)
29 | (45 Margin user hide)
30 | (46 B.CrtYd user hide)
31 | (47 F.CrtYd user hide)
32 | (48 B.Fab user hide)
33 | (49 F.Fab user hide)
34 | )
35 |
36 | (setup
37 | (last_trace_width 0.153)
38 | (user_trace_width 0.153)
39 | (trace_clearance 0.2)
40 | (zone_clearance 0.153)
41 | (zone_45_only no)
42 | (trace_min 0.153)
43 | (via_size 0.8)
44 | (via_drill 0.4)
45 | (via_min_size 0.3)
46 | (via_min_drill 0.3)
47 | (user_via 0.6 0.3)
48 | (uvia_size 0.3)
49 | (uvia_drill 0.1)
50 | (uvias_allowed no)
51 | (uvia_min_size 0.2)
52 | (uvia_min_drill 0.1)
53 | (edge_width 0.05)
54 | (segment_width 0.2)
55 | (pcb_text_width 0.3)
56 | (pcb_text_size 1.5 1.5)
57 | (mod_edge_width 0.12)
58 | (mod_text_size 1 1)
59 | (mod_text_width 0.15)
60 | (pad_size 1.524 1.524)
61 | (pad_drill 0.762)
62 | (pad_to_mask_clearance 0.051)
63 | (solder_mask_min_width 0.25)
64 | (aux_axis_origin 0 0)
65 | (visible_elements FFFFFF7F)
66 | (pcbplotparams
67 | (layerselection 0x010fc_ffffffff)
68 | (usegerberextensions false)
69 | (usegerberattributes false)
70 | (usegerberadvancedattributes false)
71 | (creategerberjobfile false)
72 | (excludeedgelayer true)
73 | (linewidth 0.100000)
74 | (plotframeref false)
75 | (viasonmask false)
76 | (mode 1)
77 | (useauxorigin false)
78 | (hpglpennumber 1)
79 | (hpglpenspeed 20)
80 | (hpglpendiameter 15.000000)
81 | (psnegative false)
82 | (psa4output false)
83 | (plotreference true)
84 | (plotvalue true)
85 | (plotinvisibletext false)
86 | (padsonsilk false)
87 | (subtractmaskfromsilk false)
88 | (outputformat 1)
89 | (mirror false)
90 | (drillshape 0)
91 | (scaleselection 1)
92 | (outputdirectory "gerber/"))
93 | )
94 |
95 | (net 0 "")
96 | (net 1 VCC)
97 | (net 2 GND)
98 | (net 3 "Net-(C2-Pad1)")
99 | (net 4 "Net-(C3-Pad1)")
100 | (net 5 VBUS)
101 | (net 6 ON)
102 | (net 7 SW)
103 | (net 8 SCL)
104 | (net 9 CLKO)
105 | (net 10 SDA)
106 | (net 11 "Net-(Q1-Pad1)")
107 | (net 12 "Net-(Q1-Pad3)")
108 | (net 13 TRIG)
109 | (net 14 "Net-(R6-Pad1)")
110 |
111 | (net_class Default "Dies ist die voreingestellte Netzklasse."
112 | (clearance 0.2)
113 | (trace_width 0.25)
114 | (via_dia 0.8)
115 | (via_drill 0.4)
116 | (uvia_dia 0.3)
117 | (uvia_drill 0.1)
118 | (add_net CLKO)
119 | (add_net GND)
120 | (add_net "Net-(C2-Pad1)")
121 | (add_net "Net-(C3-Pad1)")
122 | (add_net "Net-(Q1-Pad1)")
123 | (add_net "Net-(Q1-Pad3)")
124 | (add_net "Net-(R6-Pad1)")
125 | (add_net ON)
126 | (add_net SCL)
127 | (add_net SDA)
128 | (add_net SW)
129 | (add_net TRIG)
130 | (add_net VBUS)
131 | (add_net VCC)
132 | )
133 |
134 | (module Resistors_SMD:R_0402 (layer B.Cu) (tedit 58E0A804) (tstamp 5E5571CD)
135 | (at 62.738 36.068)
136 | (descr "Resistor SMD 0402, reflow soldering, Vishay (see dcrcw.pdf)")
137 | (tags "resistor 0402")
138 | (path /5E55A4FA)
139 | (attr smd)
140 | (fp_text reference R8 (at 0 1.35) (layer B.SilkS) hide
141 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
142 | )
143 | (fp_text value 1.2kΩ (at 0 -1.45) (layer B.Fab)
144 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
145 | )
146 | (fp_text user %R (at 0 1.35) (layer B.Fab)
147 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
148 | )
149 | (fp_line (start -0.5 -0.25) (end -0.5 0.25) (layer B.Fab) (width 0.1))
150 | (fp_line (start 0.5 -0.25) (end -0.5 -0.25) (layer B.Fab) (width 0.1))
151 | (fp_line (start 0.5 0.25) (end 0.5 -0.25) (layer B.Fab) (width 0.1))
152 | (fp_line (start -0.5 0.25) (end 0.5 0.25) (layer B.Fab) (width 0.1))
153 | (fp_line (start 0.25 0.53) (end -0.25 0.53) (layer B.SilkS) (width 0.12))
154 | (fp_line (start -0.25 -0.53) (end 0.25 -0.53) (layer B.SilkS) (width 0.12))
155 | (fp_line (start -0.8 0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
156 | (fp_line (start -0.8 0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
157 | (fp_line (start 0.8 -0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
158 | (fp_line (start 0.8 -0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
159 | (pad 1 smd rect (at -0.45 0) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
160 | (net 1 VCC))
161 | (pad 2 smd rect (at 0.45 0) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
162 | (net 8 SCL))
163 | (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0402.wrl
164 | (at (xyz 0 0 0))
165 | (scale (xyz 1 1 1))
166 | (rotate (xyz 0 0 0))
167 | )
168 | )
169 |
170 | (module Resistors_SMD:R_0402 (layer B.Cu) (tedit 58E0A804) (tstamp 5E5571CA)
171 | (at 62.738 34.798)
172 | (descr "Resistor SMD 0402, reflow soldering, Vishay (see dcrcw.pdf)")
173 | (tags "resistor 0402")
174 | (path /5E55B16D)
175 | (attr smd)
176 | (fp_text reference R7 (at 0 1.35) (layer B.SilkS) hide
177 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
178 | )
179 | (fp_text value 1.2kΩ (at 0 -1.45) (layer B.Fab)
180 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
181 | )
182 | (fp_text user %R (at 0 1.35) (layer B.Fab)
183 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
184 | )
185 | (fp_line (start -0.5 -0.25) (end -0.5 0.25) (layer B.Fab) (width 0.1))
186 | (fp_line (start 0.5 -0.25) (end -0.5 -0.25) (layer B.Fab) (width 0.1))
187 | (fp_line (start 0.5 0.25) (end 0.5 -0.25) (layer B.Fab) (width 0.1))
188 | (fp_line (start -0.5 0.25) (end 0.5 0.25) (layer B.Fab) (width 0.1))
189 | (fp_line (start 0.25 0.53) (end -0.25 0.53) (layer B.SilkS) (width 0.12))
190 | (fp_line (start -0.25 -0.53) (end 0.25 -0.53) (layer B.SilkS) (width 0.12))
191 | (fp_line (start -0.8 0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
192 | (fp_line (start -0.8 0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
193 | (fp_line (start 0.8 -0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
194 | (fp_line (start 0.8 -0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
195 | (pad 1 smd rect (at -0.45 0) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
196 | (net 1 VCC))
197 | (pad 2 smd rect (at 0.45 0) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
198 | (net 10 SDA))
199 | (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0402.wrl
200 | (at (xyz 0 0 0))
201 | (scale (xyz 1 1 1))
202 | (rotate (xyz 0 0 0))
203 | )
204 | )
205 |
206 | (module Capacitors_SMD:C_0402 (layer B.Cu) (tedit 5D7AD794) (tstamp 5D7ACC7D)
207 | (at 63.16 33.09 90)
208 | (descr "Capacitor SMD 0402, reflow soldering, AVX (see smccp.pdf)")
209 | (tags "capacitor 0402")
210 | (path /5D7AEA69)
211 | (attr smd)
212 | (fp_text reference C1 (at 0 1.27 90) (layer B.SilkS) hide
213 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
214 | )
215 | (fp_text value 100nF (at 0 -1.27 90) (layer B.Fab)
216 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
217 | )
218 | (fp_text user %R (at 0 1.27 90) (layer B.Fab)
219 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
220 | )
221 | (fp_line (start -0.5 -0.25) (end -0.5 0.25) (layer B.Fab) (width 0.1))
222 | (fp_line (start 0.5 -0.25) (end -0.5 -0.25) (layer B.Fab) (width 0.1))
223 | (fp_line (start 0.5 0.25) (end 0.5 -0.25) (layer B.Fab) (width 0.1))
224 | (fp_line (start -0.5 0.25) (end 0.5 0.25) (layer B.Fab) (width 0.1))
225 | (fp_line (start -0.25 -0.47) (end 0.25 -0.47) (layer B.SilkS) (width 0.12))
226 | (fp_line (start -1 0.4) (end 1 0.4) (layer B.CrtYd) (width 0.05))
227 | (fp_line (start -1 0.4) (end -1 -0.4) (layer B.CrtYd) (width 0.05))
228 | (fp_line (start 1 -0.4) (end 1 0.4) (layer B.CrtYd) (width 0.05))
229 | (fp_line (start 1 -0.4) (end -1 -0.4) (layer B.CrtYd) (width 0.05))
230 | (pad 1 smd rect (at -0.55 0 90) (size 0.6 0.5) (layers B.Cu B.Paste B.Mask)
231 | (net 2 GND))
232 | (pad 2 smd rect (at 0.55 0 90) (size 0.6 0.5) (layers B.Cu B.Paste B.Mask)
233 | (net 1 VCC))
234 | (model Capacitors_SMD.3dshapes/C_0402.wrl
235 | (at (xyz 0 0 0))
236 | (scale (xyz 1 1 1))
237 | (rotate (xyz 0 0 0))
238 | )
239 | )
240 |
241 | (module Capacitors_SMD:C_0402 (layer B.Cu) (tedit 5D7AD779) (tstamp 5D7AF146)
242 | (at 58.42 31.78 270)
243 | (descr "Capacitor SMD 0402, reflow soldering, AVX (see smccp.pdf)")
244 | (tags "capacitor 0402")
245 | (path /5D7BCD6E)
246 | (attr smd)
247 | (fp_text reference C4 (at 0 1.27 270) (layer B.SilkS) hide
248 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
249 | )
250 | (fp_text value 100nF (at 0 -1.27 270) (layer B.Fab)
251 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
252 | )
253 | (fp_text user %R (at 0 1.27 270) (layer B.Fab)
254 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
255 | )
256 | (fp_line (start -0.5 -0.25) (end -0.5 0.25) (layer B.Fab) (width 0.1))
257 | (fp_line (start 0.5 -0.25) (end -0.5 -0.25) (layer B.Fab) (width 0.1))
258 | (fp_line (start 0.5 0.25) (end 0.5 -0.25) (layer B.Fab) (width 0.1))
259 | (fp_line (start -0.5 0.25) (end 0.5 0.25) (layer B.Fab) (width 0.1))
260 | (fp_line (start -0.25 -0.47) (end 0.25 -0.47) (layer B.SilkS) (width 0.12))
261 | (fp_line (start -1 0.4) (end 1 0.4) (layer B.CrtYd) (width 0.05))
262 | (fp_line (start -1 0.4) (end -1 -0.4) (layer B.CrtYd) (width 0.05))
263 | (fp_line (start 1 -0.4) (end 1 0.4) (layer B.CrtYd) (width 0.05))
264 | (fp_line (start 1 -0.4) (end -1 -0.4) (layer B.CrtYd) (width 0.05))
265 | (pad 1 smd rect (at -0.55 0 270) (size 0.6 0.5) (layers B.Cu B.Paste B.Mask)
266 | (net 2 GND))
267 | (pad 2 smd rect (at 0.55 0 270) (size 0.6 0.5) (layers B.Cu B.Paste B.Mask)
268 | (net 5 VBUS))
269 | (model Capacitors_SMD.3dshapes/C_0402.wrl
270 | (at (xyz 0 0 0))
271 | (scale (xyz 1 1 1))
272 | (rotate (xyz 0 0 0))
273 | )
274 | )
275 |
276 | (module Capacitors_SMD:C_0402 (layer F.Cu) (tedit 5D7AD75F) (tstamp 5D7ACCDD)
277 | (at 62.55 32.8 180)
278 | (descr "Capacitor SMD 0402, reflow soldering, AVX (see smccp.pdf)")
279 | (tags "capacitor 0402")
280 | (path /5D7ADDC0)
281 | (attr smd)
282 | (fp_text reference C2 (at 0 -1.27 180) (layer F.SilkS) hide
283 | (effects (font (size 1 1) (thickness 0.15)))
284 | )
285 | (fp_text value 22pF (at 0 1.27 180) (layer F.Fab)
286 | (effects (font (size 1 1) (thickness 0.15)))
287 | )
288 | (fp_text user %R (at 0 -1.27 180) (layer F.Fab)
289 | (effects (font (size 1 1) (thickness 0.15)))
290 | )
291 | (fp_line (start -0.5 0.25) (end -0.5 -0.25) (layer F.Fab) (width 0.1))
292 | (fp_line (start 0.5 0.25) (end -0.5 0.25) (layer F.Fab) (width 0.1))
293 | (fp_line (start 0.5 -0.25) (end 0.5 0.25) (layer F.Fab) (width 0.1))
294 | (fp_line (start -0.5 -0.25) (end 0.5 -0.25) (layer F.Fab) (width 0.1))
295 | (fp_line (start -0.25 0.47) (end 0.25 0.47) (layer F.SilkS) (width 0.12))
296 | (fp_line (start -1 -0.4) (end 1 -0.4) (layer F.CrtYd) (width 0.05))
297 | (fp_line (start -1 -0.4) (end -1 0.4) (layer F.CrtYd) (width 0.05))
298 | (fp_line (start 1 0.4) (end 1 -0.4) (layer F.CrtYd) (width 0.05))
299 | (fp_line (start 1 0.4) (end -1 0.4) (layer F.CrtYd) (width 0.05))
300 | (pad 1 smd rect (at -0.55 0 180) (size 0.6 0.5) (layers F.Cu F.Paste F.Mask)
301 | (net 3 "Net-(C2-Pad1)"))
302 | (pad 2 smd rect (at 0.55 0 180) (size 0.6 0.5) (layers F.Cu F.Paste F.Mask)
303 | (net 2 GND))
304 | (model Capacitors_SMD.3dshapes/C_0402.wrl
305 | (at (xyz 0 0 0))
306 | (scale (xyz 1 1 1))
307 | (rotate (xyz 0 0 0))
308 | )
309 | )
310 |
311 | (module Capacitors_SMD:C_0402 (layer F.Cu) (tedit 5D7AD74D) (tstamp 5D7AD947)
312 | (at 60.5 32.8)
313 | (descr "Capacitor SMD 0402, reflow soldering, AVX (see smccp.pdf)")
314 | (tags "capacitor 0402")
315 | (path /5D7AE3FA)
316 | (attr smd)
317 | (fp_text reference C3 (at 0 -1.27) (layer F.SilkS) hide
318 | (effects (font (size 1 1) (thickness 0.15)))
319 | )
320 | (fp_text value 22pF (at 0 1.27) (layer F.Fab)
321 | (effects (font (size 1 1) (thickness 0.15)))
322 | )
323 | (fp_text user %R (at 0 -1.27) (layer F.Fab)
324 | (effects (font (size 1 1) (thickness 0.15)))
325 | )
326 | (fp_line (start -0.5 0.25) (end -0.5 -0.25) (layer F.Fab) (width 0.1))
327 | (fp_line (start 0.5 0.25) (end -0.5 0.25) (layer F.Fab) (width 0.1))
328 | (fp_line (start 0.5 -0.25) (end 0.5 0.25) (layer F.Fab) (width 0.1))
329 | (fp_line (start -0.5 -0.25) (end 0.5 -0.25) (layer F.Fab) (width 0.1))
330 | (fp_line (start 0.25 -0.47) (end -0.25 -0.47) (layer F.SilkS) (width 0.12))
331 | (fp_line (start -1 -0.4) (end 1 -0.4) (layer F.CrtYd) (width 0.05))
332 | (fp_line (start -1 -0.4) (end -1 0.4) (layer F.CrtYd) (width 0.05))
333 | (fp_line (start 1 0.4) (end 1 -0.4) (layer F.CrtYd) (width 0.05))
334 | (fp_line (start 1 0.4) (end -1 0.4) (layer F.CrtYd) (width 0.05))
335 | (pad 1 smd rect (at -0.55 0) (size 0.6 0.5) (layers F.Cu F.Paste F.Mask)
336 | (net 4 "Net-(C3-Pad1)"))
337 | (pad 2 smd rect (at 0.55 0) (size 0.6 0.5) (layers F.Cu F.Paste F.Mask)
338 | (net 2 GND))
339 | (model Capacitors_SMD.3dshapes/C_0402.wrl
340 | (at (xyz 0 0 0))
341 | (scale (xyz 1 1 1))
342 | (rotate (xyz 0 0 0))
343 | )
344 | )
345 |
346 | (module Housings_DIP:DIP-8_W7.62mm (layer F.Cu) (tedit 5D7AD331) (tstamp 5D7ACA21)
347 | (at 56.98 32.25)
348 | (descr "8-lead though-hole mounted DIP package, row spacing 7.62 mm (300 mils)")
349 | (tags "THT DIP DIL PDIP 2.54mm 7.62mm 300mil")
350 | (path /5D7BDDF4)
351 | (fp_text reference J1 (at -2.878 -2.405) (layer F.SilkS) hide
352 | (effects (font (size 1 1) (thickness 0.15)))
353 | )
354 | (fp_text value 02x04 (at 3.81 9.95) (layer F.Fab)
355 | (effects (font (size 1 1) (thickness 0.15)))
356 | )
357 | (fp_line (start 1.635 -1.27) (end 6.985 -1.27) (layer F.Fab) (width 0.1))
358 | (fp_line (start 6.985 -1.27) (end 6.985 8.89) (layer F.Fab) (width 0.1))
359 | (fp_line (start 6.985 8.89) (end 0.635 8.89) (layer F.Fab) (width 0.1))
360 | (fp_line (start 0.635 8.89) (end 0.635 -0.27) (layer F.Fab) (width 0.1))
361 | (fp_line (start 0.635 -0.27) (end 1.635 -1.27) (layer F.Fab) (width 0.1))
362 | (fp_line (start -1.1 -1.55) (end -1.1 9.15) (layer F.CrtYd) (width 0.05))
363 | (fp_line (start -1.1 9.15) (end 8.7 9.15) (layer F.CrtYd) (width 0.05))
364 | (fp_line (start 8.7 9.15) (end 8.7 -1.55) (layer F.CrtYd) (width 0.05))
365 | (fp_line (start 8.7 -1.55) (end -1.1 -1.55) (layer F.CrtYd) (width 0.05))
366 | (fp_text user %R (at 3.81 3.81) (layer F.Fab)
367 | (effects (font (size 1 1) (thickness 0.15)))
368 | )
369 | (pad 1 thru_hole rect (at 0 0) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask)
370 | (net 5 VBUS))
371 | (pad 5 thru_hole oval (at 7.62 7.62) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask)
372 | (net 6 ON))
373 | (pad 2 thru_hole oval (at 0 2.54) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask)
374 | (net 7 SW))
375 | (pad 6 thru_hole oval (at 7.62 5.08) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask)
376 | (net 8 SCL))
377 | (pad 3 thru_hole oval (at 0 5.08) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask)
378 | (net 9 CLKO))
379 | (pad 7 thru_hole oval (at 7.62 2.54) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask)
380 | (net 10 SDA))
381 | (pad 4 thru_hole oval (at 0 7.62) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask)
382 | (net 2 GND))
383 | (pad 8 thru_hole oval (at 7.62 0) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask)
384 | (net 1 VCC))
385 | (model ${KISYS3DMOD}/Housings_DIP.3dshapes/DIP-8_W7.62mm.wrl
386 | (at (xyz 0 0 0))
387 | (scale (xyz 1 1 1))
388 | (rotate (xyz 0 0 0))
389 | )
390 | )
391 |
392 | (module Crystals:Crystal_C38-LF_d3.0mm_l8.0mm_Horizontal (layer F.Cu) (tedit 5D7AD313) (tstamp 5D7AFE81)
393 | (at 61.214 31.35)
394 | (descr "Crystal THT C38-LF 8.0mm length 3.0mm diameter")
395 | (tags ['C38-LF'])
396 | (path /5D7ACEB3)
397 | (fp_text reference Y1 (at -2.07 2.25 90) (layer F.SilkS) hide
398 | (effects (font (size 1 1) (thickness 0.15)))
399 | )
400 | (fp_text value 32.768kHz (at 3.97 2.25 90) (layer F.Fab)
401 | (effects (font (size 1 1) (thickness 0.15)))
402 | )
403 | (fp_text user %R (at 1.25 6.5 90) (layer F.Fab)
404 | (effects (font (size 0.7 0.7) (thickness 0.105)))
405 | )
406 | (fp_line (start -0.55 2.5) (end -0.55 10.5) (layer F.Fab) (width 0.1))
407 | (fp_line (start -0.55 10.5) (end 2.45 10.5) (layer F.Fab) (width 0.1))
408 | (fp_line (start 2.45 10.5) (end 2.45 2.5) (layer F.Fab) (width 0.1))
409 | (fp_line (start 2.45 2.5) (end -0.55 2.5) (layer F.Fab) (width 0.1))
410 | (fp_line (start 0.405 2.5) (end 0 1.25) (layer F.Fab) (width 0.1))
411 | (fp_line (start 0 1.25) (end 0 0) (layer F.Fab) (width 0.1))
412 | (fp_line (start 1.495 2.5) (end 1.9 1.25) (layer F.Fab) (width 0.1))
413 | (fp_line (start 1.9 1.25) (end 1.9 0) (layer F.Fab) (width 0.1))
414 | (fp_line (start 0 1.15) (end 0 0.7) (layer F.SilkS) (width 0.12))
415 | (fp_line (start 1.9 1.15) (end 1.9 0.7) (layer F.SilkS) (width 0.12))
416 | (fp_line (start -1.3 -0.8) (end -1.3 11.3) (layer F.CrtYd) (width 0.05))
417 | (fp_line (start -1.3 11.3) (end 3.2 11.3) (layer F.CrtYd) (width 0.05))
418 | (fp_line (start 3.2 11.3) (end 3.2 -0.8) (layer F.CrtYd) (width 0.05))
419 | (fp_line (start 3.2 -0.8) (end -1.3 -0.8) (layer F.CrtYd) (width 0.05))
420 | (pad 1 thru_hole circle (at 1.9 0) (size 1 1) (drill 0.5) (layers *.Cu *.Mask)
421 | (net 3 "Net-(C2-Pad1)"))
422 | (pad 2 thru_hole circle (at 0 0) (size 1 1) (drill 0.5) (layers *.Cu *.Mask)
423 | (net 4 "Net-(C3-Pad1)"))
424 | (model ${KISYS3DMOD}/Crystals.3dshapes/Crystal_C38-LF_d3.0mm_l8.0mm_Horizontal.wrl
425 | (at (xyz 0 0 0))
426 | (scale (xyz 0.393701 0.393701 0.393701))
427 | (rotate (xyz 0 0 0))
428 | )
429 | )
430 |
431 | (module Housings_SOIC:HTSOP-8-1EP_3.9x4.9mm_Pitch1.27mm (layer F.Cu) (tedit 5D7ACC6A) (tstamp 5D7AD0C7)
432 | (at 60.9 37.3 270)
433 | (tags "HTSOP 1.27")
434 | (path /5D7AC337)
435 | (attr smd)
436 | (fp_text reference U1 (at 0 -3.5 270) (layer F.SilkS) hide
437 | (effects (font (size 1 1) (thickness 0.15)))
438 | )
439 | (fp_text value PCF8563TS (at 0 3.5 270) (layer F.Fab)
440 | (effects (font (size 1 1) (thickness 0.15)))
441 | )
442 | (fp_text user %R (at 0 0 270) (layer F.Fab)
443 | (effects (font (size 0.9 0.9) (thickness 0.135)))
444 | )
445 | (fp_line (start -0.95 -2.45) (end 1.95 -2.45) (layer F.Fab) (width 0.15))
446 | (fp_line (start 1.95 -2.45) (end 1.95 2.45) (layer F.Fab) (width 0.15))
447 | (fp_line (start 1.95 2.45) (end -1.95 2.45) (layer F.Fab) (width 0.15))
448 | (fp_line (start -1.95 2.45) (end -1.95 -1.45) (layer F.Fab) (width 0.15))
449 | (fp_line (start -1.95 -1.45) (end -0.95 -2.45) (layer F.Fab) (width 0.15))
450 | (fp_line (start -3.75 -2.75) (end -3.75 2.75) (layer F.CrtYd) (width 0.05))
451 | (fp_line (start 3.75 -2.75) (end 3.75 2.75) (layer F.CrtYd) (width 0.05))
452 | (fp_line (start -3.75 -2.75) (end 3.75 -2.75) (layer F.CrtYd) (width 0.05))
453 | (fp_line (start -3.75 2.75) (end 3.75 2.75) (layer F.CrtYd) (width 0.05))
454 | (fp_line (start -2.075 -2.575) (end -2.075 -2.525) (layer F.SilkS) (width 0.15))
455 | (fp_line (start 2.075 -2.575) (end 2.075 -2.43) (layer F.SilkS) (width 0.15))
456 | (fp_line (start 2.075 2.575) (end 2.075 2.43) (layer F.SilkS) (width 0.15))
457 | (fp_line (start -2.075 2.575) (end -2.075 2.43) (layer F.SilkS) (width 0.15))
458 | (fp_line (start -2.075 -2.575) (end 2.075 -2.575) (layer F.SilkS) (width 0.15))
459 | (fp_line (start -2.075 2.575) (end 2.075 2.575) (layer F.SilkS) (width 0.15))
460 | (fp_line (start -2.075 -2.525) (end -3.475 -2.525) (layer F.SilkS) (width 0.15))
461 | (pad 1 smd rect (at -2.7 -1.905 270) (size 1.55 0.6) (layers F.Cu F.Paste F.Mask)
462 | (net 3 "Net-(C2-Pad1)"))
463 | (pad 2 smd rect (at -2.7 -0.635 270) (size 1.55 0.6) (layers F.Cu F.Paste F.Mask)
464 | (net 4 "Net-(C3-Pad1)"))
465 | (pad 3 smd rect (at -2.7 0.635 270) (size 1.55 0.6) (layers F.Cu F.Paste F.Mask)
466 | (net 14 "Net-(R6-Pad1)"))
467 | (pad 4 smd rect (at -2.7 1.905 270) (size 1.55 0.6) (layers F.Cu F.Paste F.Mask)
468 | (net 2 GND))
469 | (pad 5 smd rect (at 2.7 1.905 270) (size 1.55 0.6) (layers F.Cu F.Paste F.Mask)
470 | (net 10 SDA))
471 | (pad 6 smd rect (at 2.7 0.635 270) (size 1.55 0.6) (layers F.Cu F.Paste F.Mask)
472 | (net 8 SCL))
473 | (pad 7 smd rect (at 2.7 -0.635 270) (size 1.55 0.6) (layers F.Cu F.Paste F.Mask)
474 | (net 9 CLKO))
475 | (pad 8 smd rect (at 2.7 -1.905 270) (size 1.55 0.6) (layers F.Cu F.Paste F.Mask)
476 | (net 1 VCC))
477 | (model ${KISYS3DMOD}/Housings_SOIC.3dshapes/HTSOP-8-1EP_3.9x4.9mm_Pitch1.27mm.wrl
478 | (at (xyz 0 0 0))
479 | (scale (xyz 1 1 1))
480 | (rotate (xyz 0 0 0))
481 | )
482 | )
483 |
484 | (module Resistors_SMD:R_0402 (layer F.Cu) (tedit 58E0A804) (tstamp 5D7AF212)
485 | (at 58.88 32.52 90)
486 | (descr "Resistor SMD 0402, reflow soldering, Vishay (see dcrcw.pdf)")
487 | (tags "resistor 0402")
488 | (path /5D7B1F6A)
489 | (attr smd)
490 | (fp_text reference R6 (at 0 -1.35 90) (layer F.SilkS) hide
491 | (effects (font (size 1 1) (thickness 0.15)))
492 | )
493 | (fp_text value 1.2kΩ (at 0 1.45 90) (layer F.Fab)
494 | (effects (font (size 1 1) (thickness 0.15)))
495 | )
496 | (fp_text user %R (at 0 -1.35 90) (layer F.Fab)
497 | (effects (font (size 1 1) (thickness 0.15)))
498 | )
499 | (fp_line (start -0.5 0.25) (end -0.5 -0.25) (layer F.Fab) (width 0.1))
500 | (fp_line (start 0.5 0.25) (end -0.5 0.25) (layer F.Fab) (width 0.1))
501 | (fp_line (start 0.5 -0.25) (end 0.5 0.25) (layer F.Fab) (width 0.1))
502 | (fp_line (start -0.5 -0.25) (end 0.5 -0.25) (layer F.Fab) (width 0.1))
503 | (fp_line (start 0.25 -0.53) (end -0.25 -0.53) (layer F.SilkS) (width 0.12))
504 | (fp_line (start -0.25 0.53) (end 0.25 0.53) (layer F.SilkS) (width 0.12))
505 | (fp_line (start -0.8 -0.45) (end 0.8 -0.45) (layer F.CrtYd) (width 0.05))
506 | (fp_line (start -0.8 -0.45) (end -0.8 0.45) (layer F.CrtYd) (width 0.05))
507 | (fp_line (start 0.8 0.45) (end 0.8 -0.45) (layer F.CrtYd) (width 0.05))
508 | (fp_line (start 0.8 0.45) (end -0.8 0.45) (layer F.CrtYd) (width 0.05))
509 | (pad 1 smd rect (at -0.45 0 90) (size 0.4 0.6) (layers F.Cu F.Paste F.Mask)
510 | (net 14 "Net-(R6-Pad1)"))
511 | (pad 2 smd rect (at 0.45 0 90) (size 0.4 0.6) (layers F.Cu F.Paste F.Mask)
512 | (net 13 TRIG))
513 | (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0402.wrl
514 | (at (xyz 0 0 0))
515 | (scale (xyz 1 1 1))
516 | (rotate (xyz 0 0 0))
517 | )
518 | )
519 |
520 | (module Resistors_SMD:R_0402 (layer B.Cu) (tedit 58E0A804) (tstamp 5D7AF0E6)
521 | (at 60.69 36.78)
522 | (descr "Resistor SMD 0402, reflow soldering, Vishay (see dcrcw.pdf)")
523 | (tags "resistor 0402")
524 | (path /5D7AFF40)
525 | (attr smd)
526 | (fp_text reference R5 (at 0 1.35) (layer B.SilkS) hide
527 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
528 | )
529 | (fp_text value 1.2kΩ (at 0 -1.45) (layer B.Fab)
530 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
531 | )
532 | (fp_text user %R (at 0 1.35) (layer B.Fab)
533 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
534 | )
535 | (fp_line (start -0.5 -0.25) (end -0.5 0.25) (layer B.Fab) (width 0.1))
536 | (fp_line (start 0.5 -0.25) (end -0.5 -0.25) (layer B.Fab) (width 0.1))
537 | (fp_line (start 0.5 0.25) (end 0.5 -0.25) (layer B.Fab) (width 0.1))
538 | (fp_line (start -0.5 0.25) (end 0.5 0.25) (layer B.Fab) (width 0.1))
539 | (fp_line (start 0.25 0.53) (end -0.25 0.53) (layer B.SilkS) (width 0.12))
540 | (fp_line (start -0.25 -0.53) (end 0.25 -0.53) (layer B.SilkS) (width 0.12))
541 | (fp_line (start -0.8 0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
542 | (fp_line (start -0.8 0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
543 | (fp_line (start 0.8 -0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
544 | (fp_line (start 0.8 -0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
545 | (pad 1 smd rect (at -0.45 0) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
546 | (net 13 TRIG))
547 | (pad 2 smd rect (at 0.45 0) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
548 | (net 12 "Net-(Q1-Pad3)"))
549 | (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0402.wrl
550 | (at (xyz 0 0 0))
551 | (scale (xyz 1 1 1))
552 | (rotate (xyz 0 0 0))
553 | )
554 | )
555 |
556 | (module Resistors_SMD:R_0402 (layer B.Cu) (tedit 58E0A804) (tstamp 5D7AF967)
557 | (at 62.61 40.21)
558 | (descr "Resistor SMD 0402, reflow soldering, Vishay (see dcrcw.pdf)")
559 | (tags "resistor 0402")
560 | (path /5D7B25AA)
561 | (attr smd)
562 | (fp_text reference R4 (at 0 1.35) (layer B.SilkS) hide
563 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
564 | )
565 | (fp_text value 120kΩ (at 0 -1.45) (layer B.Fab)
566 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
567 | )
568 | (fp_text user %R (at 0 1.35) (layer B.Fab)
569 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
570 | )
571 | (fp_line (start -0.5 -0.25) (end -0.5 0.25) (layer B.Fab) (width 0.1))
572 | (fp_line (start 0.5 -0.25) (end -0.5 -0.25) (layer B.Fab) (width 0.1))
573 | (fp_line (start 0.5 0.25) (end 0.5 -0.25) (layer B.Fab) (width 0.1))
574 | (fp_line (start -0.5 0.25) (end 0.5 0.25) (layer B.Fab) (width 0.1))
575 | (fp_line (start 0.25 0.53) (end -0.25 0.53) (layer B.SilkS) (width 0.12))
576 | (fp_line (start -0.25 -0.53) (end 0.25 -0.53) (layer B.SilkS) (width 0.12))
577 | (fp_line (start -0.8 0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
578 | (fp_line (start -0.8 0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
579 | (fp_line (start 0.8 -0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
580 | (fp_line (start 0.8 -0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
581 | (pad 1 smd rect (at -0.45 0) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
582 | (net 11 "Net-(Q1-Pad1)"))
583 | (pad 2 smd rect (at 0.45 0) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
584 | (net 2 GND))
585 | (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0402.wrl
586 | (at (xyz 0 0 0))
587 | (scale (xyz 1 1 1))
588 | (rotate (xyz 0 0 0))
589 | )
590 | )
591 |
592 | (module Resistors_SMD:R_0402 (layer B.Cu) (tedit 58E0A804) (tstamp 5D7AF1A6)
593 | (at 62.61 39.23 180)
594 | (descr "Resistor SMD 0402, reflow soldering, Vishay (see dcrcw.pdf)")
595 | (tags "resistor 0402")
596 | (path /5D7B2304)
597 | (attr smd)
598 | (fp_text reference R3 (at 0 1.35) (layer B.SilkS) hide
599 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
600 | )
601 | (fp_text value 1.2kΩ (at 0 -1.45) (layer B.Fab)
602 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
603 | )
604 | (fp_text user %R (at 0 1.35) (layer B.Fab)
605 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
606 | )
607 | (fp_line (start -0.5 -0.25) (end -0.5 0.25) (layer B.Fab) (width 0.1))
608 | (fp_line (start 0.5 -0.25) (end -0.5 -0.25) (layer B.Fab) (width 0.1))
609 | (fp_line (start 0.5 0.25) (end 0.5 -0.25) (layer B.Fab) (width 0.1))
610 | (fp_line (start -0.5 0.25) (end 0.5 0.25) (layer B.Fab) (width 0.1))
611 | (fp_line (start 0.25 0.53) (end -0.25 0.53) (layer B.SilkS) (width 0.12))
612 | (fp_line (start -0.25 -0.53) (end 0.25 -0.53) (layer B.SilkS) (width 0.12))
613 | (fp_line (start -0.8 0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
614 | (fp_line (start -0.8 0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
615 | (fp_line (start 0.8 -0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
616 | (fp_line (start 0.8 -0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
617 | (pad 1 smd rect (at -0.45 0 180) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
618 | (net 6 ON))
619 | (pad 2 smd rect (at 0.45 0 180) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
620 | (net 11 "Net-(Q1-Pad1)"))
621 | (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0402.wrl
622 | (at (xyz 0 0 0))
623 | (scale (xyz 1 1 1))
624 | (rotate (xyz 0 0 0))
625 | )
626 | )
627 |
628 | (module Resistors_SMD:R_0402 (layer B.Cu) (tedit 58E0A804) (tstamp 5D7AF0B6)
629 | (at 59 36.78)
630 | (descr "Resistor SMD 0402, reflow soldering, Vishay (see dcrcw.pdf)")
631 | (tags "resistor 0402")
632 | (path /5D7B2425)
633 | (attr smd)
634 | (fp_text reference R2 (at 0 1.35) (layer B.SilkS) hide
635 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
636 | )
637 | (fp_text value 1.2kΩ (at 0 -1.45) (layer B.Fab)
638 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
639 | )
640 | (fp_text user %R (at 0 1.35) (layer B.Fab)
641 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
642 | )
643 | (fp_line (start -0.5 -0.25) (end -0.5 0.25) (layer B.Fab) (width 0.1))
644 | (fp_line (start 0.5 -0.25) (end -0.5 -0.25) (layer B.Fab) (width 0.1))
645 | (fp_line (start 0.5 0.25) (end 0.5 -0.25) (layer B.Fab) (width 0.1))
646 | (fp_line (start -0.5 0.25) (end 0.5 0.25) (layer B.Fab) (width 0.1))
647 | (fp_line (start 0.25 0.53) (end -0.25 0.53) (layer B.SilkS) (width 0.12))
648 | (fp_line (start -0.25 -0.53) (end 0.25 -0.53) (layer B.SilkS) (width 0.12))
649 | (fp_line (start -0.8 0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
650 | (fp_line (start -0.8 0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
651 | (fp_line (start 0.8 -0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
652 | (fp_line (start 0.8 -0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
653 | (pad 1 smd rect (at -0.45 0) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
654 | (net 7 SW))
655 | (pad 2 smd rect (at 0.45 0) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
656 | (net 13 TRIG))
657 | (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0402.wrl
658 | (at (xyz 0 0 0))
659 | (scale (xyz 1 1 1))
660 | (rotate (xyz 0 0 0))
661 | )
662 | )
663 |
664 | (module Resistors_SMD:R_0402 (layer B.Cu) (tedit 58E0A804) (tstamp 5D7AF116)
665 | (at 62.23 32.89 90)
666 | (descr "Resistor SMD 0402, reflow soldering, Vishay (see dcrcw.pdf)")
667 | (tags "resistor 0402")
668 | (path /5D7B21B9)
669 | (attr smd)
670 | (fp_text reference R1 (at 0 1.35 90) (layer B.SilkS) hide
671 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
672 | )
673 | (fp_text value 120kΩ (at 0 -1.45 90) (layer B.Fab)
674 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
675 | )
676 | (fp_text user %R (at 0 1.35 90) (layer B.Fab)
677 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
678 | )
679 | (fp_line (start -0.5 -0.25) (end -0.5 0.25) (layer B.Fab) (width 0.1))
680 | (fp_line (start 0.5 -0.25) (end -0.5 -0.25) (layer B.Fab) (width 0.1))
681 | (fp_line (start 0.5 0.25) (end 0.5 -0.25) (layer B.Fab) (width 0.1))
682 | (fp_line (start -0.5 0.25) (end 0.5 0.25) (layer B.Fab) (width 0.1))
683 | (fp_line (start 0.25 0.53) (end -0.25 0.53) (layer B.SilkS) (width 0.12))
684 | (fp_line (start -0.25 -0.53) (end 0.25 -0.53) (layer B.SilkS) (width 0.12))
685 | (fp_line (start -0.8 0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
686 | (fp_line (start -0.8 0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
687 | (fp_line (start 0.8 -0.45) (end 0.8 0.45) (layer B.CrtYd) (width 0.05))
688 | (fp_line (start 0.8 -0.45) (end -0.8 -0.45) (layer B.CrtYd) (width 0.05))
689 | (pad 1 smd rect (at -0.45 0 90) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
690 | (net 1 VCC))
691 | (pad 2 smd rect (at 0.45 0 90) (size 0.4 0.6) (layers B.Cu B.Paste B.Mask)
692 | (net 13 TRIG))
693 | (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0402.wrl
694 | (at (xyz 0 0 0))
695 | (scale (xyz 1 1 1))
696 | (rotate (xyz 0 0 0))
697 | )
698 | )
699 |
700 | (module TO_SOT_Packages_SMD:SOT-23 (layer B.Cu) (tedit 58CE4E7E) (tstamp 5D7AF1DA)
701 | (at 59.95 34.57 270)
702 | (descr "SOT-23, Standard")
703 | (tags SOT-23)
704 | (path /5D7B104D)
705 | (attr smd)
706 | (fp_text reference Q2 (at 0 2.5 90) (layer B.SilkS) hide
707 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
708 | )
709 | (fp_text value AO3407 (at 0 -2.5 90) (layer B.Fab)
710 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
711 | )
712 | (fp_text user %R (at 0 0 180) (layer B.Fab)
713 | (effects (font (size 0.5 0.5) (thickness 0.075)) (justify mirror))
714 | )
715 | (fp_line (start -0.7 0.95) (end -0.7 -1.5) (layer B.Fab) (width 0.1))
716 | (fp_line (start -0.15 1.52) (end 0.7 1.52) (layer B.Fab) (width 0.1))
717 | (fp_line (start -0.7 0.95) (end -0.15 1.52) (layer B.Fab) (width 0.1))
718 | (fp_line (start 0.7 1.52) (end 0.7 -1.52) (layer B.Fab) (width 0.1))
719 | (fp_line (start -0.7 -1.52) (end 0.7 -1.52) (layer B.Fab) (width 0.1))
720 | (fp_line (start 0.76 -1.58) (end 0.76 -0.65) (layer B.SilkS) (width 0.12))
721 | (fp_line (start 0.76 1.58) (end 0.76 0.65) (layer B.SilkS) (width 0.12))
722 | (fp_line (start -1.7 1.75) (end 1.7 1.75) (layer B.CrtYd) (width 0.05))
723 | (fp_line (start 1.7 1.75) (end 1.7 -1.75) (layer B.CrtYd) (width 0.05))
724 | (fp_line (start 1.7 -1.75) (end -1.7 -1.75) (layer B.CrtYd) (width 0.05))
725 | (fp_line (start -1.7 -1.75) (end -1.7 1.75) (layer B.CrtYd) (width 0.05))
726 | (fp_line (start 0.76 1.58) (end -1.4 1.58) (layer B.SilkS) (width 0.12))
727 | (fp_line (start 0.76 -1.58) (end -0.7 -1.58) (layer B.SilkS) (width 0.12))
728 | (pad 1 smd rect (at -1 0.95 270) (size 0.9 0.8) (layers B.Cu B.Paste B.Mask)
729 | (net 13 TRIG))
730 | (pad 2 smd rect (at -1 -0.95 270) (size 0.9 0.8) (layers B.Cu B.Paste B.Mask)
731 | (net 1 VCC))
732 | (pad 3 smd rect (at 1 0 270) (size 0.9 0.8) (layers B.Cu B.Paste B.Mask)
733 | (net 5 VBUS))
734 | (model ${KISYS3DMOD}/TO_SOT_Packages_SMD.3dshapes/SOT-23.wrl
735 | (at (xyz 0 0 0))
736 | (scale (xyz 1 1 1))
737 | (rotate (xyz 0 0 0))
738 | )
739 | )
740 |
741 | (module TO_SOT_Packages_SMD:SOT-23 (layer B.Cu) (tedit 58CE4E7E) (tstamp 5D7AF246)
742 | (at 59.91 39 90)
743 | (descr "SOT-23, Standard")
744 | (tags SOT-23)
745 | (path /5D7B062D)
746 | (attr smd)
747 | (fp_text reference Q1 (at 0 2.5 90) (layer B.SilkS) hide
748 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
749 | )
750 | (fp_text value SI2302 (at 0 -2.5 90) (layer B.Fab)
751 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
752 | )
753 | (fp_text user %R (at 0 0 180) (layer B.Fab)
754 | (effects (font (size 0.5 0.5) (thickness 0.075)) (justify mirror))
755 | )
756 | (fp_line (start -0.7 0.95) (end -0.7 -1.5) (layer B.Fab) (width 0.1))
757 | (fp_line (start -0.15 1.52) (end 0.7 1.52) (layer B.Fab) (width 0.1))
758 | (fp_line (start -0.7 0.95) (end -0.15 1.52) (layer B.Fab) (width 0.1))
759 | (fp_line (start 0.7 1.52) (end 0.7 -1.52) (layer B.Fab) (width 0.1))
760 | (fp_line (start -0.7 -1.52) (end 0.7 -1.52) (layer B.Fab) (width 0.1))
761 | (fp_line (start 0.76 -1.58) (end 0.76 -0.65) (layer B.SilkS) (width 0.12))
762 | (fp_line (start 0.76 1.58) (end 0.76 0.65) (layer B.SilkS) (width 0.12))
763 | (fp_line (start -1.7 1.75) (end 1.7 1.75) (layer B.CrtYd) (width 0.05))
764 | (fp_line (start 1.7 1.75) (end 1.7 -1.75) (layer B.CrtYd) (width 0.05))
765 | (fp_line (start 1.7 -1.75) (end -1.7 -1.75) (layer B.CrtYd) (width 0.05))
766 | (fp_line (start -1.7 -1.75) (end -1.7 1.75) (layer B.CrtYd) (width 0.05))
767 | (fp_line (start 0.76 1.58) (end -1.4 1.58) (layer B.SilkS) (width 0.12))
768 | (fp_line (start 0.76 -1.58) (end -0.7 -1.58) (layer B.SilkS) (width 0.12))
769 | (pad 1 smd rect (at -1 0.95 90) (size 0.9 0.8) (layers B.Cu B.Paste B.Mask)
770 | (net 11 "Net-(Q1-Pad1)"))
771 | (pad 2 smd rect (at -1 -0.95 90) (size 0.9 0.8) (layers B.Cu B.Paste B.Mask)
772 | (net 2 GND))
773 | (pad 3 smd rect (at 1 0 90) (size 0.9 0.8) (layers B.Cu B.Paste B.Mask)
774 | (net 12 "Net-(Q1-Pad3)"))
775 | (model ${KISYS3DMOD}/TO_SOT_Packages_SMD.3dshapes/SOT-23.wrl
776 | (at (xyz 0 0 0))
777 | (scale (xyz 1 1 1))
778 | (rotate (xyz 0 0 0))
779 | )
780 | )
781 |
782 | (gr_text . (at 62.738 34.417) (layer B.SilkS) (tstamp 5E557374)
783 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
784 | )
785 | (gr_text . (at 62.738 35.687) (layer B.SilkS) (tstamp 5E557372)
786 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
787 | )
788 | (gr_line (start 55.29 30.61) (end 56.29 30.61) (layer Edge.Cuts) (width 0.05) (tstamp 5D7B163F))
789 | (gr_line (start 55.29 41.61) (end 55.29 30.61) (layer Edge.Cuts) (width 0.05) (tstamp 5D7B163C))
790 | (gr_line (start 56.29 41.61) (end 55.29 41.61) (layer Edge.Cuts) (width 0.05) (tstamp 5D7B1642))
791 | (gr_line (start 66.29 41.61) (end 56.29 41.61) (layer Edge.Cuts) (width 0.05) (tstamp 5D7B1636))
792 | (gr_line (start 66.29 30.61) (end 66.29 41.61) (layer Edge.Cuts) (width 0.05) (tstamp 5D7B1645))
793 | (gr_line (start 56.29 30.61) (end 66.29 30.61) (layer Edge.Cuts) (width 0.05) (tstamp 5D7B1639))
794 | (gr_text . (at 62.992 35.433) (layer F.SilkS) (tstamp 5D7B127C)
795 | (effects (font (size 1 1) (thickness 0.15)))
796 | )
797 | (gr_text . (at 58.8645 32.131) (layer F.SilkS) (tstamp 5D7B127A)
798 | (effects (font (size 1 1) (thickness 0.15)))
799 | )
800 | (gr_text . (at 62.5475 32.385) (layer F.SilkS) (tstamp 5D7B1212)
801 | (effects (font (size 1 1) (thickness 0.15)))
802 | )
803 | (gr_text . (at 60.5155 32.385) (layer F.SilkS) (tstamp 5D7B120D)
804 | (effects (font (size 1 1) (thickness 0.15)))
805 | )
806 | (gr_text - (at 58.42 31.877 180) (layer B.SilkS) (tstamp 5D7B11F2)
807 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
808 | )
809 | (gr_text - (at 63.1825 33.02) (layer B.SilkS) (tstamp 5D7B11F0)
810 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
811 | )
812 | (gr_text - (at 62.23 32.8295) (layer B.SilkS) (tstamp 5D7B11EE)
813 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
814 | )
815 | (gr_text . (at 58.9915 36.3855) (layer B.SilkS) (tstamp 5D7B11E9)
816 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
817 | )
818 | (gr_text . (at 60.706 36.3855) (layer B.SilkS) (tstamp 5D7B1163)
819 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
820 | )
821 | (gr_text - (at 62.5475 40.259 90) (layer B.SilkS) (tstamp 5D7B115F)
822 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
823 | )
824 | (gr_text . (at 62.611 38.862) (layer B.SilkS)
825 | (effects (font (size 1 1) (thickness 0.15)) (justify mirror))
826 | )
827 | (gr_text N (at 61.087 38.862) (layer B.SilkS) (tstamp 5D7B1130)
828 | (effects (font (size 0.8 0.8) (thickness 0.15)) (justify mirror))
829 | )
830 | (gr_text P (at 61.087 34.798) (layer B.SilkS)
831 | (effects (font (size 0.8 0.8) (thickness 0.15)) (justify mirror))
832 | )
833 | (gr_text "µPoff\n0.2.2" (at 58.42 37.592) (layer F.SilkS)
834 | (effects (font (size 1 1) (thickness 0.15)) (justify left))
835 | )
836 |
837 | (segment (start 63.45 32.25) (end 63.16 32.54) (width 0.25) (layer B.Cu) (net 1))
838 | (segment (start 64.6 32.25) (end 63.45 32.25) (width 0.25) (layer B.Cu) (net 1))
839 | (segment (start 62.36 33.34) (end 62.23 33.34) (width 0.25) (layer B.Cu) (net 1))
840 | (segment (start 63.16 32.54) (end 62.36 33.34) (width 0.25) (layer B.Cu) (net 1))
841 | (segment (start 61.13 33.34) (end 60.9 33.57) (width 0.25) (layer B.Cu) (net 1))
842 | (segment (start 62.23 33.34) (end 61.13 33.34) (width 0.25) (layer B.Cu) (net 1))
843 | (segment (start 62.805 40) (end 62.805 39.525) (width 0.153) (layer F.Cu) (net 1))
844 | (via (at 63.685755 38.433656) (size 0.8) (drill 0.4) (layers F.Cu B.Cu) (net 1))
845 | (segment (start 63.685755 38.644245) (end 63.685755 38.433656) (width 0.153) (layer F.Cu) (net 1))
846 | (segment (start 62.805 39.525) (end 63.685755 38.644245) (width 0.153) (layer F.Cu) (net 1))
847 | (segment (start 63.16 32.59) (end 63.16 32.54) (width 0.153) (layer B.Cu) (net 1))
848 | (segment (start 62.288 34.798) (end 62.288 36.068) (width 0.153) (layer B.Cu) (net 1))
849 | (segment (start 63.436654 38.184555) (end 63.685755 38.433656) (width 0.153) (layer B.Cu) (net 1))
850 | (segment (start 63.436654 37.730432) (end 63.436654 38.184555) (width 0.153) (layer B.Cu) (net 1))
851 | (segment (start 62.288 36.068) (end 62.288 36.581778) (width 0.153) (layer B.Cu) (net 1))
852 | (segment (start 62.288 36.581778) (end 63.436654 37.730432) (width 0.153) (layer B.Cu) (net 1))
853 | (segment (start 62.288 33.398) (end 62.23 33.34) (width 0.153) (layer B.Cu) (net 1))
854 | (segment (start 62.288 34.798) (end 62.288 33.398) (width 0.153) (layer B.Cu) (net 1))
855 | (segment (start 61.05 33.28218) (end 61.05 32.8) (width 0.25) (layer F.Cu) (net 2))
856 | (segment (start 61.16882 33.401) (end 61.05 33.28218) (width 0.25) (layer F.Cu) (net 2))
857 | (segment (start 62 33.425) (end 62.179999 33.604999) (width 0.25) (layer F.Cu) (net 2))
858 | (segment (start 62 32.8) (end 62 33.425) (width 0.25) (layer F.Cu) (net 2))
859 | (segment (start 62.179999 33.604999) (end 62.179999 33.479999) (width 0.25) (layer F.Cu) (net 2))
860 | (segment (start 62.179999 33.479999) (end 62.101 33.401) (width 0.25) (layer F.Cu) (net 2))
861 | (segment (start 62.101 33.401) (end 61.16882 33.401) (width 0.25) (layer F.Cu) (net 2))
862 | (segment (start 59.805 31.23) (end 59.817 31.242) (width 0.153) (layer B.Cu) (net 2))
863 | (segment (start 59.8 31.259) (end 59.651271 31.259) (width 0.153) (layer F.Cu) (net 2))
864 | (segment (start 59.817 31.242) (end 59.8 31.259) (width 0.153) (layer F.Cu) (net 2))
865 | (segment (start 58.42 31.23) (end 59.014 31.23) (width 0.153) (layer B.Cu) (net 2))
866 | (segment (start 59.014 31.23) (end 59.043 31.259) (width 0.153) (layer B.Cu) (net 2))
867 | (segment (start 58.314999 31.124999) (end 58.42 31.23) (width 0.25) (layer B.Cu) (net 2))
868 | (segment (start 57.344999 31.124999) (end 58.314999 31.124999) (width 0.25) (layer B.Cu) (net 2))
869 | (segment (start 57.18001 30.96001) (end 57.344999 31.124999) (width 0.25) (layer B.Cu) (net 2))
870 | (segment (start 56.7 30.96001) (end 57.18001 30.96001) (width 0.25) (layer B.Cu) (net 2))
871 | (segment (start 58.37 31.23) (end 58.10001 30.96001) (width 0.25) (layer B.Cu) (net 2))
872 | (segment (start 58.42 31.23) (end 58.37 31.23) (width 0.25) (layer B.Cu) (net 2))
873 | (segment (start 58.10001 30.96001) (end 57.56 30.96001) (width 0.25) (layer B.Cu) (net 2))
874 | (segment (start 63.1 32.8) (end 63.1 33.293) (width 0.153) (layer F.Cu) (net 3))
875 | (segment (start 62.805 33.588) (end 62.805 34.6) (width 0.153) (layer F.Cu) (net 3))
876 | (segment (start 63.1 33.293) (end 62.805 33.588) (width 0.153) (layer F.Cu) (net 3))
877 | (segment (start 63.1 31.5) (end 62.95 31.35) (width 0.153) (layer F.Cu) (net 3))
878 | (segment (start 63.1 31.364) (end 63.114 31.35) (width 0.153) (layer F.Cu) (net 3))
879 | (segment (start 63.1 32.8) (end 63.1 31.364) (width 0.153) (layer F.Cu) (net 3))
880 | (segment (start 61.535 34.335) (end 60 32.8) (width 0.153) (layer F.Cu) (net 4))
881 | (segment (start 61.535 34.6) (end 61.535 34.335) (width 0.153) (layer F.Cu) (net 4))
882 | (segment (start 61.05 31.75) (end 61.05 31.35) (width 0.153) (layer F.Cu) (net 4))
883 | (segment (start 59.95 32.8) (end 60 32.8) (width 0.153) (layer F.Cu) (net 4))
884 | (segment (start 60.867918 31.696082) (end 61.214 31.35) (width 0.153) (layer F.Cu) (net 4))
885 | (segment (start 60.867918 32.015528) (end 60.867918 31.696082) (width 0.153) (layer F.Cu) (net 4))
886 | (segment (start 59.95 32.8) (end 60.083446 32.8) (width 0.153) (layer F.Cu) (net 4))
887 | (segment (start 60.083446 32.8) (end 60.867918 32.015528) (width 0.153) (layer F.Cu) (net 4))
888 | (segment (start 59.95 35.57) (end 59.3 35.57) (width 0.25) (layer B.Cu) (net 5))
889 | (segment (start 59.3 35.57) (end 58.274999 34.544999) (width 0.25) (layer B.Cu) (net 5))
890 | (segment (start 58.274999 32.475001) (end 58.42 32.33) (width 0.25) (layer B.Cu) (net 5))
891 | (segment (start 58.274999 32.657001) (end 58.274999 32.475001) (width 0.25) (layer B.Cu) (net 5))
892 | (segment (start 58.274999 32.657001) (end 58.274999 32.515001) (width 0.25) (layer B.Cu) (net 5))
893 | (segment (start 58.274999 34.544999) (end 58.274999 32.657001) (width 0.25) (layer B.Cu) (net 5))
894 | (segment (start 57.06 32.33) (end 56.98 32.25) (width 0.25) (layer B.Cu) (net 5))
895 | (segment (start 58.42 32.33) (end 57.06 32.33) (width 0.25) (layer B.Cu) (net 5))
896 | (segment (start 63.96 39.23) (end 64.6 39.87) (width 0.153) (layer B.Cu) (net 6))
897 | (segment (start 63.06 39.23) (end 63.96 39.23) (width 0.153) (layer B.Cu) (net 6))
898 | (segment (start 58.55 36.36) (end 56.98 34.79) (width 0.153) (layer B.Cu) (net 7))
899 | (segment (start 58.55 36.78) (end 58.55 36.36) (width 0.153) (layer B.Cu) (net 7))
900 | (segment (start 62.46 37.33) (end 63.46863 37.33) (width 0.153) (layer F.Cu) (net 8))
901 | (segment (start 60.265 39.525) (end 62.46 37.33) (width 0.153) (layer F.Cu) (net 8))
902 | (segment (start 63.46863 37.33) (end 64.6 37.33) (width 0.153) (layer F.Cu) (net 8))
903 | (segment (start 60.265 40) (end 60.265 39.525) (width 0.153) (layer F.Cu) (net 8))
904 | (segment (start 63.997 37.33) (end 64.6 37.33) (width 0.153) (layer B.Cu) (net 8))
905 | (segment (start 63.188 36.521) (end 63.997 37.33) (width 0.153) (layer B.Cu) (net 8))
906 | (segment (start 63.188 36.068) (end 63.188 36.521) (width 0.153) (layer B.Cu) (net 8))
907 | (segment (start 61.535 40) (end 61.535 39.325) (width 0.25) (layer F.Cu) (net 9))
908 | (via (at 62.760153 38.055153) (size 0.8) (drill 0.4) (layers F.Cu B.Cu) (net 9))
909 | (segment (start 62.234077 38.055153) (end 62.760153 38.055153) (width 0.153) (layer F.Cu) (net 9))
910 | (segment (start 61.535 40) (end 61.535 38.75423) (width 0.153) (layer F.Cu) (net 9))
911 | (segment (start 61.535 38.75423) (end 62.234077 38.055153) (width 0.153) (layer F.Cu) (net 9))
912 | (segment (start 56.98 37.33) (end 58.8295 39.1795) (width 0.153) (layer B.Cu) (net 9))
913 | (segment (start 62.194468 38.055153) (end 62.760153 38.055153) (width 0.153) (layer B.Cu) (net 9))
914 | (segment (start 61.070121 39.1795) (end 62.194468 38.055153) (width 0.153) (layer B.Cu) (net 9))
915 | (segment (start 58.8295 39.1795) (end 61.070121 39.1795) (width 0.153) (layer B.Cu) (net 9))
916 | (segment (start 59.571501 38.948499) (end 60.342271 38.948499) (width 0.153) (layer F.Cu) (net 10))
917 | (segment (start 58.995 39.525) (end 59.571501 38.948499) (width 0.153) (layer F.Cu) (net 10))
918 | (segment (start 58.995 40) (end 58.995 39.525) (width 0.153) (layer F.Cu) (net 10))
919 | (segment (start 60.342271 38.948499) (end 63.700771 35.589999) (width 0.153) (layer F.Cu) (net 10))
920 | (segment (start 63.800001 35.589999) (end 64.6 34.79) (width 0.153) (layer F.Cu) (net 10))
921 | (segment (start 63.700771 35.589999) (end 63.800001 35.589999) (width 0.153) (layer F.Cu) (net 10))
922 | (segment (start 64.592 34.798) (end 64.6 34.79) (width 0.153) (layer B.Cu) (net 10))
923 | (segment (start 63.188 34.798) (end 64.592 34.798) (width 0.153) (layer B.Cu) (net 10))
924 | (segment (start 61.95 40) (end 62.16 40.21) (width 0.153) (layer B.Cu) (net 11))
925 | (segment (start 60.86 40) (end 61.95 40) (width 0.153) (layer B.Cu) (net 11))
926 | (segment (start 62.16 40.21) (end 62.16 39.23) (width 0.153) (layer B.Cu) (net 11))
927 | (segment (start 61.14 37.233) (end 61.14 37.233) (width 0.153) (layer B.Cu) (net 12))
928 | (segment (start 61.14 37.323) (end 61.14 37.233) (width 0.153) (layer B.Cu) (net 12))
929 | (segment (start 60.463 38) (end 61.14 37.323) (width 0.153) (layer B.Cu) (net 12))
930 | (segment (start 59.91 38) (end 60.463 38) (width 0.153) (layer B.Cu) (net 12))
931 | (segment (start 61.14 37.233) (end 61.14 36.78) (width 0.153) (layer B.Cu) (net 12) (tstamp 5D7B0E07))
932 | (segment (start 60.24 36.78) (end 59.45 36.78) (width 0.153) (layer B.Cu) (net 13))
933 | (segment (start 60.59 32.44) (end 62.23 32.44) (width 0.153) (layer B.Cu) (net 13))
934 | (segment (start 60.08 32.44) (end 60.59 32.44) (width 0.153) (layer B.Cu) (net 13))
935 | (segment (start 59 33.57) (end 59 33.52) (width 0.153) (layer B.Cu) (net 13))
936 | (segment (start 60.626501 34.643501) (end 59.553 33.57) (width 0.153) (layer B.Cu) (net 13))
937 | (segment (start 60.626501 36.293499) (end 60.626501 34.643501) (width 0.153) (layer B.Cu) (net 13))
938 | (segment (start 60.24 36.68) (end 60.626501 36.293499) (width 0.153) (layer B.Cu) (net 13))
939 | (segment (start 59.553 33.57) (end 59 33.57) (width 0.153) (layer B.Cu) (net 13))
940 | (segment (start 60.24 36.78) (end 60.24 36.68) (width 0.153) (layer B.Cu) (net 13))
941 | (segment (start 59.553 33.57) (end 59.553 33.567) (width 0.153) (layer B.Cu) (net 13))
942 | (segment (start 59.815 33.305) (end 59.815 32.705) (width 0.153) (layer B.Cu) (net 13))
943 | (segment (start 59.553 33.567) (end 59.815 33.305) (width 0.153) (layer B.Cu) (net 13))
944 | (segment (start 59.815 32.705) (end 60.08 32.44) (width 0.153) (layer B.Cu) (net 13))
945 | (segment (start 58.88 32.07) (end 59.960224 32.07) (width 0.153) (layer F.Cu) (net 13))
946 | (via (at 60.028365 31.898365) (size 0.8) (drill 0.4) (layers F.Cu B.Cu) (net 13))
947 | (segment (start 58.88 32.07) (end 59.85673 32.07) (width 0.153) (layer F.Cu) (net 13))
948 | (segment (start 59.85673 32.07) (end 60.028365 31.898365) (width 0.153) (layer F.Cu) (net 13))
949 | (segment (start 60.08 31.95) (end 60.08 32.44) (width 0.153) (layer B.Cu) (net 13))
950 | (segment (start 60.028365 31.898365) (end 60.08 31.95) (width 0.153) (layer B.Cu) (net 13))
951 | (segment (start 60.265 34.25141) (end 59.4 33.38641) (width 0.25) (layer F.Cu) (net 14))
952 | (segment (start 60.265 34.6) (end 60.265 34.25141) (width 0.25) (layer F.Cu) (net 14))
953 | (segment (start 59.29641 33.38641) (end 58.88 32.97) (width 0.25) (layer F.Cu) (net 14))
954 | (segment (start 59.4 33.38641) (end 59.29641 33.38641) (width 0.25) (layer F.Cu) (net 14))
955 |
956 | (zone (net 2) (net_name GND) (layer F.Cu) (tstamp 0) (hatch edge 0.508)
957 | (connect_pads (clearance 0.153))
958 | (min_thickness 0.153)
959 | (fill yes (arc_segments 32) (thermal_gap 0.508) (thermal_bridge_width 0.508))
960 | (polygon
961 | (pts
962 | (xy 66.54 42.425) (xy 55 42.275) (xy 55 29.745) (xy 66.54 29.895)
963 | )
964 | )
965 | (filled_polygon
966 | (pts
967 | (xy 60.525875 30.982189) (xy 60.467341 31.123503) (xy 60.4375 31.273521) (xy 60.4375 31.358121) (xy 60.348808 31.298859)
968 | (xy 60.225693 31.247863) (xy 60.094994 31.221865) (xy 59.961736 31.221865) (xy 59.831037 31.247863) (xy 59.707922 31.298859)
969 | (xy 59.597122 31.372893) (xy 59.502893 31.467122) (xy 59.428859 31.577922) (xy 59.384962 31.683899) (xy 59.37646 31.67354)
970 | (xy 59.334358 31.638987) (xy 59.286324 31.613312) (xy 59.234203 31.597502) (xy 59.18 31.592163) (xy 58.58 31.592163)
971 | (xy 58.525797 31.597502) (xy 58.473676 31.613312) (xy 58.425642 31.638987) (xy 58.38354 31.67354) (xy 58.348987 31.715642)
972 | (xy 58.323312 31.763676) (xy 58.307502 31.815797) (xy 58.302163 31.87) (xy 58.302163 32.27) (xy 58.307502 32.324203)
973 | (xy 58.323312 32.376324) (xy 58.348987 32.424358) (xy 58.38354 32.46646) (xy 58.425642 32.501013) (xy 58.461164 32.52)
974 | (xy 58.425642 32.538987) (xy 58.38354 32.57354) (xy 58.348987 32.615642) (xy 58.323312 32.663676) (xy 58.307502 32.715797)
975 | (xy 58.302163 32.77) (xy 58.302163 33.17) (xy 58.307502 33.224203) (xy 58.323312 33.276324) (xy 58.348987 33.324358)
976 | (xy 58.362575 33.340915) (xy 58.275125 33.414318) (xy 58.203073 33.504123) (xy 58.149925 33.606259) (xy 58.117724 33.7168)
977 | (xy 58.107708 33.8315) (xy 58.1105 34.276375) (xy 58.256625 34.4225) (xy 58.8175 34.4225) (xy 58.8175 34.4025)
978 | (xy 59.1725 34.4025) (xy 59.1725 34.4225) (xy 59.1925 34.4225) (xy 59.1925 34.7775) (xy 59.1725 34.7775)
979 | (xy 59.1725 35.813375) (xy 59.318625 35.9595) (xy 59.41595 35.949739) (xy 59.525752 35.9151) (xy 59.626687 35.859704)
980 | (xy 59.714875 35.785682) (xy 59.786927 35.695877) (xy 59.828674 35.615651) (xy 59.858676 35.631688) (xy 59.910797 35.647498)
981 | (xy 59.965 35.652837) (xy 60.565 35.652837) (xy 60.619203 35.647498) (xy 60.671324 35.631688) (xy 60.719358 35.606013)
982 | (xy 60.76146 35.57146) (xy 60.796013 35.529358) (xy 60.821688 35.481324) (xy 60.837498 35.429203) (xy 60.842837 35.375)
983 | (xy 60.842837 34.142054) (xy 60.957163 34.25638) (xy 60.957163 35.375) (xy 60.962502 35.429203) (xy 60.978312 35.481324)
984 | (xy 61.003987 35.529358) (xy 61.03854 35.57146) (xy 61.080642 35.606013) (xy 61.128676 35.631688) (xy 61.180797 35.647498)
985 | (xy 61.235 35.652837) (xy 61.835 35.652837) (xy 61.889203 35.647498) (xy 61.941324 35.631688) (xy 61.989358 35.606013)
986 | (xy 62.03146 35.57146) (xy 62.066013 35.529358) (xy 62.091688 35.481324) (xy 62.107498 35.429203) (xy 62.112837 35.375)
987 | (xy 62.112837 33.825) (xy 62.107498 33.770797) (xy 62.091688 33.718676) (xy 62.066013 33.670642) (xy 62.036351 33.6345)
988 | (xy 62.177502 33.6345) (xy 62.177502 33.488377) (xy 62.313552 33.624427) (xy 62.30854 33.62854) (xy 62.273987 33.670642)
989 | (xy 62.248312 33.718676) (xy 62.232502 33.770797) (xy 62.227163 33.825) (xy 62.227163 35.375) (xy 62.232502 35.429203)
990 | (xy 62.248312 35.481324) (xy 62.273987 35.529358) (xy 62.30854 35.57146) (xy 62.350642 35.606013) (xy 62.398676 35.631688)
991 | (xy 62.450797 35.647498) (xy 62.505 35.652837) (xy 63.105 35.652837) (xy 63.1424 35.649153) (xy 60.196055 38.595499)
992 | (xy 59.588834 38.595499) (xy 59.571501 38.593792) (xy 59.554168 38.595499) (xy 59.55416 38.595499) (xy 59.502301 38.600607)
993 | (xy 59.43576 38.620792) (xy 59.374436 38.65357) (xy 59.320685 38.697683) (xy 59.309631 38.711152) (xy 59.07362 38.947163)
994 | (xy 58.695 38.947163) (xy 58.640797 38.952502) (xy 58.588676 38.968312) (xy 58.540642 38.993987) (xy 58.49854 39.02854)
995 | (xy 58.463987 39.070642) (xy 58.438312 39.118676) (xy 58.422502 39.170797) (xy 58.417163 39.225) (xy 58.417163 40.775)
996 | (xy 58.422502 40.829203) (xy 58.438312 40.881324) (xy 58.463987 40.929358) (xy 58.49854 40.97146) (xy 58.540642 41.006013)
997 | (xy 58.588676 41.031688) (xy 58.640797 41.047498) (xy 58.695 41.052837) (xy 59.295 41.052837) (xy 59.349203 41.047498)
998 | (xy 59.401324 41.031688) (xy 59.449358 41.006013) (xy 59.49146 40.97146) (xy 59.526013 40.929358) (xy 59.551688 40.881324)
999 | (xy 59.567498 40.829203) (xy 59.572837 40.775) (xy 59.572837 39.44638) (xy 59.687163 39.332054) (xy 59.687163 40.775)
1000 | (xy 59.692502 40.829203) (xy 59.708312 40.881324) (xy 59.733987 40.929358) (xy 59.76854 40.97146) (xy 59.810642 41.006013)
1001 | (xy 59.858676 41.031688) (xy 59.910797 41.047498) (xy 59.965 41.052837) (xy 60.565 41.052837) (xy 60.619203 41.047498)
1002 | (xy 60.671324 41.031688) (xy 60.719358 41.006013) (xy 60.76146 40.97146) (xy 60.796013 40.929358) (xy 60.821688 40.881324)
1003 | (xy 60.837498 40.829203) (xy 60.842837 40.775) (xy 60.842837 39.446379) (xy 60.957163 39.332053) (xy 60.957163 40.775)
1004 | (xy 60.962502 40.829203) (xy 60.978312 40.881324) (xy 61.003987 40.929358) (xy 61.03854 40.97146) (xy 61.080642 41.006013)
1005 | (xy 61.128676 41.031688) (xy 61.180797 41.047498) (xy 61.235 41.052837) (xy 61.835 41.052837) (xy 61.889203 41.047498)
1006 | (xy 61.941324 41.031688) (xy 61.989358 41.006013) (xy 62.03146 40.97146) (xy 62.066013 40.929358) (xy 62.091688 40.881324)
1007 | (xy 62.107498 40.829203) (xy 62.112837 40.775) (xy 62.112837 39.225) (xy 62.107498 39.170797) (xy 62.091688 39.118676)
1008 | (xy 62.066013 39.070642) (xy 62.03146 39.02854) (xy 61.989358 38.993987) (xy 61.941324 38.968312) (xy 61.889203 38.952502)
1009 | (xy 61.888 38.952384) (xy 61.888 38.900446) (xy 62.268366 38.520081) (xy 62.32891 38.580625) (xy 62.43971 38.654659)
1010 | (xy 62.562825 38.705655) (xy 62.693524 38.731653) (xy 62.826782 38.731653) (xy 62.957481 38.705655) (xy 63.050264 38.667223)
1011 | (xy 63.083448 38.747336) (xy 62.883621 38.947163) (xy 62.505 38.947163) (xy 62.450797 38.952502) (xy 62.398676 38.968312)
1012 | (xy 62.350642 38.993987) (xy 62.30854 39.02854) (xy 62.273987 39.070642) (xy 62.248312 39.118676) (xy 62.232502 39.170797)
1013 | (xy 62.227163 39.225) (xy 62.227163 40.775) (xy 62.232502 40.829203) (xy 62.248312 40.881324) (xy 62.273987 40.929358)
1014 | (xy 62.30854 40.97146) (xy 62.350642 41.006013) (xy 62.398676 41.031688) (xy 62.450797 41.047498) (xy 62.505 41.052837)
1015 | (xy 63.105 41.052837) (xy 63.159203 41.047498) (xy 63.211324 41.031688) (xy 63.259358 41.006013) (xy 63.30146 40.97146)
1016 | (xy 63.336013 40.929358) (xy 63.361688 40.881324) (xy 63.377498 40.829203) (xy 63.382837 40.775) (xy 63.382837 39.446379)
1017 | (xy 63.719061 39.110156) (xy 63.752384 39.110156) (xy 63.858564 39.089035) (xy 63.763828 39.183771) (xy 63.646018 39.360086)
1018 | (xy 63.564869 39.555996) (xy 63.5235 39.763974) (xy 63.5235 39.976026) (xy 63.564869 40.184004) (xy 63.646018 40.379914)
1019 | (xy 63.763828 40.556229) (xy 63.913771 40.706172) (xy 64.090086 40.823982) (xy 64.285996 40.905131) (xy 64.493974 40.9465)
1020 | (xy 64.706026 40.9465) (xy 64.914004 40.905131) (xy 65.109914 40.823982) (xy 65.286229 40.706172) (xy 65.436172 40.556229)
1021 | (xy 65.553982 40.379914) (xy 65.635131 40.184004) (xy 65.6765 39.976026) (xy 65.6765 39.763974) (xy 65.635131 39.555996)
1022 | (xy 65.553982 39.360086) (xy 65.436172 39.183771) (xy 65.286229 39.033828) (xy 65.109914 38.916018) (xy 64.914004 38.834869)
1023 | (xy 64.706026 38.7935) (xy 64.493974 38.7935) (xy 64.285996 38.834869) (xy 64.209621 38.866505) (xy 64.211227 38.864899)
1024 | (xy 64.285261 38.754099) (xy 64.336257 38.630984) (xy 64.362255 38.500285) (xy 64.362255 38.3803) (xy 64.493974 38.4065)
1025 | (xy 64.706026 38.4065) (xy 64.914004 38.365131) (xy 65.109914 38.283982) (xy 65.286229 38.166172) (xy 65.436172 38.016229)
1026 | (xy 65.553982 37.839914) (xy 65.635131 37.644004) (xy 65.6765 37.436026) (xy 65.6765 37.223974) (xy 65.635131 37.015996)
1027 | (xy 65.553982 36.820086) (xy 65.436172 36.643771) (xy 65.286229 36.493828) (xy 65.109914 36.376018) (xy 64.914004 36.294869)
1028 | (xy 64.706026 36.2535) (xy 64.493974 36.2535) (xy 64.285996 36.294869) (xy 64.090086 36.376018) (xy 63.913771 36.493828)
1029 | (xy 63.763828 36.643771) (xy 63.646018 36.820086) (xy 63.581022 36.977) (xy 62.812987 36.977) (xy 63.850227 35.93976)
1030 | (xy 63.869201 35.937891) (xy 63.935742 35.917706) (xy 63.997066 35.884928) (xy 64.050817 35.840815) (xy 64.061875 35.827341)
1031 | (xy 64.129082 35.760135) (xy 64.285996 35.825131) (xy 64.493974 35.8665) (xy 64.706026 35.8665) (xy 64.914004 35.825131)
1032 | (xy 65.109914 35.743982) (xy 65.286229 35.626172) (xy 65.436172 35.476229) (xy 65.553982 35.299914) (xy 65.635131 35.104004)
1033 | (xy 65.6765 34.896026) (xy 65.6765 34.683974) (xy 65.635131 34.475996) (xy 65.553982 34.280086) (xy 65.436172 34.103771)
1034 | (xy 65.286229 33.953828) (xy 65.109914 33.836018) (xy 64.914004 33.754869) (xy 64.706026 33.7135) (xy 64.493974 33.7135)
1035 | (xy 64.285996 33.754869) (xy 64.090086 33.836018) (xy 63.913771 33.953828) (xy 63.763828 34.103771) (xy 63.646018 34.280086)
1036 | (xy 63.564869 34.475996) (xy 63.5235 34.683974) (xy 63.5235 34.896026) (xy 63.564869 35.104004) (xy 63.623134 35.244666)
1037 | (xy 63.56503 35.262292) (xy 63.503706 35.29507) (xy 63.449955 35.339183) (xy 63.438902 35.352651) (xy 63.379153 35.4124)
1038 | (xy 63.382837 35.375) (xy 63.382837 33.825) (xy 63.377498 33.770797) (xy 63.361688 33.718676) (xy 63.336013 33.670642)
1039 | (xy 63.30146 33.62854) (xy 63.280708 33.611509) (xy 63.337347 33.55487) (xy 63.350816 33.543816) (xy 63.394929 33.490065)
1040 | (xy 63.427707 33.428741) (xy 63.439175 33.390936) (xy 63.447892 33.362201) (xy 63.450356 33.337184) (xy 63.451779 33.322737)
1041 | (xy 63.454203 33.322498) (xy 63.506324 33.306688) (xy 63.554358 33.281013) (xy 63.59646 33.24646) (xy 63.631013 33.204358)
1042 | (xy 63.656688 33.156324) (xy 63.672498 33.104203) (xy 63.677837 33.05) (xy 63.677837 32.807534) (xy 63.763828 32.936229)
1043 | (xy 63.913771 33.086172) (xy 64.090086 33.203982) (xy 64.285996 33.285131) (xy 64.493974 33.3265) (xy 64.706026 33.3265)
1044 | (xy 64.914004 33.285131) (xy 65.109914 33.203982) (xy 65.286229 33.086172) (xy 65.436172 32.936229) (xy 65.553982 32.759914)
1045 | (xy 65.635131 32.564004) (xy 65.6765 32.356026) (xy 65.6765 32.143974) (xy 65.635131 31.935996) (xy 65.553982 31.740086)
1046 | (xy 65.436172 31.563771) (xy 65.286229 31.413828) (xy 65.109914 31.296018) (xy 64.914004 31.214869) (xy 64.706026 31.1735)
1047 | (xy 64.493974 31.1735) (xy 64.285996 31.214869) (xy 64.090086 31.296018) (xy 63.913771 31.413828) (xy 63.887863 31.439736)
1048 | (xy 63.8905 31.426479) (xy 63.8905 31.273521) (xy 63.860659 31.123503) (xy 63.802125 30.982189) (xy 63.723488 30.8645)
1049 | (xy 66.0355 30.8645) (xy 66.035501 41.3555) (xy 55.5445 41.3555) (xy 55.5445 40.260111) (xy 55.651597 40.260111)
1050 | (xy 55.658733 40.28366) (xy 55.764822 40.533478) (xy 55.917609 40.757799) (xy 56.111223 40.948002) (xy 56.338224 41.096778)
1051 | (xy 56.589888 41.19841) (xy 56.8025 41.096957) (xy 56.8025 40.0475) (xy 57.1575 40.0475) (xy 57.1575 41.096957)
1052 | (xy 57.370112 41.19841) (xy 57.621776 41.096778) (xy 57.848777 40.948002) (xy 58.042391 40.757799) (xy 58.195178 40.533478)
1053 | (xy 58.301267 40.28366) (xy 58.308403 40.260111) (xy 58.205588 40.0475) (xy 57.1575 40.0475) (xy 56.8025 40.0475)
1054 | (xy 55.754412 40.0475) (xy 55.651597 40.260111) (xy 55.5445 40.260111) (xy 55.5445 39.479889) (xy 55.651597 39.479889)
1055 | (xy 55.754412 39.6925) (xy 56.8025 39.6925) (xy 56.8025 38.643043) (xy 57.1575 38.643043) (xy 57.1575 39.6925)
1056 | (xy 58.205588 39.6925) (xy 58.308403 39.479889) (xy 58.301267 39.45634) (xy 58.195178 39.206522) (xy 58.042391 38.982201)
1057 | (xy 57.848777 38.791998) (xy 57.621776 38.643222) (xy 57.370112 38.54159) (xy 57.1575 38.643043) (xy 56.8025 38.643043)
1058 | (xy 56.589888 38.54159) (xy 56.338224 38.643222) (xy 56.111223 38.791998) (xy 55.917609 38.982201) (xy 55.764822 39.206522)
1059 | (xy 55.658733 39.45634) (xy 55.651597 39.479889) (xy 55.5445 39.479889) (xy 55.5445 37.223974) (xy 55.9035 37.223974)
1060 | (xy 55.9035 37.436026) (xy 55.944869 37.644004) (xy 56.026018 37.839914) (xy 56.143828 38.016229) (xy 56.293771 38.166172)
1061 | (xy 56.470086 38.283982) (xy 56.665996 38.365131) (xy 56.873974 38.4065) (xy 57.086026 38.4065) (xy 57.294004 38.365131)
1062 | (xy 57.489914 38.283982) (xy 57.666229 38.166172) (xy 57.816172 38.016229) (xy 57.933982 37.839914) (xy 58.015131 37.644004)
1063 | (xy 58.0565 37.436026) (xy 58.0565 37.223974) (xy 58.015131 37.015996) (xy 57.933982 36.820086) (xy 57.816172 36.643771)
1064 | (xy 57.666229 36.493828) (xy 57.489914 36.376018) (xy 57.294004 36.294869) (xy 57.086026 36.2535) (xy 56.873974 36.2535)
1065 | (xy 56.665996 36.294869) (xy 56.470086 36.376018) (xy 56.293771 36.493828) (xy 56.143828 36.643771) (xy 56.026018 36.820086)
1066 | (xy 55.944869 37.015996) (xy 55.9035 37.223974) (xy 55.5445 37.223974) (xy 55.5445 34.683974) (xy 55.9035 34.683974)
1067 | (xy 55.9035 34.896026) (xy 55.944869 35.104004) (xy 56.026018 35.299914) (xy 56.143828 35.476229) (xy 56.293771 35.626172)
1068 | (xy 56.470086 35.743982) (xy 56.665996 35.825131) (xy 56.873974 35.8665) (xy 57.086026 35.8665) (xy 57.294004 35.825131)
1069 | (xy 57.489914 35.743982) (xy 57.666229 35.626172) (xy 57.816172 35.476229) (xy 57.888154 35.3685) (xy 58.107708 35.3685)
1070 | (xy 58.117724 35.4832) (xy 58.149925 35.593741) (xy 58.203073 35.695877) (xy 58.275125 35.785682) (xy 58.363313 35.859704)
1071 | (xy 58.464248 35.9151) (xy 58.57405 35.949739) (xy 58.671375 35.9595) (xy 58.8175 35.813375) (xy 58.8175 34.7775)
1072 | (xy 58.256625 34.7775) (xy 58.1105 34.923625) (xy 58.107708 35.3685) (xy 57.888154 35.3685) (xy 57.933982 35.299914)
1073 | (xy 58.015131 35.104004) (xy 58.0565 34.896026) (xy 58.0565 34.683974) (xy 58.015131 34.475996) (xy 57.933982 34.280086)
1074 | (xy 57.816172 34.103771) (xy 57.666229 33.953828) (xy 57.489914 33.836018) (xy 57.294004 33.754869) (xy 57.086026 33.7135)
1075 | (xy 56.873974 33.7135) (xy 56.665996 33.754869) (xy 56.470086 33.836018) (xy 56.293771 33.953828) (xy 56.143828 34.103771)
1076 | (xy 56.026018 34.280086) (xy 55.944869 34.475996) (xy 55.9035 34.683974) (xy 55.5445 34.683974) (xy 55.5445 31.45)
1077 | (xy 55.902163 31.45) (xy 55.902163 33.05) (xy 55.907502 33.104203) (xy 55.923312 33.156324) (xy 55.948987 33.204358)
1078 | (xy 55.98354 33.24646) (xy 56.025642 33.281013) (xy 56.073676 33.306688) (xy 56.125797 33.322498) (xy 56.18 33.327837)
1079 | (xy 57.78 33.327837) (xy 57.834203 33.322498) (xy 57.886324 33.306688) (xy 57.934358 33.281013) (xy 57.97646 33.24646)
1080 | (xy 58.011013 33.204358) (xy 58.036688 33.156324) (xy 58.052498 33.104203) (xy 58.057837 33.05) (xy 58.057837 31.45)
1081 | (xy 58.052498 31.395797) (xy 58.036688 31.343676) (xy 58.011013 31.295642) (xy 57.97646 31.25354) (xy 57.934358 31.218987)
1082 | (xy 57.886324 31.193312) (xy 57.834203 31.177502) (xy 57.78 31.172163) (xy 56.18 31.172163) (xy 56.125797 31.177502)
1083 | (xy 56.073676 31.193312) (xy 56.025642 31.218987) (xy 55.98354 31.25354) (xy 55.948987 31.295642) (xy 55.923312 31.343676)
1084 | (xy 55.907502 31.395797) (xy 55.902163 31.45) (xy 55.5445 31.45) (xy 55.5445 30.8645) (xy 60.604512 30.8645)
1085 | )
1086 | )
1087 | (filled_polygon
1088 | (pts
1089 | (xy 62.425875 30.982189) (xy 62.367341 31.123503) (xy 62.3375 31.273521) (xy 62.3375 31.426479) (xy 62.367341 31.576497)
1090 | (xy 62.425875 31.717811) (xy 62.510853 31.84499) (xy 62.61901 31.953147) (xy 62.746189 32.038125) (xy 62.747001 32.038461)
1091 | (xy 62.747 32.172493) (xy 62.690218 32.111042) (xy 62.597084 32.043349) (xy 62.492533 31.995126) (xy 62.380583 31.968226)
1092 | (xy 62.323625 31.9655) (xy 62.1775 32.111625) (xy 62.1775 32.6265) (xy 62.1975 32.6265) (xy 62.1975 32.9735)
1093 | (xy 62.1775 32.9735) (xy 62.1775 32.9975) (xy 61.8225 32.9975) (xy 61.8225 32.9735) (xy 61.2275 32.9735)
1094 | (xy 61.2275 32.9975) (xy 60.8725 32.9975) (xy 60.8725 32.9735) (xy 60.8525 32.9735) (xy 60.8525 32.6265)
1095 | (xy 60.8725 32.6265) (xy 60.8725 32.6025) (xy 61.2275 32.6025) (xy 61.2275 32.6265) (xy 61.8225 32.6265)
1096 | (xy 61.8225 32.592375) (xy 61.9345 32.480375) (xy 61.918327 32.401814) (xy 61.878497 32.293786) (xy 61.8225 32.202369)
1097 | (xy 61.8225 32.111625) (xy 61.682034 31.971159) (xy 61.70899 31.953147) (xy 61.817147 31.84499) (xy 61.902125 31.717811)
1098 | (xy 61.960659 31.576497) (xy 61.9905 31.426479) (xy 61.9905 31.273521) (xy 61.960659 31.123503) (xy 61.902125 30.982189)
1099 | (xy 61.823488 30.8645) (xy 62.504512 30.8645)
1100 | )
1101 | )
1102 | )
1103 | (zone (net 2) (net_name GND) (layer B.Cu) (tstamp 0) (hatch edge 0.508)
1104 | (connect_pads (clearance 0.153))
1105 | (min_thickness 0.153)
1106 | (fill yes (arc_segments 32) (thermal_gap 0.508) (thermal_bridge_width 0.508))
1107 | (polygon
1108 | (pts
1109 | (xy 54.31 29.93) (xy 67.46 29.76) (xy 67.28 41.871) (xy 54.58 41.89)
1110 | )
1111 | )
1112 | (filled_polygon
1113 | (pts
1114 | (xy 57.5855 30.906375) (xy 57.731623 31.052498) (xy 57.5855 31.052498) (xy 57.5855 31.172163) (xy 56.18 31.172163)
1115 | (xy 56.125797 31.177502) (xy 56.073676 31.193312) (xy 56.025642 31.218987) (xy 55.98354 31.25354) (xy 55.948987 31.295642)
1116 | (xy 55.923312 31.343676) (xy 55.907502 31.395797) (xy 55.902163 31.45) (xy 55.902163 33.05) (xy 55.907502 33.104203)
1117 | (xy 55.923312 33.156324) (xy 55.948987 33.204358) (xy 55.98354 33.24646) (xy 56.025642 33.281013) (xy 56.073676 33.306688)
1118 | (xy 56.125797 33.322498) (xy 56.18 33.327837) (xy 57.78 33.327837) (xy 57.834203 33.322498) (xy 57.8735 33.310578)
1119 | (xy 57.873499 34.189567) (xy 57.816172 34.103771) (xy 57.666229 33.953828) (xy 57.489914 33.836018) (xy 57.294004 33.754869)
1120 | (xy 57.086026 33.7135) (xy 56.873974 33.7135) (xy 56.665996 33.754869) (xy 56.470086 33.836018) (xy 56.293771 33.953828)
1121 | (xy 56.143828 34.103771) (xy 56.026018 34.280086) (xy 55.944869 34.475996) (xy 55.9035 34.683974) (xy 55.9035 34.896026)
1122 | (xy 55.944869 35.104004) (xy 56.026018 35.299914) (xy 56.143828 35.476229) (xy 56.293771 35.626172) (xy 56.470086 35.743982)
1123 | (xy 56.665996 35.825131) (xy 56.873974 35.8665) (xy 57.086026 35.8665) (xy 57.294004 35.825131) (xy 57.450918 35.760135)
1124 | (xy 58.086597 36.395814) (xy 58.077502 36.425797) (xy 58.072163 36.48) (xy 58.072163 37.08) (xy 58.077502 37.134203)
1125 | (xy 58.093312 37.186324) (xy 58.118987 37.234358) (xy 58.15354 37.27646) (xy 58.195642 37.311013) (xy 58.243676 37.336688)
1126 | (xy 58.295797 37.352498) (xy 58.35 37.357837) (xy 58.75 37.357837) (xy 58.804203 37.352498) (xy 58.856324 37.336688)
1127 | (xy 58.904358 37.311013) (xy 58.94646 37.27646) (xy 58.981013 37.234358) (xy 59 37.198836) (xy 59.018987 37.234358)
1128 | (xy 59.05354 37.27646) (xy 59.095642 37.311013) (xy 59.143676 37.336688) (xy 59.195797 37.352498) (xy 59.25 37.357837)
1129 | (xy 59.310013 37.357837) (xy 59.278987 37.395642) (xy 59.253312 37.443676) (xy 59.237502 37.495797) (xy 59.232163 37.55)
1130 | (xy 59.232163 38.45) (xy 59.237502 38.504203) (xy 59.253312 38.556324) (xy 59.278987 38.604358) (xy 59.31354 38.64646)
1131 | (xy 59.355642 38.681013) (xy 59.403676 38.706688) (xy 59.455797 38.722498) (xy 59.51 38.727837) (xy 60.31 38.727837)
1132 | (xy 60.364203 38.722498) (xy 60.416324 38.706688) (xy 60.464358 38.681013) (xy 60.50646 38.64646) (xy 60.541013 38.604358)
1133 | (xy 60.566688 38.556324) (xy 60.582498 38.504203) (xy 60.587837 38.45) (xy 60.587837 38.331015) (xy 60.598741 38.327707)
1134 | (xy 60.660065 38.294929) (xy 60.713816 38.250816) (xy 60.724874 38.237342) (xy 61.377352 37.584865) (xy 61.390815 37.573816)
1135 | (xy 61.401865 37.560352) (xy 61.40187 37.560347) (xy 61.424012 37.533367) (xy 61.434929 37.520065) (xy 61.467707 37.458741)
1136 | (xy 61.484115 37.404651) (xy 61.487892 37.392201) (xy 61.489515 37.375724) (xy 61.493 37.340341) (xy 61.493 37.340333)
1137 | (xy 61.494707 37.323) (xy 61.493568 37.311435) (xy 61.494358 37.311013) (xy 61.53646 37.27646) (xy 61.571013 37.234358)
1138 | (xy 61.596688 37.186324) (xy 61.612498 37.134203) (xy 61.617837 37.08) (xy 61.617837 36.48) (xy 61.612498 36.425797)
1139 | (xy 61.596688 36.373676) (xy 61.571013 36.325642) (xy 61.53646 36.28354) (xy 61.494358 36.248987) (xy 61.446324 36.223312)
1140 | (xy 61.394203 36.207502) (xy 61.34 36.202163) (xy 60.979501 36.202163) (xy 60.979501 34.660834) (xy 60.981208 34.643501)
1141 | (xy 60.979501 34.626168) (xy 60.979501 34.62616) (xy 60.974393 34.574301) (xy 60.971486 34.564716) (xy 60.954208 34.50776)
1142 | (xy 60.947426 34.495072) (xy 60.92143 34.446436) (xy 60.877317 34.392685) (xy 60.863848 34.381631) (xy 60.780054 34.297837)
1143 | (xy 61.3 34.297837) (xy 61.354203 34.292498) (xy 61.406324 34.276688) (xy 61.454358 34.251013) (xy 61.49646 34.21646)
1144 | (xy 61.531013 34.174358) (xy 61.556688 34.126324) (xy 61.572498 34.074203) (xy 61.577837 34.02) (xy 61.577837 33.7415)
1145 | (xy 61.739681 33.7415) (xy 61.775642 33.771013) (xy 61.823676 33.796688) (xy 61.875797 33.812498) (xy 61.93 33.817837)
1146 | (xy 61.935001 33.817837) (xy 61.935 34.266261) (xy 61.933642 34.266987) (xy 61.89154 34.30154) (xy 61.856987 34.343642)
1147 | (xy 61.831312 34.391676) (xy 61.815502 34.443797) (xy 61.810163 34.498) (xy 61.810163 35.098) (xy 61.815502 35.152203)
1148 | (xy 61.831312 35.204324) (xy 61.856987 35.252358) (xy 61.89154 35.29446) (xy 61.933642 35.329013) (xy 61.935 35.329739)
1149 | (xy 61.935001 35.536261) (xy 61.933642 35.536987) (xy 61.89154 35.57154) (xy 61.856987 35.613642) (xy 61.831312 35.661676)
1150 | (xy 61.815502 35.713797) (xy 61.810163 35.768) (xy 61.810163 36.368) (xy 61.815502 36.422203) (xy 61.831312 36.474324)
1151 | (xy 61.856987 36.522358) (xy 61.89154 36.56446) (xy 61.933642 36.599013) (xy 61.935065 36.599774) (xy 61.940108 36.650978)
1152 | (xy 61.960293 36.717518) (xy 61.989316 36.771816) (xy 61.993072 36.778843) (xy 62.037185 36.832594) (xy 62.050653 36.843647)
1153 | (xy 62.603555 37.396549) (xy 62.562825 37.404651) (xy 62.43971 37.455647) (xy 62.32891 37.529681) (xy 62.234681 37.62391)
1154 | (xy 62.182772 37.701598) (xy 62.177135 37.702153) (xy 62.177127 37.702153) (xy 62.131196 37.706677) (xy 62.125267 37.707261)
1155 | (xy 62.058727 37.727446) (xy 61.997403 37.760224) (xy 61.943652 37.804337) (xy 61.932598 37.817806) (xy 60.923905 38.8265)
1156 | (xy 58.975717 38.8265) (xy 57.950135 37.800918) (xy 58.015131 37.644004) (xy 58.0565 37.436026) (xy 58.0565 37.223974)
1157 | (xy 58.015131 37.015996) (xy 57.933982 36.820086) (xy 57.816172 36.643771) (xy 57.666229 36.493828) (xy 57.489914 36.376018)
1158 | (xy 57.294004 36.294869) (xy 57.086026 36.2535) (xy 56.873974 36.2535) (xy 56.665996 36.294869) (xy 56.470086 36.376018)
1159 | (xy 56.293771 36.493828) (xy 56.143828 36.643771) (xy 56.026018 36.820086) (xy 55.944869 37.015996) (xy 55.9035 37.223974)
1160 | (xy 55.9035 37.436026) (xy 55.944869 37.644004) (xy 56.026018 37.839914) (xy 56.143828 38.016229) (xy 56.293771 38.166172)
1161 | (xy 56.470086 38.283982) (xy 56.665996 38.365131) (xy 56.873974 38.4065) (xy 57.086026 38.4065) (xy 57.294004 38.365131)
1162 | (xy 57.450918 38.300135) (xy 58.222021 39.071238) (xy 58.145697 39.133874) (xy 58.042391 38.982201) (xy 57.848777 38.791998)
1163 | (xy 57.621776 38.643222) (xy 57.370112 38.54159) (xy 57.1575 38.643043) (xy 57.1575 39.6925) (xy 57.991625 39.6925)
1164 | (xy 58.121625 39.8225) (xy 58.7825 39.8225) (xy 58.7825 39.8025) (xy 59.1375 39.8025) (xy 59.1375 39.8225)
1165 | (xy 59.798375 39.8225) (xy 59.9445 39.676375) (xy 59.947328 39.55) (xy 59.945604 39.5325) (xy 60.183887 39.5325)
1166 | (xy 60.182163 39.55) (xy 60.182163 40.45) (xy 60.187502 40.504203) (xy 60.203312 40.556324) (xy 60.228987 40.604358)
1167 | (xy 60.26354 40.64646) (xy 60.305642 40.681013) (xy 60.353676 40.706688) (xy 60.405797 40.722498) (xy 60.46 40.727837)
1168 | (xy 61.26 40.727837) (xy 61.314203 40.722498) (xy 61.366324 40.706688) (xy 61.414358 40.681013) (xy 61.45646 40.64646)
1169 | (xy 61.491013 40.604358) (xy 61.516688 40.556324) (xy 61.532498 40.504203) (xy 61.537837 40.45) (xy 61.537837 40.353)
1170 | (xy 61.682163 40.353) (xy 61.682163 40.51) (xy 61.687502 40.564203) (xy 61.703312 40.616324) (xy 61.728987 40.664358)
1171 | (xy 61.76354 40.70646) (xy 61.805642 40.741013) (xy 61.853676 40.766688) (xy 61.905797 40.782498) (xy 61.96 40.787837)
1172 | (xy 62.344472 40.787837) (xy 62.353349 40.807084) (xy 62.421042 40.900218) (xy 62.505605 40.978357) (xy 62.603786 41.038497)
1173 | (xy 62.711814 41.078327) (xy 62.790375 41.0945) (xy 62.9365 40.948375) (xy 62.9365 40.3875) (xy 62.8625 40.3875)
1174 | (xy 62.8625 40.0325) (xy 62.9365 40.0325) (xy 62.9365 40.0125) (xy 63.1835 40.0125) (xy 63.1835 40.0325)
1175 | (xy 63.2575 40.0325) (xy 63.2575 40.3875) (xy 63.1835 40.3875) (xy 63.1835 40.948375) (xy 63.329625 41.0945)
1176 | (xy 63.408186 41.078327) (xy 63.516214 41.038497) (xy 63.614395 40.978357) (xy 63.698958 40.900218) (xy 63.766651 40.807084)
1177 | (xy 63.814874 40.702533) (xy 63.833329 40.62573) (xy 63.913771 40.706172) (xy 64.090086 40.823982) (xy 64.285996 40.905131)
1178 | (xy 64.493974 40.9465) (xy 64.706026 40.9465) (xy 64.914004 40.905131) (xy 65.109914 40.823982) (xy 65.286229 40.706172)
1179 | (xy 65.436172 40.556229) (xy 65.553982 40.379914) (xy 65.635131 40.184004) (xy 65.6765 39.976026) (xy 65.6765 39.763974)
1180 | (xy 65.635131 39.555996) (xy 65.553982 39.360086) (xy 65.436172 39.183771) (xy 65.286229 39.033828) (xy 65.109914 38.916018)
1181 | (xy 64.914004 38.834869) (xy 64.706026 38.7935) (xy 64.493974 38.7935) (xy 64.285996 38.834869) (xy 64.209621 38.866505)
1182 | (xy 64.211227 38.864899) (xy 64.285261 38.754099) (xy 64.336257 38.630984) (xy 64.362255 38.500285) (xy 64.362255 38.3803)
1183 | (xy 64.493974 38.4065) (xy 64.706026 38.4065) (xy 64.914004 38.365131) (xy 65.109914 38.283982) (xy 65.286229 38.166172)
1184 | (xy 65.436172 38.016229) (xy 65.553982 37.839914) (xy 65.635131 37.644004) (xy 65.6765 37.436026) (xy 65.6765 37.223974)
1185 | (xy 65.635131 37.015996) (xy 65.553982 36.820086) (xy 65.436172 36.643771) (xy 65.286229 36.493828) (xy 65.109914 36.376018)
1186 | (xy 64.914004 36.294869) (xy 64.706026 36.2535) (xy 64.493974 36.2535) (xy 64.285996 36.294869) (xy 64.090086 36.376018)
1187 | (xy 63.913771 36.493828) (xy 63.786908 36.620691) (xy 63.643243 36.477027) (xy 63.644688 36.474324) (xy 63.660498 36.422203)
1188 | (xy 63.665837 36.368) (xy 63.665837 35.768) (xy 63.660498 35.713797) (xy 63.644688 35.661676) (xy 63.619013 35.613642)
1189 | (xy 63.58446 35.57154) (xy 63.542358 35.536987) (xy 63.494324 35.511312) (xy 63.442203 35.495502) (xy 63.388 35.490163)
1190 | (xy 62.988 35.490163) (xy 62.933797 35.495502) (xy 62.881676 35.511312) (xy 62.833642 35.536987) (xy 62.79154 35.57154)
1191 | (xy 62.756987 35.613642) (xy 62.738 35.649164) (xy 62.719013 35.613642) (xy 62.68446 35.57154) (xy 62.642358 35.536987)
1192 | (xy 62.641 35.536261) (xy 62.641 35.329739) (xy 62.642358 35.329013) (xy 62.68446 35.29446) (xy 62.719013 35.252358)
1193 | (xy 62.738 35.216836) (xy 62.756987 35.252358) (xy 62.79154 35.29446) (xy 62.833642 35.329013) (xy 62.881676 35.354688)
1194 | (xy 62.933797 35.370498) (xy 62.988 35.375837) (xy 63.388 35.375837) (xy 63.442203 35.370498) (xy 63.494324 35.354688)
1195 | (xy 63.542358 35.329013) (xy 63.58446 35.29446) (xy 63.619013 35.252358) (xy 63.62313 35.244657) (xy 63.646018 35.299914)
1196 | (xy 63.763828 35.476229) (xy 63.913771 35.626172) (xy 64.090086 35.743982) (xy 64.285996 35.825131) (xy 64.493974 35.8665)
1197 | (xy 64.706026 35.8665) (xy 64.914004 35.825131) (xy 65.109914 35.743982) (xy 65.286229 35.626172) (xy 65.436172 35.476229)
1198 | (xy 65.553982 35.299914) (xy 65.635131 35.104004) (xy 65.6765 34.896026) (xy 65.6765 34.683974) (xy 65.635131 34.475996)
1199 | (xy 65.553982 34.280086) (xy 65.436172 34.103771) (xy 65.286229 33.953828) (xy 65.109914 33.836018) (xy 64.914004 33.754869)
1200 | (xy 64.706026 33.7135) (xy 64.493974 33.7135) (xy 64.285996 33.754869) (xy 64.090086 33.836018) (xy 63.956292 33.925417)
1201 | (xy 63.848375 33.8175) (xy 63.3335 33.8175) (xy 63.3335 33.8375) (xy 62.9865 33.8375) (xy 62.9865 33.8175)
1202 | (xy 62.9625 33.8175) (xy 62.9625 33.4625) (xy 62.9865 33.4625) (xy 62.9865 33.4425) (xy 63.3335 33.4425)
1203 | (xy 63.3335 33.4625) (xy 63.848375 33.4625) (xy 63.9945 33.316375) (xy 63.991774 33.259417) (xy 63.964874 33.147467)
1204 | (xy 63.946773 33.108223) (xy 64.090086 33.203982) (xy 64.285996 33.285131) (xy 64.493974 33.3265) (xy 64.706026 33.3265)
1205 | (xy 64.914004 33.285131) (xy 65.109914 33.203982) (xy 65.286229 33.086172) (xy 65.436172 32.936229) (xy 65.553982 32.759914)
1206 | (xy 65.635131 32.564004) (xy 65.6765 32.356026) (xy 65.6765 32.143974) (xy 65.635131 31.935996) (xy 65.553982 31.740086)
1207 | (xy 65.436172 31.563771) (xy 65.286229 31.413828) (xy 65.109914 31.296018) (xy 64.914004 31.214869) (xy 64.706026 31.1735)
1208 | (xy 64.493974 31.1735) (xy 64.285996 31.214869) (xy 64.090086 31.296018) (xy 63.913771 31.413828) (xy 63.887863 31.439736)
1209 | (xy 63.8905 31.426479) (xy 63.8905 31.273521) (xy 63.860659 31.123503) (xy 63.802125 30.982189) (xy 63.723488 30.8645)
1210 | (xy 66.0355 30.8645) (xy 66.035501 41.3555) (xy 55.5445 41.3555) (xy 55.5445 40.260111) (xy 55.651597 40.260111)
1211 | (xy 55.658733 40.28366) (xy 55.764822 40.533478) (xy 55.917609 40.757799) (xy 56.111223 40.948002) (xy 56.338224 41.096778)
1212 | (xy 56.589888 41.19841) (xy 56.8025 41.096957) (xy 56.8025 40.0475) (xy 57.1575 40.0475) (xy 57.1575 41.096957)
1213 | (xy 57.370112 41.19841) (xy 57.621776 41.096778) (xy 57.848777 40.948002) (xy 58.042391 40.757799) (xy 58.053246 40.741862)
1214 | (xy 58.071655 40.776302) (xy 58.144696 40.865304) (xy 58.233698 40.938345) (xy 58.335239 40.99262) (xy 58.445418 41.026043)
1215 | (xy 58.56 41.037328) (xy 58.636375 41.0345) (xy 58.7825 40.888375) (xy 58.7825 40.1775) (xy 59.1375 40.1775)
1216 | (xy 59.1375 40.888375) (xy 59.283625 41.0345) (xy 59.36 41.037328) (xy 59.474582 41.026043) (xy 59.584761 40.99262)
1217 | (xy 59.686302 40.938345) (xy 59.775304 40.865304) (xy 59.848345 40.776302) (xy 59.90262 40.674761) (xy 59.936043 40.564582)
1218 | (xy 59.947328 40.45) (xy 59.9445 40.323625) (xy 59.798375 40.1775) (xy 59.1375 40.1775) (xy 58.7825 40.1775)
1219 | (xy 58.268454 40.1775) (xy 58.205588 40.0475) (xy 57.1575 40.0475) (xy 56.8025 40.0475) (xy 55.754412 40.0475)
1220 | (xy 55.651597 40.260111) (xy 55.5445 40.260111) (xy 55.5445 39.479889) (xy 55.651597 39.479889) (xy 55.754412 39.6925)
1221 | (xy 56.8025 39.6925) (xy 56.8025 38.643043) (xy 56.589888 38.54159) (xy 56.338224 38.643222) (xy 56.111223 38.791998)
1222 | (xy 55.917609 38.982201) (xy 55.764822 39.206522) (xy 55.658733 39.45634) (xy 55.651597 39.479889) (xy 55.5445 39.479889)
1223 | (xy 55.5445 30.8645) (xy 57.587504 30.8645)
1224 | )
1225 | )
1226 | (filled_polygon
1227 | (pts
1228 | (xy 58.5935 31.0525) (xy 59.108375 31.0525) (xy 59.2545 30.906375) (xy 59.252496 30.8645) (xy 60.604512 30.8645)
1229 | (xy 60.525875 30.982189) (xy 60.467341 31.123503) (xy 60.4375 31.273521) (xy 60.4375 31.358121) (xy 60.348808 31.298859)
1230 | (xy 60.225693 31.247863) (xy 60.094994 31.221865) (xy 59.961736 31.221865) (xy 59.831037 31.247863) (xy 59.707922 31.298859)
1231 | (xy 59.597122 31.372893) (xy 59.502893 31.467122) (xy 59.428859 31.577922) (xy 59.377863 31.701037) (xy 59.351865 31.831736)
1232 | (xy 59.351865 31.964994) (xy 59.377863 32.095693) (xy 59.428859 32.218808) (xy 59.502893 32.329608) (xy 59.597034 32.423749)
1233 | (xy 59.577653 32.443131) (xy 59.564185 32.454184) (xy 59.553132 32.467652) (xy 59.55313 32.467654) (xy 59.520072 32.507935)
1234 | (xy 59.487293 32.56926) (xy 59.467108 32.6358) (xy 59.460293 32.705) (xy 59.462001 32.722343) (xy 59.462001 32.849867)
1235 | (xy 59.454203 32.847502) (xy 59.4 32.842163) (xy 58.847326 32.842163) (xy 58.86646 32.82646) (xy 58.901013 32.784358)
1236 | (xy 58.926688 32.736324) (xy 58.942498 32.684203) (xy 58.947837 32.63) (xy 58.947837 32.045252) (xy 59.024395 31.998357)
1237 | (xy 59.108958 31.920218) (xy 59.176651 31.827084) (xy 59.224874 31.722533) (xy 59.251774 31.610583) (xy 59.2545 31.553625)
1238 | (xy 59.108375 31.4075) (xy 58.5935 31.4075) (xy 58.5935 31.4275) (xy 58.2465 31.4275) (xy 58.2465 31.4075)
1239 | (xy 58.2225 31.4075) (xy 58.2225 31.0525) (xy 58.2465 31.0525) (xy 58.2465 30.8645) (xy 58.5935 30.8645)
1240 | )
1241 | )
1242 | )
1243 | )
1244 |
--------------------------------------------------------------------------------
/hardware/rtcbrd.pro:
--------------------------------------------------------------------------------
1 | update=Fr 13 Sep 2019 01:14:41 CEST
2 | version=1
3 | last_client=kicad
4 | [general]
5 | version=1
6 | RootSch=
7 | BoardNm=
8 | [cvpcb]
9 | version=1
10 | NetIExt=net
11 | [eeschema]
12 | version=1
13 | LibDir=
14 | [eeschema/libraries]
15 | [pcbnew]
16 | version=1
17 | PageLayoutDescrFile=
18 | LastNetListRead=
19 | CopperLayerCount=2
20 | BoardThickness=1.6
21 | AllowMicroVias=0
22 | AllowBlindVias=0
23 | RequireCourtyardDefinitions=0
24 | ProhibitOverlappingCourtyards=1
25 | MinTrackWidth=0.153
26 | MinViaDiameter=0.3
27 | MinViaDrill=0.3
28 | MinMicroViaDiameter=0.2
29 | MinMicroViaDrill=0.09999999999999999
30 | MinHoleToHole=0.25
31 | TrackWidth1=0.25
32 | TrackWidth2=0.153
33 | ViaDiameter1=0.8
34 | ViaDrill1=0.4
35 | ViaDiameter2=0.6
36 | ViaDrill2=0.3
37 | dPairWidth1=0.2
38 | dPairGap1=0.25
39 | dPairViaGap1=0.25
40 | SilkLineWidth=0.12
41 | SilkTextSizeV=1
42 | SilkTextSizeH=1
43 | SilkTextSizeThickness=0.15
44 | SilkTextItalic=0
45 | SilkTextUpright=1
46 | CopperLineWidth=0.2
47 | CopperTextSizeV=1.5
48 | CopperTextSizeH=1.5
49 | CopperTextThickness=0.3
50 | CopperTextItalic=0
51 | CopperTextUpright=1
52 | EdgeCutLineWidth=0.05
53 | CourtyardLineWidth=0.05
54 | OthersLineWidth=0.15
55 | OthersTextSizeV=1
56 | OthersTextSizeH=1
57 | OthersTextSizeThickness=0.15
58 | OthersTextItalic=0
59 | OthersTextUpright=1
60 | SolderMaskClearance=0.051
61 | SolderMaskMinWidth=0.25
62 | SolderPasteClearance=0
63 | SolderPasteRatio=-0
64 | [pcbnew/Layer.F.Cu]
65 | Name=F.Cu
66 | Type=0
67 | Enabled=1
68 | [pcbnew/Layer.In1.Cu]
69 | Name=In1.Cu
70 | Type=0
71 | Enabled=0
72 | [pcbnew/Layer.In2.Cu]
73 | Name=In2.Cu
74 | Type=0
75 | Enabled=0
76 | [pcbnew/Layer.In3.Cu]
77 | Name=In3.Cu
78 | Type=0
79 | Enabled=0
80 | [pcbnew/Layer.In4.Cu]
81 | Name=In4.Cu
82 | Type=0
83 | Enabled=0
84 | [pcbnew/Layer.In5.Cu]
85 | Name=In5.Cu
86 | Type=0
87 | Enabled=0
88 | [pcbnew/Layer.In6.Cu]
89 | Name=In6.Cu
90 | Type=0
91 | Enabled=0
92 | [pcbnew/Layer.In7.Cu]
93 | Name=In7.Cu
94 | Type=0
95 | Enabled=0
96 | [pcbnew/Layer.In8.Cu]
97 | Name=In8.Cu
98 | Type=0
99 | Enabled=0
100 | [pcbnew/Layer.In9.Cu]
101 | Name=In9.Cu
102 | Type=0
103 | Enabled=0
104 | [pcbnew/Layer.In10.Cu]
105 | Name=In10.Cu
106 | Type=0
107 | Enabled=0
108 | [pcbnew/Layer.In11.Cu]
109 | Name=In11.Cu
110 | Type=0
111 | Enabled=0
112 | [pcbnew/Layer.In12.Cu]
113 | Name=In12.Cu
114 | Type=0
115 | Enabled=0
116 | [pcbnew/Layer.In13.Cu]
117 | Name=In13.Cu
118 | Type=0
119 | Enabled=0
120 | [pcbnew/Layer.In14.Cu]
121 | Name=In14.Cu
122 | Type=0
123 | Enabled=0
124 | [pcbnew/Layer.In15.Cu]
125 | Name=In15.Cu
126 | Type=0
127 | Enabled=0
128 | [pcbnew/Layer.In16.Cu]
129 | Name=In16.Cu
130 | Type=0
131 | Enabled=0
132 | [pcbnew/Layer.In17.Cu]
133 | Name=In17.Cu
134 | Type=0
135 | Enabled=0
136 | [pcbnew/Layer.In18.Cu]
137 | Name=In18.Cu
138 | Type=0
139 | Enabled=0
140 | [pcbnew/Layer.In19.Cu]
141 | Name=In19.Cu
142 | Type=0
143 | Enabled=0
144 | [pcbnew/Layer.In20.Cu]
145 | Name=In20.Cu
146 | Type=0
147 | Enabled=0
148 | [pcbnew/Layer.In21.Cu]
149 | Name=In21.Cu
150 | Type=0
151 | Enabled=0
152 | [pcbnew/Layer.In22.Cu]
153 | Name=In22.Cu
154 | Type=0
155 | Enabled=0
156 | [pcbnew/Layer.In23.Cu]
157 | Name=In23.Cu
158 | Type=0
159 | Enabled=0
160 | [pcbnew/Layer.In24.Cu]
161 | Name=In24.Cu
162 | Type=0
163 | Enabled=0
164 | [pcbnew/Layer.In25.Cu]
165 | Name=In25.Cu
166 | Type=0
167 | Enabled=0
168 | [pcbnew/Layer.In26.Cu]
169 | Name=In26.Cu
170 | Type=0
171 | Enabled=0
172 | [pcbnew/Layer.In27.Cu]
173 | Name=In27.Cu
174 | Type=0
175 | Enabled=0
176 | [pcbnew/Layer.In28.Cu]
177 | Name=In28.Cu
178 | Type=0
179 | Enabled=0
180 | [pcbnew/Layer.In29.Cu]
181 | Name=In29.Cu
182 | Type=0
183 | Enabled=0
184 | [pcbnew/Layer.In30.Cu]
185 | Name=In30.Cu
186 | Type=0
187 | Enabled=0
188 | [pcbnew/Layer.B.Cu]
189 | Name=B.Cu
190 | Type=0
191 | Enabled=1
192 | [pcbnew/Layer.B.Adhes]
193 | Enabled=1
194 | [pcbnew/Layer.F.Adhes]
195 | Enabled=1
196 | [pcbnew/Layer.B.Paste]
197 | Enabled=1
198 | [pcbnew/Layer.F.Paste]
199 | Enabled=1
200 | [pcbnew/Layer.B.SilkS]
201 | Enabled=1
202 | [pcbnew/Layer.F.SilkS]
203 | Enabled=1
204 | [pcbnew/Layer.B.Mask]
205 | Enabled=1
206 | [pcbnew/Layer.F.Mask]
207 | Enabled=1
208 | [pcbnew/Layer.Dwgs.User]
209 | Enabled=1
210 | [pcbnew/Layer.Cmts.User]
211 | Enabled=1
212 | [pcbnew/Layer.Eco1.User]
213 | Enabled=1
214 | [pcbnew/Layer.Eco2.User]
215 | Enabled=1
216 | [pcbnew/Layer.Edge.Cuts]
217 | Enabled=1
218 | [pcbnew/Layer.Margin]
219 | Enabled=1
220 | [pcbnew/Layer.B.CrtYd]
221 | Enabled=1
222 | [pcbnew/Layer.F.CrtYd]
223 | Enabled=1
224 | [pcbnew/Layer.B.Fab]
225 | Enabled=1
226 | [pcbnew/Layer.F.Fab]
227 | Enabled=1
228 | [pcbnew/Layer.Rescue]
229 | Enabled=0
230 | [pcbnew/Netclasses]
231 | [pcbnew/Netclasses/Default]
232 | Name=Default
233 | Clearance=0.2
234 | TrackWidth=0.25
235 | ViaDiameter=0.8
236 | ViaDrill=0.4
237 | uViaDiameter=0.3
238 | uViaDrill=0.1
239 | dPairWidth=0.2
240 | dPairGap=0.25
241 | dPairViaGap=0.25
242 |
--------------------------------------------------------------------------------
/hardware/rtcbrd.sch:
--------------------------------------------------------------------------------
1 | EESchema Schematic File Version 4
2 | EELAYER 30 0
3 | EELAYER END
4 | $Descr A4 11693 8268
5 | encoding utf-8
6 | Sheet 1 1
7 | Title "RTCBrd"
8 | Date ""
9 | Rev "1"
10 | Comp "BitBastelei"
11 | Comment1 "www.adlerweb.info"
12 | Comment2 ""
13 | Comment3 ""
14 | Comment4 ""
15 | $EndDescr
16 | $Comp
17 | L Timer_RTC:PCF8563TS U1
18 | U 1 1 5D7AC337
19 | P 5200 1350
20 | F 0 "U1" H 4950 1000 50 0000 C CNN
21 | F 1 "PCF8563TS" H 5150 1350 50 0000 C CNN
22 | F 2 "Housings_SOIC:HTSOP-8-1EP_3.9x4.9mm_Pitch1.27mm" H 5200 1350 50 0001 C CNN
23 | F 3 "https://assets.nexperia.com/documents/data-sheet/PCF8563.pdf" H 5200 1350 50 0001 C CNN
24 | 1 5200 1350
25 | 1 0 0 -1
26 | $EndComp
27 | $Comp
28 | L Device:Crystal Y1
29 | U 1 1 5D7ACEB3
30 | P 4150 1350
31 | F 0 "Y1" V 4104 1481 50 0000 L CNN
32 | F 1 "32.768kHz" V 4195 1481 50 0000 L CNN
33 | F 2 "Crystals:Crystal_C38-LF_d3.0mm_l8.0mm_Horizontal" H 4150 1350 50 0001 C CNN
34 | F 3 "~" H 4150 1350 50 0001 C CNN
35 | 1 4150 1350
36 | 0 1 1 0
37 | $EndComp
38 | $Comp
39 | L Device:C C2
40 | U 1 1 5D7ADDC0
41 | P 3850 1150
42 | F 0 "C2" V 3598 1150 50 0000 C CNN
43 | F 1 "22pF" V 3689 1150 50 0000 C CNN
44 | F 2 "Capacitors_SMD:C_0402" H 3888 1000 50 0001 C CNN
45 | F 3 "~" H 3850 1150 50 0001 C CNN
46 | 1 3850 1150
47 | 0 1 1 0
48 | $EndComp
49 | $Comp
50 | L Device:C C3
51 | U 1 1 5D7AE3FA
52 | P 3850 1550
53 | F 0 "C3" V 3598 1550 50 0000 C CNN
54 | F 1 "22pF" V 3689 1550 50 0000 C CNN
55 | F 2 "Capacitors_SMD:C_0402" H 3888 1400 50 0001 C CNN
56 | F 3 "~" H 3850 1550 50 0001 C CNN
57 | 1 3850 1550
58 | 0 1 1 0
59 | $EndComp
60 | $Comp
61 | L Device:C C1
62 | U 1 1 5D7AEA69
63 | P 2750 1350
64 | F 0 "C1" H 2635 1304 50 0000 R CNN
65 | F 1 "100nF" H 2635 1395 50 0000 R CNN
66 | F 2 "Capacitors_SMD:C_0402" H 2788 1200 50 0001 C CNN
67 | F 3 "~" H 2750 1350 50 0001 C CNN
68 | 1 2750 1350
69 | -1 0 0 1
70 | $EndComp
71 | $Comp
72 | L Device:R R5
73 | U 1 1 5D7AFF40
74 | P 3950 3050
75 | F 0 "R5" H 4020 3096 50 0000 L CNN
76 | F 1 "1.2kΩ" H 4020 3005 50 0000 L CNN
77 | F 2 "Resistors_SMD:R_0402" V 3880 3050 50 0001 C CNN
78 | F 3 "~" H 3950 3050 50 0001 C CNN
79 | 1 3950 3050
80 | 1 0 0 -1
81 | $EndComp
82 | $Comp
83 | L Device:Q_NMOS_GSD Q1
84 | U 1 1 5D7B062D
85 | P 3850 3400
86 | F 0 "Q1" H 4056 3446 50 0000 L CNN
87 | F 1 "SI2302" H 4056 3355 50 0000 L CNN
88 | F 2 "TO_SOT_Packages_SMD:SOT-23" H 4050 3500 50 0001 C CNN
89 | F 3 "~" H 3850 3400 50 0001 C CNN
90 | 1 3850 3400
91 | 1 0 0 -1
92 | $EndComp
93 | $Comp
94 | L Device:Q_PMOS_GSD Q2
95 | U 1 1 5D7B104D
96 | P 5400 3300
97 | F 0 "Q2" V 5651 3300 50 0000 C CNN
98 | F 1 "AO3407" V 5742 3300 50 0000 C CNN
99 | F 2 "TO_SOT_Packages_SMD:SOT-23" H 5600 3400 50 0001 C CNN
100 | F 3 "~" H 5400 3300 50 0001 C CNN
101 | 1 5400 3300
102 | 0 1 1 0
103 | $EndComp
104 | $Comp
105 | L Device:R R6
106 | U 1 1 5D7B1F6A
107 | P 5600 1700
108 | F 0 "R6" H 5670 1746 50 0000 L CNN
109 | F 1 "1.2kΩ" H 5670 1655 50 0000 L CNN
110 | F 2 "Resistors_SMD:R_0402" V 5530 1700 50 0001 C CNN
111 | F 3 "~" H 5600 1700 50 0001 C CNN
112 | 1 5600 1700
113 | 1 0 0 -1
114 | $EndComp
115 | $Comp
116 | L Device:R R3
117 | U 1 1 5D7B2304
118 | P 3600 3050
119 | F 0 "R3" H 3670 3096 50 0000 L CNN
120 | F 1 "1.2kΩ" H 3670 3005 50 0000 L CNN
121 | F 2 "Resistors_SMD:R_0402" V 3530 3050 50 0001 C CNN
122 | F 3 "~" H 3600 3050 50 0001 C CNN
123 | 1 3600 3050
124 | 1 0 0 -1
125 | $EndComp
126 | $Comp
127 | L Device:R R2
128 | U 1 1 5D7B2425
129 | P 2800 3850
130 | F 0 "R2" H 2870 3896 50 0000 L CNN
131 | F 1 "1.2kΩ" H 2870 3805 50 0000 L CNN
132 | F 2 "Resistors_SMD:R_0402" V 2730 3850 50 0001 C CNN
133 | F 3 "~" H 2800 3850 50 0001 C CNN
134 | 1 2800 3850
135 | 1 0 0 -1
136 | $EndComp
137 | $Comp
138 | L Device:R R4
139 | U 1 1 5D7B25AA
140 | P 3600 3550
141 | F 0 "R4" H 3670 3596 50 0000 L CNN
142 | F 1 "120kΩ" H 3670 3505 50 0000 L CNN
143 | F 2 "Resistors_SMD:R_0402" V 3530 3550 50 0001 C CNN
144 | F 3 "~" H 3600 3550 50 0001 C CNN
145 | 1 3600 3550
146 | 1 0 0 -1
147 | $EndComp
148 | Wire Wire Line
149 | 4800 1150 4150 1150
150 | Wire Wire Line
151 | 4150 1150 4150 1200
152 | Wire Wire Line
153 | 4800 1550 4150 1550
154 | Wire Wire Line
155 | 4150 1550 4150 1500
156 | $Comp
157 | L power:GND #PWR0101
158 | U 1 1 5D7B39CC
159 | P 3700 1750
160 | F 0 "#PWR0101" H 3700 1500 50 0001 C CNN
161 | F 1 "GND" H 3705 1577 50 0000 C CNN
162 | F 2 "" H 3700 1750 50 0001 C CNN
163 | F 3 "" H 3700 1750 50 0001 C CNN
164 | 1 3700 1750
165 | 1 0 0 -1
166 | $EndComp
167 | $Comp
168 | L power:GND #PWR0102
169 | U 1 1 5D7B4016
170 | P 5200 1750
171 | F 0 "#PWR0102" H 5200 1500 50 0001 C CNN
172 | F 1 "GND" H 5205 1577 50 0000 C CNN
173 | F 2 "" H 5200 1750 50 0001 C CNN
174 | F 3 "" H 5200 1750 50 0001 C CNN
175 | 1 5200 1750
176 | 1 0 0 -1
177 | $EndComp
178 | $Comp
179 | L power:VCC #PWR0103
180 | U 1 1 5D7B45D6
181 | P 5200 950
182 | F 0 "#PWR0103" H 5200 800 50 0001 C CNN
183 | F 1 "VCC" H 5217 1123 50 0000 C CNN
184 | F 2 "" H 5200 950 50 0001 C CNN
185 | F 3 "" H 5200 950 50 0001 C CNN
186 | 1 5200 950
187 | 1 0 0 -1
188 | $EndComp
189 | $Comp
190 | L power:GND #PWR0104
191 | U 1 1 5D7B9935
192 | P 3950 3700
193 | F 0 "#PWR0104" H 3950 3450 50 0001 C CNN
194 | F 1 "GND" H 3955 3527 50 0000 C CNN
195 | F 2 "" H 3950 3700 50 0001 C CNN
196 | F 3 "" H 3950 3700 50 0001 C CNN
197 | 1 3950 3700
198 | 1 0 0 -1
199 | $EndComp
200 | Text GLabel 2800 3700 1 50 Input ~ 0
201 | SW
202 | Text GLabel 3600 2900 1 50 Input ~ 0
203 | ON
204 | $Comp
205 | L power:VCC #PWR0106
206 | U 1 1 5D7BBAC1
207 | P 5200 3400
208 | F 0 "#PWR0106" H 5200 3250 50 0001 C CNN
209 | F 1 "VCC" H 5217 3573 50 0000 C CNN
210 | F 2 "" H 5200 3400 50 0001 C CNN
211 | F 3 "" H 5200 3400 50 0001 C CNN
212 | 1 5200 3400
213 | 1 0 0 -1
214 | $EndComp
215 | $Comp
216 | L power:VBUS #PWR0107
217 | U 1 1 5D7BC2D9
218 | P 5600 3400
219 | F 0 "#PWR0107" H 5600 3250 50 0001 C CNN
220 | F 1 "VBUS" H 5615 3573 50 0000 C CNN
221 | F 2 "" H 5600 3400 50 0001 C CNN
222 | F 3 "" H 5600 3400 50 0001 C CNN
223 | 1 5600 3400
224 | 1 0 0 -1
225 | $EndComp
226 | $Comp
227 | L Device:C C4
228 | U 1 1 5D7BCD6E
229 | P 6650 1350
230 | F 0 "C4" H 6535 1304 50 0000 R CNN
231 | F 1 "100nF" H 6535 1395 50 0000 R CNN
232 | F 2 "Capacitors_SMD:C_0402" H 6688 1200 50 0001 C CNN
233 | F 3 "~" H 6650 1350 50 0001 C CNN
234 | 1 6650 1350
235 | -1 0 0 1
236 | $EndComp
237 | $Comp
238 | L Connector_Generic:Conn_02x04_Counter_Clockwise J1
239 | U 1 1 5D7BDDF4
240 | P 1150 1300
241 | F 0 "J1" H 1200 1617 50 0000 C CNN
242 | F 1 "02x04" H 1200 1526 50 0000 C CNN
243 | F 2 "Housings_DIP:DIP-8_W7.62mm" H 1150 1300 50 0001 C CNN
244 | F 3 "~" H 1150 1300 50 0001 C CNN
245 | 1 1150 1300
246 | 1 0 0 -1
247 | $EndComp
248 | $Comp
249 | L power:GND #PWR0108
250 | U 1 1 5D7C0745
251 | P 950 1500
252 | F 0 "#PWR0108" H 950 1250 50 0001 C CNN
253 | F 1 "GND" H 955 1327 50 0000 C CNN
254 | F 2 "" H 950 1500 50 0001 C CNN
255 | F 3 "" H 950 1500 50 0001 C CNN
256 | 1 950 1500
257 | 1 0 0 -1
258 | $EndComp
259 | $Comp
260 | L power:VCC #PWR0109
261 | U 1 1 5D7C0BA4
262 | P 1450 1200
263 | F 0 "#PWR0109" H 1450 1050 50 0001 C CNN
264 | F 1 "VCC" H 1467 1373 50 0000 C CNN
265 | F 2 "" H 1450 1200 50 0001 C CNN
266 | F 3 "" H 1450 1200 50 0001 C CNN
267 | 1 1450 1200
268 | 1 0 0 -1
269 | $EndComp
270 | Text GLabel 1450 1500 2 50 Input ~ 0
271 | ON
272 | $Comp
273 | L power:VCC #PWR0110
274 | U 1 1 5D7C15E3
275 | P 2750 1200
276 | F 0 "#PWR0110" H 2750 1050 50 0001 C CNN
277 | F 1 "VCC" H 2767 1373 50 0000 C CNN
278 | F 2 "" H 2750 1200 50 0001 C CNN
279 | F 3 "" H 2750 1200 50 0001 C CNN
280 | 1 2750 1200
281 | 1 0 0 -1
282 | $EndComp
283 | $Comp
284 | L power:GND #PWR0111
285 | U 1 1 5D7C1A45
286 | P 2750 1500
287 | F 0 "#PWR0111" H 2750 1250 50 0001 C CNN
288 | F 1 "GND" H 2755 1327 50 0000 C CNN
289 | F 2 "" H 2750 1500 50 0001 C CNN
290 | F 3 "" H 2750 1500 50 0001 C CNN
291 | 1 2750 1500
292 | 1 0 0 -1
293 | $EndComp
294 | Text GLabel 5600 1850 3 50 Input ~ 0
295 | TRIG
296 | Text GLabel 3950 2900 1 50 Input ~ 0
297 | TRIG
298 | Text Notes 1950 650 0 50 ~ 0
299 | Connector\n/Package
300 | Text Notes 3100 600 0 50 ~ 0
301 | Input
302 | Text Notes 6100 600 0 50 ~ 0
303 | RTC
304 | Text GLabel 2800 4000 3 50 Input ~ 0
305 | TRIG
306 | Wire Notes Line
307 | 2350 500 2350 4350
308 | Wire Notes Line
309 | 3350 500 3350 4350
310 | Wire Wire Line
311 | 4000 1150 4150 1150
312 | Connection ~ 4150 1150
313 | Wire Wire Line
314 | 4150 1550 4000 1550
315 | Connection ~ 4150 1550
316 | Wire Wire Line
317 | 3700 1150 3700 1550
318 | Connection ~ 3700 1550
319 | Wire Wire Line
320 | 3700 1550 3700 1750
321 | Wire Notes Line
322 | 4700 4350 4700 2350
323 | Text GLabel 5400 3100 1 50 Input ~ 0
324 | TRIG
325 | Wire Notes Line
326 | 6300 500 6300 4350
327 | Wire Notes Line
328 | 2350 4350 6300 4350
329 | $Comp
330 | L power:VBUS #PWR0112
331 | U 1 1 5D7EC30F
332 | P 6650 1200
333 | F 0 "#PWR0112" H 6650 1050 50 0001 C CNN
334 | F 1 "VBUS" H 6665 1373 50 0000 C CNN
335 | F 2 "" H 6650 1200 50 0001 C CNN
336 | F 3 "" H 6650 1200 50 0001 C CNN
337 | 1 6650 1200
338 | 1 0 0 -1
339 | $EndComp
340 | $Comp
341 | L power:GND #PWR0113
342 | U 1 1 5D7EC7F2
343 | P 6650 1500
344 | F 0 "#PWR0113" H 6650 1250 50 0001 C CNN
345 | F 1 "GND" H 6655 1327 50 0000 C CNN
346 | F 2 "" H 6650 1500 50 0001 C CNN
347 | F 3 "" H 6650 1500 50 0001 C CNN
348 | 1 6650 1500
349 | 1 0 0 -1
350 | $EndComp
351 | Wire Wire Line
352 | 3950 3600 3950 3700
353 | Connection ~ 3950 3700
354 | Wire Wire Line
355 | 3600 3700 3950 3700
356 | Wire Wire Line
357 | 3600 3400 3650 3400
358 | Wire Wire Line
359 | 3600 3400 3600 3200
360 | Connection ~ 3600 3400
361 | Wire Notes Line
362 | 7200 2350 7200 500
363 | Wire Notes Line
364 | 500 2350 7200 2350
365 | Text Notes 6900 600 0 50 ~ 0
366 | Output
367 | Text Notes 5600 2500 0 50 ~ 0
368 | Output Switching
369 | Text Notes 4250 2500 0 50 ~ 0
370 | Digital On
371 | Text Notes 2650 2500 0 50 ~ 0
372 | Switching PullUp
373 | Text Notes 2850 3550 0 50 ~ 0
374 | External On\n
375 | Text GLabel 5600 1250 2 50 Input ~ 0
376 | SDA
377 | Text GLabel 5600 1150 2 50 Input ~ 0
378 | SCL
379 | Text GLabel 5600 1450 2 50 Input ~ 0
380 | CLKO
381 | Text GLabel 950 1300 0 50 Input ~ 0
382 | SW
383 | $Comp
384 | L power:VBUS #PWR0114
385 | U 1 1 5D7F0389
386 | P 950 1200
387 | F 0 "#PWR0114" H 950 1050 50 0001 C CNN
388 | F 1 "VBUS" H 965 1373 50 0000 C CNN
389 | F 2 "" H 950 1200 50 0001 C CNN
390 | F 3 "" H 950 1200 50 0001 C CNN
391 | 1 950 1200
392 | 1 0 0 -1
393 | $EndComp
394 | Text GLabel 950 1400 0 50 Input ~ 0
395 | CLKO
396 | Text GLabel 1450 1300 2 50 Input ~ 0
397 | SDA
398 | Text GLabel 1450 1400 2 50 Input ~ 0
399 | SCL
400 | Text GLabel 2800 3050 3 50 Input ~ 0
401 | TRIG
402 | $Comp
403 | L power:VCC #PWR0105
404 | U 1 1 5D7BA6A6
405 | P 2800 2750
406 | F 0 "#PWR0105" H 2800 2600 50 0001 C CNN
407 | F 1 "VCC" H 2817 2923 50 0000 C CNN
408 | F 2 "" H 2800 2750 50 0001 C CNN
409 | F 3 "" H 2800 2750 50 0001 C CNN
410 | 1 2800 2750
411 | 1 0 0 -1
412 | $EndComp
413 | $Comp
414 | L Device:R R1
415 | U 1 1 5D7B21B9
416 | P 2800 2900
417 | F 0 "R1" H 2870 2946 50 0000 L CNN
418 | F 1 "120kΩ" H 2870 2855 50 0000 L CNN
419 | F 2 "Resistors_SMD:R_0402" V 2730 2900 50 0001 C CNN
420 | F 3 "~" H 2800 2900 50 0001 C CNN
421 | 1 2800 2900
422 | 1 0 0 -1
423 | $EndComp
424 | $Comp
425 | L power:VCC #PWR0115
426 | U 1 1 5E55A4F4
427 | P 1750 2750
428 | F 0 "#PWR0115" H 1750 2600 50 0001 C CNN
429 | F 1 "VCC" H 1767 2923 50 0000 C CNN
430 | F 2 "" H 1750 2750 50 0001 C CNN
431 | F 3 "" H 1750 2750 50 0001 C CNN
432 | 1 1750 2750
433 | 1 0 0 -1
434 | $EndComp
435 | $Comp
436 | L Device:R R8
437 | U 1 1 5E55A4FA
438 | P 1950 2900
439 | F 0 "R8" H 2020 2946 50 0000 L CNN
440 | F 1 "1.2kΩ" H 2020 2855 50 0000 L CNN
441 | F 2 "Resistors_SMD:R_0402" V 1880 2900 50 0001 C CNN
442 | F 3 "~" H 1950 2900 50 0001 C CNN
443 | 1 1950 2900
444 | 1 0 0 -1
445 | $EndComp
446 | $Comp
447 | L Device:R R7
448 | U 1 1 5E55B16D
449 | P 1550 2900
450 | F 0 "R7" H 1620 2946 50 0000 L CNN
451 | F 1 "1.2kΩ" H 1620 2855 50 0000 L CNN
452 | F 2 "Resistors_SMD:R_0402" V 1480 2900 50 0001 C CNN
453 | F 3 "~" H 1550 2900 50 0001 C CNN
454 | 1 1550 2900
455 | 1 0 0 -1
456 | $EndComp
457 | Text GLabel 1550 3050 3 50 Input ~ 0
458 | SDA
459 | Text GLabel 1950 3050 3 50 Input ~ 0
460 | SCL
461 | Wire Wire Line
462 | 1550 2750 1750 2750
463 | Wire Wire Line
464 | 1750 2750 1950 2750
465 | Connection ~ 1750 2750
466 | Text Notes 2300 2500 2 50 ~ 0
467 | Data PullUp
468 | Wire Notes Line
469 | 500 3400 3350 3400
470 | $EndSCHEMATC
471 |
--------------------------------------------------------------------------------
/library.properties:
--------------------------------------------------------------------------------
1 | name=uPoff
2 | version=0.2.1
3 | author=Florian Knodt
4 | maintainer=Florian Knodt
5 | sentence=µPoff external deep sleep circuit
6 | paragraph=µPoff allows to cut power to a microcontroller and wake on external or timed events
7 | category=Device Control
8 | url=https://github.com/adlerweb/uPoff
9 | architectures=avr,esp8266,esp32,stm32
10 |
--------------------------------------------------------------------------------
/upoff.cpp:
--------------------------------------------------------------------------------
1 | /**
2 | uPoff
3 |
4 | @copyright 2020 Florian Knodt, www.adlerweb.info
5 | */
6 |
7 | #ifndef UPOFF__CPP
8 | #define UPOFF__CPP
9 | //#define UPOFF_DEBUG
10 |
11 | #include "upoff.h"
12 |
13 | bool UPOFF::on(int onPin) {
14 | _uPoffOnPin = onPin;
15 | pinMode(_uPoffOnPin, OUTPUT);
16 | digitalWrite(_uPoffOnPin, HIGH);
17 | return false; //External reason
18 | }
19 |
20 | #ifndef UPOFF_NORTC
21 |
22 | bool UPOFF::rtcCheckReason() {
23 | bool status = false;
24 | rtc.getDateTime(); //Required to update status registers
25 | if(rtc.alarmActive() && rtc.alarmEnabled()) status = true;
26 | //if(rtc.timerActive() && rtc.timerEnabled()) status = true;
27 | if(rtc.timerActive()) status = true; //timerEnabled() was always 0 for me. Bug in library/silicon?
28 |
29 | rtc.clearAlarm();
30 | rtc.clearTimer();
31 |
32 | return status;
33 | }
34 |
35 | bool UPOFF::on(int onPin, bool i2c) {
36 | on(onPin);
37 | if(i2c) {
38 | Wire.begin();
39 | }
40 |
41 | return rtcCheckReason();
42 | }
43 |
44 | /* ESP8266 and ESP32 allow to specify custom pins for SDA/SCL */
45 | #if defined(ESP8266) or defined(ESP32)
46 | /**
47 | * Keep power on
48 | * @param int Pin used to keep power on ("ON")
49 | * @param int Pin used for I²C SDA
50 | * @param int Pin used for I²C SCL
51 | * @return true if initialized
52 | */
53 | bool UPOFF::on(int onPin, int sda, int scl) {
54 | on(onPin);
55 | Wire.begin(sda, scl);
56 |
57 | return rtcCheckReason();
58 | }
59 | #endif
60 |
61 | bool UPOFF::isValid(bool checkVolt) {
62 | if(checkVolt && !rtc.getVoltLow()) {
63 | #ifdef UPOFF_DEBUG
64 | Serial.println("E:Voltage");
65 | #endif
66 | return false;
67 | }
68 | byte temp;
69 | temp = rtc.getMonth();
70 | if(temp > 12 || temp == 0 ) {
71 | #ifdef UPOFF_DEBUG
72 | Serial.println("E:Month");
73 | #endif
74 | return false;
75 | }
76 | temp = rtc.getDay();
77 | if(temp > 31 || temp == 0 ) {
78 | #ifdef UPOFF_DEBUG
79 | Serial.println("E:Day");
80 | #endif
81 | return false;
82 | }
83 | temp = rtc.getHour();
84 | if(temp > 24 ) {
85 | #ifdef UPOFF_DEBUG
86 | Serial.println("E:Hour");
87 | #endif
88 | return false;
89 | }
90 | temp = rtc.getMinute();
91 | if(temp > 59 ) {
92 | #ifdef UPOFF_DEBUG
93 | Serial.println("E:Minute");
94 | #endif
95 | return false;
96 | }
97 | temp = rtc.getSecond();
98 | if(temp > 59 ) {
99 | #ifdef UPOFF_DEBUG
100 | Serial.println("E:Second");
101 | #endif
102 | return false;
103 | }
104 | return true;
105 | }
106 |
107 | void UPOFF::setTime(uint8_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) {
108 | byte weekday = rtc.whatWeekday(day, month, 0, year);
109 | rtc.initClock();
110 | delay(10);
111 | rtc.setDateTime(day, weekday, month, 0, year, hour, minute, second);
112 | delay(10);
113 | rtc.clearVoltLow();
114 | }
115 |
116 | String UPOFF::getTime(void) {
117 | String out;
118 | out += rtc.formatDate(RTCC_DATE_ASIA); //Actually ISO 8601 international format. Use it.
119 | out += " ";
120 | out += rtc.formatTime(RTCC_TIME_HMS);
121 | return out;
122 | }
123 |
124 | void UPOFF::off(unsigned long seconds) {
125 | if(seconds < 240) {
126 | //When below 4 minutes we're using a second-countdown
127 | #ifdef UPOFF_DEBUG
128 | Serial.print("Setting timer to ");
129 | Serial.print(seconds);
130 | Serial.println(" Seconds @ 1Hz");
131 | #endif
132 | rtc.setTimer(seconds, TMR_1Hz, false);
133 | }else{
134 | byte dev = seconds % 60;
135 | seconds /= 60;
136 | if(dev >= 30)
137 | seconds++;
138 |
139 | #ifdef UPOFF_DEBUG
140 | Serial.print("Not enough bits - calculated ");
141 | Serial.print(seconds);
142 | Serial.println(" Minutes");
143 | #endif
144 |
145 | if(seconds < 240) {
146 | //Between 4 minutes and 4 hours we're using a minute based countdown
147 | //Triggers might deviate up to 30 seconds from target
148 |
149 | #ifdef UPOFF_DEBUG
150 | Serial.print("Setting timer to ");
151 | Serial.print(seconds);
152 | Serial.println(" Minutes @ 1/60Hz");
153 | #endif
154 |
155 | rtc.setTimer(seconds, TMR_1MIN, false);
156 | }else{
157 | //Above 4 hours we use the alarm functionality. With luck it works
158 | //even tho the calculations are…uhm…interesting
159 |
160 | #ifdef UPOFF_DEBUG
161 | Serial.println("Switching to alarm mode. Current Time:");
162 | Serial.println(getTime());
163 | #endif
164 |
165 | uint32_t target = 0;
166 | target += rtc.getDay() * 24 * 60;
167 | target += rtc.getHour() * 60;
168 | target += rtc.getMinute();
169 |
170 | #ifdef UPOFF_DEBUG
171 | Serial.println("Second calculation:");
172 | Serial.print(target);
173 | #endif
174 |
175 | target += seconds;
176 |
177 | #ifdef UPOFF_DEBUG
178 | Serial.print(" + ");
179 | Serial.print(seconds);
180 | Serial.print(" = ");
181 | Serial.println(target);
182 | #endif
183 |
184 | byte aDay = (target / (24*60));
185 | target -= (aDay * (24*60));
186 | byte aHour = (target / 60);
187 | target -= (aHour * 60);
188 | byte aMinute = target;
189 |
190 | #ifdef UPOFF_DEBUG
191 | Serial.print("D:");
192 | Serial.print(aDay);
193 | Serial.print(" H:");
194 | Serial.print(aHour);
195 | Serial.print(" M:");
196 | Serial.println(aMinute);
197 | #endif
198 |
199 | byte daysThisMonth = rtc.daysInMonth(rtc.getCentury(), rtc.getYear(), rtc.getMonth());
200 |
201 | if(aDay > daysThisMonth) {
202 | #ifdef UPOFF_DEBUG
203 | Serial.print("Target day ");
204 | Serial.print(aDay);
205 | Serial.print(" is above this month limit of ");
206 | Serial.print(daysThisMonth);
207 | Serial.print(" -> new Day is ");
208 | #endif
209 | aDay -= daysThisMonth;
210 | #ifdef UPOFF_DEBUG
211 | Serial.println(aDay);
212 | #endif
213 | }
214 |
215 | rtc.setAlarm(aMinute, aHour, aDay, 0xFF);
216 | }
217 | }
218 |
219 | off();
220 | }
221 | #endif
222 |
223 | /**
224 | * Turn power off
225 | */
226 | void UPOFF::off(void) {
227 | digitalWrite(_uPoffOnPin, LOW);
228 |
229 | //better safe than sorry…
230 | #if defined(ESP8266)
231 | WiFi.mode( WIFI_OFF );
232 | WiFi.forceSleepBegin();
233 | ESP.deepSleep(0);
234 | #elif defined(ESP32)
235 | WiFi.mode(WIFI_OFF);
236 | btStop();
237 | esp_deep_sleep_start();
238 | #elif defined(__AVR__)
239 | set_sleep_mode(SLEEP_MODE_PWR_DOWN);
240 | sleep_enable();
241 | sleep_mode();
242 | #elif defined(_STM32_) and defined(HAL_PWR_MODULE_ENABLED)
243 | __HAL_RCC_PWR_CLK_ENABLE(); // Enable Power Control clock
244 | HAL_PWREx_EnableUltraLowPower(); // Ultra low power mode
245 |
246 | // Switch to STOPMode
247 | HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
248 | #endif
249 |
250 | while(1) {
251 | #if defined(ESP8266) || defined(ESP32)
252 | yield();
253 | #endif
254 | }
255 | }
256 |
257 | #endif /* UPOFF__CPP */
258 |
--------------------------------------------------------------------------------
/upoff.h:
--------------------------------------------------------------------------------
1 | /**
2 | uPoff
3 |
4 | @copyright 2020 Florian Knodt, www.adlerweb.info
5 | */
6 |
7 | #include
8 | #include "Wire.h"
9 | #ifndef UPOFF_NORTC
10 | #include
11 | #endif
12 |
13 | #if defined(ESP8266)
14 | #include
15 | #elif defined(ESP32)
16 | #include
17 | #elif defined(__AVR__)
18 | #include
19 | #endif
20 |
21 | #ifndef UPOFF__H
22 | #define UPOFF__H
23 |
24 | class UPOFF{
25 | private:
26 | /**
27 | * Pin unsed to keep power on
28 | */
29 | int _uPoffOnPin;
30 |
31 | public:
32 | #ifndef UPOFF_NORTC
33 | /**
34 | * RTC access
35 | */
36 | Rtc_Pcf8563 rtc;
37 | #endif
38 |
39 | /**
40 | * Turn power off
41 | */
42 | void off(void);
43 |
44 | /**
45 | * Keep power on
46 | * @param int Pin used to keep power on ("ON")
47 | * @return bool always false
48 | */
49 | bool on(int onPin);
50 |
51 | #ifndef UPOFF_NORTC
52 | /**
53 | * Check reason for wakeup
54 | * @return bool true = timed wake; false = external wake
55 | */
56 | bool rtcCheckReason(void);
57 |
58 | /**
59 | * Keep power on
60 | * @param int Pin used to keep power on ("ON")
61 | * @param bool Use I²C if true
62 | * @return bool true = timed wake; false = external wake
63 | */
64 | bool on(int onPin, bool i2c);
65 |
66 | #if defined(ESP8266) or defined(ESP32)
67 | /**
68 | * Keep power on
69 | * @param int Pin used to keep power on ("ON")
70 | * @param int Pin used for I²C SDA
71 | * @param int Pin used for I²C SCL
72 | * @return bool true = timed wake; false = external wake
73 | */
74 | bool on(int onPin, int sda, int scl);
75 | #endif
76 |
77 | /**
78 | * Check if RTC is running without a problem
79 | */
80 | bool isValid(bool checkVolt=true);
81 |
82 | /**
83 | * Set RTC date and time
84 | * @param year Year
85 | * @param month Month
86 | * @param day Day
87 | * @param hour Hour
88 | * @param minute Minute
89 | * @param second Second
90 | */
91 | void setTime(uint8_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second);
92 |
93 | /**
94 | * Get RTC date and time
95 | * @return String current time in YYYY-mm-dd HH:MM:SS
96 | */
97 | String getTime(void);
98 |
99 | /**
100 | * Turn power off and set timer
101 | * @param unsigned long seconds to wake
102 | */
103 | void off(unsigned long seconds);
104 | #endif
105 |
106 | };
107 |
108 | #endif /* UPOFF__H */
109 |
--------------------------------------------------------------------------------