update master BOM; add scripts for generating inventory labels
This commit is contained in:
2
format_block
Executable file
2
format_block
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
echo "$3" | fmt --width=27 | sed "s/\"/\\\\\"/g" | awk 'BEGIN {y='$2'} {print "A'$1',"y",0,2,1,1,N,\""$0"\""; y+=20}'
|
||||
12
labeler
Executable file
12
labeler
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/awk -f
|
||||
BEGIN {FS=","}
|
||||
{
|
||||
print "N";
|
||||
print "q603";
|
||||
system("make-qr-epl 10 10 180 \""gensub("\"","\\\\\"","g",$0)"\"");
|
||||
print "A210,75,0,4,1,2,N,\""$1"\"";
|
||||
print "A275,10,0,2,1,1,N,\""$4" "$5"\"";
|
||||
print "A275,35,0,3,1,1,N,\""$2" "$3"\"";
|
||||
system("./format_block 275 60 \""gensub("\"","\\\\\"","g",$6)"\"");
|
||||
print "P";
|
||||
}
|
||||
60
labels.txt
Normal file
60
labels.txt
Normal file
@@ -0,0 +1,60 @@
|
||||
1,LCSC,C86295,Samsung,CL10A226MP8NUNE,22 µF 0603 capacitor
|
||||
2,LCSC,C1591,Samsung,CL10B104KB8NNNC,0.1 µF 0603 capacitor
|
||||
3,DigiKey,TS4148CRZGCT-ND,Taiwan Semi,TS4148C RZG,0603 small-signal diode
|
||||
4,LCSC,C965799,XINGLIGHT,XL-1608SURC-06,0603 red LED
|
||||
5,LCSC,C2897383,HCTL,PM254-1-20-Z-8.5,pin socket 1x20 .100"
|
||||
5,LCSC,C2897382,HCTL,PM254-1-19-Z-8.5,pin socket 1x19 .100"
|
||||
6,LCSC,C2897383,HCTL,PM254-1-20-Z-8.5,pin socket 1x20 .100"
|
||||
6,LCSC,C2897366,HCTL,PM254-1-03-Z-8.5,pin socket 1x3 .100"
|
||||
7,LCSC,C404100,UMAX,3157-10101D,PCI Express x4 connector board-edge straddle mount
|
||||
8,LCSC,C706876,XKB Connectivity,X6511WV-04H-C30D60,pin header 1x4 .100"
|
||||
9,DigiKey,2073-USB4085-GF-ACT-ND,GCT,USB4085-GF-A,USB-C socket
|
||||
10,LCSC,C98220,Yageo,RC0603FR-0710KL,10 kΩ 0603 resistor
|
||||
11,LCSC,C114669,Yageo,RC0603FR-07470RL,470 Ω 0603 resistor
|
||||
12,LCSC,C221880,C&K,PTS645SM43SMTR92LFS,6x6mm tactile switch
|
||||
13,LCSC,C6769,Texas Instruments,SN74HCT14DR,hex inverter Schmitt trigger input
|
||||
14,LCSC,C2883854,XKB Connectivity,X6511WR-16H-C30D60R1,right-angle pin header 1x16 .100"
|
||||
15,LCSC,C706891,XKB Connectivity,X6521WR-2x10H-C30D60,right-angle pin header 2x10 .100"
|
||||
16,LCSC,C2883851,XKB Connectivity,X6511WR-13H-C30D60R1,right-angle pin header 1x13 .100"
|
||||
17,LCSC,C108078,Yageo,RC0603FR-073K3L,3.3kΩ 0603 resistor
|
||||
18,DigiKey,A463-ND,Aries Electronics,1108800,half-size oscillator socket
|
||||
19,DigiKey,269-4574-ND,Zilog,Z84C0010AEG,Z80 CPU 10 MHz
|
||||
20,DigiKey,535-9167-5-ND,Abracon,ACH-10.000MHZ-EK,TTL oscillator 10 MHz
|
||||
21,LCSC,C2883877,XKB Connectivity,X6511WR-39H-C30D60R1,right-angle pin header 1x39 .100"
|
||||
22,LCSC,C99782,Yageo,RC0603FR-074K7L,4.7kΩ 0603 resistor
|
||||
23,LCSC,C22548,Yageo,RC0603FR-071KL,1 kΩ 0603 resistor
|
||||
24,LCSC,C2828038,Nextron,15003211010000,PLCC-32 socket through-hole
|
||||
25,DigiKey,SST39SF040-55-4C-NHE-TCT-ND,Microchip,SST39SF040-55-4C-NHE-T,512Kx8 flash memory
|
||||
26,DigiKey,1450-1028-ND,Alliance Memory,AS6C4008-55SIN,512Kx8 SRAM
|
||||
27,,,Texas Instruments,CD74HCT670M,4x4 register file w/ 3-state output
|
||||
28,LCSC,C1523702,Texas Instruments,SN74HCT139D,dual 2-line to 4-line demux
|
||||
29,,,Texas Instruments,SN74HCT74DR,Dual D-Type Positive-Edge-Triggered Flip-Flips With Clear and Preset
|
||||
30,LCSC,C352958,Texas Instruments,SN74HCT138DR,3-Line to 8-Line Decoders/Demultiplexers
|
||||
31,LCSC,C29936,Samsung,CL10B105KA8NNNC,1 µF 0603 capacitor
|
||||
32,LCSC,C178292,Amphenol,67997-210HLF,2x5 pin header .100" spacing
|
||||
33,DigiKey,190-09MA-ND,Norcomp,190-009-163R001,DB9 male connector surface mount right angle
|
||||
34,LCSC,C706875,XKB Connectivity,X6511WV-03H-C30D60,pin header 1x3 .100"
|
||||
36,LCSC,C2874015,XFCN,IC254V-12-24-0743-P1524,DIP-24 socket
|
||||
37,LCSC,C6766,Texas Instruments,SN74HCT04DR,Hex Inverters
|
||||
38,LCSC,C547444,Nexperia,74HCT1G08GV 125,2-input AND gate
|
||||
39,,,Motorola,MC68B50,Asynchronous Communications Interface Adapter
|
||||
40,DigiKey,1727-6059-1-ND,Nexperia,74HCT1G32GW 125,2-input OR gate
|
||||
41,DigiKey,296-33360-5-ND,Texas Instruments,MAX232EID,Dual RS-232 Driver and Receiver With IEC61000-4-2 Protection
|
||||
42,,,Texas Instruments,CD74HCT688M,8-Bit Magnitude Comparator
|
||||
43,DigiKey,XC1181-ND,ECS Inc.,ECS-2200BX-073,7.3728 MHz TTL oscillator half-size
|
||||
44,LCSC,C1653,Samsung,CL10C220JB8NNNC,22 pF 0603 capacitor
|
||||
45,LCSC,C412252,Murata,GRM31CR60J227ME11L,220 µF 1206 capacitor
|
||||
46,LCSC,C3039698,Samsung,CL10B106MQ8NRNC,10 µF 0603 capacitor
|
||||
47,LCSC,C711363,HOAUC,HYC42-HDR15B-889,15 Position D-Sub High Density Receptacle Female Sockets Connector
|
||||
48,DigiKey,641-1950-1-ND,Comchip Technology,MMBT3906-HF,Bipolar (BJT) Transistor PNP 40 V 200 mA 250MHz 300 mW Surface Mount SOT-23-3
|
||||
49,LCSC,C105588,Yageo,RC0603FR-07100RL,100 Ω 0603 resistor
|
||||
50,LCSC,C114659,Yageo,RC0603FR-0712KL,12 kΩ 0603 resistor
|
||||
51,LCSC,C114614,Yageo,RC0603FR-0727KL,27 kΩ 0603 resistor
|
||||
52,LCSC,C137690,Yageo,RC0603FR-07680KL,680 kΩ 0603 resistor
|
||||
53,DigiKey,1212-1068-ND,Preci-Dip,117-87-764-41-005101,64 (2 x 32) Pos DIP 0.75" (19.05mm) Row Spacing Socket Gold Through Hole
|
||||
54,LCSC,C2874011,XFCN,IC254V-12-18-0743,18 (2 x 9) Pos DIP 0.3" (7.62mm) Row Spacing Socket Gold Through Hole
|
||||
55,,,Yamaha,V9958,video display processor
|
||||
56,,,,41464,64Kx4 DRAM
|
||||
57,DigiKey,1727-6630-1-ND,Nexperia USA Inc.,74HCT2G32DP 125,Dual 2-input OR gate
|
||||
58,DigiKey,296-47437-1-ND,Texas Instruments,LM1881MX/NOPB,Video Sync Separator
|
||||
59,DigiKey,X044-ND,ECS Inc.,ECS-214.7-S-4,21.47727 MHz crystal
|
||||
24
make-qr-epl
Executable file
24
make-qr-epl
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# generate a QR code and render it as an EPL fragment
|
||||
# params: x y max_size "QR code contents" [qrencode options]
|
||||
|
||||
x=$1
|
||||
shift
|
||||
y=$1
|
||||
shift
|
||||
max_size=$1
|
||||
shift
|
||||
msg=`echo $1 | sed "s/\"/\\\\\"/g"`
|
||||
shift
|
||||
#echo $msg
|
||||
#exit
|
||||
size=$(qrencode -t PNG -s 1 -m 0 -o - $* "$msg" | pngtopnm | pnmfile | sed "s/^.*raw, //;s/ .*//")
|
||||
mul=$(expr $max_size / $size)
|
||||
width=$(expr \( $size \* $mul + 7 \) / 8)
|
||||
#echo N
|
||||
echo -n GW$x,$y,$width,$(expr $size \* $mul),
|
||||
qrencode -t PNG -s $mul -m 0 -o - $* "$msg" | pngtopnm | pgmtopbm -thresh | pnminvert | tail -n +3
|
||||
echo ""
|
||||
#echo P
|
||||
|
||||
BIN
master_bom.ods
BIN
master_bom.ods
Binary file not shown.
Reference in New Issue
Block a user