Skip to content

Connecting to Your Machine (Video Guide)

With OpenPnP installed on your computer and the default configuration installed, the next step is connecting to the machine and getting familiar with OpenPnP's UI.

  1. Make sure OpenPnP is closed.
  2. Plug the barrel jack power plug into your LumenPnP.

    Always Plug In Barrel Jack First

    Always plug in the barrel jack before USB power. This ensures the proper power up sequence for the LumenPnP motherboard. When plugging in the barrel jack, always make sure the USB type B connector is unplugged.

  3. Connect your LumenPnP to your computer using the included USB cable.

    Plug in USB before opening OpenPnP

    Always plug your LumenPnP USB cable into your computer before launching OpenPnP. If OpenPnP is already open, it might have a hard time finding the correct communication port. Make sure OpenPnP is closed before plugging in your USB cable.

  4. Connect both cameras to your computer using the USB cables.

    Camera USB Ports

    Use separate USB ports directly into your computer. The cameras require a lot of USB bandwidth, and many USB hubs aren't capable of handling it. For best results, make sure each camera is plugged into a different USB port directly into your computer, ideally on different interal USB hubs.

  5. Open OpenPnP on your computer. You should now see the OpenPnP UI: OpenPnP's basic UI

Serial Port Configuration

Before connecting to the LumenPnP, you need to set which USB port to use for communication in OpenPnP.

  1. Click on the Machine Setup tab.

    Machine Setup Tab

  2. Click on the "Expand" checkbox to open all of the features.

    Expanding the Machine Config options

  3. Under Drivers click on GcodeDriver GcodeDriver. Below the list of machine settings you'll find the details of the GcodeDriver.

    Reviewing the GcodeDriver options

  4. In the Configuration tab, select the Port for your LumenPnP.

    1. On Windows, the Port will look like COM2 or COM3.
    2. On Mac, the Port will be in the format: cu.usbmodem<a-lot-of-numbers>
    3. On Linux, Set the Port to the option in the format: ttyACM0. Changing the Port and Baud Rate

      Port Not Found

      If your machine's port does not show up in the drop down, check that your USB cable is plugged in to both your computer and the LumenPnP. Also check that the motherboard is powered on. If you still cannot find the port, try pressing the reset button on the motherboard and closing and reopening OpenPnP.

  5. Click Apply in the lower right corner to save your changes.

    Apply baud rate and port

Establishing Serial Connection

  1. Click the green power button in the Machine Controls section of the UI to connect to your machine.

    Connect to the LumenPnP

  2. The power button will turn red when OpenPnP has connected to your machine. If this doesn't work, check your serial port.

    having successfully connected to the LumenPnP and cameras

  3. Save your OpenPnP settings with File > Save Configuration.

    saving the machine config

  4. Turn on your machine's Ring Lights. Click the LED button under the Actuators tab under Machine Controls. Click On in the popup.

    Keep Ring Lights On

    Keep the ring lights on for the rest of calibration. All calibrations should be based on the lighting from the ring lights.

    When running jobs, the ring lights will turn on automatically when homing, so it's not necessary to turn them on manually in normal operation.

Bottom Camera Configuration

Next, you'll configure the cameras.

Note

More recent LumenPnP machines ship with a more recessed bottom camera, shown below. The images in our setup guides mostly show an older mounting solution, but either works the same.

recessed bottom camera

  1. Make sure both camera's lens caps are removed. (They are already removed in the image below.)

    Lens cap locations

  2. In the top-left corner, change the camera view to "Show All Horizontal". You will see two sections for camera feeds that have a red "X". An "X" in the camera views means that OpenPnP isn't yet configured to receive that camera feed.

    show both camera feeds

  3. Under the Machine Setup tab, click on Cameras > OpenPnpCaptureCamera Bottom.

    Finding the Bottom Camera Settings

  4. In the lower detail pane, switch to the Device Settings tab.

    Switching to the camera device settings

  5. In the Device drop-down, choose PnP Bottom Camera.

    Selecting the correct device for the Bottom Camera

    Duplicate Camera Names

    Due to a bug in OpenPnP, it's possible that you'll see two of the same camera name in this drop down menu. If the first one you pick is incorrect, use the other option of the same name.

  6. In the Format drop-down, choose the setting with the highest resolution and the lowest frame rate. In this image, it's 1280x720 10fps.

    setting bottom camera resolution

  7. Click the Apply button in the bottom right. You should see the red "X" disappear from the bottom camera feed. The image might be entirely black.

    Saving changes to the Bottom Camera Config

    Bottom camera is now on

  8. Adjust the exposure to make the image visible. To ensure the camera has auto exposure disabled, toggle the "Auto" checkbox next to "Exposure" on and then off again. Do not keep auto exposure turned on. Slide the slider until you see a clearer picture. You'll set the exposure more accurately in a later step.

    Adjust exposure

    Other Camera Settings

    We highly recommend not adjusting any of the other sliders for your camera's settings. Exposure is the only slider you should adjust from the default values the camera boots up with.

    For Mac Users

    Due to an issue with the camera driver in OpenPnP, some Mac users might notice that the image settings are greyed out for you. There's a fantastic open-source application called CameraController that can be used to edit these settings.

Top Camera Configuration

  1. Under the Machine Setup tab, click on Heads > ReferenceHead H1 > Cameras > OpenPnpCaptureCamera Top.

    Finding the Top Camera Settings

  2. In the lower detail pane, switch to the Device Settings tab.

    Switching to the camera device settings

  3. In the Device drop-down, choose PnP Top Camera.

    Selecting the correct device for the Bottom Camera

  4. In the Format drop-down, choose the setting with the highest resolution and the lowest frame rate. In this image, it's 1280x720 10fps.

    setting top camera resolution

  5. Click the Apply button in the bottom right. You should then see the camera display start showing the feed from the camera, or at least see the red X disappear.

    Saving changes to the Top Camera Config

  6. Adjust the exposure to make the image visible. To ensure the camera has auto exposure disabled, toggle the "Auto" checkbox next to "Exposure" on and then off again. Do not keep auto exposure turned on. Slide the slider until you see a clearer picture. You'll set the exposure more accurately in a later step.

    Adjust exposure

Next Steps

Next, we'll set up the machine's the homing fiducial.