Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
hello-world
nrf52
Commits
c3a93ba7
Commit
c3a93ba7
authored
Oct 05, 2017
by
Sam Calisch
Browse files
update fab bc832 ftdi for large button
parent
718f499c
Pipeline
#911
passed with stage
in 1 second
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bc832-ftdi/bc832-nrf-ftdi-fab-interior.png
View replaced file @
718f499c
View file @
c3a93ba7
6.55 KB
|
W:
|
H:
11.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
bc832-ftdi/bc832-nrf-ftdi-fab-layout.png
View replaced file @
718f499c
View file @
c3a93ba7
130 KB
|
W:
|
H:
130 KB
|
W:
|
H:
2-up
Swipe
Onion skin
bc832-ftdi/bc832-nrf-ftdi-fab-traces.png
View replaced file @
718f499c
View file @
c3a93ba7
12.1 KB
|
W:
|
H:
17.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
bc832-ftdi/bc832-nrf-ftdi-fab.ko
View file @
c3a93ba7
...
...
@@ -33,6 +33,20 @@ class R_0805_small(Component):
class Button(Component):
''' SW262CT-ND
'''
rect = rectangle(-.5*2.75/25.4,.5*2.75/25.4,-.5*1.4/25.4,.5*1.4/25.4)
pins = [
Pin(-3.875/25.4,2/25.4,rect),
Pin(3.875/25.4,2/25.4,rect),
Pin(-3.875/25.4,-2/25.4,rect),
Pin(3.875/25.4,-2/25.4,rect)
]
prefix = 'button'
vias = []
shadow = rectangle(-.2,.2,-.11,.11)
'''
class Button(Component):
#SW262CT-ND
rect = rectangle(-.75/25.4,.75/25.4,-.5/25.4,.5/25.4)
pins = [
Pin(-2/25.4,.8/25.4,rect),
...
...
@@ -43,6 +57,7 @@ class Button(Component):
prefix = 'button'
vias = []
shadow = rectangle(-2.1/25.4,2.1/25.4,-1.4/25.4,1.4/25.4)
'''
class TagConnectSWD(Component):
'''
...
...
@@ -220,8 +235,8 @@ class Hole(Component):
tap = circle(0,0,.5*1.9/25.5)
width =
.95
height = .7
width =
1
height = .7
5
pcb = PCB(0,0,width,height,chamfer_distance=.02)
...
...
@@ -262,31 +277,31 @@ pcb.connectH(reg['GND'],C_out[1],width=.02)
pcb.connectH(C2[0],C_out[0],width=.02)
mdb = BC832(
ftdi.x+.57
,ftdi.y+.1,-90,'Fanstel\nBC832\nNRF52')
mdb = BC832(
width-.18
,ftdi.y+.1,-90,'Fanstel\nBC832\nNRF52')
pcb += mdb
pcb.connectD(mdb['P8'],[mdb['P8'].x-.01,mdb['P8'].y],[ftdi['TX'].x+.31,ftdi['TX'].y+.03],
[ftdi['TX'].x+.03,ftdi['TX'].y-.019],
ftdi['TX'],width=.014)
pcb.connectD(mdb['P6'],[mdb['P6'].x,mdb['P6'].y+.02],[mdb['P6'].x-.07,mdb['P6'].y+.035],[ftdi['RX'].x+.
28,ftdi['RX'].y-.043],[ftdi['RX'].x+.1,ftdi['RX'].y-.088],[ftdi['RX'].x+.
09,ftdi['RX'].y-.03],ftdi['RX'],width=.012)
pcb.connectD(mdb['P8'],[mdb['P8'].x-.01,mdb['P8'].y],[ftdi['TX'].x+.31,ftdi['TX'].y+.03],ftdi['TX'],width=.014)
pcb.connectD(mdb['P6'],[mdb['P6'].x,mdb['P6'].y+.02],[mdb['P6'].x-.07,mdb['P6'].y+.035],[ftdi['RX'].x+.09,ftdi['RX'].y-.03],ftdi['RX'],width=.012)
swd = TagConnectSWD(
ftdi.x+.17
,mdb.y+.1,-90,'swd')
swd = TagConnectSWD(
mdb.x-.3
,mdb.y+.1
8
,-90,'swd')
pcb += swd
pcb.connectD(swd['SWDCLK'],[swd['SWDCLK'].x+.02,swd['SWDCLK'].y],[mdb['SWDCLK'].x-.
24,mdb['SWDCLK'].y+.01],[mdb['SWDCLK'].x-.
02,mdb['SWDCLK'].y+.05],mdb['SWDCLK'],width=.012)
pcb.connectD(swd['SWDIO'],[swd['SWDIO'].x+.02,swd['SWDIO'].y],[mdb['SWDIO'].x-.
32,mdb['SWDIO'].y+.04],[mdb['SWDIO'].x-.
03,mdb['SWDIO'].y+.079],mdb['SWDIO'],width=.012)
pcb.connectD(swd['SWDCLK'],[swd['SWDCLK'].x+.02,swd['SWDCLK'].y],[mdb['SWDCLK'].x-.02,mdb['SWDCLK'].y+.05],mdb['SWDCLK'],width=.012)
pcb.connectD(swd['SWDIO'],[swd['SWDIO'].x+.02,swd['SWDIO'].y],[mdb['SWDIO'].x-.03,mdb['SWDIO'].y+.079],mdb['SWDIO'],width=.012)
#pcb.connectD(ftdi['RTS'],[ftdi['RTS'].x,ftdi['RTS'].y+.03],[mdb['DFU'].x-.05,mdb['DFU'].y+.12],mdb['DFU'],width=.014)
button = Button(ftdi.x
-
.0
1
,ftdi.y+.
26
,0)
button = Button(ftdi.x
+
.0
5
,ftdi.y+.
3
,0)
pcb += button
pcb.connectH(ftdi['GND'],[button[1].x-.0
7
,button[1].y],button[1])
pcb.connectH(ftdi['GND'],[button[1].x-.0
8
,button[1].y],button[1])
pcb.connectV(mdb['RESET'],[ftdi.x-.11,ftdi['TX'].y-.05],button[3],width=.014)
pcb.connectV(button[3],button[0])
pcb.connectV(button[1],button[2])
pcb.connectD(mdb['GND'],[mdb['GND'].x,mdb['GND'].y+.0
3
],[
button
.x+.
1
5,
mdb['GND'].y+.108],button[2
],width=.012)
pcb.connectD(mdb['GND'],[mdb['GND'].x,mdb['GND'].y+.0
5
],[
swd[4]
.x+.
0
5,
swd[4].y+.05],swd[4
],width=.012)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment