diff --git a/.github/workflows/scripts/export-bom.py b/.github/workflows/scripts/export-bom.py index 329866a..4466e15 100644 --- a/.github/workflows/scripts/export-bom.py +++ b/.github/workflows/scripts/export-bom.py @@ -13,108 +13,113 @@ if not os.path.exists(dirName): else: print("Directory " , dirName , " already exists") +versions = [ + ["8mm", "bom-8.csv"], + ["12mm", "bom-12.csv"], + ["16mm", "bom-16.csv"] +] -# make html file that will become our BOM -f = open(dirName + "/bom_" + sys.argv[1] + ".html", "w") -f.write(""" - - - - - -

-""") + #logo { + width: 250px; + position: absolute; + top: 30px; + right: 50px; + } -#write page title based on script -f.write("LumenPnP Feeder BOM " + sys.argv[1]) + tr:hover { + background-color: #444; + } + + + +

+ """) -#write the beginning of table, and row for header -f.write("

Download the Source Here

") + #write page title based on script + f.write("LumenPnP " + version[0] + " Feeder BOM " + sys.argv[1]) -with open('bom.csv') as bom: - csv_reader = csv.reader(bom, delimiter=',') - line_count = 0 - - for row in csv_reader: - column = 0 + #write the beginning of table, and row for header + f.write("

Download the Source Here

") - if line_count == 0: #if header row, just print what's there - f.write("") - while column < len(row): - f.write("") - column += 1 - else: #if content row - if row[6] != "": - f.write("") - else: - f.write("") + with open(version[1]) as bom: + csv_reader = csv.reader(bom, delimiter=',') + line_count = 0 + + for row in csv_reader: + column = 0 - while column < len(row): - - # handling images - if column == 1 and row[3] != "FDM": - f.write("") - elif column == 1 and row[3] == "FDM": - f.write("") - - # handling links - elif (column == 4 or column == 5) and row[3] != "FDM" and row[column] != "": - f.write("") - # all other cells + if line_count == 0: #if header row, just print what's there + f.write("") + while column < len(row): + f.write("") + column += 1 + else: #if content row + if row[6] != "": + f.write("") else: - f.write("") - column += 1 - f.write("") - line_count += 1 + f.write("") -f.write("
" + row[column] + "
Link
" + row[column] + "
" + row[column] + "
") + while column < len(row): + # handling images + if column == 1 and row[3] != "FDM": + f.write("") + elif column == 1 and row[3] == "FDM": + f.write("") -f.close() \ No newline at end of file + # handling links + elif (column == 4 or column == 5) and row[3] != "FDM" and row[column] != "": + f.write("Link") + # all other cells + else: + f.write("" + row[column] + "") + column += 1 + f.write("") + line_count += 1 + + f.write("") + f.close() \ No newline at end of file diff --git a/bom-12.csv b/bom-12.csv new file mode 100644 index 0000000..915af0d --- /dev/null +++ b/bom-12.csv @@ -0,0 +1,25 @@ +Part Name,Image,Quantity,Part Type,Source 1,Source 2,Optional,Note +frame-12,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +drive-motor-bracket,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +drive-motor-cover,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +peel-gear-frame-8-12,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +peel-gear-8-12,,2,FDM,Download all 3D printed parts at the link at the top of the page.,,, +peel-worm-gear,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +release-lever-8-12,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +slot-bracket,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +tape-guide-8-12,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,,Used to guide tape into feeder for spools mounted beneath the machine. +"PLA-filament ",https://90a1c75758623581b3f8-5c119c3de181c9857fcb2784776b17ef.ssl.cf2.rackcdn.com/611532_989269_03_front_zoom.jpg,1.2,FIL,https://www.microcenter.com/product/611532/inland-175mm-black-pla-3d-printer-filament-1kg-spool-(22-lbs),,,Units in kg. Print both nozzle-rack and 2x z-gantry in a black color. Print top-light-mount and bottom-light-mount in a white color. +M5-t-slot-nut,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/946/94645a102-@1x_637691238154449529.png?ver=ImageNotFound,1,FST,https://www.mcmaster.com/94645A102/,,, +M3x14mm-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/920/92095A168p1-b01-digitall@2x_636621121852034289.png,3,FST,https://www.mcmaster.com/92095A168/,,, +M5x10mm-socket-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/901/90128a234-@4x_637648793587366175.png,1,FST,https://www.mcmaster.com/90128A234/,,,ISO4762 +M3x8mm-self-tapping-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/958/95893a189_5471d27b-8a4e-4cd5-bc6c-43c4b611d281@2x_637901339772075158.png,1,FST,https://www.mcmaster.com/95893A189/,,, +M3x12mm-self-tapping-flat-head,https://www.mcmaster.com/mvC/Contents/gfx/ImageCache/958/95893a403_0b3fd3a3-a747-4eb1-aca3-e40b2b59fed1@4x_637858920453111883.png,11,FST,https://www.mcmaster.com/95893A403/,,, +mobo,,1,PCA,,,,Click link above to download source +slot,,1,PCA,,,,Click link above to download source +drive-wheel,,1,PCB,,,,Click link above to download source +light-diffusion,,1,PCB,,,,Click link above to download source +photon-12mm-fid,,1,PCB,,,,Click link above to download source +slot-harness,,1,CHA,,,,Click link above to download source +n20-motor,https://www.makerfabs.com/image/cache/makerfabs/N20%20DC%20Gear%20Motor/N20%20DC%20Gear%20Motor_3-1000x750.jpg,4,MISC,https://www.servocity.com/110-rpm-micro-gear-motor/,,,1:210 gear ratio. +right-angle-n20,https://sharvielectronics.com/wp-content/uploads/2022/06/N20-3V-50-RPM-Micro-Metal-Gear-Motor-With-Encoder_-Sharvielectronics.jpg,2,MISC,https://www.aliexpress.com/w/wholesale-worm-n20-encoder.html?catId=0&initiative_id=SB_20230324123628&SearchText=worm+n20+encoder,,,14-tick per revolution encoder. 1:1030 gear ratio gearbox. +shaft-collar,https://m.media-amazon.com/images/I/51dc5w8vG5L._AC_.jpg,2,MISC,https://www.amazon.com/gp/product/B01EA912P8/ref=ppx_yo_dt_b_asin_title_o09_s00?ie=UTF8,,, \ No newline at end of file diff --git a/bom-16.csv b/bom-16.csv new file mode 100644 index 0000000..9d69c71 --- /dev/null +++ b/bom-16.csv @@ -0,0 +1,25 @@ +Part Name,Image,Quantity,Part Type,Source 1,Source 2,Optional,Note +frame-16,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +drive-motor-bracket,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +drive-motor-cover,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +peel-gear-frame-16,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +peel-gear-16,,2,FDM,Download all 3D printed parts at the link at the top of the page.,,, +peel-worm-gear,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +release-lever-16,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +slot-bracket,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +tape-guide-16,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,,Used to guide tape into feeder for spools mounted beneath the machine. +"PLA-filament ",https://90a1c75758623581b3f8-5c119c3de181c9857fcb2784776b17ef.ssl.cf2.rackcdn.com/611532_989269_03_front_zoom.jpg,1.2,FIL,https://www.microcenter.com/product/611532/inland-175mm-black-pla-3d-printer-filament-1kg-spool-(22-lbs),,,Units in kg. Print both nozzle-rack and 2x z-gantry in a black color. Print top-light-mount and bottom-light-mount in a white color. +M5-t-slot-nut,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/946/94645a102-@1x_637691238154449529.png?ver=ImageNotFound,1,FST,https://www.mcmaster.com/94645A102/,,, +M3x18mm-flat-head,https://www.mcmaster.com/mvC/Contents/gfx/ImageCache/912/91294A135_6cdeb25e-0730-4c87-b88e-234fec2c64ab@4x_637977128906584194.png,3,FST,https://www.mcmaster.com/91294A135/,,, +M5x10mm-socket-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/901/90128a234-@4x_637648793587366175.png,1,FST,https://www.mcmaster.com/90128A234/,,,ISO4762 +M3x8mm-self-tapping-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/958/95893a189_5471d27b-8a4e-4cd5-bc6c-43c4b611d281@2x_637901339772075158.png,1,FST,https://www.mcmaster.com/95893A189/,,, +M3x12mm-self-tapping-flat-head,https://www.mcmaster.com/mvC/Contents/gfx/ImageCache/958/95893a403_0b3fd3a3-a747-4eb1-aca3-e40b2b59fed1@4x_637858920453111883.png,11,FST,https://www.mcmaster.com/95893A403/,,, +mobo,,1,PCA,,,,Click link above to download source +slot,,1,PCA,,,,Click link above to download source +drive-wheel,,1,PCB,,,,Click link above to download source +light-diffusion,,1,PCB,,,,Click link above to download source +photon-16mm-fid,,1,PCB,,,,Click link above to download source +slot-harness,,1,CHA,,,,Click link above to download source +n20-motor,https://www.makerfabs.com/image/cache/makerfabs/N20%20DC%20Gear%20Motor/N20%20DC%20Gear%20Motor_3-1000x750.jpg,4,MISC,https://www.servocity.com/110-rpm-micro-gear-motor/,,,1:210 gear ratio. +right-angle-n20,https://sharvielectronics.com/wp-content/uploads/2022/06/N20-3V-50-RPM-Micro-Metal-Gear-Motor-With-Encoder_-Sharvielectronics.jpg,2,MISC,https://www.aliexpress.com/w/wholesale-worm-n20-encoder.html?catId=0&initiative_id=SB_20230324123628&SearchText=worm+n20+encoder,,,14-tick per revolution encoder. 1:1030 gear ratio gearbox. +shaft-collar,https://m.media-amazon.com/images/I/51dc5w8vG5L._AC_.jpg,2,MISC,https://www.amazon.com/gp/product/B01EA912P8/ref=ppx_yo_dt_b_asin_title_o09_s00?ie=UTF8,,, \ No newline at end of file diff --git a/bom.csv b/bom-8.csv similarity index 73% rename from bom.csv rename to bom-8.csv index b00c495..a5d3f40 100644 --- a/bom.csv +++ b/bom-8.csv @@ -1,22 +1,21 @@ Part Name,Image,Quantity,Part Type,Source 1,Source 2,Optional,Note -frame,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +frame-8,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, drive-motor-bracket,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, drive-motor-cover,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, -peel-gear-frame,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, -peel-gear,,2,FDM,Download all 3D printed parts at the link at the top of the page.,,, +peel-gear-frame-8-12,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +peel-gear-8-12,,2,FDM,Download all 3D printed parts at the link at the top of the page.,,, peel-worm-gear,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, -release-lever,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +release-lever-8-12,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, spool-holder,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, thimble,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, slot-bracket,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,, +tape-guide-8-12,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,Yes,Replaces the spool arm and thimble. Used to guide tape into feeder for spools mounted beneath the machine. "PLA-filament ",https://90a1c75758623581b3f8-5c119c3de181c9857fcb2784776b17ef.ssl.cf2.rackcdn.com/611532_989269_03_front_zoom.jpg,1.2,FIL,https://www.microcenter.com/product/611532/inland-175mm-black-pla-3d-printer-filament-1kg-spool-(22-lbs),,,Units in kg. Print both nozzle-rack and 2x z-gantry in a black color. Print top-light-mount and bottom-light-mount in a white color. -M3-hex-nut,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/905/90592A085p1-b01-digitall@4x_636713274654410000.png?ver=ImageNotFound,11,FST,https://www.mcmaster.com/90592A085/,,,ISO4032 M5-t-slot-nut,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/946/94645a102-@1x_637691238154449529.png?ver=ImageNotFound,1,FST,https://www.mcmaster.com/94645A102/,,, -M3x12mm-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/920/92095A181p1-b01-digitall@2x_636621119072096469.png,2,FST,https://www.mcmaster.com/92095A181/,,, -M3x14mm-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/920/92095A168p1-b01-digitall@2x_636621121852034289.png,2,FST,https://www.mcmaster.com/92095A168/,,, -M3x15mm-flat-head,https://www.mcmaster.com/mvC/Contents/gfx/ImageCache/912/91292a115-@4x_637619456157301135.png,10,FST,https://www.mcmaster.com/91292A115,,, +M3x14mm-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/920/92095A168p1-b01-digitall@2x_636621121852034289.png,3,FST,https://www.mcmaster.com/92095A168/,,, M5x10mm-socket-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/901/90128a234-@4x_637648793587366175.png,1,FST,https://www.mcmaster.com/90128A234/,,,ISO4762 M3x8mm-self-tapping-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/958/95893a189_5471d27b-8a4e-4cd5-bc6c-43c4b611d281@2x_637901339772075158.png,1,FST,https://www.mcmaster.com/95893A189/,,, +M3x12mm-self-tapping-flat-head,https://www.mcmaster.com/mvC/Contents/gfx/ImageCache/958/95893a403_0b3fd3a3-a747-4eb1-aca3-e40b2b59fed1@4x_637858920453111883.png,11,FST,https://www.mcmaster.com/95893A403/,,, mobo,,1,PCA,,,,Click link above to download source slot,,1,PCA,,,,Click link above to download source drive-wheel,,1,PCB,,,,Click link above to download source diff --git a/cad/FDM/frame-12.FCStd b/cad/FDM/frame-12.FCStd index 49efc73..c97e4e6 100644 Binary files a/cad/FDM/frame-12.FCStd and b/cad/FDM/frame-12.FCStd differ diff --git a/cad/FDM/frame-16.FCStd b/cad/FDM/frame-16.FCStd index 18fb4f0..39be4ab 100644 Binary files a/cad/FDM/frame-16.FCStd and b/cad/FDM/frame-16.FCStd differ diff --git a/cad/FDM/frame-8.FCStd b/cad/FDM/frame-8.FCStd index 79914d6..c2de550 100644 Binary files a/cad/FDM/frame-8.FCStd and b/cad/FDM/frame-8.FCStd differ diff --git a/cad/FDM/release-lever.FCStd b/cad/FDM/release-lever-8-12.FCStd similarity index 100% rename from cad/FDM/release-lever.FCStd rename to cad/FDM/release-lever-8-12.FCStd diff --git a/cad/FDM/spool-holder.FCStd b/cad/FDM/spool-holder.FCStd index 05232f8..9abf63c 100644 Binary files a/cad/FDM/spool-holder.FCStd and b/cad/FDM/spool-holder.FCStd differ diff --git a/cad/FDM/tape-guide-16.FCStd b/cad/FDM/tape-guide-16.FCStd index 4abf231..c27c244 100644 Binary files a/cad/FDM/tape-guide-16.FCStd and b/cad/FDM/tape-guide-16.FCStd differ diff --git a/cad/FDM/tape-guide-8-12.FCStd b/cad/FDM/tape-guide-8-12.FCStd index 178eb6f..67d3780 100644 Binary files a/cad/FDM/tape-guide-8-12.FCStd and b/cad/FDM/tape-guide-8-12.FCStd differ diff --git a/cad/asm12.FCStd b/cad/asm12.FCStd index bc53bef..a11cde3 100644 Binary files a/cad/asm12.FCStd and b/cad/asm12.FCStd differ diff --git a/cad/asm16.FCStd b/cad/asm16.FCStd index da647c5..2ece9ae 100644 Binary files a/cad/asm16.FCStd and b/cad/asm16.FCStd differ diff --git a/cad/asm8.FCStd b/cad/asm8.FCStd index 5616d07..a430491 100644 Binary files a/cad/asm8.FCStd and b/cad/asm8.FCStd differ