Date:2010-11-06 05:18:56 (8 years 9 months ago)
Author:Werner Almesberger
Commit:3f28b92c4fff20effa67c75c9fa01cb494ad8083
Message:CAM process for the antenna test boards.

- ants/ants.brd: added board dimensions
- ants/cam/Makefile, ants/cam/pcb.pl, ants/cam/doit: CAM process for the
"ants" boards
Files: ants/ants.brd (5 diffs)
ants/cam/Makefile (1 diff)
ants/cam/doit (1 diff)
ants/cam/pcb.pl (1 diff)

Change Details

ants/ants.brd
1PCBNEW-BOARD Version 1 date Sat Nov 6 00:27:27 2010
1PCBNEW-BOARD Version 1 date Sat Nov 6 00:55:35 2010
22
33# Created by Pcbnew(2010-08-11 BZR 2448)-unstable
44
...... 
99Links 4
1010NoConn 1
1111Di 51016 22944 59015 28726
12Ndraw 4
12Ndraw 5
1313Ntrack 17
1414Nzone 0
1515BoardThickness 630
...... 
270270Po 6232 -416
271271$EndPAD
272272$EndMODULE MEANDER-120
273$TEXTPCB
274Te "17.3 x 12.5 mm"
275Po 55000 29700 600 800 120 0
276De 25 1 0 Normal
277$EndTEXTPCB
273278$DRAWSEGMENT
274279Po 0 51600 28700 51600 23800 50
275280De 28 0 900 0 0
...... 
330335ZAux 4 E
331336ZClearance 200 T
332337ZMinThickness 100
333ZOptions 1 16 F 200 120
338ZOptions 1 16 S 200 120
334339ZCorner 58400 28700 0
335340ZCorner 58400 25850 0
336341ZCorner 51600 25850 0
...... 
408413ZAux 4 E
409414ZClearance 200 T
410415ZMinThickness 100
411ZOptions 1 16 F 200 120
416ZOptions 1 16 S 200 120
412417ZCorner 58400 28700 0
413418ZCorner 58400 25850 0
414419ZCorner 51600 25850 0
ants/cam/Makefile
1DIR=/home/moko/svn.openmoko.org/developers/werner/cncmap
2
3.PHONY: pcb spool
4
5pcb:
6        ./doit >job
7
8spool:
9        PORT=/dev/ttyUSB0 $(DIR)/spool/spool job
ants/cam/doit
1#!/bin/sh -e
2DIR=/home/moko/svn.openmoko.org/developers/werner/cncmap
3RECT=$DIR/rect/rect
4ALIGN=$DIR/align/align
5ZMAP=$DIR/zmap/zmap
6GP2RML=$DIR/gp2rml/gp2rml
7CAMEO=../../../cae-tools/cameo/cameo
8
9GEN=${1:-./pcb.pl}
10
11rdata="19.6 13.0 -56.2 19.6 53.1 -56.1 110.7 14.1 -56.2"
12rdate="15.9 13.1 -57.2 15.9 77.4 -57.1 120.8 15.1 -57.0"
13rdate="17.2 9.5 -57.0 21.5 76.2 -57.1 126.8 9.0 -56.9"
14# lower Z by 0.5 mm relative to highest point (-56.8)
15Z=-57.3
16
17rect=`$RECT $rdata | awk '{$3 = ""; print}'`
18
19$GEN |
20  awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
21  $CAMEO -d 0.4445 |
22  $ALIGN 0 1 $rect |
23    # angle, reference (lower left corner), rect
24  $GP2RML 2 0.5 0.5
25    # clearance, xy speed, z speed
26# since everything is in the same plane, z clearance must be thickness plus
27# real clearance !
ants/cam/pcb.pl
1#!/usr/bin/perl
2
3$PI = atan2(1, 1)*4;
4
5$d = 25.4/1000*35;
6
7
8sub orig
9{
10    $x0 = $_[0];
11    $y0 = $_[1];
12}
13
14
15sub mil
16{
17    return $_[0]/1000*25.4;
18}
19
20
21sub cut
22{
23    if (defined $x) {
24    if ($x == $_[0]+$x0 && $y == $_[1]+$y0) {
25        shift @_;
26        shift @_;
27    } else {
28        print "\n";
29    }
30    }
31    while (@_) {
32    $x = shift @_;
33    $y = shift @_;
34# ($x, $y) = (-$y, $x);
35    $x += $x0;
36    $y += $y0;
37    print "$x $y $z\n";
38    }
39}
40
41
42sub pcb
43{
44    &cut(
45      &mil( 0), &mil( 0),
46      &mil( 680), &mil( 0),
47      &mil( 680), &mil( 490),
48      &mil( 0), &mil( 490),
49      &mil( 0), &mil( 0));
50}
51
52
53$z = -0.8; # full thickness of board
54# x: corner offset, compensation for rotation, array position
55# y: corner offet
56
57&orig(20*0+3, 15*2+23);
58
59$r = $d/2-0.1; # compensate deflection of board
60&pcb;

Archive Download the corresponding diff file



interactive