add doc
[red-alert.git] / elec / gyro.net
index 223be52..540cca1 100644 (file)
@@ -1,8 +1,8 @@
 (export (version D)
   (design
-    (source /home/zer0/projects/kicad-gyro/gyro.sch)
-    (date "Tue 27 Nov 2018 09:29:17 PM CET")
-    (tool "Eeschema 4.0.7+dfsg1-1")
+    (source /home/zer0/projects/red-alert/elec/gyro.sch)
+    (date "Mon 15 Jul 2019 10:02:52 PM CEST")
+    (tool "Eeschema 5.0.2+dfsg1-1")
     (sheet (number 1) (name /) (tstamps /)
       (title_block
         (title)
         (comment (number 3) (value ""))
         (comment (number 4) (value "")))))
   (components
-    (comp (ref U1)
-      (value ATTINY167-SU)
-      (footprint Housings_SOIC:SOIC-20W_7.5x12.8mm_Pitch1.27mm)
-      (libsource (lib atmel) (part ATTINY167-SU))
-      (sheetpath (names /) (tstamps /))
-      (tstamp 5A342611))
     (comp (ref U2)
       (value LED1642GW)
       (footprint Housings_SSOP:TSSOP-24_4.4x7.8mm_Pitch0.65mm)
-      (libsource (lib gyro-cache) (part LED1642GW))
+      (libsource (lib gyro-rescue) (part LED1642GW) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A34355D))
-    (comp (ref D14)
+    (comp (ref D1)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395D4C))
-    (comp (ref D10)
+    (comp (ref D5)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395DC5))
-    (comp (ref D12)
+    (comp (ref D3)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395DE2))
-    (comp (ref D9)
+    (comp (ref D6)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395E53))
-    (comp (ref D11)
+    (comp (ref D4)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395E8E))
-    (comp (ref D13)
+    (comp (ref D2)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395EB1))
-    (comp (ref D4)
+    (comp (ref D11)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395ED6))
-    (comp (ref D7)
+    (comp (ref D8)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395EFD))
-    (comp (ref D6)
+    (comp (ref D9)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395F26))
-    (comp (ref D8)
+    (comp (ref D7)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395F51))
-    (comp (ref D5)
+    (comp (ref D10)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395FBE))
     (comp (ref SW1)
       (value SW_Push)
       (footprint Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm)
-      (libsource (lib switches) (part SW_Push))
+      (libsource (lib gyro-rescue) (part SW_Push) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A395FF5))
     (comp (ref SW2)
       (value SW_Push)
       (footprint Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm)
-      (libsource (lib switches) (part SW_Push))
+      (libsource (lib gyro-rescue) (part SW_Push) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A396070))
     (comp (ref BZ1)
       (value Buzzer)
       (footprint Buzzers_Beepers:Buzzer_12x9.5RM7.6)
-      (libsource (lib device) (part Buzzer))
+      (libsource (lib gyro-rescue) (part Buzzer) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5A3961A8))
-    (comp (ref D3)
+    (comp (ref D12)
       (value LED)
-      (footprint LEDs:LED_D5.0mm)
-      (libsource (lib device) (part LED))
+      (footprint LED_THT:LED_D5.0mm)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF5D2A0))
-    (comp (ref R4)
-      (value R)
+    (comp (ref R6)
+      (value 10K)
       (footprint Resistors_SMD:R_0805)
-      (libsource (lib device) (part R))
+      (libsource (lib gyro-rescue) (part R) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF5DB45))
     (comp (ref J1)
       (value Conn_02x05_Odd_Even)
       (footprint Pin_Headers:Pin_Header_Straight_2x05_Pitch2.54mm)
-      (libsource (lib conn) (part Conn_02x05_Odd_Even))
+      (libsource (lib gyro-rescue) (part Conn_02x05_Odd_Even) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF5E8E7))
-    (comp (ref D1)
-      (value LED)
-      (footprint LEDs:LED_0805)
-      (libsource (lib device) (part LED))
+    (comp (ref L1)
+      (value "LED GREEN")
+      (footprint LED_SMD:LED_0603_1608Metric)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF5F097))
-    (comp (ref D2)
-      (value LED)
-      (footprint LEDs:LED_0805)
-      (libsource (lib device) (part LED))
+    (comp (ref L2)
+      (value "LED RED")
+      (footprint LED_SMD:LED_0603_1608Metric)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF5F15D))
     (comp (ref R1)
-      (value R)
+      (value 2.2K)
       (footprint Resistors_SMD:R_0805)
-      (libsource (lib device) (part R))
+      (libsource (lib gyro-rescue) (part R) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF5F366))
     (comp (ref R2)
-      (value R)
+      (value 2.2K)
       (footprint Resistors_SMD:R_0805)
-      (libsource (lib device) (part R))
+      (libsource (lib gyro-rescue) (part R) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF5F406))
-    (comp (ref R3)
-      (value R)
+    (comp (ref R5)
+      (value 2.2K)
       (footprint Resistors_SMD:R_0805)
-      (libsource (lib device) (part R))
+      (libsource (lib gyro-rescue) (part R) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF604B7))
     (comp (ref RV1)
       (value POT)
       (footprint Potentiometers:Potentiometer_Trimmer-EVM3E)
-      (libsource (lib device) (part POT))
+      (libsource (lib gyro-rescue) (part POT) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF607D4))
     (comp (ref U3)
       (value FT232RL)
       (footprint Housings_SSOP:SSOP-28_5.3x10.2mm_Pitch0.65mm)
-      (libsource (lib gyro-cache) (part FT232RL))
+      (libsource (lib gyro-rescue) (part FT232RL) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF71815))
-    (comp (ref D16)
-      (value LED)
-      (footprint LEDs:LED_0805)
-      (libsource (lib device) (part LED))
+    (comp (ref L4)
+      (value "LED YELLOW")
+      (footprint LED_SMD:LED_0603_1608Metric)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF724D6))
-    (comp (ref D15)
-      (value LED)
-      (footprint LEDs:LED_0805)
-      (libsource (lib device) (part LED))
+    (comp (ref L3)
+      (value "LED BLUE")
+      (footprint LED_SMD:LED_0603_1608Metric)
+      (libsource (lib gyro-rescue) (part LED) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF7259C))
-    (comp (ref R5)
-      (value R)
+    (comp (ref R3)
+      (value 2.2K)
       (footprint Resistors_SMD:R_0805)
-      (libsource (lib device) (part R))
+      (libsource (lib gyro-rescue) (part R) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF72645))
-    (comp (ref R6)
-      (value R)
+    (comp (ref R4)
+      (value 2.2K)
       (footprint Resistors_SMD:R_0805)
-      (libsource (lib device) (part R))
+      (libsource (lib gyro-rescue) (part R) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF726D9))
     (comp (ref C1)
-      (value C)
+      (value 100n)
       (footprint Capacitors_SMD:C_0805)
-      (libsource (lib device) (part C))
+      (libsource (lib gyro-rescue) (part C) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF723A9))
     (comp (ref C2)
-      (value C)
+      (value 100n)
       (footprint Capacitors_SMD:C_0805)
-      (libsource (lib device) (part C))
+      (libsource (lib gyro-rescue) (part C) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF72480))
     (comp (ref C3)
-      (value C)
+      (value 100n)
       (footprint Capacitors_SMD:C_0805)
-      (libsource (lib device) (part C))
+      (libsource (lib gyro-rescue) (part C) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BF72500))
     (comp (ref J2)
       (value Conn_01x04)
       (footprint Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mm)
-      (libsource (lib conn) (part Conn_01x04))
+      (libsource (lib gyro-rescue) (part Conn_01x04) (description ""))
       (sheetpath (names /) (tstamps /))
       (tstamp 5BFD9F6B))
     (comp (ref Q1)
       (value MMBT3904)
       (footprint TO_SOT_Packages_SMD:SOT-23)
-      (libsource (lib transistors) (part MMBT3904))
+      (libsource (lib gyro-rescue) (part MMBT3904) (description ""))
+      (sheetpath (names /) (tstamps /))
+      (tstamp 5BFDC682))
+    (comp (ref U1)
+      (value ATMEGA328P-AU)
+      (footprint Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm)
+      (libsource (lib gyro-rescue) (part ATMEGA328P-AU) (description ""))
+      (sheetpath (names /) (tstamps /))
+      (tstamp 5CC5BD84))
+    (comp (ref C4)
+      (value 100n)
+      (footprint Capacitors_SMD:C_0805)
+      (libsource (lib gyro-rescue) (part C) (description ""))
+      (sheetpath (names /) (tstamps /))
+      (tstamp 5CC61CF1))
+    (comp (ref C5)
+      (value 100n)
+      (footprint Capacitors_SMD:C_0805)
+      (libsource (lib gyro-rescue) (part C) (description ""))
+      (sheetpath (names /) (tstamps /))
+      (tstamp 5CC61D77))
+    (comp (ref C6)
+      (value 100n)
+      (footprint Capacitors_SMD:C_0805)
+      (libsource (lib gyro-rescue) (part C) (description ""))
       (sheetpath (names /) (tstamps /))
-      (tstamp 5BFDC682)))
+      (tstamp 5CC62ACC))
+    (comp (ref C7)
+      (value 47u)
+      (footprint Capacitors_THT:CP_Radial_D5.0mm_P2.00mm)
+      (libsource (lib gyro-rescue) (part CP) (description ""))
+      (sheetpath (names /) (tstamps /))
+      (tstamp 5CC62BC4))
+    (comp (ref R7)
+      (value 10K)
+      (footprint Resistors_SMD:R_0805)
+      (libsource (lib gyro-rescue) (part R) (description ""))
+      (sheetpath (names /) (tstamps /))
+      (tstamp 5CC8A24A)))
   (libparts
-    (libpart (lib atmel) (part ATTINY167-SU)
-      (description "SO20, 16k Flash, 512B SRAM, 512B EEPROM, Debug Wire")
-      (docs http://www.atmel.com/Images/Atmel-8265-8-bit-AVR-Microcontroller-tinyAVR-ATtiny87-ATtiny167_datasheet.pdf)
-      (fields
-        (field (name Reference) U)
-        (field (name Value) ATTINY167-SU)
-        (field (name Footprint) Housings_SOIC:SOIC-20W_7.5x12.8mm_Pitch1.27mm))
-      (pins
-        (pin (num 1) (name "(PCINT0/RXLIN/RXD/ADC0)PA0") (type BiDi))
-        (pin (num 2) (name "(PCINT1/TXLIN/TXD/ADC1)PA1") (type BiDi))
-        (pin (num 3) (name "(PCINT2/MISO/DO/OC0A/ADC2)PA2") (type BiDi))
-        (pin (num 4) (name "(PCINT3/INT1/ISRC/ADC3)PA3") (type BiDi))
-        (pin (num 5) (name AVCC) (type power_in))
-        (pin (num 6) (name AGND) (type power_in))
-        (pin (num 7) (name "(PCINT4/MOSI/SDA/DI/ICP1/ADC4)PA4") (type BiDi))
-        (pin (num 8) (name "(PCINT5/SCK/SCL/USCK/T1/ADC5)PA5") (type BiDi))
-        (pin (num 9) (name "(PCINT6/~SS~/AIN0/ADC6)PA6") (type BiDi))
-        (pin (num 10) (name "(PCINT7/AREF/XREF/AIN1/ADC7)PA7") (type BiDi))
-        (pin (num 11) (name "(PCINT15/OC1BX/dW/~RESET~/ADC10)PB7") (type BiDi))
-        (pin (num 12) (name "(PCINT14/OC1AX/INT0/ADC9)PB6") (type BiDi))
-        (pin (num 13) (name "(PCINT13/OC1BW/XTAL2/CLKO/ADC8)PB5") (type BiDi))
-        (pin (num 14) (name "(PCINT12/OC1AW/XTAL1/CLKI)PB4") (type BiDi))
-        (pin (num 15) (name VCC) (type power_in))
-        (pin (num 16) (name GND) (type power_in))
-        (pin (num 17) (name "(PCINT11/OC1BV)PB3") (type BiDi))
-        (pin (num 18) (name "(PCINT10/OC1AV/USCK/SCL)PB2") (type BiDi))
-        (pin (num 19) (name "(PCINT9/OC1BU/DO)PB1") (type BiDi))
-        (pin (num 20) (name "(PCINT8/OC1AU/DI/SDA)PB0") (type BiDi))))
-    (libpart (lib transistors) (part BC817)
-      (aliases
-        (alias BC818)
-        (alias BC847)
-        (alias BC848)
-        (alias BC849)
-        (alias BC850)
-        (alias MMBT3904))
-      (description "45V Vce, 0.8A Ic, NPN, SOT-23")
-      (docs http://www.fairchildsemi.com/ds/BC/BC817.pdf)
+    (libpart (lib gyro-rescue) (part ATMEGA328P-AU)
       (footprints
-        (fp SOT?23*))
+        (fp TQFP*7x7mm*Pitch0.8mm*))
       (fields
-        (field (name Reference) Q)
-        (field (name Value) BC817)
-        (field (name Footprint) TO_SOT_Packages_SMD:SOT-23))
+        (field (name Reference) U)
+        (field (name Value) ATMEGA328P-AU)
+        (field (name Footprint) Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm))
       (pins
-        (pin (num 1) (name B) (type input))
-        (pin (num 2) (name E) (type passive))
-        (pin (num 3) (name C) (type passive))))
-    (libpart (lib device) (part Buzzer)
-      (description "Buzzer, polar")
+        (pin (num 1) (name "(PCINT19/OC2B/INT1)PD3") (type BiDi))
+        (pin (num 2) (name "(PCINT20/XCK/T0)PD4") (type BiDi))
+        (pin (num 3) (name GND) (type power_in))
+        (pin (num 4) (name VCC) (type power_in))
+        (pin (num 5) (name GND) (type power_in))
+        (pin (num 6) (name VCC) (type power_in))
+        (pin (num 7) (name "(PCINT6/XTAL1/TOSC1)PB6") (type BiDi))
+        (pin (num 8) (name "(PCINT7/XTAL2/TOSC2)PB7") (type BiDi))
+        (pin (num 9) (name "(PCINT21/OC0B/T1)PD5") (type BiDi))
+        (pin (num 10) (name "(PCINT22/OC0A/AIN0)PD6") (type BiDi))
+        (pin (num 11) (name "(PCINT23/AIN1)PD7") (type BiDi))
+        (pin (num 12) (name "(PCINT0/CLKO/ICP1)PB0") (type BiDi))
+        (pin (num 13) (name "(PCINT1/OC1A)PB1") (type BiDi))
+        (pin (num 14) (name "(PCINT2/OC1B/~SS~)PB2") (type BiDi))
+        (pin (num 15) (name "(PCINT3/OC2A/MOSI)PB3") (type BiDi))
+        (pin (num 16) (name "(PCINT4/MISO)PB4") (type BiDi))
+        (pin (num 17) (name "(PCINT5/SCK)PB5") (type BiDi))
+        (pin (num 18) (name AVCC) (type power_in))
+        (pin (num 19) (name ADC6) (type input))
+        (pin (num 20) (name AREF) (type BiDi))
+        (pin (num 21) (name GND) (type power_in))
+        (pin (num 22) (name ADC7) (type input))
+        (pin (num 23) (name "(PCINT8/ADC0)PC0") (type BiDi))
+        (pin (num 24) (name "(PCINT9/ADC1)PC1") (type BiDi))
+        (pin (num 25) (name "(PCINT10/ADC2)PC2") (type BiDi))
+        (pin (num 26) (name "(PCINT11/ADC3)PC3") (type BiDi))
+        (pin (num 27) (name "(PCINT12/SDA/ADC4)PC4") (type BiDi))
+        (pin (num 28) (name "(PCINT13/SCL/ADC5)PC5") (type BiDi))
+        (pin (num 29) (name "(PCINT14/~RESET~)PC6") (type BiDi))
+        (pin (num 30) (name "(PCINT16/RXD)PD0") (type BiDi))
+        (pin (num 31) (name "(PCINT17/TXD)PD1") (type BiDi))
+        (pin (num 32) (name "(PCINT18/INT0)PD2") (type BiDi))))
+    (libpart (lib gyro-rescue) (part Buzzer)
       (footprints
         (fp *Buzzer*))
       (fields
       (pins
         (pin (num 1) (name -) (type passive))
         (pin (num 2) (name +) (type passive))))
-    (libpart (lib device) (part C)
-      (description "Unpolarized capacitor")
+    (libpart (lib gyro-rescue) (part C)
       (footprints
         (fp C_*))
       (fields
       (pins
         (pin (num 1) (name ~) (type passive))
         (pin (num 2) (name ~) (type passive))))
-    (libpart (lib conn) (part Conn_01x04)
-      (description "Generic connector, single row, 01x04")
-      (docs ~)
+    (libpart (lib gyro-rescue) (part CP)
+      (footprints
+        (fp CP_*))
+      (fields
+        (field (name Reference) C)
+        (field (name Value) CP))
+      (pins
+        (pin (num 1) (name ~) (type passive))
+        (pin (num 2) (name ~) (type passive))))
+    (libpart (lib gyro-rescue) (part Conn_01x04)
       (footprints
         (fp Connector*:*_??x*mm*)
         (fp Connector*:*1x??x*mm*)
         (pin (num 2) (name Pin_2) (type passive))
         (pin (num 3) (name Pin_3) (type passive))
         (pin (num 4) (name Pin_4) (type passive))))
-    (libpart (lib conn) (part Conn_02x05_Odd_Even)
-      (description "Generic connector, double row, 02x05, odd/even pin numbering scheme (row 1 odd numbers, row 2 even numbers)")
-      (docs ~)
+    (libpart (lib gyro-rescue) (part Conn_02x05_Odd_Even)
       (footprints
         (fp Connector*:*2x??x*mm*)
         (fp Connector*:*2x???Pitch*)
         (pin (num 8) (name Pin_8) (type passive))
         (pin (num 9) (name Pin_9) (type passive))
         (pin (num 10) (name Pin_10) (type passive))))
-    (libpart (lib gyro-cache) (part FT232RL)
+    (libpart (lib gyro-rescue) (part FT232RL)
       (footprints
         (fp SSOP*5.3x10.2mm*Pitch0.65mm*))
       (fields
         (pin (num 26) (name TEST) (type power_in))
         (pin (num 27) (name OSCI) (type input))
         (pin (num 28) (name OSCO) (type output))))
-    (libpart (lib device) (part LED)
-      (description "LED generic")
+    (libpart (lib gyro-rescue) (part LED)
       (footprints
         (fp LED*))
       (fields
       (pins
         (pin (num 1) (name K) (type passive))
         (pin (num 2) (name A) (type passive))))
-    (libpart (lib gyro-cache) (part LED1642GW)
+    (libpart (lib gyro-rescue) (part LED1642GW)
       (fields
         (field (name Reference) U)
         (field (name Value) LED1642GW))
         (pin (num 22) (name SDO) (type input))
         (pin (num 23) (name R-EXT) (type input))
         (pin (num 24) (name VDD) (type input))))
-    (libpart (lib device) (part POT)
-      (description Potentiometer)
+    (libpart (lib gyro-rescue) (part MMBT3904)
+      (footprints
+        (fp SOT?23*))
+      (fields
+        (field (name Reference) Q)
+        (field (name Value) MMBT3904)
+        (field (name Footprint) TO_SOT_Packages_SMD:SOT-23))
+      (pins
+        (pin (num 1) (name B) (type input))
+        (pin (num 2) (name E) (type passive))
+        (pin (num 3) (name C) (type passive))))
+    (libpart (lib gyro-rescue) (part POT)
       (footprints
         (fp Potentiometer*))
       (fields
         (pin (num 1) (name 1) (type passive))
         (pin (num 2) (name 2) (type passive))
         (pin (num 3) (name 3) (type passive))))
-    (libpart (lib device) (part R)
-      (description Resistor)
+    (libpart (lib gyro-rescue) (part R)
       (footprints
         (fp R_*)
         (fp R_*))
       (pins
         (pin (num 1) (name ~) (type passive))
         (pin (num 2) (name ~) (type passive))))
-    (libpart (lib switches) (part SW_Push)
-      (description "Push button switch, generic, two pins")
+    (libpart (lib gyro-rescue) (part SW_Push)
       (fields
         (field (name Reference) SW)
         (field (name Value) SW_Push))
         (pin (num 1) (name 1) (type passive))
         (pin (num 2) (name 2) (type passive)))))
   (libraries
-    (library (logical device)
-      (uri /usr/share/kicad/library/device.lib))
-    (library (logical switches)
-      (uri /usr/share/kicad/library/switches.lib))
-    (library (logical transistors)
-      (uri /usr/share/kicad/library/transistors.lib))
-    (library (logical conn)
-      (uri /usr/share/kicad/library/conn.lib))
-    (library (logical atmel)
-      (uri /usr/share/kicad/library/atmel.lib))
-    (library (logical gyro-cache)
-      (uri /home/zer0/projects/kicad-gyro/gyro-cache.lib)))
+    (library (logical gyro-rescue)
+      (uri /home/zer0/projects/red-alert/elec/gyro-rescue.lib)))
   (nets
-    (net (code 1) (name /PWCLK)
-      (node (ref U2) (pin 21))
-      (node (ref U1) (pin 17)))
-    (net (code 2) (name /CTRL)
-      (node (ref SW1) (pin 1))
-      (node (ref U1) (pin 13)))
-    (net (code 3) (name GND)
-      (node (ref D7) (pin 1))
-      (node (ref D4) (pin 1))
-      (node (ref SW2) (pin 2))
+    (net (code 1) (name GND)
+      (node (ref C6) (pin 2))
+      (node (ref R6) (pin 1))
+      (node (ref J1) (pin 4))
+      (node (ref U3) (pin 7))
+      (node (ref C7) (pin 2))
+      (node (ref L1) (pin 1))
+      (node (ref U1) (pin 5))
+      (node (ref L2) (pin 1))
       (node (ref SW1) (pin 2))
-      (node (ref D8) (pin 1))
-      (node (ref D6) (pin 1))
-      (node (ref J2) (pin 4))
-      (node (ref D5) (pin 1))
-      (node (ref C2) (pin 2))
-      (node (ref C1) (pin 2))
+      (node (ref SW2) (pin 2))
       (node (ref Q1) (pin 2))
+      (node (ref U1) (pin 21))
+      (node (ref U1) (pin 3))
+      (node (ref C5) (pin 2))
+      (node (ref C4) (pin 2))
+      (node (ref U3) (pin 21))
+      (node (ref U3) (pin 11))
+      (node (ref U3) (pin 26))
+      (node (ref U3) (pin 25))
       (node (ref U3) (pin 18))
-      (node (ref J1) (pin 10))
       (node (ref J1) (pin 8))
       (node (ref J1) (pin 6))
-      (node (ref J1) (pin 4))
-      (node (ref D9) (pin 1))
-      (node (ref D11) (pin 1))
-      (node (ref D3) (pin 1))
       (node (ref U2) (pin 1))
-      (node (ref U1) (pin 16))
-      (node (ref U1) (pin 6))
-      (node (ref D13) (pin 1))
+      (node (ref J1) (pin 10))
+      (node (ref J2) (pin 4))
+      (node (ref C3) (pin 2))
+      (node (ref C2) (pin 2))
+      (node (ref C1) (pin 2)))
+    (net (code 2) (name +5V)
+      (node (ref U2) (pin 24))
       (node (ref D12) (pin 1))
-      (node (ref D10) (pin 1))
-      (node (ref D14) (pin 1))
-      (node (ref R4) (pin 1))
-      (node (ref D2) (pin 1))
+      (node (ref J2) (pin 1))
+      (node (ref J1) (pin 2))
+      (node (ref U1) (pin 18))
       (node (ref D1) (pin 1))
-      (node (ref U3) (pin 26))
-      (node (ref U3) (pin 7))
-      (node (ref U3) (pin 11))
-      (node (ref C3) (pin 2))
-      (node (ref U3) (pin 21))
-      (node (ref U3) (pin 25)))
-    (net (code 4) (name /BUZZER)
-      (node (ref R3) (pin 2))
-      (node (ref U1) (pin 12)))
-    (net (code 5) (name /SDI)
-      (node (ref U1) (pin 9))
-      (node (ref U2) (pin 2)))
-    (net (code 6) (name "Net-(Q1-Pad1)")
-      (node (ref Q1) (pin 1))
-      (node (ref R3) (pin 1)))
-    (net (code 7) (name +5V)
-      (node (ref U3) (pin 4))
+      (node (ref D5) (pin 1))
+      (node (ref D3) (pin 1))
+      (node (ref D6) (pin 1))
+      (node (ref D8) (pin 1))
       (node (ref C1) (pin 1))
-      (node (ref J1) (pin 2))
+      (node (ref D11) (pin 1))
+      (node (ref U1) (pin 6))
+      (node (ref D2) (pin 1))
+      (node (ref U1) (pin 4))
       (node (ref R1) (pin 2))
-      (node (ref C2) (pin 1))
+      (node (ref D4) (pin 1))
+      (node (ref C5) (pin 1))
+      (node (ref C4) (pin 1))
+      (node (ref D10) (pin 1))
+      (node (ref D7) (pin 1))
+      (node (ref D9) (pin 1))
+      (node (ref U3) (pin 4))
+      (node (ref R7) (pin 2))
+      (node (ref R4) (pin 1))
+      (node (ref R3) (pin 1))
       (node (ref C3) (pin 1))
-      (node (ref U1) (pin 15))
-      (node (ref U1) (pin 5))
+      (node (ref U3) (pin 20))
       (node (ref RV1) (pin 2))
-      (node (ref U2) (pin 24))
-      (node (ref J2) (pin 1))
-      (node (ref R6) (pin 1))
-      (node (ref R5) (pin 1))
-      (node (ref U3) (pin 20)))
-    (net (code 8) (name "Net-(BZ1-Pad1)")
-      (node (ref BZ1) (pin 1))
-      (node (ref RV1) (pin 3)))
-    (net (code 9) (name "Net-(BZ1-Pad2)")
-      (node (ref BZ1) (pin 2))
-      (node (ref Q1) (pin 3)))
-    (net (code 10) (name "Net-(U3-Pad9)")
-      (node (ref U3) (pin 9)))
-    (net (code 11) (name "Net-(J2-Pad2)")
+      (node (ref C2) (pin 1))
+      (node (ref C7) (pin 1))
+      (node (ref C6) (pin 1)))
+    (net (code 3) (name "Net-(J2-Pad2)")
       (node (ref U3) (pin 16))
       (node (ref J2) (pin 2)))
-    (net (code 12) (name "Net-(J2-Pad3)")
-      (node (ref J2) (pin 3))
-      (node (ref U3) (pin 15)))
-    (net (code 13) (name "Net-(U3-Pad14)")
+    (net (code 4) (name "Net-(J2-Pad3)")
+      (node (ref U3) (pin 15))
+      (node (ref J2) (pin 3)))
+    (net (code 5) (name "Net-(L4-Pad2)")
+      (node (ref L4) (pin 2))
+      (node (ref R4) (pin 2)))
+    (net (code 6) (name "Net-(L4-Pad1)")
+      (node (ref L4) (pin 1))
+      (node (ref U3) (pin 22)))
+    (net (code 7) (name "Net-(U3-Pad2)")
+      (node (ref U3) (pin 2)))
+    (net (code 8) (name "Net-(U3-Pad19)")
+      (node (ref U3) (pin 19)))
+    (net (code 9) (name "Net-(U3-Pad17)")
+      (node (ref U3) (pin 17)))
+    (net (code 10) (name "Net-(U3-Pad14)")
       (node (ref U3) (pin 14)))
-    (net (code 14) (name "Net-(U3-Pad13)")
+    (net (code 11) (name "Net-(U3-Pad13)")
       (node (ref U3) (pin 13)))
-    (net (code 15) (name "Net-(D16-Pad1)")
-      (node (ref U3) (pin 22))
-      (node (ref D16) (pin 1)))
-    (net (code 16) (name "Net-(U3-Pad12)")
+    (net (code 12) (name "Net-(U3-Pad12)")
       (node (ref U3) (pin 12)))
-    (net (code 17) (name "Net-(U3-Pad10)")
+    (net (code 13) (name "Net-(U3-Pad27)")
+      (node (ref U3) (pin 27)))
+    (net (code 14) (name "Net-(U3-Pad10)")
       (node (ref U3) (pin 10)))
-    (net (code 18) (name "Net-(RV1-Pad1)")
-      (node (ref RV1) (pin 1)))
-    (net (code 19) (name "Net-(U3-Pad6)")
+    (net (code 15) (name /BUZZER)
+      (node (ref U1) (pin 14))
+      (node (ref R5) (pin 2)))
+    (net (code 16) (name /CLK)
+      (node (ref U2) (pin 3))
+      (node (ref U1) (pin 2)))
+    (net (code 17) (name /LE)
+      (node (ref U1) (pin 1))
+      (node (ref U2) (pin 4)))
+    (net (code 18) (name /SDO)
+      (node (ref U1) (pin 32))
+      (node (ref U2) (pin 22)))
+    (net (code 19) (name /SDI)
+      (node (ref U2) (pin 2))
+      (node (ref U1) (pin 10)))
+    (net (code 20) (name /PWCLK)
+      (node (ref U1) (pin 9))
+      (node (ref U2) (pin 21)))
+    (net (code 21) (name /CTRL)
+      (node (ref SW1) (pin 1))
+      (node (ref U1) (pin 23)))
+    (net (code 22) (name "Net-(L3-Pad2)")
+      (node (ref L3) (pin 2))
+      (node (ref R3) (pin 2)))
+    (net (code 23) (name "Net-(L3-Pad1)")
+      (node (ref L3) (pin 1))
+      (node (ref U3) (pin 23)))
+    (net (code 24) (name /TX)
+      (node (ref U1) (pin 31))
+      (node (ref U3) (pin 5)))
+    (net (code 25) (name /RX)
+      (node (ref U3) (pin 1))
+      (node (ref U1) (pin 30)))
+    (net (code 26) (name "Net-(U3-Pad9)")
+      (node (ref U3) (pin 9)))
+    (net (code 27) (name "Net-(U3-Pad6)")
       (node (ref U3) (pin 6)))
-    (net (code 20) (name "Net-(U3-Pad3)")
+    (net (code 28) (name "Net-(U3-Pad3)")
       (node (ref U3) (pin 3)))
-    (net (code 21) (name "Net-(U3-Pad2)")
-      (node (ref U3) (pin 2)))
-    (net (code 22) (name /CLK)
-      (node (ref U1) (pin 18))
-      (node (ref U2) (pin 3)))
-    (net (code 23) (name /LE)
-      (node (ref U2) (pin 4))
+    (net (code 29) (name "Net-(U3-Pad28)")
+      (node (ref U3) (pin 28)))
+    (net (code 30) (name "Net-(U1-Pad28)")
+      (node (ref U1) (pin 28)))
+    (net (code 31) (name "Net-(U1-Pad27)")
+      (node (ref U1) (pin 27)))
+    (net (code 32) (name "Net-(U1-Pad26)")
+      (node (ref U1) (pin 26)))
+    (net (code 33) (name "Net-(U1-Pad25)")
+      (node (ref U1) (pin 25)))
+    (net (code 34) (name "Net-(U1-Pad24)")
+      (node (ref U1) (pin 24)))
+    (net (code 35) (name "Net-(U1-Pad22)")
+      (node (ref U1) (pin 22)))
+    (net (code 36) (name "Net-(U1-Pad20)")
       (node (ref U1) (pin 20)))
-    (net (code 24) (name /SDO)
-      (node (ref U1) (pin 10))
-      (node (ref U2) (pin 22)))
-    (net (code 25) (name "Net-(D2-Pad2)")
-      (node (ref R2) (pin 1))
-      (node (ref D2) (pin 2)))
-    (net (code 26) (name "Net-(D1-Pad2)")
-      (node (ref D1) (pin 2))
-      (node (ref R1) (pin 1)))
-    (net (code 27) (name /MISO)
-      (node (ref U1) (pin 3))
-      (node (ref J1) (pin 9)))
-    (net (code 28) (name /SCK)
-      (node (ref U1) (pin 8))
-      (node (ref J1) (pin 7)))
-    (net (code 29) (name /RESET)
-      (node (ref U1) (pin 11))
-      (node (ref SW2) (pin 1))
-      (node (ref J1) (pin 5)))
-    (net (code 30) (name /MOSI)
-      (node (ref J1) (pin 1))
-      (node (ref U1) (pin 7)))
-    (net (code 31) (name /DBGLED)
-      (node (ref R2) (pin 2))
-      (node (ref U1) (pin 4)))
-    (net (code 32) (name /RX)
-      (node (ref U1) (pin 1))
-      (node (ref U3) (pin 1)))
-    (net (code 33) (name /TX)
-      (node (ref U3) (pin 5))
-      (node (ref U1) (pin 2)))
-    (net (code 34) (name "Net-(U1-Pad19)")
+    (net (code 37) (name "Net-(U1-Pad19)")
       (node (ref U1) (pin 19)))
-    (net (code 35) (name "Net-(U1-Pad14)")
-      (node (ref U1) (pin 14)))
-    (net (code 36) (name "Net-(D15-Pad2)")
-      (node (ref D15) (pin 2))
-      (node (ref R5) (pin 2)))
-    (net (code 37) (name "Net-(D15-Pad1)")
-      (node (ref U3) (pin 23))
-      (node (ref D15) (pin 1)))
-    (net (code 38) (name "Net-(D16-Pad2)")
-      (node (ref R6) (pin 2))
-      (node (ref D16) (pin 2)))
-    (net (code 39) (name "Net-(U3-Pad19)")
-      (node (ref U3) (pin 19)))
-    (net (code 40) (name "Net-(U3-Pad28)")
-      (node (ref U3) (pin 28)))
-    (net (code 41) (name "Net-(U3-Pad27)")
-      (node (ref U3) (pin 27)))
-    (net (code 42) (name "Net-(U3-Pad17)")
-      (node (ref U3) (pin 17)))
-    (net (code 43) (name "Net-(D5-Pad2)")
-      (node (ref U2) (pin 14))
-      (node (ref D5) (pin 2)))
-    (net (code 44) (name "Net-(D8-Pad2)")
-      (node (ref D8) (pin 2))
-      (node (ref U2) (pin 11)))
+    (net (code 38) (name "Net-(U1-Pad13)")
+      (node (ref U1) (pin 13)))
+    (net (code 39) (name "Net-(U1-Pad12)")
+      (node (ref U1) (pin 12)))
+    (net (code 40) (name "Net-(U1-Pad11)")
+      (node (ref U1) (pin 11)))
+    (net (code 41) (name "Net-(Q1-Pad1)")
+      (node (ref R5) (pin 1))
+      (node (ref Q1) (pin 1)))
+    (net (code 42) (name "Net-(U1-Pad8)")
+      (node (ref U1) (pin 8)))
+    (net (code 43) (name "Net-(D4-Pad2)")
+      (node (ref U2) (pin 8))
+      (node (ref D4) (pin 2)))
+    (net (code 44) (name "Net-(D5-Pad2)")
+      (node (ref D5) (pin 2))
+      (node (ref U2) (pin 9)))
     (net (code 45) (name "Net-(D6-Pad2)")
       (node (ref D6) (pin 2))
-      (node (ref U2) (pin 13)))
-    (net (code 46) (name "Net-(D4-Pad2)")
-      (node (ref D4) (pin 2))
-      (node (ref U2) (pin 15)))
-    (net (code 47) (name "Net-(D13-Pad2)")
-      (node (ref U2) (pin 6))
-      (node (ref D13) (pin 2)))
-    (net (code 48) (name "Net-(D7-Pad2)")
-      (node (ref D7) (pin 2))
+      (node (ref U2) (pin 10)))
+    (net (code 46) (name "Net-(D7-Pad2)")
+      (node (ref U2) (pin 11))
+      (node (ref D7) (pin 2)))
+    (net (code 47) (name "Net-(D8-Pad2)")
+      (node (ref D8) (pin 2))
       (node (ref U2) (pin 12)))
-    (net (code 49) (name "Net-(D9-Pad2)")
+    (net (code 48) (name "Net-(D12-Pad2)")
+      (node (ref U2) (pin 16))
+      (node (ref D12) (pin 2)))
+    (net (code 49) (name "Net-(D11-Pad2)")
+      (node (ref U2) (pin 15))
+      (node (ref D11) (pin 2)))
+    (net (code 50) (name "Net-(D10-Pad2)")
+      (node (ref U2) (pin 14))
+      (node (ref D10) (pin 2)))
+    (net (code 51) (name "Net-(D9-Pad2)")
       (node (ref D9) (pin 2))
-      (node (ref U2) (pin 10)))
-    (net (code 50) (name "Net-(D14-Pad2)")
-      (node (ref D14) (pin 2))
+      (node (ref U2) (pin 13)))
+    (net (code 52) (name "Net-(D1-Pad2)")
+      (node (ref D1) (pin 2))
       (node (ref U2) (pin 5)))
-    (net (code 51) (name "Net-(D12-Pad2)")
-      (node (ref D12) (pin 2))
-      (node (ref U2) (pin 7)))
-    (net (code 52) (name "Net-(D10-Pad2)")
-      (node (ref D10) (pin 2))
-      (node (ref U2) (pin 9)))
-    (net (code 53) (name "Net-(U2-Pad19)")
+    (net (code 53) (name "Net-(D2-Pad2)")
+      (node (ref D2) (pin 2))
+      (node (ref U2) (pin 6)))
+    (net (code 54) (name "Net-(D3-Pad2)")
+      (node (ref U2) (pin 7))
+      (node (ref D3) (pin 2)))
+    (net (code 55) (name "Net-(U2-Pad20)")
+      (node (ref U2) (pin 20)))
+    (net (code 56) (name "Net-(U2-Pad19)")
       (node (ref U2) (pin 19)))
-    (net (code 54) (name "Net-(U2-Pad18)")
+    (net (code 57) (name "Net-(U2-Pad18)")
       (node (ref U2) (pin 18)))
-    (net (code 55) (name "Net-(U2-Pad17)")
+    (net (code 58) (name "Net-(U2-Pad17)")
       (node (ref U2) (pin 17)))
-    (net (code 56) (name "Net-(U2-Pad20)")
-      (node (ref U2) (pin 20)))
-    (net (code 57) (name "Net-(R4-Pad2)")
-      (node (ref U2) (pin 23))
-      (node (ref R4) (pin 2)))
-    (net (code 58) (name "Net-(J1-Pad3)")
-      (node (ref J1) (pin 3)))
-    (net (code 59) (name "Net-(D11-Pad2)")
-      (node (ref U2) (pin 8))
-      (node (ref D11) (pin 2)))
-    (net (code 60) (name "Net-(D3-Pad2)")
-      (node (ref D3) (pin 2))
-      (node (ref U2) (pin 16)))))
\ No newline at end of file
+    (net (code 59) (name "Net-(BZ1-Pad2)")
+      (node (ref Q1) (pin 3))
+      (node (ref BZ1) (pin 2)))
+    (net (code 60) (name "Net-(BZ1-Pad1)")
+      (node (ref BZ1) (pin 1))
+      (node (ref RV1) (pin 3)))
+    (net (code 61) (name "Net-(L2-Pad2)")
+      (node (ref L2) (pin 2))
+      (node (ref R2) (pin 1)))
+    (net (code 62) (name "Net-(L1-Pad2)")
+      (node (ref L1) (pin 2))
+      (node (ref R1) (pin 1)))
+    (net (code 63) (name /MISO)
+      (node (ref J1) (pin 9))
+      (node (ref U1) (pin 16)))
+    (net (code 64) (name /SCK)
+      (node (ref U1) (pin 17))
+      (node (ref J1) (pin 7)))
+    (net (code 65) (name /RESET)
+      (node (ref U1) (pin 29))
+      (node (ref J1) (pin 5))
+      (node (ref SW2) (pin 1))
+      (node (ref R7) (pin 1)))
+    (net (code 66) (name /MOSI)
+      (node (ref J1) (pin 1))
+      (node (ref U1) (pin 15)))
+    (net (code 67) (name "Net-(RV1-Pad1)")
+      (node (ref RV1) (pin 1)))
+    (net (code 68) (name /DBGLED)
+      (node (ref R2) (pin 2))
+      (node (ref U1) (pin 7)))
+    (net (code 69) (name "Net-(R6-Pad2)")
+      (node (ref R6) (pin 2))
+      (node (ref U2) (pin 23)))
+    (net (code 70) (name "Net-(J1-Pad3)")
+      (node (ref J1) (pin 3)))))
\ No newline at end of file