From: Joseph Coffland Date: Fri, 1 Sep 2017 21:52:19 +0000 (-0700) Subject: Updated version and added PDF output. Closes #16 X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=1bbf9de2638935523ad8e5de98aa3c8ce7c8f6b7;p=bbctrl-pcb Updated version and added PDF output. Closes #16 --- diff --git a/Makefile b/Makefile index 300cf2d..95db0f6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,26 @@ NAME = buildbotics_controller +VERSION=8.1 + SCHEMATICS = $(wildcard *.sch) SYMBOLS = $(wildcard symbols/*.sym) FOOTPRINTS = $(wildcard footprints/*.fp) +PDFS = $(patsubst %.sch,%.pdf,$(SCHEMATICS)) +PDF=doc/$(NAME)-v$(VERSION).pdf all: drc +%.pdf: %.sch + gschem -o $@ -s gschem-print.scm $< + +pdf: $(PDF) + +$(PDF): $(PDFS) + gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$@ $(PDFS) + rm $(PDFS) + +view: $(PDF) + evince $(PDF) + schematics: gschem -q -- $(NAME).sch& @@ -37,4 +53,6 @@ tidy: *.bak *.log *.backup clean: tidy - rm -f *.cnc *.gbr $(NAME).zip $(NAME).net $(NAME).bom + rm -f *.cnc *.gbr $(NAME).zip $(NAME).net $(NAME).bom $(PDFS) + +.SECONDARY: $(PDFS) diff --git a/buildbotics_controller.sch b/buildbotics_controller.sch index ed39fb9..1e224f1 100644 --- a/buildbotics_controller.sch +++ b/buildbotics_controller.sch @@ -26,11 +26,7 @@ Copyright (c) 2016-2017, Buildbotics LLC T 53900 40100 9 10 1 0 0 0 1 Doug & Joe Coffland T 53800 40400 9 10 1 0 0 0 1 -7.0 -T 50000 40100 9 10 1 0 0 0 1 -1 -T 51500 40100 9 10 1 0 0 0 1 -8 +9.0 C 51500 45000 1 0 0 peripherals.sym { T 52100 45500 5 10 1 1 0 0 1 diff --git a/doc/buildbotics_controller-v8.1.pdf b/doc/buildbotics_controller-v8.1.pdf new file mode 100644 index 0000000..9a71f7d Binary files /dev/null and b/doc/buildbotics_controller-v8.1.pdf differ diff --git a/gschem-print.scm b/gschem-print.scm new file mode 100644 index 0000000..e74befe --- /dev/null +++ b/gschem-print.scm @@ -0,0 +1,7 @@ +(paper-size 11.5 8.5) +(load (build-path geda-rc-path "print-colormap-lightbg")) ; light background +(output-type "limits") +(output-color "enabled") +(gschem-use-rc-values) ;You need call this after you call any +(gschem-print "dummyfilename") ;filename is specified on the command line +(gschem-exit) diff --git a/level_converter.sch b/level_converter.sch index e6705dc..68388a3 100644 --- a/level_converter.sch +++ b/level_converter.sch @@ -6,11 +6,7 @@ Copyright (c) 2016-2017, Buildbotics LLC T 53900 40100 9 10 1 0 0 0 1 Doug & Joe Coffland T 53800 40400 9 10 1 0 0 0 1 -7.0 -T 50000 40100 9 10 1 0 0 0 1 -9 -T 51500 40100 9 10 1 0 0 0 1 -9 +9.0 C 48000 46000 1 270 0 2n7002k.sym { T 48500 45100 5 10 0 0 270 0 1 diff --git a/microprocessor.sch b/microprocessor.sch index 32d6dff..4ad6b94 100644 --- a/microprocessor.sch +++ b/microprocessor.sch @@ -99,11 +99,7 @@ Copyright (c) 2016-2017, Buildbotics LLC T 53900 40100 9 10 1 0 0 0 1 Doug & Joe Coffland T 53800 40400 9 10 1 0 0 0 1 -7.0 -T 50000 40100 9 10 1 0 0 0 1 -5 -T 51500 40100 9 10 1 0 0 0 1 -8 +9.0 C 43800 41700 1 0 0 ATXmegaA3.sym { T 47200 50200 5 8 0 0 0 0 1 diff --git a/motor_driver.sch b/motor_driver.sch index f30c593..2a828c6 100644 --- a/motor_driver.sch +++ b/motor_driver.sch @@ -13,11 +13,7 @@ device=DRC_Directive T 53900 40100 9 10 1 0 0 0 1 Doug & Joe Coffland T 53800 40400 9 10 1 0 0 0 1 -7.0 -T 50000 40100 9 10 1 0 0 0 1 -4 -T 51500 40100 9 10 1 0 0 0 1 -8 +9.0 C 50300 50500 1 0 0 Vs.sym { T 50400 51200 5 10 0 0 0 0 1 diff --git a/motor_module.sch b/motor_module.sch index 4bac8aa..6fd3b83 100644 --- a/motor_module.sch +++ b/motor_module.sch @@ -27,11 +27,7 @@ Copyright (c) 2016-2017, Buildbotics LLC T 53900 40100 9 10 1 0 0 0 1 Doug & Joe Coffland T 53800 40400 9 10 1 0 0 0 1 -7.0 -T 50000 40100 9 10 1 0 0 0 1 -3 -T 51500 40100 9 10 1 0 0 0 1 -8 +9.0 C 52700 45400 1 0 0 input.sym { T 52700 45700 5 10 0 0 0 0 1 diff --git a/peripherals.sch b/peripherals.sch index 2a55e0b..e56b209 100644 --- a/peripherals.sch +++ b/peripherals.sch @@ -82,11 +82,7 @@ Copyright (c) 2016-2017, Buildbotics LLC T 53900 40100 9 10 1 0 0 0 1 Doug & Joe Coffland T 53800 40400 9 10 1 0 0 0 1 -7.0 -T 50000 40100 9 10 1 0 0 0 1 -7 -T 51500 40100 9 10 1 0 0 0 1 -8 +9.0 T 44400 48300 9 10 1 0 0 0 1 RS485 interface C 44900 45000 1 0 0 gnd.sym diff --git a/power.sch b/power.sch index f1faab0..4f11d35 100644 --- a/power.sch +++ b/power.sch @@ -6,11 +6,7 @@ Copyright (c) 2016-2017, Buildbotics LLC T 53900 40100 9 10 1 0 0 0 1 Joseph Coffland T 53800 40400 9 10 1 0 0 0 1 -7.0 -T 50000 40100 9 10 1 0 0 0 1 -6 -T 51500 40100 9 10 1 0 0 0 1 -8 +9.0 C 42600 43600 1 90 0 cap.sym { T 41900 43800 5 10 0 0 90 0 1 diff --git a/rpi_bus.sch b/rpi_bus.sch index 3df8d83..2aa3430 100644 --- a/rpi_bus.sch +++ b/rpi_bus.sch @@ -8,11 +8,7 @@ Copyright (c) 2016-2017, Buildbotics LLC T 53900 40100 9 10 1 0 0 0 1 Doug & Joe Coffland T 53800 40400 9 10 1 0 0 0 1 -7.0 -T 50000 40100 9 10 1 0 0 0 1 -2 -T 51500 40100 9 10 1 0 0 0 1 -8 +9.0 C 43000 48400 1 0 0 output.sym { T 43100 48700 5 10 0 0 0 0 1