diff --git a/.vscode/settings.json b/.vscode/settings.json
index 2537cdc421258d4b3fae8ea973ad1cf605766da5..2d88734d4c7443d27aea856665ddf74c832a8f78 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,10 +1,13 @@
{
"cSpell.ignoreWords": [
+ "aisler",
"datasheet",
"datasheets",
+ "leds",
"microcontroller",
+ "netlist",
"nrst",
"nucleo",
"pinout"
]
-}
\ No newline at end of file
+}
diff --git a/README.md b/README.md
index 052ba48835a7cc0188073fd244b21c56786d616d..4c6daa2b8fa93af86b990b4e873364f2ea5feb7e 100644
--- a/README.md
+++ b/README.md
@@ -164,7 +164,7 @@ Now add a reset button. Suitable value for capacitor is found in the MCU data sh
### 13) Power LEDs and test points
-In order to see that your system is correctly powered and to have easy access to probing your signal lines etc, it is recommended to add test points to your board in form of exposed pads. Preferrably use a pin header footprint for your GND test points however, so you can clip the scope probe's GND alligator clip to it. Provide at least one GND test point for each subcircuit block on your boards. You don't need to stuff them with pins by default during assembly, but it is nice to have the option to add those in when troubleshooting.
+In order to see that your system is correctly powered and to have easy access to probing your signal lines etc, it is recommended to add test points to your board in form of exposed pads. Preferably use a pin header footprint for your GND test points however, so you can clip the scope probe's GND alligator clip to it. Provide at least one GND test point for each subcircuit block on your boards. You don't need to stuff them with pins by default during assembly, but it is nice to have the option to add those in when troubleshooting.
It is also recommended you add LEDs to your power rails so you can see they're powered up correctly. You can use an LED such as [this red one](https://www.elfa.se/en/smd-led-645nm-0805-65cd-30ma-kingbright-kptd-2012surck/p/30118951), together with a suitable current limiting resistor. The forward voltage drop of a red LED is around 1.8V, aim for a forward current of about 2mA. You can use this [LED calculator](https://ohmslawcalculator.com/led-resistor-calculator) to calculate suitable resistor values for your LEDs. Use resistor values from the E12 series.
@@ -236,3 +236,132 @@ In Canvas look for Lab1-Review, and submit links to the repositories you have re
Address the raised issues, and commit your fixes. This is an iterative process, where you help each other coming up with a working solution by leading questions, hints etc. (Just giving the answer directly is not particularly fruitful, its a learning process right.)
Once you have addressed all issues, look in Canvas for Lab1-Final, and submit a link to your repository.
+
+---
+
+## Lab 2 (Layout)
+
+The main topic of this lab is to give you a good understanding on how to place the components on the Printed Circuit Board (PCB) and route the traces.
+
+## Task 2
+
+Read the whole lab instruction before you start.
+
+## 1) Creating a foot-print for the PMW3389DM
+
+Most components come with a ready made KiCad footprint (in either the stock libraries or some 3rd party library, e.g. [snapeda](https://www.snapeda.com)). However, for the PMW3389DM you need to create your own. Check in the [data-sheet](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiHvuC1trXuAhXFk4sKHfqDA-cQFjAAegQIARAC&url=https%3A%2F%2Fwww.pixart.com%2F_getfs.php%3Ftb%3Dproduct%26id%3D4%26fs%3Dck2_fs_cn&usg=AOvVaw1A1rR533Pt-7EgnVSS-_ch), section 2,3 for detailed geometry. Use the footprint editor (`Edit PCB Footprints`) to make a [footprint](https://forum.kicad.info/t/tutorial-how-to-make-a-footprint-in-kicad-5-1-x-from-scratch/11092).
+
+Set the grid to fit the spacing between the pins (1.78mm/0.070 inch) between pins, so a grid at 0.035 inch works. Notice, the sensor uses a skewed non standard offset between the rows (offset by 0.89mm/0.035 inch). Spacing between rows are 14.48mm/0.570 inch (unfortunately this won't match the grid though).
+
+Once you have made the footprint save it and go back to the schematic and associate the PMW3389 to your newly made footprint.
+
+## 2) Design rules
+
+You will now create a layout for your project. This is where you physically place the components on the PCB and draw the copper traces to connect the components. Before you start placing the components you have to setup some "design rules" for the layout so the manufacturer can make the PCB.
+
+We use Aisler, and their 2-layer "Beautiful Boards" with [specs](https://aisler.net/help/design-rules-and-specifications/specifications). Aisler directly accepts KiCad designs, which is great as we don't need to worry about exporting to other formats (such as Gerber). Moreover, there are ready made templates for setting up your KiCad project to fit their manufacturing process, [KiCad-Templates](https://github.com/sethhillbrand/kicad_templates).
+
+KiCad uses text files both for storing configuration parameters and your actual design. (Normally its a bad idea to fiddle with machine generated files manually, but they are actually quite readable and fairly easy to understand/navigate.)
+
+- Start KiCad and open your project.
+- Open the schematic of the project and generate a netlist-file, see buttons at the top.
+- Click on the button ”Run Pcbnew to layout printed circuit board”, (see buttons at the top).
+- Make sure that the grid is set to ”mm” and change the grid size to 1,0mm.
+- Click on the Read netlist button and select your newly generated netlist-file, click Read Current Netlist.
+
+- Click on the menu File/Board Setup/Design Rules, you should set:
+
+| Requirement | Value |
+| -------------------- | ------- |
+| Minimum track width | 0,2mm |
+| Minimum via diameter | 0,4mm |
+| Minimum via drill | 0,3mm |
+| Minimum hole to hole | 0,25 mm |
+
+(We don't use micro vias in our designs.)
+
+- Under "Net Classes" we add a new class. Click on the ”Add” button to add a classes named Power, and set the track width to 0,5mm. We want this net to handle more current, hence we use a wider trace.
+
+- Transfer GND, 1.9V, 3.3V and 5V to the (new) Power net class. Now you can close the Board Setup (and return to it later if you want to change some setting).
+
+## 3) Place you components
+
+- Select the layer `Edge.Cuts`, found to the right, and draw a rectangle 60mm x 40mm.
+
+The 60mm x 40mm rectangle is your workspace for this lab. When you are working with your project you need to adopt it to fit into your mouse shell.
+
+You will see that after reading in the netlist, your components are just lumped together so you will need to place your components in the yellow square that you crated earlier.
+
+Rotate and move around the components and try to minimize
+the crossed paths of the un-routed lines (gray lines). All components should fit inside the 60mm x 40mm rectangle.
+
+Common practice for placing your components:
+
+- Overall layout: Where you want your connectors, buttons etc. dictates the layout. For now, the USB and PWM3389 is important, later buttons/wheels, additional LEDs etc. need to be carefully considered. Check, e.g., how mice sensors are typically placed relative to the center/hand placement.
+
+- Components are typically designed with layout in mind, consider the orientation/placement to reduce routing complexity. (E.g., inputs are grouped on one edge, outputs on another, analog pins on a third etc., to facilitate the routing and improve signal integrity.)
+
+- Most datasheets will give an example layout for decoupling and interconnects, these are helpful to give an initial idea.
+
+- Place your MCU and it’s decoupling capacitors first. The decoupling capacitors should always be near it’s pins, this is needed to eliminate power-noise to the MCU.
+
+- Place other noise sensitive components, then finally the rest of the components.
+
+Hint! You can uncheck unnecessary layers and just keep ”F/B.Cu”, ”F/B.SilkS” and Edge.Cuts. If you have the schematic window zoomed in next to the layout window, you can see which component you have selected and it will make it easier to know which is what.
+
+## 4) Route the traces
+
+You will now draw where the copper should be placed, red means top layer and green means bottom layer.
+
+- Change the grid size to 0,1mm.
+- Click on the button ”Route tracks”.
+- Click on a pad you could like to connect, press ”V” if you need to do a via, route your way to the another pad.
+- Do this for all gray lines. (Unconnected == 0)
+
+Hint! While having the routing tool selected, right click/Routing options... and change between Shove and Walk around.
+
+No more gray lines?
+
+- Select front copper layer.
+- Draw a filled zone in the rectangle, Associate it to the GND net.
+- Do the same thing for the back layer.
+
+You have now created two ground planes, one one each side of the PCB. Alternately you may have a power power plane and a ground plane. You may activate to `Show filled areas in zones`, to see where copper will be poured.
+
+Placement and routing is an iterative process, you will likely need to try different options/approaches until you have your final layout.
+
+## 5) Cut-out for the PMW3389DM
+
+The sensor requires a cut-out, look in the data-sheet for exact dimensions. You can use the edge cut layer to make the cut out. Alternatively, you can make the edge cut a part of the footprint (but I have never done that, so not sure how hard it is, [see](https://forum.kicad.info/t/create-a-custom-shape-hole/12646)). A third alternative is to att the cut-out as a user layer in the footprint, just a guideline as to where to cut the PCB (in that case its just informative and does not have any meaning to KiCad.)
+
+Activate to `Show filled areas in zones`, to see verify that you don't pour copper under the the sensor.
+
+## 6) Design Rule Check (DRC)
+
+The Design Rule Check gives you warnings if you don’t comply with the Design rules that you previously setup. It will give you warnings on short circuits, clearance issues etc..
+
+- 1 Click on Tools/DRC, see that the options comply to the manufacturers specification.
+- 2 Fix errors.
+- 3 Repeat point 1 until errors == 0.
+
+---
+
+## First Submission Lab 2
+
+In Canvas look for Lab2-First Submission, and submit a link to your repo there before the deadline.
+
+## Review Lab 2
+
+You will be assigned two repositories to review. Clone the repositories and compare to your solution.
+
+Check each that each of the 6 steps has been correctly conducted, and comment on possible problems with the layout.
+
+Make an issue in each repository that you review with detailed comments to the author/repo owner. Later follow up on those comments and close them when your issues have been addressed to your satisfaction.
+
+In Canvas look for Lab2-Review, and submit links to the repositories you have reviewed before the corresponding deadline.
+
+## Final Lab 2
+
+Address the raised issues.
+
+Once you have addressed all issues, look in Canvas for Lab2-Final, and submit a link to your repository.
\ No newline at end of file
diff --git a/lab2/E7020E_lab1-cache.lib b/lab2/E7020E_lab1-cache.lib
new file mode 100644
index 0000000000000000000000000000000000000000..12f84ff26c93253fd8838a2a8556fb5113d7c015
--- /dev/null
+++ b/lab2/E7020E_lab1-cache.lib
@@ -0,0 +1,521 @@
+EESchema-LIBRARY Version 2.4
+#encoding utf-8
+#
+# Connector_Conn_01x06_Male
+#
+DEF Connector_Conn_01x06_Male J 0 40 Y N 1 F N
+F0 "J" 0 300 50 H V C CNN
+F1 "Connector_Conn_01x06_Male" 0 -400 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+$FPLIST
+ Connector*:*_1x??_*
+$ENDFPLIST
+DRAW
+S 34 -295 0 -305 1 1 6 F
+S 34 -195 0 -205 1 1 6 F
+S 34 -95 0 -105 1 1 6 F
+S 34 5 0 -5 1 1 6 F
+S 34 105 0 95 1 1 6 F
+S 34 205 0 195 1 1 6 F
+P 2 1 1 6 50 -300 34 -300 N
+P 2 1 1 6 50 -200 34 -200 N
+P 2 1 1 6 50 -100 34 -100 N
+P 2 1 1 6 50 0 34 0 N
+P 2 1 1 6 50 100 34 100 N
+P 2 1 1 6 50 200 34 200 N
+X Pin_1 1 200 200 150 L 50 50 1 1 P
+X Pin_2 2 200 100 150 L 50 50 1 1 P
+X Pin_3 3 200 0 150 L 50 50 1 1 P
+X Pin_4 4 200 -100 150 L 50 50 1 1 P
+X Pin_5 5 200 -200 150 L 50 50 1 1 P
+X Pin_6 6 200 -300 150 L 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# Connector_TestPoint
+#
+DEF Connector_TestPoint TP 0 30 N N 1 F N
+F0 "TP" 0 270 50 H V C CNN
+F1 "Connector_TestPoint" 0 200 50 H V C CNN
+F2 "" 200 0 50 H I C CNN
+F3 "" 200 0 50 H I C CNN
+$FPLIST
+ Pin*
+ Test*
+$ENDFPLIST
+DRAW
+C 0 130 30 0 1 0 N
+X 1 1 0 0 100 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# Connector_USB_C_Plug_USB2.0
+#
+DEF Connector_USB_C_Plug_USB2.0 P 0 40 Y Y 1 F N
+F0 "P" -400 750 50 H V L CNN
+F1 "Connector_USB_C_Plug_USB2.0" 500 750 50 H V R CNN
+F2 "" 150 0 50 H I C CNN
+F3 "" 150 0 50 H I C CNN
+$FPLIST
+ USB*C*Plug*
+$ENDFPLIST
+DRAW
+A -275 -150 75 -1799 -1 0 1 20 N -350 -150 -200 -150
+A -275 -150 25 -1799 -1 0 1 10 N -300 -150 -250 -150
+A -275 -150 25 -1799 -1 0 1 10 F -300 -150 -250 -150
+A -275 150 25 1 1799 0 1 10 F -250 150 -300 150
+A -275 150 25 1 1799 0 1 10 N -250 150 -300 150
+A -275 150 75 1 1799 0 1 20 N -200 150 -350 150
+C -100 45 25 0 1 10 F
+C 0 -230 50 0 1 0 F
+S -10 -700 10 -660 0 0 0 N
+S 400 -90 360 -110 0 0 0 N
+S 400 110 360 90 0 0 0 N
+S 400 310 360 290 0 0 0 N
+S 400 410 360 390 0 0 0 N
+S 400 610 360 590 0 0 0 N
+S -400 700 400 -700 0 1 10 f
+S -300 -150 -250 150 0 1 10 F
+S 75 70 125 120 0 1 10 F
+P 2 0 1 20 -350 -150 -350 150 N
+P 2 0 1 20 -200 150 -200 -150 N
+P 2 0 1 20 0 -230 0 170 N
+P 3 0 1 20 0 -130 -100 -30 -100 20 N
+P 3 0 1 20 0 -80 100 20 100 70 N
+P 4 0 1 10 -50 170 0 270 50 170 -50 170 F
+X GND A1 0 -900 200 U 50 50 1 1 P
+X GND A12 0 -900 200 U 50 50 1 1 P N
+X VBUS A4 600 600 200 L 50 50 1 1 P
+X CC A5 600 400 200 L 50 50 1 1 B
+X D+ A6 600 -100 200 L 50 50 1 1 B
+X D- A7 600 100 200 L 50 50 1 1 B
+X VBUS A9 600 600 200 L 50 50 1 1 P N
+X GND B1 0 -900 200 U 50 50 1 1 P N
+X GND B12 0 -900 200 U 50 50 1 1 P N
+X VBUS B4 600 600 200 L 50 50 1 1 P N
+X VCONN B5 600 300 200 L 50 50 1 1 B
+X VBUS B9 600 600 200 L 50 50 1 1 P N
+X SHIELD S1 -300 -900 200 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# Device_C
+#
+DEF Device_C C 0 10 N Y 1 F N
+F0 "C" 25 100 50 H V L CNN
+F1 "Device_C" 25 -100 50 H V L CNN
+F2 "" 38 -150 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+$FPLIST
+ C_*
+$ENDFPLIST
+DRAW
+P 2 0 1 20 -80 -30 80 -30 N
+P 2 0 1 20 -80 30 80 30 N
+X ~ 1 0 150 110 D 50 50 1 1 P
+X ~ 2 0 -150 110 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# Device_C_Small
+#
+DEF Device_C_Small C 0 10 N N 1 F N
+F0 "C" 10 70 50 H V L CNN
+F1 "Device_C_Small" 10 -80 50 H V L CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+$FPLIST
+ C_*
+$ENDFPLIST
+DRAW
+P 2 0 1 13 -60 -20 60 -20 N
+P 2 0 1 12 -60 20 60 20 N
+X ~ 1 0 100 80 D 50 50 1 1 P
+X ~ 2 0 -100 80 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# Device_Crystal
+#
+DEF Device_Crystal Y 0 40 N N 1 F N
+F0 "Y" 0 150 50 H V C CNN
+F1 "Device_Crystal" 0 -150 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+$FPLIST
+ Crystal*
+$ENDFPLIST
+DRAW
+S -45 100 45 -100 0 1 12 N
+P 2 0 1 0 -100 0 -75 0 N
+P 2 0 1 20 -75 -50 -75 50 N
+P 2 0 1 20 75 -50 75 50 N
+P 2 0 1 0 100 0 75 0 N
+X 1 1 -150 0 50 R 50 50 1 1 P
+X 2 2 150 0 50 L 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# Device_LED
+#
+DEF Device_LED D 0 40 N N 1 F N
+F0 "D" 0 100 50 H V C CNN
+F1 "Device_LED" 0 -100 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+$FPLIST
+ LED*
+ LED_SMD:*
+ LED_THT:*
+$ENDFPLIST
+DRAW
+P 2 0 1 10 -50 -50 -50 50 N
+P 2 0 1 0 -50 0 50 0 N
+P 4 0 1 10 50 -50 50 50 -50 0 50 -50 N
+P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N
+P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N
+X K 1 -150 0 100 R 50 50 1 1 P
+X A 2 150 0 100 L 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# Device_R
+#
+DEF Device_R R 0 0 N Y 1 F N
+F0 "R" 80 0 50 V V C CNN
+F1 "Device_R" 0 0 50 V V C CNN
+F2 "" -70 0 50 V I C CNN
+F3 "" 0 0 50 H I C CNN
+$FPLIST
+ R_*
+$ENDFPLIST
+DRAW
+S -40 -100 40 100 0 1 10 N
+X ~ 1 0 150 50 D 50 50 1 1 P
+X ~ 2 0 -150 50 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# Device_R_Small
+#
+DEF Device_R_Small R 0 10 N N 1 F N
+F0 "R" 30 20 50 H V L CNN
+F1 "Device_R_Small" 30 -40 50 H V L CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+$FPLIST
+ R_*
+$ENDFPLIST
+DRAW
+S -30 70 30 -70 0 1 8 N
+X ~ 1 0 100 30 D 50 50 1 1 P
+X ~ 2 0 -100 30 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# Jumper_Jumper_3_Open
+#
+DEF Jumper_Jumper_3_Open JP 0 0 Y N 1 F N
+F0 "JP" -100 -100 50 H V C CNN
+F1 "Jumper_Jumper_3_Open" 0 110 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+$FPLIST
+ Jumper*
+ TestPoint*3Pads*
+ TestPoint*Bridge*
+$ENDFPLIST
+DRAW
+A -65 -30 89 1282 518 0 1 0 N -120 40 -10 40
+A 65 -30 89 1282 518 0 1 0 N 10 40 120 40
+C -130 0 20 0 0 0 N
+C 0 0 20 0 0 0 N
+C 130 0 20 0 0 0 N
+P 2 0 1 0 0 -20 0 -50 N
+X A 1 -250 0 100 R 50 50 1 1 P
+X C 2 0 -150 100 U 50 50 1 1 I
+X B 3 250 0 100 L 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# MCU_ST_STM32F4_STM32F411RETx
+#
+DEF MCU_ST_STM32F4_STM32F411RETx U 0 20 Y Y 1 F N
+F0 "U" -600 1650 50 H V L CNN
+F1 "MCU_ST_STM32F4_STM32F411RETx" 400 1650 50 H V L CNN
+F2 "Package_QFP:LQFP-64_10x10mm_P0.5mm" -600 -1700 50 H I R CNN
+F3 "" 0 0 50 H I C CNN
+ALIAS STM32F411RETx
+$FPLIST
+ LQFP*10x10mm*P0.5mm*
+$ENDFPLIST
+DRAW
+S -600 -1700 600 1600 0 1 10 f
+X VBAT 1 -200 1700 100 D 50 50 1 1 W
+X PC2 10 -700 -300 100 R 50 50 1 1 B
+X PC3 11 -700 -400 100 R 50 50 1 1 B
+X VSSA 12 200 -1800 100 U 50 50 1 1 W
+X VDDA 13 300 1700 100 D 50 50 1 1 W
+X PA0 14 700 1500 100 L 50 50 1 1 B
+X PA1 15 700 1400 100 L 50 50 1 1 B
+X PA2 16 700 1300 100 L 50 50 1 1 B
+X PA3 17 700 1200 100 L 50 50 1 1 B
+X VSS 18 -200 -1800 100 U 50 50 1 1 W
+X VDD 19 -100 1700 100 D 50 50 1 1 W
+X PC13 2 -700 -1400 100 R 50 50 1 1 B
+X PA4 20 700 1100 100 L 50 50 1 1 B
+X PA5 21 700 1000 100 L 50 50 1 1 B
+X PA6 22 700 900 100 L 50 50 1 1 B
+X PA7 23 700 800 100 L 50 50 1 1 B
+X PC4 24 -700 -500 100 R 50 50 1 1 B
+X PC5 25 -700 -600 100 R 50 50 1 1 B
+X PB0 26 700 -200 100 L 50 50 1 1 B
+X PB1 27 700 -300 100 L 50 50 1 1 B
+X PB2 28 700 -400 100 L 50 50 1 1 B
+X PB10 29 700 -1200 100 L 50 50 1 1 B
+X PC14 3 -700 -1500 100 R 50 50 1 1 B
+X VCAP1 30 -700 1100 100 R 50 50 1 1 W
+X VSS 31 -100 -1800 100 U 50 50 1 1 W
+X VDD 32 0 1700 100 D 50 50 1 1 W
+X PB12 33 700 -1300 100 L 50 50 1 1 B
+X PB13 34 700 -1400 100 L 50 50 1 1 B
+X PB14 35 700 -1500 100 L 50 50 1 1 B
+X PB15 36 700 -1600 100 L 50 50 1 1 B
+X PC6 37 -700 -700 100 R 50 50 1 1 B
+X PC7 38 -700 -800 100 R 50 50 1 1 B
+X PC8 39 -700 -900 100 R 50 50 1 1 B
+X PC15 4 -700 -1600 100 R 50 50 1 1 B
+X PC9 40 -700 -1000 100 R 50 50 1 1 B
+X PA8 41 700 700 100 L 50 50 1 1 B
+X PA9 42 700 600 100 L 50 50 1 1 B
+X PA10 43 700 500 100 L 50 50 1 1 B
+X PA11 44 700 400 100 L 50 50 1 1 B
+X PA12 45 700 300 100 L 50 50 1 1 B
+X PA13 46 700 200 100 L 50 50 1 1 B
+X VSS 47 0 -1800 100 U 50 50 1 1 W
+X VDD 48 100 1700 100 D 50 50 1 1 W
+X PA14 49 700 100 100 L 50 50 1 1 B
+X PH0 5 -700 400 100 R 50 50 1 1 I
+X PA15 50 700 0 100 L 50 50 1 1 B
+X PC10 51 -700 -1100 100 R 50 50 1 1 B
+X PC11 52 -700 -1200 100 R 50 50 1 1 B
+X PC12 53 -700 -1300 100 R 50 50 1 1 B
+X PD2 54 -700 100 100 R 50 50 1 1 B
+X PB3 55 700 -500 100 L 50 50 1 1 B
+X PB4 56 700 -600 100 L 50 50 1 1 B
+X PB5 57 700 -700 100 L 50 50 1 1 B
+X PB6 58 700 -800 100 L 50 50 1 1 B
+X PB7 59 700 -900 100 L 50 50 1 1 B
+X PH1 6 -700 300 100 R 50 50 1 1 I
+X BOOT0 60 -700 1300 100 R 50 50 1 1 I
+X PB8 61 700 -1000 100 L 50 50 1 1 B
+X PB9 62 700 -1100 100 L 50 50 1 1 B
+X VSS 63 100 -1800 100 U 50 50 1 1 W
+X VDD 64 200 1700 100 D 50 50 1 1 W
+X NRST 7 -700 1500 100 R 50 50 1 1 I
+X PC0 8 -700 -100 100 R 50 50 1 1 B
+X PC1 9 -700 -200 100 R 50 50 1 1 B
+ENDDRAW
+ENDDEF
+#
+# Power_Protection_USBLC6-2SC6
+#
+DEF Power_Protection_USBLC6-2SC6 U 0 20 Y N 1 F N
+F0 "U" 100 350 50 H V L CNN
+F1 "Power_Protection_USBLC6-2SC6" 100 -350 50 H V L CNN
+F2 "Package_TO_SOT_SMD:SOT-23-6" 0 -500 50 H I C CNN
+F3 "" 200 350 50 H I C CNN
+$FPLIST
+ SOT?23*
+$ENDFPLIST
+DRAW
+C -200 0 10 0 1 0 F
+C -100 0 10 0 1 0 F
+C 0 -250 10 0 1 0 F
+C 0 250 10 0 1 0 F
+C 100 0 10 0 1 0 F
+C 200 0 10 0 1 0 F
+S -300 -300 300 300 0 1 10 f
+S -100 250 100 -250 0 1 0 N
+P 2 0 1 0 -200 -100 -300 -100 N
+P 2 0 1 0 -200 0 -200 -100 N
+P 2 0 1 0 -200 100 -300 100 N
+P 2 0 1 0 -60 -110 -140 -110 N
+P 2 0 1 0 -60 190 -140 190 N
+P 2 0 1 0 0 -300 0 -250 N
+P 2 0 1 0 0 -250 0 50 N
+P 2 0 1 0 0 50 0 250 N
+P 2 0 1 0 0 250 0 300 N
+P 2 0 1 0 60 -110 140 -110 N
+P 2 0 1 0 60 190 140 190 N
+P 2 0 1 0 200 -100 300 -100 N
+P 2 0 1 0 200 0 200 -100 N
+P 2 0 1 0 200 100 300 100 N
+P 3 0 1 0 -100 0 -200 0 -200 100 N
+P 3 0 1 0 100 0 200 0 200 100 N
+P 4 0 1 0 -140 -190 -60 -190 -100 -110 -140 -190 N
+P 4 0 1 0 -140 110 -60 110 -100 190 -140 110 N
+P 4 0 1 0 -40 -40 40 -40 0 40 -40 -40 N
+P 4 0 1 0 40 40 30 40 -40 40 -40 20 N
+P 4 0 1 0 140 -190 60 -190 100 -110 140 -190 N
+P 4 0 1 0 140 110 60 110 100 190 140 110 N
+X I/O1 1 -400 -100 100 R 50 50 1 1 P
+X GND 2 0 -400 100 U 50 50 1 1 P
+X I/O2 3 400 -100 100 L 50 50 1 1 P
+X I/O2 4 400 100 100 L 50 50 1 1 P
+X VBUS 5 0 400 100 D 50 50 1 1 P
+X I/O1 6 -400 100 100 R 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# Regulator_Linear_AP2127N-1.0
+#
+DEF Regulator_Linear_AP2127N-1.0 U 0 10 Y Y 1 F N
+F0 "U" -150 125 50 H V C CNN
+F1 "Regulator_Linear_AP2127N-1.0" 0 125 50 H V L CNN
+F2 "Package_TO_SOT_SMD:SOT-23" 0 225 50 H I C CIN
+F3 "" 0 0 50 H I C CNN
+ALIAS APE8865N-15-HF-3 APE8865N-16-HF-3 APE8865N-17-HF-3 APE8865N-18-HF-3 APE8865N-19-HF-3 APE8865N-20-HF-3 APE8865N-21-HF-3 APE8865N-22-HF-3 APE8865N-23-HF-3 APE8865N-24-HF-3 APE8865N-25-HF-3 APE8865N-26-HF-3 APE8865N-27-HF-3 APE8865N-28-HF-3 APE8865N-29-HF-3 APE8865N-30-HF-3 APE8865N-31-HF-3 APE8865N-32-HF-3 APE8865N-33-HF-3 AP2127N-1.0 AP2127N-1.2 AP2127N-1.5 AP2127N-1.8 AP2127N-2.5 AP2127N-2.8 AP2127N-3.0 AP2127N-3.3 XC6206PxxxMR
+$FPLIST
+ SOT?23*
+$ENDFPLIST
+DRAW
+S -200 75 200 -200 0 1 10 f
+X GND 1 0 -300 100 U 50 50 1 1 W
+X VO 2 300 0 100 L 50 50 1 1 w
+X VI 3 -300 0 100 R 50 50 1 1 W
+ENDDRAW
+ENDDEF
+#
+# Regulator_Linear_MIC5205-2.5YM5
+#
+DEF Regulator_Linear_MIC5205-2.5YM5 U 0 10 Y Y 1 F N
+F0 "U" -150 225 50 H V C CNN
+F1 "Regulator_Linear_MIC5205-2.5YM5" 0 225 50 H V L CNN
+F2 "Package_TO_SOT_SMD:SOT-23-5" 0 325 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+ALIAS AP131-18 AP131-20 AP131-25 AP131-28 AP131-29 AP131-30 AP131-33 AP131-35 MIC5205-2.5YM5 MIC5205-2.7YM5 MIC5205-2.8YM5 MIC5205-2.85YM5 MIC5205-2.9YM5 MIC5205-3.0YM5 MIC5205-3.1YM5 MIC5205-3.2YM5 MIC5205-3.3YM5 MIC5205-3.6YM5 MIC5205-3.8YM5 MIC5205-4.0YM5 MIC5205-5.0YM5 MIC5219-2.5YM5 MIC5219-2.6YM5 MIC5219-2.7YM5 MIC5219-2.8YM5 MIC5219-2.85YM5 MIC5219-2.9YM5 MIC5219-3.0YM5 MIC5219-3.1YM5 MIC5219-3.3YM5 MIC5219-3.6YM5 MIC5219-5.0YM5 SPX3819M5-L-1-2 SPX3819M5-L-1-5 SPX3819M5-L-1-8 SPX3819M5-L-2-5 SPX3819M5-L-3-0 SPX3819M5-L-3-3 SPX3819M5-L-5-0
+$FPLIST
+ SOT?23*
+$ENDFPLIST
+DRAW
+S -200 175 200 -200 0 1 10 f
+X IN 1 -300 100 100 R 50 50 1 1 W
+X GND 2 0 -300 100 U 50 50 1 1 W
+X EN 3 -300 0 100 R 50 50 1 1 I
+X BP 4 300 0 100 L 50 50 1 1 I
+X OUT 5 300 100 100 L 50 50 1 1 w
+ENDDRAW
+ENDDEF
+#
+# Switch_SW_MEC_5G
+#
+DEF Switch_SW_MEC_5G SW 0 40 N N 1 F N
+F0 "SW" 50 100 50 H V L CNN
+F1 "Switch_SW_MEC_5G" 0 -60 50 H V C CNN
+F2 "" 0 200 50 H I C CNN
+F3 "" 0 200 50 H I C CNN
+$FPLIST
+ SW*MEC*5G*
+$ENDFPLIST
+DRAW
+C -80 0 20 0 1 0 N
+C 80 0 20 0 1 0 N
+P 2 0 1 0 0 50 0 120 N
+P 2 0 1 0 100 50 -100 50 N
+X A 1 -200 0 100 R 50 50 0 1 P
+X B 3 200 0 100 L 50 50 0 1 P
+X A 2 -200 0 100 R 50 50 1 1 P N
+X B 4 200 0 100 L 50 50 1 1 P N
+ENDDRAW
+ENDDEF
+#
+# new_components_+1.9V
+#
+DEF new_components_+1.9V #PWR 0 0 Y Y 1 F P
+F0 "#PWR" 0 -150 50 H I C CNN
+F1 "new_components_+1.9V" 0 140 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+DRAW
+P 2 0 1 0 -30 50 0 100 N
+P 2 0 1 0 0 0 0 100 N
+P 2 0 1 0 0 100 30 50 N
+X +1V0 1 0 0 0 U 50 50 1 1 W N
+ENDDRAW
+ENDDEF
+#
+# new_components_PMW3389
+#
+DEF new_components_PMW3389 U 0 40 Y Y 1 F N
+F0 "U" 0 -550 50 H V C CNN
+F1 "new_components_PMW3389" 0 -550 50 H V C CNN
+F2 "" 0 -550 50 H I C CNN
+F3 "" 0 -550 50 H I C CNN
+DRAW
+S -350 400 250 -500 0 1 0 N
+X NC_0 1 -450 300 100 R 50 50 1 1 N
+X SCLK 10 350 -300 100 L 50 50 1 1 I
+X MOSI 11 350 -200 100 L 50 50 1 1 I
+X MISO 12 350 -100 100 L 50 50 1 1 O
+X NCS 13 350 0 100 L 50 50 1 1 I
+X NC_3 14 350 100 100 L 50 50 1 1 N
+X LED1_P 15 350 200 100 L 50 50 1 1 I
+X NC 16 350 300 100 L 50 50 1 1 N
+X CN_1 2 -450 200 100 R 50 50 1 1 N
+X VDDPIX 3 -450 100 100 R 50 50 1 1 w
+X VDD 4 -450 0 100 R 50 50 1 1 W
+X VDDIO 5 -450 -100 100 R 50 50 1 1 W
+X GPO 6 -450 -200 100 R 50 50 1 1 N
+X NRESET 7 -450 -300 100 R 50 50 1 1 I
+X GND 8 -450 -400 100 R 50 50 1 1 w
+X MOTION 9 350 -400 100 L 50 50 1 1 O
+ENDDRAW
+ENDDEF
+#
+# power_+3.3V
+#
+DEF power_+3.3V #PWR 0 0 Y Y 1 F P
+F0 "#PWR" 0 -150 50 H I C CNN
+F1 "power_+3.3V" 0 140 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+ALIAS +3.3V
+DRAW
+P 2 0 1 0 -30 50 0 100 N
+P 2 0 1 0 0 0 0 100 N
+P 2 0 1 0 0 100 30 50 N
+X +3V3 1 0 0 0 U 50 50 1 1 W N
+ENDDRAW
+ENDDEF
+#
+# power_+5V
+#
+DEF power_+5V #PWR 0 0 Y Y 1 F P
+F0 "#PWR" 0 -150 50 H I C CNN
+F1 "power_+5V" 0 140 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+DRAW
+P 2 0 1 0 -30 50 0 100 N
+P 2 0 1 0 0 0 0 100 N
+P 2 0 1 0 0 100 30 50 N
+X +5V 1 0 0 0 U 50 50 1 1 W N
+ENDDRAW
+ENDDEF
+#
+# power_GND
+#
+DEF power_GND #PWR 0 0 Y Y 1 F P
+F0 "#PWR" 0 -250 50 H I C CNN
+F1 "power_GND" 0 -150 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+DRAW
+P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
+X GND 1 0 0 0 D 50 50 1 1 W N
+ENDDRAW
+ENDDEF
+#
+#End Library
diff --git a/lab2/E7020E_lab1.kicad_pcb b/lab2/E7020E_lab1.kicad_pcb
new file mode 100644
index 0000000000000000000000000000000000000000..02c8ecb0e385e9163fb1811ba3b2fcd6b9cd45f4
--- /dev/null
+++ b/lab2/E7020E_lab1.kicad_pcb
@@ -0,0 +1 @@
+(kicad_pcb (version 4) (host kicad "dummy file") )
diff --git a/lab2/E7020E_lab1.pro b/lab2/E7020E_lab1.pro
new file mode 100644
index 0000000000000000000000000000000000000000..152769cb7209ca4e1fc17e8154dad5ded6b9d8e4
--- /dev/null
+++ b/lab2/E7020E_lab1.pro
@@ -0,0 +1,33 @@
+update=22/05/2015 07:44:53
+version=1
+last_client=kicad
+[general]
+version=1
+RootSch=
+BoardNm=
+[pcbnew]
+version=1
+LastNetListRead=
+UseCmpFile=1
+PadDrill=0.600000000000
+PadDrillOvalY=0.600000000000
+PadSizeH=1.500000000000
+PadSizeV=1.500000000000
+PcbTextSizeV=1.500000000000
+PcbTextSizeH=1.500000000000
+PcbTextThickness=0.300000000000
+ModuleTextSizeV=1.000000000000
+ModuleTextSizeH=1.000000000000
+ModuleTextSizeThickness=0.150000000000
+SolderMaskClearance=0.000000000000
+SolderMaskMinWidth=0.000000000000
+DrawSegmentWidth=0.200000000000
+BoardOutlineThickness=0.100000000000
+ModuleOutlineThickness=0.150000000000
+[cvpcb]
+version=1
+NetIExt=net
+[eeschema]
+version=1
+LibDir=
+[eeschema/libraries]
diff --git a/lab2/E7020E_lab1.sch b/lab2/E7020E_lab1.sch
new file mode 100644
index 0000000000000000000000000000000000000000..c2bb9b0dbf918c31e43ba7d00e76b4b0fcededd2
--- /dev/null
+++ b/lab2/E7020E_lab1.sch
@@ -0,0 +1,1461 @@
+EESchema Schematic File Version 4
+EELAYER 30 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 1
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L Device:C C10
+U 1 1 600A63C6
+P 6800 1200
+F 0 "C10" H 6915 1246 50 0000 L CNN
+F 1 "100nF" H 6915 1155 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 6838 1050 50 0001 C CNN
+F 3 "~" H 6800 1200 50 0001 C CNN
+ 1 6800 1200
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:C C11
+U 1 1 600A693C
+P 7250 1200
+F 0 "C11" H 7365 1246 50 0000 L CNN
+F 1 "100nF" H 7365 1155 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 7288 1050 50 0001 C CNN
+F 3 "~" H 7250 1200 50 0001 C CNN
+ 1 7250 1200
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 6350 1350 6350 1450
+Wire Wire Line
+ 7250 1350 7250 1450
+Connection ~ 7250 1450
+Wire Wire Line
+ 7250 1450 7700 1450
+Wire Wire Line
+ 5900 1050 6350 1050
+Connection ~ 6350 1450
+Wire Wire Line
+ 5900 1450 6350 1450
+Wire Wire Line
+ 5900 1350 5900 1450
+$Comp
+L Device:C C9
+U 1 1 600A5A7E
+P 6350 1200
+F 0 "C9" H 6465 1246 50 0000 L CNN
+F 1 "100nF" H 6465 1155 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 6388 1050 50 0001 C CNN
+F 3 "~" H 6350 1200 50 0001 C CNN
+ 1 6350 1200
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:C C8
+U 1 1 600A4313
+P 5900 1200
+F 0 "C8" H 6015 1246 50 0000 L CNN
+F 1 "100nF" H 6015 1155 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 5938 1050 50 0001 C CNN
+F 3 "~" H 5900 1200 50 0001 C CNN
+ 1 5900 1200
+ 1 0 0 -1
+$EndComp
+$Comp
+L MCU_ST_STM32F4:STM32F411RETx U3
+U 1 1 60096F01
+P 5000 3200
+F 0 "U3" H 5000 1311 50 0000 C CNN
+F 1 "STM32F411RETx" H 5000 1220 50 0000 C CNN
+F 2 "Package_QFP:LQFP-64_10x10mm_P0.5mm" H 4400 1500 50 0001 R CNN
+F 3 "http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/DM00115249.pdf" H 5000 3200 50 0001 C CNN
+ 1 5000 3200
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 4900 5300 4900 5000
+Wire Wire Line
+ 4800 5300 4900 5300
+Connection ~ 4900 5300
+Wire Wire Line
+ 4900 5300 5000 5300
+Wire Wire Line
+ 5000 5300 5000 5000
+Connection ~ 5000 5300
+Wire Wire Line
+ 5100 5300 5100 5000
+Wire Wire Line
+ 5100 5300 5000 5300
+$Comp
+L power:+3.3V #PWR0102
+U 1 1 600F0086
+P 8600 850
+F 0 "#PWR0102" H 8600 700 50 0001 C CNN
+F 1 "+3.3V" H 8615 1023 50 0000 C CNN
+F 2 "" H 8600 850 50 0001 C CNN
+F 3 "" H 8600 850 50 0001 C CNN
+ 1 8600 850
+ 1 0 0 -1
+$EndComp
+Connection ~ 7250 1050
+$Comp
+L Device:R R4
+U 1 1 6011C94B
+P 10250 2950
+F 0 "R4" V 10043 2950 50 0000 C CNN
+F 1 "10k" V 10134 2950 50 0000 C CNN
+F 2 "Resistor_SMD:R_0815_2038Metric_Pad1.20x4.05mm_HandSolder" V 10180 2950 50 0001 C CNN
+F 3 "~" H 10250 2950 50 0001 C CNN
+ 1 10250 2950
+ 1 0 0 -1
+$EndComp
+$Comp
+L Jumper:Jumper_3_Open JP1
+U 1 1 60122387
+P 10250 2550
+F 0 "JP1" V 10296 2637 50 0000 L CNN
+F 1 "Jumper_3_Open" V 10205 2637 50 0000 L CNN
+F 2 "Connector_PinSocket_2.54mm:PinSocket_2x01_P2.54mm_Vertical_SMD" H 10250 2550 50 0001 C CNN
+F 3 "~" H 10250 2550 50 0001 C CNN
+ 1 10250 2550
+ 0 1 1 0
+$EndComp
+$Comp
+L Device:Crystal Y1
+U 1 1 60125CD9
+P 3900 2850
+F 0 "Y1" V 3854 2981 50 0000 L CNN
+F 1 "16MHz" V 3945 2981 50 0000 L CNN
+F 2 "Crystal:Crystal_HC49-U_Vertical" H 3900 2850 50 0001 C CNN
+F 3 "~" H 3900 2850 50 0001 C CNN
+ 1 3900 2850
+ 0 1 1 0
+$EndComp
+Wire Wire Line
+ 4300 2700 4300 2800
+$Comp
+L Device:C C3
+U 1 1 601301AB
+P 3700 2700
+F 0 "C3" V 3448 2700 50 0000 C CNN
+F 1 "22pF" V 3539 2700 50 0000 C CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 3738 2550 50 0001 C CNN
+F 3 "~" H 3700 2700 50 0001 C CNN
+ 1 3700 2700
+ 0 1 1 0
+$EndComp
+$Comp
+L Device:C C4
+U 1 1 60130DBF
+P 3700 3000
+F 0 "C4" V 3448 3000 50 0000 C CNN
+F 1 "22pF" V 3539 3000 50 0000 C CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 3738 2850 50 0001 C CNN
+F 3 "~" H 3700 3000 50 0001 C CNN
+ 1 3700 3000
+ 0 -1 -1 0
+$EndComp
+Wire Wire Line
+ 3300 2700 3550 2700
+Text GLabel 5750 3100 2 50 Output ~ 0
+SWCLK
+Wire Wire Line
+ 5750 3100 5700 3100
+Text GLabel 5750 3000 2 50 BiDi ~ 0
+SWDIO
+Wire Wire Line
+ 5700 3000 5750 3000
+Text GLabel 5750 3700 2 50 Output ~ 0
+SWO
+Wire Wire Line
+ 5700 3700 5750 3700
+$Comp
+L power:+3.3V #PWR0103
+U 1 1 6015A85D
+P 7300 2350
+F 0 "#PWR0103" H 7300 2200 50 0001 C CNN
+F 1 "+3.3V" H 7315 2523 50 0000 C CNN
+F 2 "" H 7300 2350 50 0001 C CNN
+F 3 "" H 7300 2350 50 0001 C CNN
+ 1 7300 2350
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 3850 2700 3900 2700
+Connection ~ 3900 2700
+Wire Wire Line
+ 3900 2700 4300 2700
+Text Notes 2650 3200 0 50 ~ 0
+C = 2*(Cload - Cstray)\n2*(18 - 6) = 24pF
+$Comp
+L new_components:PMW3389 U2
+U 1 1 6018AE70
+P 2350 5550
+F 0 "U2" H 2300 6115 50 0000 C CNN
+F 1 "PMW3389" H 2300 6024 50 0000 C CNN
+F 2 "" H 2350 5000 50 0001 C CNN
+F 3 "" H 2350 5000 50 0001 C CNN
+ 1 2350 5550
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:+5V #PWR0104
+U 1 1 60190990
+P 1000 1000
+F 0 "#PWR0104" H 1000 850 50 0001 C CNN
+F 1 "+5V" H 1015 1173 50 0000 C CNN
+F 2 "" H 1000 1000 50 0001 C CNN
+F 3 "" H 1000 1000 50 0001 C CNN
+ 1 1000 1000
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 1000 1000 1000 1200
+Wire Wire Line
+ 1000 1200 1150 1200
+$Comp
+L Device:C_Small C2
+U 1 1 60197D01
+P 2550 1500
+F 0 "C2" H 2642 1546 50 0000 L CNN
+F 1 "2.2uF" H 2642 1455 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 2550 1500 50 0001 C CNN
+F 3 "~" H 2550 1500 50 0001 C CNN
+ 1 2550 1500
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:R_Small R2
+U 1 1 60198F52
+P 2050 1350
+F 0 "R2" H 2109 1396 50 0000 L CNN
+F 1 "100" H 2109 1305 50 0000 L CNN
+F 2 "Resistor_SMD:R_0815_2038Metric_Pad1.20x4.05mm_HandSolder" H 2050 1350 50 0001 C CNN
+F 3 "~" H 2050 1350 50 0001 C CNN
+ 1 2050 1350
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:R_Small R3
+U 1 1 6019A085
+P 2050 1650
+F 0 "R3" H 2109 1696 50 0000 L CNN
+F 1 "180" H 2109 1605 50 0000 L CNN
+F 2 "Resistor_SMD:R_0815_2038Metric_Pad1.20x4.05mm_HandSolder" H 2050 1650 50 0001 C CNN
+F 3 "~" H 2050 1650 50 0001 C CNN
+ 1 2050 1650
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 1900 1200 2050 1200
+Wire Wire Line
+ 2050 1500 2050 1550
+Connection ~ 2050 1500
+Wire Wire Line
+ 1900 1500 2050 1500
+$Comp
+L Regulator_Linear:MIC5205-2.5YM5 U1
+U 1 1 6018C27B
+P 1600 1300
+F 0 "U1" H 1600 1642 50 0000 C CNN
+F 1 "MIC5235YM5-TR" H 1600 1551 50 0000 C CNN
+F 2 "Package_TO_SOT_SMD:SOT-23-5" H 1600 1625 50 0001 C CNN
+F 3 "http://ww1.microchip.com/downloads/en/DeviceDoc/20005785A.pdf" H 1600 1300 50 0001 C CNN
+ 1 1600 1300
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 2050 1450 2050 1500
+Wire Wire Line
+ 1900 1300 1900 1500
+$Comp
+L Device:C_Small C1
+U 1 1 601B6209
+P 1000 1550
+F 0 "C1" H 1092 1596 50 0000 L CNN
+F 1 "1uF" H 1092 1505 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 1000 1550 50 0001 C CNN
+F 3 "~" H 1000 1550 50 0001 C CNN
+ 1 1000 1550
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 1000 1200 1000 1450
+Connection ~ 1000 1200
+Wire Wire Line
+ 1300 1300 1150 1300
+Wire Wire Line
+ 1150 1300 1150 1200
+Connection ~ 1150 1200
+Wire Wire Line
+ 1150 1200 1300 1200
+Wire Wire Line
+ 2050 1200 2050 1250
+Wire Wire Line
+ 2050 1200 2550 1200
+Connection ~ 2050 1200
+Wire Wire Line
+ 2550 1200 2550 1400
+Connection ~ 2550 1200
+$Comp
+L Switch:SW_MEC_5G SW1
+U 1 1 601EA0D4
+P 8500 2450
+F 0 "SW1" V 8454 2598 50 0000 L CNN
+F 1 "RESET" V 8545 2598 50 0000 L CNN
+F 2 "Button_Switch_SMD:SW_SPST_B3U-1000P-B" H 8500 2650 50 0001 C CNN
+F 3 "http://www.apem.com/int/index.php?controller=attachment&id_attachment=488" H 8500 2650 50 0001 C CNN
+ 1 8500 2450
+ 0 1 1 0
+$EndComp
+$Comp
+L power:GND #PWR0105
+U 1 1 60206858
+P 8150 1550
+F 0 "#PWR0105" H 8150 1300 50 0001 C CNN
+F 1 "GND" H 8155 1377 50 0000 C CNN
+F 2 "" H 8150 1550 50 0001 C CNN
+F 3 "" H 8150 1550 50 0001 C CNN
+ 1 8150 1550
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:C C12
+U 1 1 6020A494
+P 7700 1200
+F 0 "C12" H 7815 1246 50 0000 L CNN
+F 1 "100nF" H 7815 1155 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 7738 1050 50 0001 C CNN
+F 3 "~" H 7700 1200 50 0001 C CNN
+ 1 7700 1200
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:C C14
+U 1 1 6020A7A4
+P 8150 1200
+F 0 "C14" H 8265 1246 50 0000 L CNN
+F 1 "100nF" H 8265 1155 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 8188 1050 50 0001 C CNN
+F 3 "~" H 8150 1200 50 0001 C CNN
+ 1 8150 1200
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 7700 1450 7700 1350
+Connection ~ 7700 1450
+Wire Wire Line
+ 7250 1050 7700 1050
+$Comp
+L new_components:+1.9V #PWR0106
+U 1 1 6022E61C
+P 2550 1050
+F 0 "#PWR0106" H 2550 900 50 0001 C CNN
+F 1 "+1.9V" H 2565 1223 50 0000 C CNN
+F 2 "" H 2550 1050 50 0001 C CNN
+F 3 "" H 2550 1050 50 0001 C CNN
+ 1 2550 1050
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 2550 1050 2550 1200
+Text GLabel 8400 2250 0 50 Output ~ 0
+NRST
+Wire Wire Line
+ 8400 2250 8500 2250
+$Comp
+L power:GND #PWR0107
+U 1 1 6023B918
+P 8500 2800
+F 0 "#PWR0107" H 8500 2550 50 0001 C CNN
+F 1 "GND" H 8505 2627 50 0000 C CNN
+F 2 "" H 8500 2800 50 0001 C CNN
+F 3 "" H 8500 2800 50 0001 C CNN
+ 1 8500 2800
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 8500 2650 8500 2750
+$Comp
+L Device:C_Small C13
+U 1 1 6023F0F8
+P 8950 2350
+F 0 "C13" H 9042 2396 50 0000 L CNN
+F 1 "100n" H 9042 2305 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 8950 2350 50 0001 C CNN
+F 3 "~" H 8950 2350 50 0001 C CNN
+ 1 8950 2350
+ 1 0 0 -1
+$EndComp
+Connection ~ 8500 2250
+$Comp
+L power:GND #PWR0108
+U 1 1 60245A48
+P 8950 2850
+F 0 "#PWR0108" H 8950 2600 50 0001 C CNN
+F 1 "GND" H 8955 2677 50 0000 C CNN
+F 2 "" H 8950 2850 50 0001 C CNN
+F 3 "" H 8950 2850 50 0001 C CNN
+ 1 8950 2850
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 8950 2450 8950 2850
+Wire Wire Line
+ 7350 2700 7350 2650
+$Comp
+L power:GND #PWR0109
+U 1 1 6026659F
+P 7350 2700
+F 0 "#PWR0109" H 7350 2450 50 0001 C CNN
+F 1 "GND" H 7355 2527 50 0000 C CNN
+F 2 "" H 7350 2700 50 0001 C CNN
+F 3 "" H 7350 2700 50 0001 C CNN
+ 1 7350 2700
+ 1 0 0 -1
+$EndComp
+Text GLabel 6950 2550 2 50 Input ~ 0
+SWCLK
+Text GLabel 6950 2750 2 50 BiDi ~ 0
+SWDIO
+Text GLabel 6950 2950 2 50 Input ~ 0
+SWO
+Text GLabel 6950 2850 2 50 Input ~ 0
+NRST
+Text Notes 850 2300 0 50 ~ 0
+Vref(1+R1/R2) = V_out (V_ref = 1.24V) => \n1.24/1+(10000/18000) = 1.93
+$Comp
+L power:GND #PWR0110
+U 1 1 602E27F5
+P 10250 3100
+F 0 "#PWR0110" H 10250 2850 50 0001 C CNN
+F 1 "GND" H 10255 2927 50 0000 C CNN
+F 2 "" H 10250 3100 50 0001 C CNN
+F 3 "" H 10250 3100 50 0001 C CNN
+ 1 10250 3100
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:GND #PWR0111
+U 1 1 6031239E
+P 3300 2850
+F 0 "#PWR0111" H 3300 2600 50 0001 C CNN
+F 1 "GND" V 3305 2722 50 0000 R CNN
+F 2 "" H 3300 2850 50 0001 C CNN
+F 3 "" H 3300 2850 50 0001 C CNN
+ 1 3300 2850
+ 0 1 1 0
+$EndComp
+Wire Wire Line
+ 3300 2700 3300 2850
+Connection ~ 3300 2850
+Wire Wire Line
+ 3300 2850 3300 3000
+Wire Wire Line
+ 8150 1450 8150 1550
+Wire Wire Line
+ 7700 1450 8150 1450
+Wire Wire Line
+ 8150 1350 8150 1450
+Connection ~ 8150 1450
+$Comp
+L Device:C_Small C6
+U 1 1 6037A61B
+P 4550 1050
+F 0 "C6" H 4642 1096 50 0000 L CNN
+F 1 "4.7uF" H 4642 1005 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 4550 1050 50 0001 C CNN
+F 3 "~" H 4550 1050 50 0001 C CNN
+ 1 4550 1050
+ 0 1 1 0
+$EndComp
+$Comp
+L Device:C_Small C5
+U 1 1 6038AAB5
+P 4050 2200
+F 0 "C5" H 4142 2246 50 0000 L CNN
+F 1 "4.7uF" H 4142 2155 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 4050 2200 50 0001 C CNN
+F 3 "~" H 4050 2200 50 0001 C CNN
+ 1 4050 2200
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 5200 5000 5200 5300
+Wire Wire Line
+ 5100 5300 5200 5300
+Connection ~ 5100 5300
+Connection ~ 5200 5300
+Wire Wire Line
+ 5200 5300 5200 5400
+$Comp
+L Device:LED D1
+U 1 1 600AD06C
+P 750 1600
+F 0 "D1" H 743 1817 50 0000 C CNN
+F 1 "LED" H 743 1726 50 0000 C CNN
+F 2 "Diode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 750 1600 50 0001 C CNN
+F 3 "~" H 750 1600 50 0001 C CNN
+ 1 750 1600
+ 0 -1 -1 0
+$EndComp
+$Comp
+L Device:R_Small R1
+U 1 1 600B2048
+P 750 1350
+F 0 "R1" H 809 1396 50 0000 L CNN
+F 1 "153" H 809 1305 50 0000 L CNN
+F 2 "Resistor_SMD:R_0815_2038Metric_Pad1.20x4.05mm_HandSolder" H 750 1350 50 0001 C CNN
+F 3 "~" H 750 1350 50 0001 C CNN
+ 1 750 1350
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 1000 1200 750 1200
+Wire Wire Line
+ 750 1200 750 1250
+$Comp
+L power:GND #PWR0112
+U 1 1 600C1A9B
+P 750 1850
+F 0 "#PWR0112" H 750 1600 50 0001 C CNN
+F 1 "GND" H 755 1677 50 0000 C CNN
+F 2 "" H 750 1850 50 0001 C CNN
+F 3 "" H 750 1850 50 0001 C CNN
+ 1 750 1850
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 750 1750 750 1850
+$Comp
+L power:GND #PWR0113
+U 1 1 600D0160
+P 1000 1850
+F 0 "#PWR0113" H 1000 1600 50 0001 C CNN
+F 1 "GND" H 1005 1677 50 0000 C CNN
+F 2 "" H 1000 1850 50 0001 C CNN
+F 3 "" H 1000 1850 50 0001 C CNN
+ 1 1000 1850
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:GND #PWR0114
+U 1 1 600D590F
+P 1600 1850
+F 0 "#PWR0114" H 1600 1600 50 0001 C CNN
+F 1 "GND" H 1605 1677 50 0000 C CNN
+F 2 "" H 1600 1850 50 0001 C CNN
+F 3 "" H 1600 1850 50 0001 C CNN
+ 1 1600 1850
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:GND #PWR0115
+U 1 1 600E5E77
+P 2050 1850
+F 0 "#PWR0115" H 2050 1600 50 0001 C CNN
+F 1 "GND" H 2055 1677 50 0000 C CNN
+F 2 "" H 2050 1850 50 0001 C CNN
+F 3 "" H 2050 1850 50 0001 C CNN
+ 1 2050 1850
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:GND #PWR0116
+U 1 1 600E625E
+P 2550 1850
+F 0 "#PWR0116" H 2550 1600 50 0001 C CNN
+F 1 "GND" H 2555 1677 50 0000 C CNN
+F 2 "" H 2550 1850 50 0001 C CNN
+F 3 "" H 2550 1850 50 0001 C CNN
+ 1 2550 1850
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 1000 1650 1000 1850
+Wire Wire Line
+ 1600 1600 1600 1850
+Wire Wire Line
+ 2050 1750 2050 1850
+Wire Wire Line
+ 2550 1600 2550 1700
+$Comp
+L Device:LED D3
+U 1 1 60106AA4
+P 9000 1300
+F 0 "D3" H 8993 1517 50 0000 C CNN
+F 1 "LED" H 8993 1426 50 0000 C CNN
+F 2 "Diode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 9000 1300 50 0001 C CNN
+F 3 "~" H 9000 1300 50 0001 C CNN
+ 1 9000 1300
+ 0 -1 -1 0
+$EndComp
+$Comp
+L Device:R_Small R6
+U 1 1 6010926A
+P 8900 1050
+F 0 "R6" V 8704 1050 50 0000 C CNN
+F 1 "68" V 8795 1050 50 0000 C CNN
+F 2 "Resistor_SMD:R_0815_2038Metric_Pad1.20x4.05mm_HandSolder" H 8900 1050 50 0001 C CNN
+F 3 "~" H 8900 1050 50 0001 C CNN
+ 1 8900 1050
+ 0 1 1 0
+$EndComp
+Wire Wire Line
+ 9000 1050 9000 1150
+$Comp
+L power:GND #PWR0117
+U 1 1 601115D6
+P 9000 1550
+F 0 "#PWR0117" H 9000 1300 50 0001 C CNN
+F 1 "GND" H 9005 1377 50 0000 C CNN
+F 2 "" H 9000 1550 50 0001 C CNN
+F 3 "" H 9000 1550 50 0001 C CNN
+ 1 9000 1550
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 9000 1450 9000 1550
+Text Notes 8250 1900 0 50 ~ 0
+red LED, voltagedrop 1.95V, forward current 20mA. From datasheet.
+Wire Wire Line
+ 7300 2350 7300 2450
+$Comp
+L Connector:TestPoint TP1
+U 1 1 6014002F
+P 2950 1600
+F 0 "TP1" H 3008 1718 50 0000 L CNN
+F 1 "TestPoint" H 3008 1627 50 0000 L CNN
+F 2 "TestPoint:TestPoint_Pad_1.5x1.5mm" H 3150 1600 50 0001 C CNN
+F 3 "~" H 3150 1600 50 0001 C CNN
+ 1 2950 1600
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 2950 1600 2950 1700
+$Comp
+L Connector:TestPoint TP2
+U 1 1 6014A90A
+P 5400 5400
+F 0 "TP2" H 5458 5518 50 0000 L CNN
+F 1 "TestPoint" H 5458 5427 50 0000 L CNN
+F 2 "TestPoint:TestPoint_Pad_1.5x1.5mm" H 5600 5400 50 0001 C CNN
+F 3 "~" H 5600 5400 50 0001 C CNN
+ 1 5400 5400
+ 1 0 0 -1
+$EndComp
+$Comp
+L Connector:TestPoint TP3
+U 1 1 6014F164
+P 7500 2650
+F 0 "TP3" H 7558 2768 50 0000 L CNN
+F 1 "TestPoint" H 7558 2677 50 0000 L CNN
+F 2 "TestPoint:TestPoint_Pad_1.5x1.5mm" H 7700 2650 50 0001 C CNN
+F 3 "~" H 7700 2650 50 0001 C CNN
+ 1 7500 2650
+ 1 0 0 -1
+$EndComp
+$Comp
+L Connector:TestPoint TP4
+U 1 1 60158444
+P 8300 2750
+F 0 "TP4" H 8358 2868 50 0000 L CNN
+F 1 "TestPoint" H 8358 2777 50 0000 L CNN
+F 2 "TestPoint:TestPoint_Pad_1.5x1.5mm" H 8500 2750 50 0001 C CNN
+F 3 "~" H 8500 2750 50 0001 C CNN
+ 1 8300 2750
+ 0 -1 -1 0
+$EndComp
+Wire Wire Line
+ 8300 2750 8500 2750
+Wire Wire Line
+ 6350 1450 6800 1450
+Wire Wire Line
+ 6800 1050 6350 1050
+Connection ~ 6350 1050
+Wire Wire Line
+ 6800 1350 6800 1450
+Wire Wire Line
+ 6800 1050 7250 1050
+Connection ~ 6800 1050
+Wire Wire Line
+ 6800 1450 7250 1450
+Connection ~ 6800 1450
+Wire Wire Line
+ 3300 3000 3550 3000
+Wire Wire Line
+ 4300 2900 4300 3000
+Wire Wire Line
+ 3850 3000 3900 3000
+Connection ~ 3900 3000
+Wire Wire Line
+ 3900 3000 4300 3000
+Text GLabel 4250 3500 0 50 Output ~ 0
+MISO
+Wire Wire Line
+ 4250 3500 4300 3500
+Text GLabel 4250 3600 0 50 Output ~ 0
+MOSI
+Wire Wire Line
+ 4300 3600 4250 3600
+$Comp
+L Power_Protection:USBLC6-2SC6 U4
+U 1 1 60264BD7
+P 8550 4600
+F 0 "U4" V 8504 5044 50 0000 L CNN
+F 1 "USBLC6-2SC6" V 8595 5044 50 0000 L CNN
+F 2 "Package_TO_SOT_SMD:SOT-23-6" H 8550 4100 50 0001 C CNN
+F 3 "https://www.st.com/resource/en/datasheet/usblc6-2.pdf" H 8750 4950 50 0001 C CNN
+ 1 8550 4600
+ 0 -1 -1 0
+$EndComp
+$Comp
+L power:+5V #PWR0120
+U 1 1 602A8F95
+P 8000 3750
+F 0 "#PWR0120" H 8000 3600 50 0001 C CNN
+F 1 "+5V" H 8015 3923 50 0000 C CNN
+F 2 "" H 8000 3750 50 0001 C CNN
+F 3 "" H 8000 3750 50 0001 C CNN
+ 1 8000 3750
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:GND #PWR0121
+U 1 1 602D0EA3
+P 7050 5550
+F 0 "#PWR0121" H 7050 5300 50 0001 C CNN
+F 1 "GND" H 7055 5377 50 0000 C CNN
+F 2 "" H 7050 5550 50 0001 C CNN
+F 3 "" H 7050 5550 50 0001 C CNN
+ 1 7050 5550
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 7050 5450 7050 5550
+Text GLabel 8450 5000 3 50 BiDi ~ 0
+DM
+Text GLabel 5750 2800 2 50 BiDi ~ 0
+DM
+Text GLabel 8450 4200 1 50 BiDi ~ 0
+DP
+Text GLabel 5750 2900 2 50 BiDi ~ 0
+DP
+Wire Wire Line
+ 5750 2800 5700 2800
+Wire Wire Line
+ 5750 2900 5700 2900
+$Comp
+L power:GND #PWR0119
+U 1 1 60305071
+P 1550 3300
+F 0 "#PWR0119" H 1550 3050 50 0001 C CNN
+F 1 "GND" H 1555 3127 50 0000 C CNN
+F 2 "" H 1550 3300 50 0001 C CNN
+F 3 "" H 1550 3300 50 0001 C CNN
+ 1 1550 3300
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:+5V #PWR0122
+U 1 1 6030589C
+P 1050 2600
+F 0 "#PWR0122" H 1050 2450 50 0001 C CNN
+F 1 "+5V" H 1065 2773 50 0000 C CNN
+F 2 "" H 1050 2600 50 0001 C CNN
+F 3 "" H 1050 2600 50 0001 C CNN
+ 1 1050 2600
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:+3.3V #PWR0123
+U 1 1 603063EB
+P 2050 2650
+F 0 "#PWR0123" H 2050 2500 50 0001 C CNN
+F 1 "+3.3V" H 2065 2823 50 0000 C CNN
+F 2 "" H 2050 2650 50 0001 C CNN
+F 3 "" H 2050 2650 50 0001 C CNN
+ 1 2050 2650
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:C_Small C15
+U 1 1 60309A1A
+P 1050 3050
+F 0 "C15" H 1142 3096 50 0000 L CNN
+F 1 "1uF" H 1142 3005 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 1050 3050 50 0001 C CNN
+F 3 "~" H 1050 3050 50 0001 C CNN
+ 1 1050 3050
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:C_Small C16
+U 1 1 6030A23A
+P 2050 3050
+F 0 "C16" H 2142 3096 50 0000 L CNN
+F 1 "1uF" H 2142 3005 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 2050 3050 50 0001 C CNN
+F 3 "~" H 2050 3050 50 0001 C CNN
+ 1 2050 3050
+ 1 0 0 -1
+$EndComp
+$Comp
+L Regulator_Linear:AP2127N-1.0 U5
+U 1 1 60310642
+P 1550 2800
+F 0 "U5" H 1550 3042 50 0000 C CNN
+F 1 "AP2125N-3.3TRG1" H 1550 2951 50 0000 C CNN
+F 2 "Package_TO_SOT_SMD:SOT-23" H 1550 3025 50 0001 C CIN
+F 3 "https://www.diodes.com/assets/Datasheets/AP2127.pdf" H 1550 2800 50 0001 C CNN
+ 1 1550 2800
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 1050 2600 1050 2800
+Wire Wire Line
+ 1250 2800 1050 2800
+Connection ~ 1050 2800
+Wire Wire Line
+ 1050 2800 1050 2950
+Wire Wire Line
+ 1850 2800 2050 2800
+Wire Wire Line
+ 2050 2800 2050 2950
+Wire Wire Line
+ 2050 2650 2050 2800
+Connection ~ 2050 2800
+$Comp
+L power:GND #PWR0124
+U 1 1 60363B5F
+P 1050 3300
+F 0 "#PWR0124" H 1050 3050 50 0001 C CNN
+F 1 "GND" H 1055 3127 50 0000 C CNN
+F 2 "" H 1050 3300 50 0001 C CNN
+F 3 "" H 1050 3300 50 0001 C CNN
+ 1 1050 3300
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:GND #PWR0125
+U 1 1 60363F5D
+P 2050 3300
+F 0 "#PWR0125" H 2050 3050 50 0001 C CNN
+F 1 "GND" H 2055 3127 50 0000 C CNN
+F 2 "" H 2050 3300 50 0001 C CNN
+F 3 "" H 2050 3300 50 0001 C CNN
+ 1 2050 3300
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 2050 3150 2050 3300
+Wire Wire Line
+ 1550 3100 1550 3300
+Wire Wire Line
+ 1050 3150 1050 3300
+Text GLabel 2700 5850 2 50 Input ~ 0
+SCK
+Text GLabel 2700 5550 2 50 Input ~ 0
+NCS
+Wire Wire Line
+ 2700 5650 3250 5650
+Text GLabel 2700 5750 2 50 Input ~ 0
+MOSI
+Text GLabel 3350 5650 2 50 Output ~ 0
+MISO
+Wire Wire Line
+ 5750 4500 5700 4500
+Wire Wire Line
+ 5750 4400 5700 4400
+Text GLabel 5750 4500 2 50 Output ~ 0
+NCS
+Text GLabel 5750 4400 2 50 Output ~ 0
+SCK
+$Comp
+L power:GND #PWR0126
+U 1 1 60456608
+P 8950 5550
+F 0 "#PWR0126" H 8950 5300 50 0001 C CNN
+F 1 "GND" H 8955 5377 50 0000 C CNN
+F 2 "" H 8950 5550 50 0001 C CNN
+F 3 "" H 8950 5550 50 0001 C CNN
+ 1 8950 5550
+ 1 0 0 -1
+$EndComp
+$Comp
+L Connector:USB_C_Plug_USB2.0 P1
+U 1 1 60509045
+P 7050 4550
+F 0 "P1" H 7157 5417 50 0000 C CNN
+F 1 "USB_C_Plug_USB2.0" H 7157 5326 50 0000 C CNN
+F 2 "Connector_USB:USB_C_Receptacle_Amphenol_12401548E4-2A" H 7200 4550 50 0001 C CNN
+F 3 "https://www.usb.org/sites/default/files/documents/usb_type-c.zip" H 7200 4550 50 0001 C CNN
+ 1 7050 4550
+ 1 0 0 -1
+$EndComp
+NoConn ~ 6700 6450
+Wire Wire Line
+ 7650 3950 8000 3950
+Connection ~ 8000 3950
+Wire Wire Line
+ 8000 3950 8000 4150
+Wire Wire Line
+ 8000 3750 8000 3950
+NoConn ~ 6750 5450
+NoConn ~ 7650 4150
+NoConn ~ 7650 4250
+NoConn ~ 4300 3100
+NoConn ~ 4300 3300
+NoConn ~ 4300 3400
+NoConn ~ 4300 3700
+NoConn ~ 4300 3800
+NoConn ~ 4300 3900
+NoConn ~ 4300 4000
+NoConn ~ 4300 4100
+NoConn ~ 4300 4200
+NoConn ~ 4300 4300
+NoConn ~ 4300 4400
+NoConn ~ 4300 4500
+NoConn ~ 4300 4600
+NoConn ~ 4300 4700
+NoConn ~ 4300 4800
+NoConn ~ 5700 4800
+NoConn ~ 5700 4600
+NoConn ~ 5700 4300
+NoConn ~ 5700 4200
+NoConn ~ 5700 4100
+NoConn ~ 5700 4000
+NoConn ~ 5700 3900
+NoConn ~ 5700 3800
+NoConn ~ 5700 3600
+NoConn ~ 5700 3500
+NoConn ~ 5700 3400
+NoConn ~ 5700 3200
+NoConn ~ 5700 2700
+NoConn ~ 5700 2600
+NoConn ~ 5700 2500
+NoConn ~ 5700 2400
+NoConn ~ 5700 2300
+NoConn ~ 5700 2200
+NoConn ~ 5700 2100
+NoConn ~ 5700 2000
+NoConn ~ 5700 1900
+NoConn ~ 5700 1800
+NoConn ~ 5700 1700
+$Comp
+L Connector:Conn_01x06_Male J1
+U 1 1 601365F9
+P 6750 2650
+F 0 "J1" H 6858 3031 50 0000 C CNN
+F 1 "SWD" H 6858 2940 50 0000 C CNN
+F 2 "Button_Switch_SMD:SW_DIP_SPSTx06_Slide_9.78x17.42mm_W8.61mm_P2.54mm" H 6750 2650 50 0001 C CNN
+F 3 "~" H 6750 2650 50 0001 C CNN
+ 1 6750 2650
+ 1 0 0 -1
+$EndComp
+Text GLabel 4300 1700 0 50 Input ~ 0
+NRST
+Wire Wire Line
+ 4800 5000 4800 5300
+$Comp
+L power:GND #PWR0101
+U 1 1 6079CC30
+P 5200 5400
+F 0 "#PWR0101" H 5200 5150 50 0001 C CNN
+F 1 "GND" H 5205 5227 50 0000 C CNN
+F 2 "" H 5200 5400 50 0001 C CNN
+F 3 "" H 5200 5400 50 0001 C CNN
+ 1 5200 5400
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:GND #PWR0128
+U 1 1 6012545A
+P 4050 2300
+F 0 "#PWR0128" H 4050 2050 50 0001 C CNN
+F 1 "GND" H 4055 2127 50 0000 C CNN
+F 2 "" H 4050 2300 50 0001 C CNN
+F 3 "" H 4050 2300 50 0001 C CNN
+ 1 4050 2300
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 6950 2650 7350 2650
+Connection ~ 8500 2750
+Wire Wire Line
+ 8500 2750 8500 2800
+Wire Wire Line
+ 8500 2250 8950 2250
+Wire Wire Line
+ 7500 2650 7350 2650
+Wire Wire Line
+ 5400 5400 5200 5400
+Connection ~ 5200 5400
+Wire Wire Line
+ 2950 1700 2550 1700
+Connection ~ 2550 1700
+Wire Wire Line
+ 2550 1700 2550 1850
+$Comp
+L Connector:TestPoint TP6
+U 1 1 6018CCCD
+P 9100 5300
+F 0 "TP6" H 9158 5418 50 0000 L CNN
+F 1 "TestPoint" H 9158 5327 50 0000 L CNN
+F 2 "TestPoint:TestPoint_Pad_1.5x1.5mm" H 9300 5300 50 0001 C CNN
+F 3 "~" H 9300 5300 50 0001 C CNN
+ 1 9100 5300
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 6950 2450 7300 2450
+Text GLabel 1500 6850 2 50 Input ~ 0
+VDD_3.3V
+Text GLabel 3200 6750 2 50 Input ~ 0
+VDD_1.9V
+$Comp
+L power:+3.3V #PWR0129
+U 1 1 601CA174
+P 700 6850
+F 0 "#PWR0129" H 700 6700 50 0001 C CNN
+F 1 "+3.3V" H 715 7023 50 0000 C CNN
+F 2 "" H 700 6850 50 0001 C CNN
+F 3 "" H 700 6850 50 0001 C CNN
+ 1 700 6850
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:GND #PWR0130
+U 1 1 601D69E8
+P 1200 7400
+F 0 "#PWR0130" H 1200 7150 50 0001 C CNN
+F 1 "GND" H 1205 7227 50 0000 C CNN
+F 2 "" H 1200 7400 50 0001 C CNN
+F 3 "" H 1200 7400 50 0001 C CNN
+ 1 1200 7400
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:C_Small C18
+U 1 1 601D73A1
+P 1000 7050
+F 0 "C18" H 1092 7096 50 0000 L CNN
+F 1 "10uF" H 1092 7005 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 1000 7050 50 0001 C CNN
+F 3 "~" H 1000 7050 50 0001 C CNN
+ 1 1000 7050
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:C_Small C19
+U 1 1 601D7B4F
+P 1400 7050
+F 0 "C19" H 1492 7096 50 0000 L CNN
+F 1 "100nF" H 1492 7005 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 1400 7050 50 0001 C CNN
+F 3 "~" H 1400 7050 50 0001 C CNN
+ 1 1400 7050
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 1400 6850 1400 6950
+Wire Wire Line
+ 1000 6850 1000 6950
+Wire Wire Line
+ 1400 7250 1200 7250
+Connection ~ 1200 7250
+Wire Wire Line
+ 1000 7250 1200 7250
+Connection ~ 1000 6950
+Wire Wire Line
+ 1000 6950 1000 7050
+Connection ~ 1400 6950
+Wire Wire Line
+ 1400 6950 1400 7050
+Wire Wire Line
+ 1400 7250 1400 7150
+Wire Wire Line
+ 1000 7150 1000 7250
+Wire Wire Line
+ 1400 6850 1500 6850
+Connection ~ 1400 6850
+$Comp
+L Device:C_Small C20
+U 1 1 6031E03B
+P 2650 7000
+F 0 "C20" H 2742 7046 50 0000 L CNN
+F 1 "10uF" H 2742 6955 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 2650 7000 50 0001 C CNN
+F 3 "~" H 2650 7000 50 0001 C CNN
+ 1 2650 7000
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:C_Small C21
+U 1 1 6031E9B0
+P 3100 7000
+F 0 "C21" H 3192 7046 50 0000 L CNN
+F 1 "100nF" H 3192 6955 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 3100 7000 50 0001 C CNN
+F 3 "~" H 3100 7000 50 0001 C CNN
+ 1 3100 7000
+ 1 0 0 -1
+$EndComp
+$Comp
+L new_components:+1.9V #PWR0131
+U 1 1 60327483
+P 2350 6700
+F 0 "#PWR0131" H 2350 6550 50 0001 C CNN
+F 1 "+1.9V" H 2365 6873 50 0000 C CNN
+F 2 "" H 2350 6700 50 0001 C CNN
+F 3 "" H 2350 6700 50 0001 C CNN
+ 1 2350 6700
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 2650 6900 2650 6750
+Wire Wire Line
+ 3100 6900 3100 6750
+$Comp
+L power:GND #PWR0132
+U 1 1 60347D48
+P 2900 7450
+F 0 "#PWR0132" H 2900 7200 50 0001 C CNN
+F 1 "GND" H 2905 7277 50 0000 C CNN
+F 2 "" H 2900 7450 50 0001 C CNN
+F 3 "" H 2900 7450 50 0001 C CNN
+ 1 2900 7450
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 2650 7300 2900 7300
+Wire Wire Line
+ 2650 7100 2650 7300
+Wire Wire Line
+ 3100 7100 3100 7300
+Wire Wire Line
+ 3100 7300 2900 7300
+Connection ~ 2900 7300
+Wire Wire Line
+ 3100 6750 3200 6750
+Wire Wire Line
+ 1000 6850 1400 6850
+Wire Wire Line
+ 700 6850 1000 6850
+Connection ~ 1000 6850
+Wire Wire Line
+ 2350 6750 2650 6750
+Connection ~ 3100 6750
+Connection ~ 2650 6750
+Wire Wire Line
+ 2650 6750 3100 6750
+$Comp
+L Device:R_Small R8
+U 1 1 6042B769
+P 3250 5350
+F 0 "R8" H 3309 5396 50 0000 L CNN
+F 1 "10k" H 3309 5305 50 0000 L CNN
+F 2 "Resistor_SMD:R_0815_2038Metric_Pad1.20x4.05mm_HandSolder" H 3250 5350 50 0001 C CNN
+F 3 "~" H 3250 5350 50 0001 C CNN
+ 1 3250 5350
+ 1 0 0 -1
+$EndComp
+Text GLabel 1900 5650 0 50 Output ~ 0
+VDD_3.3V
+Text GLabel 1900 5550 0 50 Output ~ 0
+VDD_1.9V
+$Comp
+L Device:C_Small C22
+U 1 1 60473AC3
+P 3850 7000
+F 0 "C22" H 3942 7046 50 0000 L CNN
+F 1 "10uF" H 3942 6955 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 3850 7000 50 0001 C CNN
+F 3 "~" H 3850 7000 50 0001 C CNN
+ 1 3850 7000
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:C_Small C23
+U 1 1 60474221
+P 4250 7000
+F 0 "C23" H 4342 7046 50 0000 L CNN
+F 1 "100nF" H 4342 6955 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 4250 7000 50 0001 C CNN
+F 3 "~" H 4250 7000 50 0001 C CNN
+ 1 4250 7000
+ 1 0 0 -1
+$EndComp
+Text GLabel 4550 6900 2 50 Output ~ 0
+VDDPIX
+Wire Wire Line
+ 3850 6900 4250 6900
+Connection ~ 4250 6900
+Wire Wire Line
+ 4250 6900 4550 6900
+$Comp
+L power:GND #PWR0133
+U 1 1 604A1848
+P 4050 7400
+F 0 "#PWR0133" H 4050 7150 50 0001 C CNN
+F 1 "GND" H 4055 7227 50 0000 C CNN
+F 2 "" H 4050 7400 50 0001 C CNN
+F 3 "" H 4050 7400 50 0001 C CNN
+ 1 4050 7400
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 3850 7100 3850 7250
+Wire Wire Line
+ 4250 7100 4250 7250
+Wire Wire Line
+ 3850 7250 4050 7250
+Wire Wire Line
+ 4050 7250 4050 7400
+Connection ~ 4050 7250
+Wire Wire Line
+ 4050 7250 4250 7250
+Text GLabel 1900 5450 0 50 Output ~ 0
+VDDPIX
+Text GLabel 3050 4950 0 50 Output ~ 0
+VDD_1.9V
+$Comp
+L power:GND #PWR0134
+U 1 1 60578859
+P 1900 6200
+F 0 "#PWR0134" H 1900 5950 50 0001 C CNN
+F 1 "GND" H 1905 6027 50 0000 C CNN
+F 2 "" H 1900 6200 50 0001 C CNN
+F 3 "" H 1900 6200 50 0001 C CNN
+ 1 1900 6200
+ 1 0 0 -1
+$EndComp
+$Comp
+L Connector:TestPoint TP5
+U 1 1 6058376A
+P 1400 6050
+F 0 "TP5" H 1458 6168 50 0000 L CNN
+F 1 "TestPoint" H 1458 6077 50 0000 L CNN
+F 2 "TestPoint:TestPoint_Pad_1.5x1.5mm" H 1600 6050 50 0001 C CNN
+F 3 "~" H 1600 6050 50 0001 C CNN
+ 1 1400 6050
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 3250 5450 3250 5650
+Connection ~ 3250 5650
+Wire Wire Line
+ 3250 5650 3350 5650
+Text GLabel 3300 5000 2 50 Output ~ 0
+VDD_3.3V
+Wire Wire Line
+ 3300 5000 3250 5000
+Wire Wire Line
+ 3250 5000 3250 5250
+Text GLabel 1900 5850 0 50 Input ~ 0
+NRST
+$Comp
+L Device:R_Small R7
+U 1 1 606AEFA9
+P 3100 5200
+F 0 "R7" H 3159 5246 50 0000 L CNN
+F 1 "13" H 3159 5155 50 0000 L CNN
+F 2 "Resistor_SMD:R_0815_2038Metric_Pad1.20x4.05mm_HandSolder" H 3100 5200 50 0001 C CNN
+F 3 "~" H 3100 5200 50 0001 C CNN
+ 1 3100 5200
+ -1 0 0 1
+$EndComp
+Wire Wire Line
+ 3050 4950 3100 4950
+Wire Wire Line
+ 3100 4950 3100 5100
+Text GLabel 2700 5950 2 50 Output ~ 0
+MOTION
+Wire Wire Line
+ 8600 850 8600 1050
+Connection ~ 8600 1050
+Wire Wire Line
+ 8600 1050 8800 1050
+Wire Wire Line
+ 7700 1050 8150 1050
+Connection ~ 7700 1050
+Connection ~ 8150 1050
+Wire Wire Line
+ 2350 6700 2350 6750
+$Comp
+L Device:LED D2
+U 1 1 6013E7AA
+P 2350 7000
+F 0 "D2" H 2343 7217 50 0000 C CNN
+F 1 "LED" H 2343 7126 50 0000 C CNN
+F 2 "Diode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 2350 7000 50 0001 C CNN
+F 3 "~" H 2350 7000 50 0001 C CNN
+ 1 2350 7000
+ 0 -1 -1 0
+$EndComp
+$Comp
+L power:GND #PWR0118
+U 1 1 6018C485
+P 2350 7400
+F 0 "#PWR0118" H 2350 7150 50 0001 C CNN
+F 1 "GND" H 2355 7227 50 0000 C CNN
+F 2 "" H 2350 7400 50 0001 C CNN
+F 3 "" H 2350 7400 50 0001 C CNN
+ 1 2350 7400
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 2350 7150 2350 7400
+Wire Wire Line
+ 2350 6750 2350 6850
+Connection ~ 2350 6750
+Connection ~ 7350 2650
+$Comp
+L Connector:TestPoint TP7
+U 1 1 6021FF94
+P 600 3200
+F 0 "TP7" H 658 3318 50 0000 L CNN
+F 1 "TestPoint" H 658 3227 50 0000 L CNN
+F 2 "TestPoint:TestPoint_Pad_1.5x1.5mm" H 800 3200 50 0001 C CNN
+F 3 "~" H 800 3200 50 0001 C CNN
+ 1 600 3200
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 1050 3300 600 3300
+Wire Wire Line
+ 600 3300 600 3200
+Connection ~ 1050 3300
+Wire Wire Line
+ 1900 5950 1900 6100
+Wire Wire Line
+ 1400 6050 1400 6100
+Wire Wire Line
+ 1400 6100 1900 6100
+Connection ~ 1900 6100
+Wire Wire Line
+ 1900 6100 1900 6200
+Wire Wire Line
+ 2900 7300 2900 7450
+Wire Wire Line
+ 1200 7250 1200 7400
+Wire Wire Line
+ 3100 5300 3100 5350
+Wire Wire Line
+ 2700 5350 3100 5350
+Wire Wire Line
+ 4050 2100 4300 2100
+Text GLabel 5750 4700 2 50 Input ~ 0
+MOTION
+Wire Wire Line
+ 5700 4700 5750 4700
+$Comp
+L power:+3.3V #PWR0135
+U 1 1 605B5FA8
+P 10250 2300
+F 0 "#PWR0135" H 10250 2150 50 0001 C CNN
+F 1 "+3.3V" H 10265 2473 50 0000 C CNN
+F 2 "" H 10250 2300 50 0001 C CNN
+F 3 "" H 10250 2300 50 0001 C CNN
+ 1 10250 2300
+ 1 0 0 -1
+$EndComp
+Text GLabel 4300 1900 0 50 Output ~ 0
+BOOT0
+Text GLabel 9950 2550 0 50 Input ~ 0
+BOOT0
+Wire Wire Line
+ 9950 2550 10000 2550
+Wire Wire Line
+ 10250 2800 10000 2800
+Wire Wire Line
+ 10000 2800 10000 2550
+Connection ~ 10250 2800
+Connection ~ 10000 2550
+Wire Wire Line
+ 10000 2550 10100 2550
+Wire Wire Line
+ 8150 1050 8600 1050
+Wire Wire Line
+ 9100 5300 8950 5300
+$Comp
+L Device:C C17
+U 1 1 604A166A
+P 8150 5300
+F 0 "C17" H 8265 5346 50 0000 L CNN
+F 1 "100nF" H 8265 5255 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 8188 5150 50 0001 C CNN
+F 3 "~" H 8150 5300 50 0001 C CNN
+ 1 8150 5300
+ 1 0 0 -1
+$EndComp
+Text GLabel 7650 4450 2 50 Input ~ 0
+DM_ESD
+Text GLabel 8650 4200 1 50 Output ~ 0
+DM_ESD
+Text GLabel 7650 4650 2 50 Input ~ 0
+DP_ESD
+Text GLabel 8650 5000 3 50 Output ~ 0
+DP_ESD
+Wire Wire Line
+ 8000 4150 8150 4150
+Wire Wire Line
+ 8150 4150 8150 4600
+Wire Wire Line
+ 8950 4600 8950 5300
+Wire Wire Line
+ 8150 4600 8150 5150
+Connection ~ 8150 4600
+Wire Wire Line
+ 8150 5450 8950 5450
+Connection ~ 8950 5450
+Wire Wire Line
+ 8950 5450 8950 5550
+Connection ~ 8950 5300
+Wire Wire Line
+ 8950 5300 8950 5450
+Text GLabel 5800 1050 0 50 Input ~ 0
+VDD_3.3
+Connection ~ 5900 1050
+Wire Wire Line
+ 5800 1050 5900 1050
+Text GLabel 5300 1500 1 50 Output ~ 0
+VDD_3.3
+Text GLabel 5200 1500 1 50 Output ~ 0
+VDD_3.3
+Text GLabel 4800 1500 1 50 Output ~ 0
+VDD_3.3
+Text GLabel 5100 1500 1 50 Output ~ 0
+VDD_3.3
+Text GLabel 5000 1500 1 50 Output ~ 0
+VDD_3.3
+Wire Wire Line
+ 4900 1050 4900 1500
+$Comp
+L power:GND #PWR0127
+U 1 1 6020FF9F
+P 4100 1350
+F 0 "#PWR0127" H 4100 1100 50 0001 C CNN
+F 1 "GND" H 4105 1177 50 0000 C CNN
+F 2 "" H 4100 1350 50 0001 C CNN
+F 3 "" H 4100 1350 50 0001 C CNN
+ 1 4100 1350
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 4100 1050 4100 1350
+Wire Wire Line
+ 4650 1050 4900 1050
+Wire Wire Line
+ 4100 1050 4450 1050
+$EndSCHEMATC
diff --git a/lab2/PMW.pretty/PMW3389.kicad_mod b/lab2/PMW.pretty/PMW3389.kicad_mod
new file mode 100644
index 0000000000000000000000000000000000000000..0dd8ff33d24520007c7b54b4161c0fd4961626f3
--- /dev/null
+++ b/lab2/PMW.pretty/PMW3389.kicad_mod
@@ -0,0 +1,29 @@
+(module PMW3389 (layer F.Cu) (tedit 600FD70B)
+ (fp_text reference REF** (at 0 0.5) (layer F.SilkS)
+ (effects (font (size 1 1) (thickness 0.15)))
+ )
+ (fp_text value PMW3389 (at 0 -0.5) (layer F.Fab)
+ (effects (font (size 1 1) (thickness 0.15)))
+ )
+ (fp_line (start 0.35 -2.78) (end 1.45 -2.78) (layer F.SilkS) (width 0.12))
+ (fp_line (start 1.45 -2.78) (end 9.65 -2.78) (layer F.SilkS) (width 0.12))
+ (fp_line (start 1.05 -2.78) (end 1.05 14.48) (layer F.SilkS) (width 0.12))
+ (fp_line (start 9.65 14.48) (end 1 14.48) (layer F.SilkS) (width 0.12))
+ (fp_line (start 6.95 -2.78) (end 6.95 14.48) (layer F.SilkS) (width 0.12))
+ (pad 1 thru_hole circle (at 0 0) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 2 thru_hole circle (at 0 1.78) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 3 thru_hole circle (at 0 3.56) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 4 thru_hole circle (at 0 5.34) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 5 thru_hole circle (at 0 7.12) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 6 thru_hole circle (at 0 8.9) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 7 thru_hole circle (at 0 10.68) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 8 thru_hole circle (at 0 12.46) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 9 thru_hole circle (at 10.7 13.35) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 10 thru_hole circle (at 10.7 11.57) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 11 thru_hole circle (at 10.7 9.79) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 12 thru_hole circle (at 10.7 8.01) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 13 thru_hole circle (at 10.7 6.23) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 14 thru_hole circle (at 10.7 4.45) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 15 thru_hole circle (at 10.7 2.67) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+ (pad 16 thru_hole circle (at 10.7 0.89) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask))
+)
diff --git a/lab2/lab1.ioc b/lab2/lab1.ioc
new file mode 100644
index 0000000000000000000000000000000000000000..af7d56f640eed5042021df93f8c7b0f02500d54d
--- /dev/null
+++ b/lab2/lab1.ioc
@@ -0,0 +1,106 @@
+#MicroXplorer Configuration settings - do not modify
+Mcu.Family=STM32F4
+ProjectManager.MainLocation=Core/Src
+ProjectManager.ProjectFileName=lab1.ioc
+RCC.CortexFreq_Value=16000000
+ProjectManager.KeepUserCode=true
+Mcu.UserName=STM32F411RETx
+Mcu.PinsNb=9
+ProjectManager.NoMain=false
+RCC.PLLCLKFreq_Value=96000000
+RCC.PLLQCLKFreq_Value=48000000
+ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false
+PC2.Signal=SPI2_MISO
+RCC.RTCFreq_Value=32000
+PC3.Locked=true
+ProjectManager.DefaultFWLocation=true
+PB12.Locked=true
+ProjectManager.DeletePrevious=true
+PB10.Locked=true
+PinOutPanel.RotationAngle=0
+RCC.FamilyName=M
+ProjectManager.StackSize=0x400
+PA13.Signal=SYS_JTMS-SWDIO
+Mcu.IP2=SYS
+NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false
+Mcu.IP0=NVIC
+PA11.Locked=true
+PA12.Locked=true
+Mcu.IP1=RCC
+PA12.Signal=USB_OTG_FS_DP
+Mcu.UserConstants=
+ProjectManager.TargetToolchain=EWARM V8.32
+Mcu.ThirdPartyNb=0
+Mcu.IPNb=3
+RCC.I2SClocksFreq_Value=96000000
+ProjectManager.PreviousToolchain=
+RCC.VcooutputI2S=96000000
+PC3.Signal=SPI2_MOSI
+RCC.VCOInputMFreq_Value=1000000
+Mcu.Pin6=PA13
+PC2.Locked=true
+Mcu.Pin7=PA14
+ProjectManager.RegisterCallBack=
+Mcu.Pin8=VP_SYS_VS_Systick
+RCC.LSE_VALUE=32768
+RCC.AHBFreq_Value=16000000
+Mcu.Pin0=PC2
+Mcu.Pin1=PC3
+GPIO.groupedBy=
+Mcu.Pin2=PB10
+PB10.Signal=SPI2_SCK
+Mcu.Pin3=PB12
+Mcu.Pin4=PA11
+RCC.VCOI2SOutputFreq_Value=192000000
+Mcu.Pin5=PA12
+ProjectManager.ProjectBuild=false
+RCC.HSE_VALUE=25000000
+NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
+NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false
+board=custom
+RCC.VCOOutputFreq_Value=192000000
+NVIC.SysTick_IRQn=true\:0\:0\:false\:false\:true\:false\:true
+ProjectManager.LastFirmware=true
+ProjectManager.FirmwarePackage=STM32Cube FW_F4 V1.25.2
+MxDb.Version=DB.6.0.10
+RCC.APB2Freq_Value=16000000
+ProjectManager.BackupPrevious=false
+MxCube.Version=6.1.0
+RCC.VCOInputFreq_Value=1000000
+File.Version=6
+VP_SYS_VS_Systick.Mode=SysTick
+NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false
+NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false
+ProjectManager.FreePins=false
+RCC.IPParameters=AHBFreq_Value,APB1Freq_Value,APB2Freq_Value,CortexFreq_Value,FamilyName,HSE_VALUE,HSI_VALUE,I2SClocksFreq_Value,LSE_VALUE,LSI_VALUE,PLLCLKFreq_Value,PLLQCLKFreq_Value,RTCFreq_Value,RTCHSEDivFreq_Value,SYSCLKFreq_VALUE,VCOI2SOutputFreq_Value,VCOInputFreq_Value,VCOInputMFreq_Value,VCOOutputFreq_Value,VcooutputI2S
+ProjectManager.AskForMigrate=true
+Mcu.Name=STM32F411R(C-E)Tx
+ProjectManager.HalAssertFull=false
+RCC.RTCHSEDivFreq_Value=12500000
+ProjectManager.ProjectName=lab1
+ProjectManager.UnderRoot=false
+ProjectManager.CoupleFile=false
+RCC.SYSCLKFreq_VALUE=16000000
+Mcu.Package=LQFP64
+NVIC.ForceEnableDMAVector=true
+KeepUserPlacement=false
+NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false
+PA13.Locked=true
+PA14.Locked=true
+ProjectManager.CompilerOptimize=6
+ProjectManager.ToolChainLocation=
+RCC.LSI_VALUE=32000
+VP_SYS_VS_Systick.Signal=SYS_VS_Systick
+PA11.Signal=USB_OTG_FS_DM
+PA14.Signal=SYS_JTCK-SWCLK
+ProjectManager.HeapSize=0x200
+NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
+ProjectManager.ComputerToolchain=false
+RCC.HSI_VALUE=16000000
+NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4
+NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
+RCC.APB1Freq_Value=16000000
+ProjectManager.CustomerFirmwarePackage=
+ProjectManager.DeviceId=STM32F411RETx
+PB12.Signal=SPI2_NSS
+ProjectManager.LibraryCopy=0
diff --git a/lab2/new_components.dcm b/lab2/new_components.dcm
new file mode 100644
index 0000000000000000000000000000000000000000..1da36e5984aa9b108e031950806267761e16a7af
--- /dev/null
+++ b/lab2/new_components.dcm
@@ -0,0 +1,8 @@
+EESchema-DOCLIB Version 2.0
+#
+$CMP +1.9V
+D Power symbol creates a global label with name "+1.9V"
+K power-flag
+$ENDCMP
+#
+#End Doc Library
diff --git a/lab2/new_components.lib b/lab2/new_components.lib
new file mode 100644
index 0000000000000000000000000000000000000000..5eba95b12b81063cfca8dfd9ed164de328821798
--- /dev/null
+++ b/lab2/new_components.lib
@@ -0,0 +1,47 @@
+EESchema-LIBRARY Version 2.4
+#encoding utf-8
+#
+# +1.9V
+#
+DEF +1.9V #PWR 0 0 Y Y 1 F P
+F0 "#PWR" 0 -150 50 H I C CNN
+F1 "+1.9V" 0 140 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+DRAW
+P 2 0 1 0 -30 50 0 100 N
+P 2 0 1 0 0 0 0 100 N
+P 2 0 1 0 0 100 30 50 N
+X +1V0 1 0 0 0 U 50 50 1 1 W N
+ENDDRAW
+ENDDEF
+#
+# PMW3389
+#
+DEF PMW3389 U 0 40 Y Y 1 F N
+F0 "U" 0 -550 50 H V C CNN
+F1 "PMW3389" 0 -550 50 H V C CNN
+F2 "" 0 -550 50 H I C CNN
+F3 "" 0 -550 50 H I C CNN
+DRAW
+S -350 400 250 -500 0 1 0 N
+X NC_0 1 -450 300 100 R 50 50 1 1 N
+X SCLK 10 350 -300 100 L 50 50 1 1 I
+X MOSI 11 350 -200 100 L 50 50 1 1 I
+X MISO 12 350 -100 100 L 50 50 1 1 O
+X NCS 13 350 0 100 L 50 50 1 1 I
+X NC_3 14 350 100 100 L 50 50 1 1 N
+X LED1_P 15 350 200 100 L 50 50 1 1 I
+X NC 16 350 300 100 L 50 50 1 1 N
+X CN_1 2 -450 200 100 R 50 50 1 1 N
+X VDDPIX 3 -450 100 100 R 50 50 1 1 w
+X VDD 4 -450 0 100 R 50 50 1 1 W
+X VDDIO 5 -450 -100 100 R 50 50 1 1 W
+X GPO 6 -450 -200 100 R 50 50 1 1 N
+X NRESET 7 -450 -300 100 R 50 50 1 1 I
+X GND 8 -450 -400 100 R 50 50 1 1 w
+X MOTION 9 350 -400 100 L 50 50 1 1 O
+ENDDRAW
+ENDDEF
+#
+#End Library