Connecting to Your Machine

Getting set up and connected to your LumenPnP using OpenPnP

Awesome! Now we’ve got OpenPnP installed on your computer, and we’ve got the default configuration loaded up, our next step is getting connected to the machine using OpenPnP and getting familiar with the UI.

  1. Connect your machine to your computer using the included USB cable, and open OpenPnP on your computer. You should now see the OpenPnP UI:

Com Port and Baud Rate

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

  1. Click on the Machine Setup tab

    Selecting the Machine setup tab from the main screen

  2. Click on the “Expand” checkbox to open all of the features about your machine.

    Expanding the Machine Config options

  3. Under Drivers click on GcodeDriver GcodeDriver

    Reviewing the GcodeDriver options

  4. Below the list of machine settings you’ll find the details of the GcodeDriver. In the Configuration tab, check the Baud and Port settings.

    1. The Baud should be 115200
    2. On Windows, the Port should be in the format: COM2.
    3. On Mac, the Port should be in the format: cu.usbmodem<a-lot-of-numbers>
    4. On Linux, the Port should be in the format: ttyACM0.
      Changing the Port and Baud Rate

Bottom Camera Config

Now we’ll set up the cameras. The big red “X” in the camera views means that OpenPnP doesn’t know where to find the webcam feed. OpenPnP needs to know which webcam is which.

  1. Again, navigate to the Machine Setup tab

  2. Again, click the “Expand” checkbox if necessary

  3. Under Cameras click on 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 (PnP Bottom Camera)

    Selecting the correct device for the Bottom Camera

  6. In the Format drop-down, choose the 1280x720 10fps setting

  7. Click the “Apply” button in the bottom right

    Saving changes to the Bottom Camera Config

Top Camera Config

  1. Again, navigate to the Machine Setup tab

  2. Again, click the “Expand” checkbox if necessary

  3. Navigate to Heads > ReferenceHead H1 > Cameras > OpenPnPCaptureCamera Top

    Finding the Top 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 (PnP Top Camera)

    Selecting the correct device for the Bottom Camera

  6. In the Format drop-down, choose the 1280x720 10fps setting

  7. Click the “Apply” button in the bottom right

    Saving changes to the Top Camera Config

  8. To check that both cameras are working now, select your preferred view option in the top left Cameras section. The Camera feeds should update automatically. If you only see a black image but the red X has disappeared, it’s likely that your camera is connected properly, but just has its exposure set too low. We’ll address this in a later step.

    Both cameras showing live outputs.

Connecting to the LumenPnP

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

  2. The power button should turn red, and OpenPnP has connected to your machine. You should also see both webcam feeds as shown below. (If you don’t see any, or just one, under the Cameras section, select the Show All Horizontal option from the dropdown.)

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