Stain Dipping Machine Cable Winding Pulley

The cable winding pulley was the most complicated part of the machine due to it’s multiple set screws, flat surfaces, precise bore, and threading.  One set screw holds the pulley on the shaft.  The other set screw holds the cable firmly attached to the pulley.

20180714_190920

Here is a picture of the pulley mounted to the DMM Tech Servo Motor.  In the background you can see the cable go up through the top of the machine, over the free pulley, and back down to hold the main slider mechanism.

IMG_2388

Stain Dipper Machine – Lathe Work

In the Stain Dipper Machine, we have a top pulley which is mounted on a 10mm shaft that is seated in 10x26x8mm bearings.  In the last post on this topic, I showed the pulley holder assembly.  In this post I’ll show the pulley and the final assembly.

Here is the finished pulley, made from a 1″ long by 1.5″ diameter piece of brass.

IMG_2253

Here is the pulley mounted on the top of the machine.  This is a satisfying point in the project because of all the ways this could have been solved, we chose an elegant, smooth, and accurate one.  You can’t buy this specific part anywhere in the world – we designed and made it just for this purpose.

IMG_2255

Here is a picture of tapping the pulley for a M5 set screw.

20180713_000439

This is a picture after the first operation was complete.  Now we need to turn it around in the lathe, recenter it, and finish the other side.

IMG_2247

Here is a picture of the part in the lathe.  Notice the difference in surface finish?  The shiny area is freshly cut.  The dull area was original surface.  The semi-dull area was shiny just an hour before, but oxidization got to it that quickly.

IMG_2248

A view of the spinning 4-jaw chuck and quick change tool post.

IMG_2234

Example of Python Generator Function.

One of the great features of Python is Generator Functions.  Generator functions allow you to convert any function to a generator function by simply including the yield keyword somewhere in the function body.  When a generator function is called, the response is a generator object, which can be iterated over among other things.

To boil this down to basics, generator functions allow you the programmer to create a function which yields one value at a time (and pauses until the next value is requested) until you decide it is done.  This opens endless possibilities for converting sequences, creating sequences, filtering, and more.

The following example is a generator function which will take a simple list or iterator and return pairs of (element, previous_element).  This is a great use for generators and the yield statement.

Generator Function:

def lineandlast(listish, first=True, last=True):
    iterator = iter(listish)
    lastline = next(iterator)

    if first:
      yield lastline, None

    for line in iterator:
        yield line, lastline
        lastline = line

    if last:
        yield None, lastline

Example:

for line, last in lineandlast([1,2,3,4,5]):
    print(line, last)

Output:

1 None
2 1
3 2
4 3
5 4
None 5

Notes:
There are two keyword arguments, first and last, which can be used to control the output of the first and last items on the output example above.

Stain Dipper Machine Top Pulley Assembly

One of the key components in the Stain Dipper Machine is the top pulley assembly.  It is crucial that it normalizes the unspooling location of the cable so it does not put lateral forces on the slider rod below.  To this end, we designed and created 3 components out of UHMW (Ultra High Molecular Weight Polyethylene).  It’s a nice plastic to work with, and super tough.  It cuts like butter but has a lot of strength too.  This is a 10mm hardened shaft with two bearings pressed into the UHMW.

2018-07-11 - 121824

Here is a picture of the 3D model.  As you can see I haven’t trimmed the shaft yet.

2018-07-11 - 122003

Stain Dipper Slider Guide

In my last post I had an image of one of the guides and the slider in the background.  The slider is an aluminum extrusion and the guide is 0.75″ thick Oil Filled Nylon.  Nylon is resistant to stain and other chemicals we are using as well as having a low friction coefficient.

Here is a close up of the 3D Assembly taken straight from my computer screen.

2018-07-10 - 174917

Here is a photograph taken with my phone of the actual part that has been machined and installed.  There is something satisfying about designing something and then making it exactly (within tolerance) to the size and shape you wanted.

20180710_135432

Stain Dipper Parts

Here is a screenshot of some of the parts we’ve designed for the Stain Dipper.  All of the mechanical parts are in the design and correctly positioned and all the hardware has been ordered…

Here are several of the parts from Fusion 360

Fusion360_2018-07-05_02-41-05

Here is a servo motor mount and custom made pulley.

Frame v27

Here is a small piece of Nylon used to connect a 1/16″ cable with a aluminum tube.

Fusion360_2018-07-03_22-27-15

Stain Dipper Upper Pulley

The Stain Dipper is taking shape one component at a time.  We have the servo controller, servo motor, brass for pulleys, bearings, blocks of UHMW Polyethylene for supports, taps, set screws, aluminum rods, shafts, an Arduino Mega, buttons, switches, power supplies, wire, and more…

Here are some views of the upper pulley system.

Free_Pulley_Assembly_2018-Jul-03_05-07-33AM-000_CustomizedView6207873165

Free_Pulley_2018-Jul-03_03-14-42AM-000_CustomizedView48552900108