Clone this wiki locally
This Quick Start guide will guide you through installing OpenPnP, seeing the major components of the interface and running a sample job in the OpenPnP simulator. This will allow you to quickly understand how OpenPnP works and give you a foundation to begin hooking it up to your own machine.
Visit http://openpnp.org/downloads to find out how to download the latest snapshot or release of OpenPnP.
Install and Run
If you are using one of the binary installers from the website, just run the installer and follow the instructions. After installation you can run OpenPnP from your operating system's applications list, i.e. Start Menu, Applications folder, etc.
If you are using an archive version of OpenPnP, unzip the software into a directory of your choosing. Typically this would be the same place you keep your other applications. Inside the folder you unzipped OpenPnP to there is an
openpnp.bat script. These should work for Windows, Mac and Linux. For Mac and Linux, run
openpnp.sh and for Windows run
openpnp.bat. After a short wait you should see the OpenPnP Main Window.
A Quick Tour
This image shows the major components of the user interface. We'll reference the names of these components throughout the rest of the guide, so take a moment to get familiar with them.
TODO: Section needs updating due to recent UI overhaul.
OpenPnP is set up out of the box so that you can use it right away; you don't even a need to connect a machine!
When you start OpenPnP for the first time you will see a simulated pick and place table in the camera view. Try following along with the items below to get a feel for how OpenPnP works:
- Press the green power button to start the virtual "machine".
- Use the jog buttons in the jog controls to move the camera around. You can change the distance each click moves by changing the value of the Distance slider.
- Visit each of the tabs along the bottom of the window to see how Jobs, Parts, Packages, Feeders and the Machine is configured. Right now it's best not to change anything.
Your First Job
Now that you've seen the user interface a bit, it's time to try running a pick and place job. Follow along with the instructions below:
- Select the Job tab at the bottom of the main OpenPnP window.
- From the File menu, select Open Job.
- Using your computer's file dialog, find the
samplesdirectory that came with OpenPnP. It should be in the same directory you installed OpenPnP into.
- In the
samplesdirectory, find the
pnp-testdirectory and open the
pnp-test.job.xmlfile inside it.
- You'll see the job has loaded and there are now boards and placements listed. You can browse the boards and placements to see what the job will be doing.
- If you haven't already, press the green power button to start the machine.
- Press the green play button to start the job and the camera will start moving.
OpenPnP will now simulate a full pick and place job. It will use computer vision to align the boards using fiducials, find parts in virtual feeders, and then place the parts on virtual boards. You can follow along by watching the camera view.
When the job is complete, congratulations! You've run a job in OpenPnP! The next step is to dive into the User Manual and start learning how to hook OpenPnP up to a real machine.
Next you should start reading the User Manual to get a better feel for the more advanced features of OpenPnP, and to learn how start integrating the software with your machine.
If you don't have a machine yet, visit http://openpnp.org/hardware/ to see some options for building or buying a machine.
If you want to dive into the code, have a look at the Developers Guide to start hacking.