NAME = buildbotics_controller
SCHEMATICS = $(wildcard *.sch)
+SYMBOLS = $(wildcard symbols/*.sym)
+FOOTPRINTS = $(wildcard footprints/*.fp)
-all:
+all: drc
schematics:
gschem -q -- $(NAME).sch&
pcb:
pcb $(NAME).pcb&
-net:
+net: $(SCHEMATICS)
gnetlist -g geda -o $(NAME).net $(NAME).sch
-bom:
+bom: $(SCHEMATICS)
gnetlist -g partslist3 -o $(NAME).bom $(NAME).sch
drc:
attrib:
gattrib $(SCHEMATICS)
-layout:
+layout: $(SCHEMATICS) $(FOOTPRINTS) $(SYMBOLS)
gsch2pcb --elements-dir footprints/ $(NAME).sch -o $(NAME)
zip:
This allows power and ground rails to be routed between schematics without
mangling the names. Note, that as a consequence of this setting you cannot
-use ``net`` or ``netname`` attributes in any schematic modules that are used
-more than once with out having them all connected together.
+use ``net`` attributes in any schematic modules that are used more than once
+with out having them all connected together.
Set the library path in PCB to point to the local footprints folder. Use
``File->Preferences->Library`` in PCB to do this.
C 49500 45000 1 0 0 power_supply.sym
{
T 50100 45500 5 10 1 1 0 0 1
-refdes=PS1
+refdes=PS
}
C 45500 45000 1 0 0 motor_module.sym
{
T 46000 45500 5 10 1 1 0 0 1
-refdes=SD1
+refdes=SD
}
C 43500 45000 1 0 0 raspberry_pi.sym
{
T 44100 45500 5 10 1 1 0 0 1
-refdes=RP1
+refdes=RP
}
C 47500 45000 1 0 0 microprocessor.sym
{
T 48095 45500 5 10 1 1 0 0 1
-refdes=MP1
+refdes=MP
}
T 50000 40700 9 10 1 0 0 0 2
Buildbotics Controller
C 51500 45000 1 0 0 peripherals.sym
{
T 52100 45500 5 10 1 1 0 0 1
-refdes=P1
+refdes=PR
}
C 42800 46600 1 0 0 motor_driver.sym
{
T 43795 49200 5 10 1 1 0 0 1
-refdes=MDX
+refdes=X
T 43295 46700 5 10 1 1 0 0 1
source=motor_driver.sch
}
C 42800 43300 1 0 0 motor_driver.sym
{
T 43795 45900 5 10 1 1 0 0 1
-refdes=MDY
+refdes=Y
T 43295 43400 5 10 1 1 0 0 1
source=motor_driver.sch
}
C 53300 46600 1 0 0 motor_driver.sym
{
T 54395 49200 5 10 1 1 0 0 1
-refdes=MDZ
+refdes=Z
T 53795 46700 5 10 1 1 0 0 1
source=motor_driver.sch
}
C 53300 43300 1 0 0 motor_driver.sym
{
T 54395 45900 5 10 1 1 0 0 1
-refdes=MDA
+refdes=A
T 53795 43400 5 10 1 1 0 0 1
source=motor_driver.sch
}