Ver código fonte

Add a dip switch and the associated footprint

Bernd Gottschlag 5 anos atrás
pai
commit
648257be03

+ 18
- 0
kicad-library/footprints.pretty/DS04-254-2-03BK-SMT.kicad_mod Ver arquivo

@@ -0,0 +1,18 @@
1
+(module DS04-254-2-03BK-SMT (layer F.Cu) (tedit 5E7A8180)
2
+  (fp_text reference REF** (at -0.2 10.16) (layer F.SilkS)
3
+    (effects (font (size 1 1) (thickness 0.15)))
4
+  )
5
+  (fp_text value DS04-254-2-03BK-SMT (at -0.1 7.62) (layer F.Fab)
6
+    (effects (font (size 1 1) (thickness 0.15)))
7
+  )
8
+  (fp_line (start -4.31 -3.1) (end -4.31 3.1) (layer F.CrtYd) (width 0.12))
9
+  (fp_line (start -4.31 3.1) (end 4.31 3.1) (layer F.CrtYd) (width 0.12))
10
+  (fp_line (start 4.31 3.1) (end 4.31 -3.1) (layer F.CrtYd) (width 0.12))
11
+  (fp_line (start 4.31 -3.1) (end -4.31 -3.1) (layer F.CrtYd) (width 0.12))
12
+  (pad 1 smd rect (at -2.54 4.45) (size 1.1 1.5) (layers F.Cu F.Paste F.Mask))
13
+  (pad 6 smd rect (at -2.54 -4.45) (size 1.1 1.5) (layers F.Cu F.Paste F.Mask))
14
+  (pad 5 smd rect (at 0 -4.45) (size 1.1 1.5) (layers F.Cu F.Paste F.Mask))
15
+  (pad 4 smd rect (at 2.54 -4.45) (size 1.1 1.5) (layers F.Cu F.Paste F.Mask))
16
+  (pad 3 smd rect (at 2.54 4.45) (size 1.1 1.5) (layers F.Cu F.Paste F.Mask))
17
+  (pad 2 smd rect (at 0 4.45) (size 1.1 1.5) (layers F.Cu F.Paste F.Mask))
18
+)

+ 32
- 2
weather-sensor/weather_station_sensor-cache.lib Ver arquivo

@@ -197,7 +197,7 @@ ENDDEF
197 197
 DEF GY-B11_EP_280_GY-B11_EP_280 U 0 20 Y Y 1 F N
198 198
 F0 "U" -250 450 50 H V C CNN
199 199
 F1 "GY-B11_EP_280_GY-B11_EP_280" 200 450 50 H V C CNN
200
-F2 "Own_Library:GY-B11_EP_280_SMD" 1500 -450 50 H I C CNN
200
+F2 "footprints:GY-B11_EP_280_SMD" 1500 -450 50 H I C CNN
201 201
 F3 "" -100 -200 50 H I C CNN
202 202
 $FPLIST
203 203
  *LGA*2.5x2.5mm*P0.65mm*Clockwise*
@@ -266,7 +266,7 @@ ENDDEF
266 266
 DEF NRF24L01_Breakout_SMD_NRF24L01_Breakout_SMD U 0 40 Y Y 1 F N
267 267
 F0 "U" -350 500 50 H V L CNN
268 268
 F1 "NRF24L01_Breakout_SMD_NRF24L01_Breakout_SMD" 150 500 50 H V L CNN
269
-F2 "NRF24L01+breakout_SMD:NRF24L01+breakout_SMD" 150 600 50 H I L CIN
269
+F2 "footprints:NRF24L01+breakout_SMD" 150 600 50 H I L CIN
270 270
 F3 "" 0 -100 50 H I C CNN
271 271
 $FPLIST
272 272
  nRF24L01*Breakout*
@@ -289,6 +289,36 @@ X IRQ 8 -500 -300 150 R 50 50 1 1 O
289 289
 ENDDRAW
290 290
 ENDDEF
291 291
 #
292
+# Switch_SW_DIP_x03
293
+#
294
+DEF Switch_SW_DIP_x03 SW 0 0 Y N 1 F N
295
+F0 "SW" 0 350 50 H V C CNN
296
+F1 "Switch_SW_DIP_x03" 0 -150 50 H V C CNN
297
+F2 "" 0 0 50 H I C CNN
298
+F3 "" 0 0 50 H I C CNN
299
+$FPLIST
300
+ SW?DIP?x3*
301
+$ENDFPLIST
302
+DRAW
303
+C -80 0 20 0 0 0 N
304
+C -80 100 20 0 0 0 N
305
+C -80 200 20 0 0 0 N
306
+C 80 0 20 0 0 0 N
307
+C 80 100 20 0 0 0 N
308
+C 80 200 20 0 0 0 N
309
+S -150 300 150 -100 0 1 10 f
310
+P 2 0 0 0 -60 5 93 46 N
311
+P 2 0 0 0 -60 105 93 146 N
312
+P 2 0 0 0 -60 205 93 246 N
313
+X ~ 1 -300 200 200 R 50 50 1 1 P
314
+X ~ 2 -300 100 200 R 50 50 1 1 P
315
+X ~ 3 -300 0 200 R 50 50 1 1 P
316
+X ~ 4 300 0 200 L 50 50 1 1 P
317
+X ~ 5 300 100 200 L 50 50 1 1 P
318
+X ~ 6 300 200 200 L 50 50 1 1 P
319
+ENDDRAW
320
+ENDDEF
321
+#
292 322
 # power_GND
293 323
 #
294 324
 DEF power_GND #PWR 0 0 Y Y 1 F P

+ 62
- 3
weather-sensor/weather_station_sensor.sch Ver arquivo

@@ -432,10 +432,7 @@ Wire Wire Line
432 432
 	4350 2500 4350 2600
433 433
 NoConn ~ 4850 2700
434 434
 NoConn ~ 4850 2800
435
-NoConn ~ 6050 3100
436
-NoConn ~ 6050 3200
437 435
 NoConn ~ 6050 4500
438
-NoConn ~ 6050 4600
439 436
 Text GLabel 6150 4700 2    50   Input ~ 0
440 437
 IRQ
441 438
 Wire Wire Line
@@ -834,4 +831,66 @@ Wire Wire Line
834 831
 Connection ~ 7250 2800
835 832
 Wire Wire Line
836 833
 	7250 2800 7400 2800
834
+Wire Wire Line
835
+	7700 5700 7700 5750
836
+Wire Wire Line
837
+	7700 5950 7600 5950
838
+Wire Wire Line
839
+	7600 5850 7700 5850
840
+Connection ~ 7700 5850
841
+Wire Wire Line
842
+	7700 5850 7700 5950
843
+Wire Wire Line
844
+	7600 5750 7700 5750
845
+Connection ~ 7700 5750
846
+Wire Wire Line
847
+	7700 5750 7700 5850
848
+Text GLabel 6900 5750 0    50   Input ~ 0
849
+pin_prog_1
850
+Text GLabel 6900 5850 0    50   Input ~ 0
851
+pin_prog_2
852
+Text GLabel 6900 5950 0    50   Input ~ 0
853
+pin_prog_3
854
+Wire Wire Line
855
+	6900 5750 7000 5750
856
+Wire Wire Line
857
+	7000 5850 6900 5850
858
+Wire Wire Line
859
+	6900 5950 7000 5950
860
+Text GLabel 6150 3100 2    50   Input ~ 0
861
+pin_prog_1
862
+Text GLabel 6150 3200 2    50   Input ~ 0
863
+pin_prog_2
864
+Text GLabel 6150 4600 2    50   Input ~ 0
865
+pin_prog_3
866
+Wire Wire Line
867
+	6050 3100 6150 3100
868
+Wire Wire Line
869
+	6150 3200 6050 3200
870
+Wire Wire Line
871
+	6050 4600 6150 4600
872
+$Comp
873
+L Switch:SW_DIP_x03 SW1
874
+U 1 1 5E7B54BE
875
+P 7300 5950
876
+F 0 "SW1" H 7300 6417 50  0000 C CNN
877
+F 1 "SW_DIP_x03" H 7300 6326 50  0000 C CNN
878
+F 2 "footprints:DS04-254-2-03BK-SMT" H 7300 5950 50  0001 C CNN
879
+F 3 "https://www.cuidevices.com/product/resource/digikeypdf/ds04-254-smt.pdf" H 7300 5950 50  0001 C CNN
880
+F 4 "2223-DS04-254-2-03BK-SMT-ND" H 7300 5950 50  0001 C CNN "Digikey PN"
881
+F 5 "https://www.digikey.de/product-detail/de/cui-devices/DS04-254-2-03BK-SMT/2223-DS04-254-2-03BK-SMT-ND/11310920" H 7300 5950 50  0001 C CNN "Digikey link"
882
+	1    7300 5950
883
+	1    0    0    -1  
884
+$EndComp
885
+$Comp
886
+L power:VCC #PWR011
887
+U 1 1 5E800E93
888
+P 7700 5700
889
+F 0 "#PWR011" H 7700 5550 50  0001 C CNN
890
+F 1 "VCC" H 7717 5873 50  0000 C CNN
891
+F 2 "" H 7700 5700 50  0001 C CNN
892
+F 3 "" H 7700 5700 50  0001 C CNN
893
+	1    7700 5700
894
+	1    0    0    -1  
895
+$EndComp
837 896
 $EndSCHEMATC

Carregando…
Cancelar
Salvar