diff --git a/c2ben/Makefile b/c2ben/Makefile new file mode 100644 index 0000000..f5eaeb8 --- /dev/null +++ b/c2ben/Makefile @@ -0,0 +1,18 @@ +.PHONY: all gen generate sch brd xpdf + +all: + @echo "make what ? target: gen sch brd xpdf" + @exit 1 + +gen generate: + eeschema --plot `pwd`/c2ben.sch + # need scripts + +sch: + eeschema `pwd`/c2ben.sch + +brd: + pcbnew `pwd`/c2ben.brd + +xpdf: + xpdf c2ben.pdf diff --git a/c2ben/c2ben.brd b/c2ben/c2ben.brd new file mode 100644 index 0000000..a6bfb8f --- /dev/null +++ b/c2ben/c2ben.brd @@ -0,0 +1,592 @@ +PCBNEW-BOARD Version 1 date Wed Oct 20 14:35:09 2010 + +# Created by Pcbnew(2010-08-11 BZR 2448)-unstable + +$GENERAL +LayerCount 2 +Ly 1FFF8001 +EnabledLayers 1FFF8001 +Links 8 +NoConn 0 +Di 59324 31126 77514 35885 +Ndraw 34 +Ntrack 24 +Nzone 0 +BoardThickness 630 +Nmodule 13 +Nnets 9 +$EndGENERAL + +$SHEETDESCR +Sheet A4 11700 8267 +Title "C2 Adapter for the Ben's uSD slot" +Date "20 oct 2010" +Rev "20101020" +Comp "Werner Almesberger" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndSHEETDESCR + +$SETUP +InternalUnit 0.000100 INCH +ZoneGridSize 250 +Layers 2 +Layer[0] Back signal +Layer[15] Front signal +TrackWidth 80 +TrackClearence 78 +ZoneClearence 200 +TrackMinWidth 80 +DrawSegmWidth 150 +EdgeSegmWidth 50 +ViaSize 350 +ViaDrill 250 +ViaMinSize 350 +ViaMinDrill 200 +MicroViaSize 200 +MicroViaDrill 50 +MicroViasAllowed 0 +MicroViaMinSize 200 +MicroViaMinDrill 50 +TextPcbWidth 120 +TextPcbSize 600 800 +EdgeModWidth 150 +TextModSize 600 600 +TextModWidth 120 +PadSize 600 600 +PadDrill 320 +Pad2MaskClearance 100 +AuxiliaryAxisOrg 0 0 +$EndSETUP + +$EQUIPOT +Na 0 "" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 1 "/C2CK" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 2 "/C2D" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 3 "/GND" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 4 "/VDD" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 5 "N-000005" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 6 "N-000006" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 7 "N-000007" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 8 "N-000008" +St ~ +$EndEQUIPOT +$NCLASS +Name "Default" +Desc "This is the default net class." +Clearance 78 +TrackWidth 80 +ViaDia 350 +ViaDrill 250 +uViaDia 200 +uViaDrill 50 +AddNet "" +AddNet "/C2CK" +AddNet "/C2D" +AddNet "/GND" +AddNet "/VDD" +AddNet "N-000005" +AddNet "N-000006" +AddNet "N-000007" +AddNet "N-000008" +$EndNCLASS +$MODULE PAD_120x60 +Po 60400 35000 0 15 4CBF1E8B 4CBF21A8 ~~ +Li PAD_120x60 +Sc 4CBF21A8 +AR /4CBF18BB +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P4" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 1200 600 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 3 "/GND" +Po 0 0 +$EndPAD +$EndMODULE PAD_120x60 +$MODULE PAD_120x60 +Po 60400 34000 0 15 4CBF1E8B 4CBF21AA ~~ +Li PAD_120x60 +Sc 4CBF21AA +AR /4CBF18B9 +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P3" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 1200 600 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 4 "/VDD" +Po 0 0 +$EndPAD +$EndMODULE PAD_120x60 +$MODULE PAD_120x60 +Po 60400 33000 0 15 4CBF1E8B 4CBF21AC ~~ +Li PAD_120x60 +Sc 4CBF21AC +AR /4CBF18B8 +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P2" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 1200 600 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 1 "/C2CK" +Po 0 0 +$EndPAD +$EndMODULE PAD_120x60 +$MODULE PAD_120x60 +Po 60400 32000 0 15 4CBF1E8B 4CBF21AE ~~ +Li PAD_120x60 +Sc 4CBF21AE +AR /4CBF18B7 +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P1" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 1200 600 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 2 "/C2D" +Po 0 0 +$EndPAD +$EndMODULE PAD_120x60 +$MODULE PAD_2mm +Po 70300 34200 0 15 4CBF1E8B 4CBF21AF ~~ +Li PAD_2mm +Sc 4CBF21AF +AR /4CBF18AF +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P12" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 786 196 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "N-000008" +Po 0 0 +$EndPAD +$EndMODULE PAD_2mm +$MODULE PAD_2mm +Po 70300 33700 0 15 4CBF1E8B 4CBF21B1 ~~ +Li PAD_2mm +Sc 4CBF21B1 +AR /4CBF18AE +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P11" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 786 196 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 7 "N-000007" +Po 0 0 +$EndPAD +$EndMODULE PAD_2mm +$MODULE PAD_2mm +Po 70300 33200 0 15 4CBF1E8B 4CBF21B3 ~~ +Li PAD_2mm +Sc 4CBF21B3 +AR /4CBF18AD +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P10" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 786 196 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 6 "N-000006" +Po 0 0 +$EndPAD +$EndMODULE PAD_2mm +$MODULE PAD_2mm +Po 70300 32700 0 15 4CBF1E8B 4CBF21B5 ~~ +Li PAD_2mm +Sc 4CBF21B5 +AR /4CBF18AA +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P9" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 786 196 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 5 "N-000005" +Po 0 0 +$EndPAD +$EndMODULE PAD_2mm +$MODULE PAD_2mm +Po 61800 34200 0 15 4CBF1E8B 4CBF21B7 ~~ +Li PAD_2mm +Sc 4CBF21B7 +AR /4CBF18B1 +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P8" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 786 196 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 3 "/GND" +Po 0 0 +$EndPAD +$EndMODULE PAD_2mm +$MODULE PAD_2mm +Po 61800 33700 0 15 4CBF1E8B 4CBF21B9 ~~ +Li PAD_2mm +Sc 4CBF21B9 +AR /4CBF18B3 +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P7" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 786 196 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 4 "/VDD" +Po 0 0 +$EndPAD +$EndMODULE PAD_2mm +$MODULE PAD_2mm +Po 61800 33200 0 15 4CBF1E8B 4CBF21BB ~~ +Li PAD_2mm +Sc 4CBF21BB +AR /4CBF18B4 +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P6" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 786 196 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 1 "/C2CK" +Po 0 0 +$EndPAD +$EndMODULE PAD_2mm +$MODULE PAD_2mm +Po 61800 32700 0 15 4CBF1E8B 4CBF21BD ~~ +Li PAD_2mm +Sc 4CBF21BD +AR /4CBF18B5 +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P5" +T1 0 150 200 200 0 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 786 196 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 2 "/C2D" +Po 0 0 +$EndPAD +$EndMODULE PAD_2mm +$MODULE uSD-Card +Po 71500 33400 0 15 4C7DD099 4CBF21BE ~~ +Li uSD-Card +Sc 4CBF21BE +AR /4CBF2721 +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P13" +T1 0 150 200 200 0 40 N I 25 N"USD-CARD" +DS 0 2165 0 -2165 30 21 +DS 0 -2165 2007 -2165 30 21 +DS 2007 -2165 2322 -1850 30 21 +DS 2322 -1850 2795 -1850 30 21 +DS 2795 -1850 2795 -2165 30 21 +DS 2795 -2165 3346 -2165 30 21 +DS 3346 -2165 3897 -1614 30 21 +DS 0 2165 5905 2165 30 21 +DS 3897 -1614 5905 -1614 30 21 +DS 5905 2165 5905 -1614 30 21 +DS -551 2165 -551 -2165 30 21 +$PAD +Sh "1" R 1181 355 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 5 "N-000005" +Po 4920 -1239 +$EndPAD +$PAD +Sh "2" R 1181 355 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po 4920 -806 +$EndPAD +$PAD +Sh "3" R 1181 355 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 6 "N-000006" +Po 4920 -373 +$EndPAD +$PAD +Sh "4" R 1299 354 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 7 "N-000007" +Po 4979 59 +$EndPAD +$PAD +Sh "5" R 1181 355 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po 4920 491 +$EndPAD +$PAD +Sh "6" R 1299 354 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "N-000008" +Po 4979 925 +$EndPAD +$PAD +Sh "7" R 1181 354 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po 4920 1358 +$EndPAD +$PAD +Sh "8" R 1181 354 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po 4920 1791 +$EndPAD +$EndMODULE uSD-Card +$TEXTPCB +Te "GVCD" +Po 62400 35000 600 600 100 0 +De 15 1 0 Normal +$EndTEXTPCB +$DRAWSEGMENT +Po 0 64400 35750 64400 31250 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 59350 35750 64400 35750 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 59350 31250 59350 35750 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 59500 31250 59350 31250 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 64400 31250 59500 31250 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 67800 31250 71500 31250 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 67800 35600 67800 31250 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 77400 35600 67800 35600 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 77400 31800 77400 35600 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 75400 31800 77400 31800 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 74850 31250 75400 31800 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 74300 31250 74850 31250 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 74300 31550 74300 31250 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 73800 31550 74300 31550 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 73500 31250 73800 31550 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 71500 31250 73500 31250 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 64400 31400 64400 32400 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 62400 31400 62400 32400 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 62600 31900 64200 31900 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 64200 31900 63800 32300 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 64200 31900 63800 31500 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 62600 31900 63000 31500 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 62600 31900 63000 32300 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$TEXTPCB +Te "5 mm" +Po 63400 30800 600 800 120 0 +De 25 1 0 Normal +$EndTEXTPCB +$TEXTPCB +Te "5 mm" +Po 68800 30800 600 800 120 0 +De 25 1 0 Normal +$EndTEXTPCB +$DRAWSEGMENT +Po 0 68000 31900 68400 32300 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 68000 31900 68400 31500 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 69600 31900 69200 31500 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 69600 31900 69200 32300 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 68000 31900 69600 31900 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 67800 31400 67800 32400 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 69800 31400 69800 32400 150 +De 25 0 900 0 0 +$EndDRAWSEGMENT +$TEXTPCB +Te "20101020" +Po 73600 34900 500 500 100 0 +De 15 1 0 Normal +$EndTEXTPCB +$TRACK +Po 0 61800 33200 61000 33200 80 -1 +De 15 0 1 0 C00 +Po 0 60800 33000 60400 33000 80 -1 +De 15 0 1 0 C00 +Po 0 61000 33200 60800 33000 80 -1 +De 15 0 1 0 C00 +Po 0 61800 32700 61300 32700 80 -1 +De 15 0 2 0 800 +Po 0 60600 32000 60400 32000 80 -1 +De 15 0 2 0 C00 +Po 0 61300 32700 60600 32000 80 -1 +De 15 0 2 0 400 +Po 0 61800 34200 61500 34200 80 -1 +De 15 0 3 0 C00 +Po 0 60700 35000 60400 35000 80 -1 +De 15 0 3 0 C00 +Po 0 61500 34200 60700 35000 80 -1 +De 15 0 3 0 C00 +Po 0 61800 33700 61000 33700 80 -1 +De 15 0 4 0 C00 +Po 0 60700 34000 60400 34000 80 -1 +De 15 0 4 0 C00 +Po 0 61000 33700 60700 34000 80 -1 +De 15 0 4 0 C00 +Po 0 76420 32161 71439 32161 80 -1 +De 15 0 5 0 800 +Po 0 70900 32700 70300 32700 80 -1 +De 15 0 5 0 400 +Po 0 71439 32161 70900 32700 80 -1 +De 15 0 5 0 0 +Po 0 76420 33027 71473 33027 80 -1 +De 15 0 6 0 800 +Po 0 71300 33200 70300 33200 80 -1 +De 15 0 6 0 400 +Po 0 71473 33027 71300 33200 80 -1 +De 15 0 6 0 0 +Po 0 76479 33459 71541 33459 80 -1 +De 15 0 7 0 800 +Po 0 71300 33700 70300 33700 80 -1 +De 15 0 7 0 400 +Po 0 71541 33459 71300 33700 80 -1 +De 15 0 7 0 0 +Po 0 76479 34325 71425 34325 80 -1 +De 15 0 8 0 800 +Po 0 71300 34200 70300 34200 80 -1 +De 15 0 8 0 400 +Po 0 71425 34325 71300 34200 80 -1 +De 15 0 8 0 0 +$EndTRACK +$ZONE +$EndZONE +$EndBOARD diff --git a/c2ben/c2ben.cmp b/c2ben/c2ben.cmp new file mode 100644 index 0000000..2e4700f --- /dev/null +++ b/c2ben/c2ben.cmp @@ -0,0 +1,94 @@ +Cmp-Mod V01 Created by CvPCB (2010-08-11 BZR 2448)-unstable date = Wed Oct 20 14:31:01 2010 + +BeginCmp +TimeStamp = /4CBF18B7; +Reference = P1; +ValeurCmp = CONN_1; +IdModule = PAD_120x60; +EndCmp + +BeginCmp +TimeStamp = /4CBF18B8; +Reference = P2; +ValeurCmp = CONN_1; +IdModule = PAD_120x60; +EndCmp + +BeginCmp +TimeStamp = /4CBF18B9; +Reference = P3; +ValeurCmp = CONN_1; +IdModule = PAD_120x60; +EndCmp + +BeginCmp +TimeStamp = /4CBF18BB; +Reference = P4; +ValeurCmp = CONN_1; +IdModule = PAD_120x60; +EndCmp + +BeginCmp +TimeStamp = /4CBF18B5; +Reference = P5; +ValeurCmp = CONN_1; +IdModule = PAD_2mm; +EndCmp + +BeginCmp +TimeStamp = /4CBF18B4; +Reference = P6; +ValeurCmp = CONN_1; +IdModule = PAD_2mm; +EndCmp + +BeginCmp +TimeStamp = /4CBF18B3; +Reference = P7; +ValeurCmp = CONN_1; +IdModule = PAD_2mm; +EndCmp + +BeginCmp +TimeStamp = /4CBF18B1; +Reference = P8; +ValeurCmp = CONN_1; +IdModule = PAD_2mm; +EndCmp + +BeginCmp +TimeStamp = /4CBF18AA; +Reference = P9; +ValeurCmp = CONN_1; +IdModule = PAD_2mm; +EndCmp + +BeginCmp +TimeStamp = /4CBF18AD; +Reference = P10; +ValeurCmp = CONN_1; +IdModule = PAD_2mm; +EndCmp + +BeginCmp +TimeStamp = /4CBF18AE; +Reference = P11; +ValeurCmp = CONN_1; +IdModule = PAD_2mm; +EndCmp + +BeginCmp +TimeStamp = /4CBF18AF; +Reference = P12; +ValeurCmp = CONN_1; +IdModule = PAD_2mm; +EndCmp + +BeginCmp +TimeStamp = /4CBF2721; +Reference = P13; +ValeurCmp = USD-CARD; +IdModule = uSD-Card; +EndCmp + +EndListe diff --git a/c2ben/c2ben.pro b/c2ben/c2ben.pro new file mode 100644 index 0000000..861f0d1 --- /dev/null +++ b/c2ben/c2ben.pro @@ -0,0 +1,61 @@ +update=Wed Oct 20 18:18:52 2010 +last_client=pcbnew +[eeschema] +version=1 +LibDir= +NetFmt=1 +HPGLSpd=20 +HPGLDm=15 +HPGLNum=1 +offX_A4=0 +offY_A4=0 +offX_A3=0 +offY_A3=0 +offX_A2=0 +offY_A2=0 +offX_A1=0 +offY_A1=0 +offX_A0=0 +offY_A0=0 +offX_A=0 +offY_A=0 +offX_B=0 +offY_B=0 +offX_C=0 +offY_C=0 +offX_D=0 +offY_D=0 +offX_E=0 +offY_E=0 +RptD_X=0 +RptD_Y=100 +RptLab=1 +LabSize=60 +PrintMonochrome=1 +ShowSheetReferenceAndTitleBlock=1 +[eeschema/libraries] +LibName1=power +LibName2=conn +LibName3=components/usd-card +[pcbnew] +version=1 +PadDrlX=320 +PadDimH=600 +PadDimV=600 +BoardThickness=630 +SgPcb45=1 +TxtPcbV=800 +TxtPcbH=600 +TxtModV=600 +TxtModH=600 +TxtModW=120 +VEgarde=100 +DrawLar=150 +EdgeLar=50 +TxtLar=120 +MSegLar=150 +LastNetListRead=c2ben.net +[pcbnew/libraries] +LibDir= +LibName1=../../kicad-libs/modules/usd-card +LibName2=../../kicad-libs/modules/pads diff --git a/c2ben/c2ben.sch b/c2ben/c2ben.sch new file mode 100644 index 0000000..d63c96d --- /dev/null +++ b/c2ben/c2ben.sch @@ -0,0 +1,177 @@ +EESchema Schematic File Version 2 date Wed Oct 20 18:19:44 2010 +LIBS:power +LIBS:conn +LIBS:usd-card +LIBS:c2ben-cache +EELAYER 24 0 +EELAYER END +$Descr A4 11700 8267 +Sheet 1 1 +Title "C2 Adapter for the Ben's uSD slot" +Date "20 oct 2010" +Rev "20102010" +Comp "Werner Almesberger" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L USD-CARD P13 +U 1 1 4CBF2721 +P 7250 3550 +F 0 "P13" H 7050 4100 60 0000 C CNN +F 1 "USD-CARD" H 7300 2950 60 0000 C CNN +F 2 "uSD-Card" H 7100 2800 60 0001 C CNN + 1 7250 3550 + 1 0 0 -1 +$EndComp +Text Label 4450 3300 0 60 ~ 0 +C2D +Text Label 4450 3450 0 60 ~ 0 +C2CK +Text Label 4450 3600 0 60 ~ 0 +VDD +Text Label 4450 3750 0 60 ~ 0 +GND +Wire Wire Line + 4950 3750 4250 3750 +Wire Wire Line + 4950 3450 4250 3450 +Wire Wire Line + 6350 3750 6950 3750 +Wire Wire Line + 6350 3450 6950 3450 +Wire Wire Line + 6350 3250 6950 3250 +Wire Wire Line + 6350 3550 6950 3550 +Wire Wire Line + 4250 3300 4950 3300 +Wire Wire Line + 4250 3600 4950 3600 +NoConn ~ 6950 3350 +NoConn ~ 6950 3650 +NoConn ~ 6950 3850 +NoConn ~ 6950 3950 +$Comp +L CONN_1 P4 +U 1 1 4CBF18BB +P 4100 3750 +F 0 "P4" H 4180 3750 40 0000 L CNN +F 1 "CONN_1" H 4100 3805 30 0001 C CNN +F 2 "PAD_120x60" H 4100 3750 60 0001 C CNN + 1 4100 3750 + -1 0 0 1 +$EndComp +$Comp +L CONN_1 P3 +U 1 1 4CBF18B9 +P 4100 3600 +F 0 "P3" H 4180 3600 40 0000 L CNN +F 1 "CONN_1" H 4100 3655 30 0001 C CNN +F 2 "PAD_120x60" H 4100 3600 60 0001 C CNN + 1 4100 3600 + -1 0 0 1 +$EndComp +$Comp +L CONN_1 P2 +U 1 1 4CBF18B8 +P 4100 3450 +F 0 "P2" H 4180 3450 40 0000 L CNN +F 1 "CONN_1" H 4100 3505 30 0001 C CNN +F 2 "PAD_120x60" H 4100 3450 60 0001 C CNN + 1 4100 3450 + -1 0 0 1 +$EndComp +$Comp +L CONN_1 P1 +U 1 1 4CBF18B7 +P 4100 3300 +F 0 "P1" H 4180 3300 40 0000 L CNN +F 1 "CONN_1" H 4100 3355 30 0001 C CNN +F 2 "PAD_120x60" H 4100 3300 60 0001 C CNN + 1 4100 3300 + -1 0 0 1 +$EndComp +$Comp +L CONN_1 P5 +U 1 1 4CBF18B5 +P 5100 3300 +F 0 "P5" H 5180 3300 40 0000 L CNN +F 1 "CONN_1" H 5100 3355 30 0001 C CNN +F 2 "PAD_2mm" H 5100 3300 60 0001 C CNN + 1 5100 3300 + 1 0 0 -1 +$EndComp +$Comp +L CONN_1 P6 +U 1 1 4CBF18B4 +P 5100 3450 +F 0 "P6" H 5180 3450 40 0000 L CNN +F 1 "CONN_1" H 5100 3505 30 0001 C CNN +F 2 "PAD_2mm" H 5100 3450 60 0001 C CNN + 1 5100 3450 + 1 0 0 -1 +$EndComp +$Comp +L CONN_1 P7 +U 1 1 4CBF18B3 +P 5100 3600 +F 0 "P7" H 5180 3600 40 0000 L CNN +F 1 "CONN_1" H 5100 3655 30 0001 C CNN +F 2 "PAD_2mm" H 5100 3600 60 0001 C CNN + 1 5100 3600 + 1 0 0 -1 +$EndComp +$Comp +L CONN_1 P8 +U 1 1 4CBF18B1 +P 5100 3750 +F 0 "P8" H 5180 3750 40 0000 L CNN +F 1 "CONN_1" H 5100 3805 30 0001 C CNN +F 2 "PAD_2mm" H 5100 3750 60 0001 C CNN + 1 5100 3750 + 1 0 0 -1 +$EndComp +$Comp +L CONN_1 P12 +U 1 1 4CBF18AF +P 6200 3750 +F 0 "P12" H 6280 3750 40 0000 L CNN +F 1 "CONN_1" H 6200 3805 30 0001 C CNN +F 2 "PAD_2mm" H 6200 3750 60 0001 C CNN + 1 6200 3750 + -1 0 0 1 +$EndComp +$Comp +L CONN_1 P11 +U 1 1 4CBF18AE +P 6200 3550 +F 0 "P11" H 6280 3550 40 0000 L CNN +F 1 "CONN_1" H 6200 3605 30 0001 C CNN +F 2 "PAD_2mm" H 6200 3550 60 0001 C CNN + 1 6200 3550 + -1 0 0 1 +$EndComp +$Comp +L CONN_1 P10 +U 1 1 4CBF18AD +P 6200 3450 +F 0 "P10" H 6280 3450 40 0000 L CNN +F 1 "CONN_1" H 6200 3505 30 0001 C CNN +F 2 "PAD_2mm" H 6200 3450 60 0001 C CNN + 1 6200 3450 + -1 0 0 1 +$EndComp +$Comp +L CONN_1 P9 +U 1 1 4CBF18AA +P 6200 3250 +F 0 "P9" H 6280 3250 40 0000 L CNN +F 1 "CONN_1" H 6200 3305 30 0001 C CNN +F 2 "PAD_2mm" H 6200 3250 60 0001 C CNN + 1 6200 3250 + -1 0 0 1 +$EndComp +$EndSCHEMATC diff --git a/c2ben/cam/Makefile b/c2ben/cam/Makefile new file mode 100644 index 0000000..00c827b --- /dev/null +++ b/c2ben/cam/Makefile @@ -0,0 +1,4 @@ +.PHONY: pcb + +pcb: + ./doit >job diff --git a/c2ben/cam/doit b/c2ben/cam/doit new file mode 100755 index 0000000..629842d --- /dev/null +++ b/c2ben/cam/doit @@ -0,0 +1,24 @@ +#!/bin/sh -e +DIR=/home/moko/svn.openmoko.org/developers/werner/cncmap +RECT=$DIR/rect/rect +ALIGN=$DIR/align/align +ZMAP=$DIR/zmap/zmap +GP2RML=$DIR/gp2rml/gp2rml + +GEN=${1:-./pcb.pl} + +rdata="19.6 13.0 -56.2 19.6 53.1 -56.1 110.7 14.1 -56.2" +rdate="15.9 13.1 -57.2 15.9 77.4 -57.1 120.8 15.1 -57.0" +# lower Z by 0.5 mm relative to highest point +Z=-57.6 + +rect=`$RECT $rdata | awk '{$3 = ""; print}'` + +$GEN | + awk '{ if ($3 != "") $3 += '$Z'; print $0; }' | + $ALIGN 0 1 $rect | + # angle, reference (lower left corner), rect + $GP2RML 2 0.5 0.5 + # clearance, xy speed, z speed +# since everything is in the same plane, z clearance must be thickness plus +# real clearance ! diff --git a/c2ben/cam/pcb.pl b/c2ben/cam/pcb.pl new file mode 100755 index 0000000..a6548e1 --- /dev/null +++ b/c2ben/cam/pcb.pl @@ -0,0 +1,75 @@ +#!/usr/bin/perl + +$d = 25.4/1000*35; +$r = $d/2-0.1; # compensate deflection of board + + +sub orig +{ + $x0 = $_[0]; + $y0 = $_[1]; +} + + +sub mil +{ + return $_[0]/1000*25.4; +} + + +sub cut +{ + if (defined $x) { + if ($x == $_[0]+$x0 && $y == $_[1]+$y0) { + shift @_; + shift @_; + } else { + print "\n"; + } + } + while (@_) { + $x = shift @_; + $y = shift @_; +# ($x, $y) = (-$y, $x); + $x += $x0; + $y += $y0; + print "$x $y $z\n"; + } +} + + +sub card +{ + &cut( + &mil( 0)-$r, &mil( 0)-$r, + &mil( 0)-$r, &mil( 570)+$r, + &mil( 30)-$r, &mil( 600)+$r, + &mil( 30)-$r, &mil( 650)-$r, + &mil( 0)-$r, &mil( 650)-$r, + &mil( 0)-$r, &mil( 705)+$r, + &mil( 55)-$r, &mil( 760)+$r, + &mil( 55)-$r, &mil( 960)+$r, + &mil( 435)+$r, &mil( 960)+$r, + &mil( 435)+$r, &mil( 0)-$r, + &mil( 0)-$r, &mil( 0)-$r); +} + + +sub conn +{ + &cut( + &mil( 0)-$r, &mil( 0)-$r, + &mil( 0)-$r, &mil( 505)+$r, + &mil( 450)+$r, &mil( 505)+$r, + &mil( 450)+$r, &mil( 0)-$r, + &mil( 0)-$r, &mil( 0)-$r); +} + + +$z = -0.8; # full thickness of board +# x: corner offset, compensation for rotation, array position +# y: corner offet +&orig(13*4, 0) +&card; +&orig($x0, $y0+26) +&conn; diff --git a/c2ben/components/usd-card.lib b/c2ben/components/usd-card.lib new file mode 100644 index 0000000..08ca8e9 --- /dev/null +++ b/c2ben/components/usd-card.lib @@ -0,0 +1,21 @@ +EESchema-LIBRARY Version 2.3 Date: Wed Oct 20 14:29:16 2010 +# +# uSD-Card +# +DEF uSD-Card P 0 0 N Y 1 F N +F0 "P" -200 550 60 H V C CNN +F1 "uSD-Card" 50 -600 60 H V C CNN +DRAW +P 7 0 1 0 -250 -500 350 -500 350 400 100 400 0 500 -250 500 -250 -500 N +X DAT2 1 -300 300 500 R 50 50 1 1 T I +X DAT3 2 -300 200 500 R 50 50 1 1 T I +X CMD 3 -300 100 500 R 50 50 1 1 O I +X VDD 4 -300 0 550 R 50 50 1 1 w I +X CLK 5 -300 -100 500 R 50 50 1 1 O I +X VSS 6 -300 -200 550 R 50 50 1 1 w I +X DAT0 7 -300 -300 500 R 50 50 1 1 B I +X DAT1 8 -300 -400 500 R 50 50 1 1 B I +ENDDRAW +ENDDEF +# +#End Library