Updated version and added PDF output. Closes #16
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 1 Sep 2017 21:52:19 +0000 (14:52 -0700)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 1 Sep 2017 21:52:19 +0000 (14:52 -0700)
Makefile
buildbotics_controller.sch
doc/buildbotics_controller-v8.1.pdf [new file with mode: 0644]
gschem-print.scm [new file with mode: 0644]
level_converter.sch
microprocessor.sch
motor_driver.sch
motor_module.sch
peripherals.sch
power.sch
rpi_bus.sch

index 300cf2de5f53207d1b23661821e1787777d3c302..95db0f67f6d41e9485037c02a762a258961e53c4 100644 (file)
--- 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)
index ed39fb9237d39cc0514f38c5b571e4a0e762e327..1e224f15d9f555189ac748cc8dc384bb4e3fa5fe 100644 (file)
@@ -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 (file)
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 (file)
index 0000000..e74befe
--- /dev/null
@@ -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)
index e6705dc7542a5927a51ca8298f1ad86dc23d4e99..68388a3f0a8f2d5f6c2793744467b446533e94ba 100644 (file)
@@ -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
index 32d6dff84e91c7b962bc23f2bad2dd639f53ff7d..4ad6b9451c5d47f8012248df52b5a2ef96c77f0a 100644 (file)
@@ -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
index f30c593d775f9a052f0b12a5c21faf9940f9bc85..2a828c6729300ec05a2d5b8a22f18f35b52ec90e 100644 (file)
@@ -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
index 4bac8aa85475aaf0858318ceb6091e79615780e8..6fd3b83e3f593588a26df382b95079a6498edffb 100644 (file)
@@ -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
index 2a55e0b209cfee01de1ccde36a3a7074ece55c10..e56b209e256f9123cf252cf0d17deb2d67b6c4da 100644 (file)
@@ -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
index f1faab0191e96313e0c1dd3b901ba2711b43587e..4f11d35aa3259958dfe1821948260532a7cf92c8 100644 (file)
--- 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
index 3df8d835e5fd8cb51d4ceca09ee42e2a0b4b5cb0..2aa3430fa19839e309bdbd2b65960336a2e8ddde 100644 (file)
@@ -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