• All 3 axis integrated

    the.wretch05/28/2018 at 11:32 0 comments

    This weekend I printed the other two base plates, milled two PCBs and integrated all three MPGs in MachineKit.


    I really like how this works, it gives you much more control over the machines movement compared to the keyboard arrow keys.

  • New base plate with homemade PCB

    the.wretch05/25/2018 at 20:59 0 comments

    I finally got around re-designing the base plate. As I indicated in my last post, it needed to be a bit higher and it needed some hole to mount the MPG. What I also wanted to do was to create a custom PCB for attaching the hall sensor and the wires. It was a while back since I using EagleCad and was pleased to find that this was now owned by Autodesk and integrates nicely with Fusion360. I created a PCB in fusion in the shape of the space underneath the MPG and linked this to EagleCad. After I was finished with designing the PCB in EagleCad, I used FlatCAM and AutoLeveler to generate the G-Code. A couple of tests (read failures) later I was able to get a reasonable PCB using one of my cheap 60 degree engraving bits.

    Even under the microscope it looks pretty, no rough edges at all.

    When I mounted the hall sensors I noticed that I had the pins of the sensors swapped, so back to EagleCad. Since I needed to change things anyway, I also moved and rotated the pads for the wires. 

    So, all I now need to do is make 2 more and I can start using my very own MPGs :)

  • First integration test

    the.wretch11/05/2017 at 18:18 0 comments

    Today I did the first integration test and it works :)

    My CNC machine is running LinuxCNC, originally I only had one parallel port and all the inputs where already used. I bought a cheap PCI parallel port card from Banggood and this just worked out of the box, no driver updates, no kernel re-compile, nothing.

    Since the parallel port doesn't have a 5V line, I used power from one of the USB ports and connected everything using jump wires and a breadboard.

    The LinuxCNC manual describes how to configure the HAL. There are a number of modes and scale settings and I not sure which I prefer yet. The video below show me experimenting with different scales and mode settings.

    I need to do some re-designing of the base plate, is at the moment it is to low to fit wires, and I also like to add some mounting holes.

  • Click click click

    the.wretch10/22/2017 at 18:04 0 comments

    Originally I was planning to use 32 magnets, giving me 128 pulses per revolution. I tried some test prints and came to the conclusion that this was a bit overkill, eventually I continued with 16. 

    To give some tactile feedback, I added a clicker that clicks on every quadrature step. The clicker consists of a (round) track of 64 shallow (0.4mm) pockets in the base plate and a 4mm spring loaded ball in the dial.

    Base plate with clicker pockets
    Top of the dial
    Bottom of the dial
    The clicker ball and spring
    Clicker ball inserted

  • Hall sensor test

    the.wretch10/01/2017 at 12:33 0 comments

    The most common way of detecting pulses & direction is to use quadrature encoding, this is where the pulses are shifted 90*. So how to you create this type pulses with a hall sensor and magnets?

    There are a number of types of hall sensors: unipolar,  bipolar switch and bipolar latch, and it is the last one that is ideal for creating a quadrature signal. A bipolar latch hall sensor switches on when it detects one magnetic pole (lets say north) and it switches off when it detects the other (south) magnetic pole. So when you create a circle of magnets with alternating north and south poles facing the sensor, the result is a signal with a 50% duty cycle (when the rotation speed is stable). 

    I used my 3d printer to create a small disc with 32 (2 mm) holes and I glued in 8 teeny tiny neodymium magnets. I also printed a base for the disc spin on and to hold the hall sensors in place. The sensors are offset by 28.125 degrees (360 / 32 = 11.25, (2 * 11.25) + (11.25/2)), so that when one sensor is directly underneath a north pole, the other one is halfway between a north and a south poll.

    And the resulting signals