From b4e59678456756ed2d1b60465e5526aa9f39031c Mon Sep 17 00:00:00 2001 From: sigil-03 Date: Sat, 11 Jan 2025 23:42:48 -0700 Subject: [PATCH] try at a more modular recipe architecture. NOTE: some of this syntax isn't toml i don't think, so this should be treated more like pseudo-toml --- .../peristaltic-pump/bearing_roller.toml | 46 +++++++++++++++++++ .../peristaltic-pump/peristaltic_pump.toml | 33 +++++++++++++ .../peristaltic-pump/print/bearing_hub.toml | 14 ++++++ .../print/bearing_hub_top.toml | 14 ++++++ .../print/pump_housing_front_untapped.toml | 14 ++++++ .../peristaltic-pump/print/tube_support.toml | 14 ++++++ .../peristaltic-pump/pump_housing_front.toml | 14 ++++++ .../pump_housing_front_with_stepper.toml | 14 ++++++ .../peristaltic-pump/pump_housing_rear.toml | 12 +++++ .../pump_housing_rear_with_stepper.toml.toml | 15 ++++++ .../purchase/purchase_stepper.toml | 14 ++++++ 11 files changed, 204 insertions(+) create mode 100644 modular-recipes/peristaltic-pump/bearing_roller.toml create mode 100644 modular-recipes/peristaltic-pump/peristaltic_pump.toml create mode 100644 modular-recipes/peristaltic-pump/print/bearing_hub.toml create mode 100644 modular-recipes/peristaltic-pump/print/bearing_hub_top.toml create mode 100644 modular-recipes/peristaltic-pump/print/pump_housing_front_untapped.toml create mode 100644 modular-recipes/peristaltic-pump/print/tube_support.toml create mode 100644 modular-recipes/peristaltic-pump/pump_housing_front.toml create mode 100644 modular-recipes/peristaltic-pump/pump_housing_front_with_stepper.toml create mode 100644 modular-recipes/peristaltic-pump/pump_housing_rear.toml create mode 100644 modular-recipes/peristaltic-pump/pump_housing_rear_with_stepper.toml.toml create mode 100644 modular-recipes/purchase/purchase_stepper.toml diff --git a/modular-recipes/peristaltic-pump/bearing_roller.toml b/modular-recipes/peristaltic-pump/bearing_roller.toml new file mode 100644 index 0000000..8591d18 --- /dev/null +++ b/modular-recipes/peristaltic-pump/bearing_roller.toml @@ -0,0 +1,46 @@ +[[outputs]] +bearing_roller = {quantity=6} + +# inputs list, similar to a cargo.toml file +[[inputs]] +bearing_hub_top = {version=0.1, type="printed"} +bearing_hub = {version=0.1, type="printed"} + +# alternate representation of an element of the inputs list +[[inputs.m4_20_shcs]] +type = "M4x20 SHCS" +quantity = 3 +comment = """These will hold the bearing rollers. Possibly Button Heads +Cap Screws would be better? Probably either will work fine.""" + +[[inputs.m4_washer]] +type = "M4 washer" +quantity = 6 +dimensions = "12 mm OD, 4.4 mm ID, 1 mm thick" +comment = """The upstream repo calls for 12 mm OD but i think that's +too big, it hits the outer race of the bearings. Use 8mm OD instead.""" + +[[inputs.624_bearing]] +type = "624 bearing" +quantity = 6 +comments = "13mm OD, 4mm ID, 5mm wide" + +[[inputs.m4_nuts]] +type = "M4 nuts" +quantity = 3 + +[[dependencies]] +tools = [ + "3 mm hex driver", + "7 mm nut driver", +] +operator = {skill="assembly"} + + +[[action]] +process = """Assemble the bearing roller. Each of the three roller +stacks will consist of: washer, bearing, bearing, washer. All three +roller stacks are clamped between the bearing hub top and bottom, and +fixed by a screw and nut.""" + + diff --git a/modular-recipes/peristaltic-pump/peristaltic_pump.toml b/modular-recipes/peristaltic-pump/peristaltic_pump.toml new file mode 100644 index 0000000..53ed697 --- /dev/null +++ b/modular-recipes/peristaltic-pump/peristaltic_pump.toml @@ -0,0 +1,33 @@ +[[inputs]] +pump_housing_front_with_stepper = {version = 0.1, quantity=1} +bearing_roller = {version=0.1, quantity=1} +pump_housing_rear_with_stepper = {version=0.1, quantity=1} +tube_support = {version=0.1, quantity=1} + +[[inputs.silicone_tubing]] +type = "silicone tubing, 6mm OD, 4mm ID" +quantity = "1 meter" +comment = "PVC tube isn't flexible enough. Adjust quantity to suit your application." + +[[inputs.m4_25_bhcs]] +name = "m4_25_bhcs" +type = "M4x25 BHCS" +quantity = 4 +comment = """BHCS is preferred over SHCS so the screw heads sit recessed +below the surface of the pump body.""" + +[[inputs.m4_nuts]] +type = "M4 nuts" +quantity = 4 + +[[dependencies]] +tools = [ "3 mm hex driver" ] +operator = {skill="assembly"} + +[[action]] +process = """Press the bearing roller assembly onto the motor shaft of the +rear pump housing assembly. Install the tubing so it goes in one port, +around the roller, and out the other port. Press the motor shaft of the +front pump housing assembly into the other side of the bearing roller. +Attach with the screws and nuts.""" + diff --git a/modular-recipes/peristaltic-pump/print/bearing_hub.toml b/modular-recipes/peristaltic-pump/print/bearing_hub.toml new file mode 100644 index 0000000..ddabb45 --- /dev/null +++ b/modular-recipes/peristaltic-pump/print/bearing_hub.toml @@ -0,0 +1,14 @@ +[[outputs]] +bearing_hub={version=0.1, quantity=1, type="printed"} + +[[inputs]] +filament={} + +[[dependencies]] +printer={type="fdm"} + +[[config]] +model="https://github.com/DerSchultze/Peristaltic-Controller@92a4d9b:stl/bearing-hub.STL" + +[[action]] +print={} \ No newline at end of file diff --git a/modular-recipes/peristaltic-pump/print/bearing_hub_top.toml b/modular-recipes/peristaltic-pump/print/bearing_hub_top.toml new file mode 100644 index 0000000..3e76ada --- /dev/null +++ b/modular-recipes/peristaltic-pump/print/bearing_hub_top.toml @@ -0,0 +1,14 @@ +[[outputs]] +bearing_hub_top={version=0.1, quantity=1, type="printed"} + +[[inputs]] +filament={} + +[[dependencies]] +printer={type="fdm"} + +[[config]] +model="https://github.com/DerSchultze/Peristaltic-Controller@92a4d9b:stl/bearing-hub-top.STL" + +[[action]] +print={} \ No newline at end of file diff --git a/modular-recipes/peristaltic-pump/print/pump_housing_front_untapped.toml b/modular-recipes/peristaltic-pump/print/pump_housing_front_untapped.toml new file mode 100644 index 0000000..9eac7da --- /dev/null +++ b/modular-recipes/peristaltic-pump/print/pump_housing_front_untapped.toml @@ -0,0 +1,14 @@ +[[outputs]] +pump_housing_front_untapped={version=0.1, quantity=1, type="printed"} + +[[inputs]] +filament={} + +[[dependencies]] +printer={type="fdm"} + +[[config]] +model="https://github.com/DerSchultze/Peristaltic-Controller@92a4d9b:stl/pump-top.STL" + +[[action]] +print={} \ No newline at end of file diff --git a/modular-recipes/peristaltic-pump/print/tube_support.toml b/modular-recipes/peristaltic-pump/print/tube_support.toml new file mode 100644 index 0000000..4b1aaec --- /dev/null +++ b/modular-recipes/peristaltic-pump/print/tube_support.toml @@ -0,0 +1,14 @@ +[[outputs]] +tube_support={version=0.1, quantity=1, type="printed"} + +[[inputs]] +filament={} + +[[dependencies]] +printer={type="fdm"} + +[[config]] +model="https://github.com/DerSchultze/Peristaltic-Controller@92a4d9b:stl/tube-support.STL" + +[[action]] +print={} \ No newline at end of file diff --git a/modular-recipes/peristaltic-pump/pump_housing_front.toml b/modular-recipes/peristaltic-pump/pump_housing_front.toml new file mode 100644 index 0000000..1db87a3 --- /dev/null +++ b/modular-recipes/peristaltic-pump/pump_housing_front.toml @@ -0,0 +1,14 @@ + +[[outputs]] +pump_housing_front={quantity=1} + +[[inputs]] +pump_housing_front_untapped={version=0.1, type="printed"} + +[[dependencies]] +tools = [ "M4 tap" ] +operator = {skill="assembly"} + +[[action]] +process = """Tap the two motor mounting holes.""" + diff --git a/modular-recipes/peristaltic-pump/pump_housing_front_with_stepper.toml b/modular-recipes/peristaltic-pump/pump_housing_front_with_stepper.toml new file mode 100644 index 0000000..3ff9850 --- /dev/null +++ b/modular-recipes/peristaltic-pump/pump_housing_front_with_stepper.toml @@ -0,0 +1,14 @@ +[[outputs]] +pump_housing_front_with_stepper={quantity=1} + +[[inputs]] +pump_housing_front={version=0.1, quantity=1} +m4_5_shcs={quantity=2, description="M4x5 SHCS"} +stepper={quantity=1, type="J8ByJ-48"} + +[[dependencies]] +tools = [ "3 mm hex driver" ] +operator = {skill="assembly"} + +[[action]] +process = """Screw the stepper to the printed front housing.""" \ No newline at end of file diff --git a/modular-recipes/peristaltic-pump/pump_housing_rear.toml b/modular-recipes/peristaltic-pump/pump_housing_rear.toml new file mode 100644 index 0000000..d5bee00 --- /dev/null +++ b/modular-recipes/peristaltic-pump/pump_housing_rear.toml @@ -0,0 +1,12 @@ + +[[outputs]] +pump_housing_rear = {quantity=1} + +[[inputs]] +pump_housing_rear_untapped = {version=0.1, type="printed", quantity=1, model="https://github.com/DerSchultze/Peristaltic-Controller@92a4d9b:stl/CheapPump.STL"} + +[[dependencies]] +tools = [ "M4 tap" ] + +[[action]] +process = """Tap the two motor mounting holes.""" diff --git a/modular-recipes/peristaltic-pump/pump_housing_rear_with_stepper.toml.toml b/modular-recipes/peristaltic-pump/pump_housing_rear_with_stepper.toml.toml new file mode 100644 index 0000000..3dcc50e --- /dev/null +++ b/modular-recipes/peristaltic-pump/pump_housing_rear_with_stepper.toml.toml @@ -0,0 +1,15 @@ +[[outputs]] +pump_housing_rear_with_stepper = {quantity=1} + +[[inputs]] +pump_housing_rear = {version=0.1, quantity=1} +m4_5_shcs = {quantity=2} +stepper = {type="J8BYJ-48", quantity=1} + +[[dependencies]] +tools = [ "3 mm hex driver" ] +operator = {skill="assembly"} + +[[action]] +process = """Screw the stepper to the printed rear housing.""" + diff --git a/modular-recipes/purchase/purchase_stepper.toml b/modular-recipes/purchase/purchase_stepper.toml new file mode 100644 index 0000000..7f24ccd --- /dev/null +++ b/modular-recipes/purchase/purchase_stepper.toml @@ -0,0 +1,14 @@ +[[outputs]] +stepper = {type="J8BYJ-48"} + +[[inputs]] +capital={type="usd"} + +[[dependencies]] +operator = {skill="vendor interaction"} + +[[action.purchase]] +retailers = ["https://www.mouser.com/datasheet/2/758/stepd-01-data-sheet-1143075.pdf", + "https://components101.com/motors/28byj-48-stepper-motor"] + +process = "contact retailer and provide capital in exchange for vitamins. then think about how you can produce those vitamins for your enclave." \ No newline at end of file