Add ordering info and fix a few board bugs
Change-Id: Ia7c01ab70ba45d6fb714716db837777a77f39878
diff --git a/motors/big_schematic/check_refdes.rb b/motors/big_schematic/check_refdes.rb
index 1770e9d..eeb6ac2 100755
--- a/motors/big_schematic/check_refdes.rb
+++ b/motors/big_schematic/check_refdes.rb
@@ -15,28 +15,28 @@
file = GschemSchematic.new(filename)
file.components.each do |component|
- refdes = component.refdes
- slot = component[:slot]
- if !refdes
- if !component.is_power
- puts "Warning: #{component.inspect} does not have a refdes."
- end
- elsif !seen.has_key? refdes
- seen[refdes] = [[filename, slot]]
- else
- if seen[refdes][0][1] == nil && slot == nil
- puts "Error: duplicate unslotted component #{refdes} in #{seen[refdes].collect { |a| a[0] }.inspect}."
- elsif (seen[refdes][0][1] == nil) != (slot == nil)
- puts "Error: slotted and unslotted component #{refdes} at #{seen[refdes].collect { |a| "#{a[1] || 'none'} in #{a[0]}" }.inspect}."
+ refdes = component.refdes
+ slot = component[:slot]
+ if !refdes
+ if !component.is_power
+ puts "Warning: #{component.inspect} does not have a refdes."
+ end
+ elsif !seen.has_key? refdes
+ seen[refdes] = [[filename, slot]]
+ else
+ if seen[refdes][0][1] == nil && slot == nil
+ puts "Error: duplicate unslotted component #{refdes} in #{seen[refdes].collect { |a| a[0] }.inspect}."
+ elsif (seen[refdes][0][1] == nil) != (slot == nil)
+ puts "Error: slotted and unslotted component #{refdes} at #{seen[refdes].collect { |a| "#{a[1] || 'none'} in #{a[0]}" }.inspect}."
else
seen[refdes].each do |_, s|
if s == slot
- puts "Error: duplicate slotted component #{refdes}:#{slot} in #{seen[refdes].collect { |a| a[0] if a[1] == slot }.compact.inspect}."
+ puts "Error: duplicate slotted component #{refdes}:#{slot} in #{seen[refdes].collect { |a| a[0] if a[1] == slot }.compact.inspect}."
break
end
end
end
seen[refdes].push [filename, slot]
- end
+ end
end
end
diff --git a/motors/big_schematic/control-main.sch b/motors/big_schematic/control-main.sch
index 665b56b..8b7478f 100644
--- a/motors/big_schematic/control-main.sch
+++ b/motors/big_schematic/control-main.sch
@@ -56,6 +56,8 @@
footprint=HTSSOP14
T 41900 48800 5 10 1 1 0 0 1
refdes=U1
+T 40500 46500 5 10 0 0 0 0 1
+pn=LM5161PWPT
}
N 37000 48600 37000 48900 4
N 37000 47400 37000 47700 4
@@ -264,6 +266,8 @@
footprint=LD1117_DPAK
T 49800 47900 5 10 1 1 0 0 1
refdes=U2
+T 49200 47000 5 10 0 0 0 0 1
+pn=LD1117DT50TR
}
C 52200 48500 1 0 0 5V-plus-1.sym
C 49400 46400 1 0 0 gnd-1.sym
@@ -466,6 +470,8 @@
refdes=R6
T 47500 34800 5 10 1 1 270 0 1
value=1.8 k
+T 47700 35000 5 10 0 0 0 0 1
+pn=RC0603FR-071K8L
}
C 47700 36300 1 270 0 resistor-1.sym
{
@@ -479,6 +485,8 @@
refdes=R7
T 47500 36100 5 10 1 1 270 0 1
value=59 k
+T 47700 36300 5 10 0 0 0 0 1
+pn=RC0603FR-0759KL
}
N 47800 33900 47800 34100 4
N 47800 36300 47800 36500 4
@@ -1028,6 +1036,8 @@
footprint=SO8
T 31100 32300 5 10 1 1 0 0 1
refdes=U4
+T 29700 30900 5 10 0 0 0 0 1
+pn=TJF1051T/3,118
}
C 35400 32200 1 180 0 connector2-1.sym
{
@@ -1128,6 +1138,8 @@
refdes=R8
T 28600 48700 5 10 1 1 270 0 1
value=300
+T 28800 48900 5 10 0 0 0 0 1
+pn=RC0603JR-07300RL
}
N 28900 49100 28900 48900 4
N 28900 48000 28900 47800 4
@@ -1156,6 +1168,8 @@
refdes=R9
T 29600 48700 5 10 1 1 270 0 1
value=130
+T 29800 48900 5 10 0 0 0 0 1
+pn=RC0603JR-07130RL
}
N 29900 49100 29900 48900 4
N 29900 48000 29900 47800 4
@@ -1185,6 +1199,8 @@
refdes=R16
T 30600 48700 5 10 1 1 270 0 1
value=1000
+T 30800 48900 5 10 0 0 0 0 1
+pn=RC0603JR-071KL
}
N 30900 49100 30900 48900 4
N 30900 48000 30900 47800 4
@@ -1214,6 +1230,8 @@
refdes=R17
T 31600 48700 5 10 1 1 270 0 1
value=7500
+T 31800 48900 5 10 0 0 0 0 1
+pn=RC0603JR-077K5L
}
N 31900 49100 31900 48900 4
N 31900 48000 31900 47800 4
@@ -1242,6 +1260,8 @@
refdes=R18
T 31500 44700 5 10 1 1 270 0 1
value=130
+T 31700 44900 5 10 0 0 0 0 1
+pn=RC0603JR-07130RL
}
N 31800 45100 31800 44900 4
N 31800 44000 31800 43800 4
@@ -1270,6 +1290,8 @@
refdes=R19
T 30500 44700 5 10 1 1 270 0 1
value=130
+T 30700 44900 5 10 0 0 0 0 1
+pn=RC0603JR-07130RL
}
N 30800 45100 30800 44900 4
N 30800 43600 30800 44000 4
@@ -1312,6 +1334,8 @@
refdes=R20
T 33000 46100 5 10 1 1 270 0 1
value=130
+T 33200 46300 5 10 0 0 0 0 1
+pn=RC0603JR-07130RL
}
N 33300 46500 33300 46300 4
C 33100 47600 1 0 0 3.3V-plus-1.sym
diff --git a/motors/big_schematic/control.pcb b/motors/big_schematic/control.pcb
index d1995f6..1b86ce7 100644
--- a/motors/big_schematic/control.pcb
+++ b/motors/big_schematic/control.pcb
@@ -1359,14 +1359,14 @@
)
-Element["" "0603" "R13" "768" 3260.00mil 3710.00mil -75.00mil 25.00mil 0 77 ""]
+Element["" "0603" "R13" "768" 3260.00mil 3710.00mil 57.00mil -21.00mil 0 77 ""]
(
Pad[25.59mil -4.92mil 25.59mil 4.92mil 29.52mil 20.00mil 35.52mil "1" "1" "square"]
Pad[-25.59mil -4.92mil -25.59mil 4.92mil 29.52mil 20.00mil 35.52mil "2" "2" "square"]
)
-Element["" "0603" "R12" "1.47_k" 3260.00mil 3650.00mil 55.00mil 5.00mil 0 77 ""]
+Element["" "0603" "R12" "1.47_k" 3260.00mil 3650.00mil 84.00mil -28.00mil 3 54 ""]
(
Pad[-25.59mil -4.92mil -25.59mil 4.92mil 29.52mil 20.00mil 35.52mil "1" "1" "square"]
Pad[25.59mil -4.92mil 25.59mil 4.92mil 29.52mil 20.00mil 35.52mil "2" "2" "square"]
@@ -2412,7 +2412,7 @@
Line[3390.00mil 3350.00mil 3390.00mil 3375.00mil 10.00mil 20.00mil "clearline"]
Text[3480.00mil 3180.00mil 0 98 "0" "clearline"]
Text[3480.00mil 3280.00mil 0 98 "1" "clearline"]
- Text[1629.00mil 4245.00mil 0 98 "mild salsa" "clearline"]
+ Text[1590.00mil 4245.00mil 0 98 "medium salsa" "clearline"]
Text[1989.00mil 4244.00mil 0 98 "V0.0" "clearline"]
)
NetList()
diff --git a/motors/big_schematic/gschem_file.rb b/motors/big_schematic/gschem_file.rb
index b8a17dc..5788f34 100644
--- a/motors/big_schematic/gschem_file.rb
+++ b/motors/big_schematic/gschem_file.rb
@@ -1,7 +1,7 @@
VersionRegex = /v (\d{8}) (\d+)/
ComponentRegex = /C (\d+) (\d+) ([01]) (\d{1,3}) ([01]) (.+)/
TextRegex = /T (\d+) (\d+) (\d+) (\d+) ([01]) ([012]) (\d{1,3}) ([0-8]) (\d+)/
-PowerRegex = /^(([0-9.]+V-plus)|(title-.)|(gnd)|(output)|(input)|(io)|-1)|(vbat)|(vhalfbat)|(generic-power).sym$/
+PowerRegex = /^(([0-9.]+V-plus)|(title-.)|(gnd)|(output)|(input)|(io)|(vcc)|-1)|(vbat)|(vhalfbat)|(generic-power).sym$/
# All coordinates are in "mils".
diff --git a/motors/big_schematic/power-main.sch b/motors/big_schematic/power-main.sch
index 2c76f8c..adbdfec 100644
--- a/motors/big_schematic/power-main.sch
+++ b/motors/big_schematic/power-main.sch
@@ -32,6 +32,8 @@
footprint=SO8
T 31600 69200 5 10 1 1 0 0 1
refdes=U1
+T 30500 67800 5 10 0 0 0 0 1
+pn=DGD2190S8-13
}
C 34800 71000 1 0 0 vcc-1.sym
C 34900 65700 1 0 0 gnd-1.sym
@@ -61,6 +63,8 @@
tolerance=1%
T 33300 69900 5 10 0 0 0 0 1
power=250 mW
+T 33300 69900 5 10 0 1 0 0 1
+pn=RMCF0805FT4R99
}
C 33300 66900 1 0 0 resistor-1.sym
{
@@ -76,6 +80,8 @@
tolerance=1%
T 33300 66900 5 10 0 0 0 0 1
power=250 mW
+T 33300 66900 5 10 0 1 0 0 1
+pn=RMCF0805FT4R99
}
N 34400 70000 34200 70000 4
N 33100 70000 33300 70000 4
@@ -194,6 +200,8 @@
value=1.8 k
T 36100 67100 5 10 0 0 270 0 1
tolerance=1%
+T 36100 67100 5 10 0 0 0 0 1
+pn=RC0603FR-071K8L
}
C 36100 68400 1 270 0 resistor-1.sym
{
@@ -207,6 +215,8 @@
value=59 k
T 36100 68400 5 10 0 0 270 0 1
tolerance=1%
+T 36100 68400 5 10 0 1 0 0 1
+pn=RC0603FR-0759KL
}
N 36200 66000 36200 66200 4
N 36200 68400 36200 68600 4
@@ -382,6 +392,8 @@
footprint=SO8
T 31700 57100 5 10 1 1 0 0 1
refdes=U3
+T 30600 55700 5 10 0 0 0 0 1
+pn=DGD2190S8-13
}
C 34900 58900 1 0 0 vcc-1.sym
C 35000 53000 1 0 0 gnd-1.sym
@@ -411,6 +423,8 @@
refdes=R6
T 33600 57600 5 10 1 1 0 0 1
value=5
+T 33400 57800 5 10 0 1 0 0 1
+pn=RMCF0805FT4R99
}
C 33400 54800 1 0 0 resistor-1.sym
{
@@ -426,6 +440,8 @@
refdes=R7
T 33600 54600 5 10 1 1 0 0 1
value=5
+T 33400 54800 5 10 0 1 0 0 1
+pn=RMCF0805FT4R99
}
N 34500 57900 34300 57900 4
N 33200 57900 33400 57900 4
@@ -544,6 +560,8 @@
refdes=R8
T 36000 54800 5 10 1 1 270 0 1
value=1.8 k
+T 36200 55000 5 10 0 0 0 0 1
+pn=RC0603FR-071K8L
}
C 36200 56300 1 270 0 resistor-1.sym
{
@@ -557,6 +575,8 @@
refdes=R9
T 36000 56100 5 10 1 1 270 0 1
value=59 k
+T 36200 56300 5 10 0 1 0 0 1
+pn=RC0603FR-0759KL
}
N 36300 53300 36300 54100 4
N 36300 56300 36300 56500 4
@@ -706,6 +726,8 @@
footprint=SO8
T 31700 45200 5 10 1 1 0 0 1
refdes=U5
+T 30600 43800 5 10 0 0 0 0 1
+pn=DGD2190S8-13
}
C 34900 47000 1 0 0 vcc-1.sym
C 35000 41700 1 0 0 gnd-1.sym
@@ -735,6 +757,8 @@
refdes=R11
T 33600 45700 5 10 1 1 0 0 1
value=5
+T 33400 45900 5 10 0 1 0 0 1
+pn=RMCF0805FT4R99
}
C 33400 42900 1 0 0 resistor-1.sym
{
@@ -750,6 +774,8 @@
refdes=R12
T 33600 42700 5 10 1 1 0 0 1
value=5
+T 33400 42900 5 10 0 1 0 0 1
+pn=RMCF0805FT4R99
}
N 34500 46000 34300 46000 4
N 33200 46000 33400 46000 4
@@ -868,6 +894,8 @@
refdes=R13
T 36000 42900 5 10 1 1 270 0 1
value=1.8 k
+T 36200 43100 5 10 0 0 0 0 1
+pn=RC0603FR-071K8L
}
C 36200 44400 1 270 0 resistor-1.sym
{
@@ -881,6 +909,8 @@
refdes=R14
T 36000 44200 5 10 1 1 270 0 1
value=59 k
+T 36200 44400 5 10 0 1 0 0 1
+pn=RC0603FR-0759KL
}
N 36300 42000 36300 42200 4
N 36300 44400 36300 44600 4
@@ -1068,11 +1098,11 @@
T 51100 65400 5 10 0 0 270 0 1
footprint=0603
T 51100 65400 5 10 0 0 0 0 1
-pn=100 pF
+pn=CL10B103KB8NCNC
T 51600 65200 5 10 1 1 270 0 1
refdes=C21
T 50900 65200 5 10 1 1 270 0 1
-value=1 uF
+value=10 nF
}
N 51300 64500 51300 64300 4
N 51300 65400 51300 65600 4