Close

Build it, and they will come.

A project log for Arcus-3D-P1 - Pick and Place for 3D printers

Open source, mostly 3D printable, lightweight pick and place head for a standard groove mount

daren-schwenkeDaren Schwenke 08/20/2018 at 00:440 Comments

The last two days have been spent building and configuring OpenPNP on the Pi.

It's java, but uses native code for the camera interface, which wasn't setup to be built for armv8, or any arm for that matter.  With some help of the forum, they got me going.

That part is working now, but my camera is not showing up in their dropdown.  I assume it's still looking for USB cameras and I need to configure that somewhere.

Working on it.

EDIT: Nope, my fault.  I had turned down the GPU reserved memory too much, and the v4l2 kernel driver wouldn't load.  I put it back to gpu=128 for now and I have /dev/video0 again.

After doing this the device shows up in openpnp, and the light comes on when I select it.

However, the formats menu is goofy with all resolutions and framerates being 0.  I also get an error on startup of 

queryFrameSize returned non-discrete frame size!

14 times.  That matches the number of formats available.  I believe there is some miscommunication occuring in the v4l2 implementation which needs to be corrected.

In other news, the LinuxCNC driver is working, sorta.  Connected, but the homing sequence openpnp comes with is silly and doesn't actually do homing at all.  I'm making it actually home the machine.  

Working on it.

EDIT 2: It works.  v4l2 was providing some inaccurate responses for the camera capabilities.  I just hard coded the responses that should have been happening into the capture driver, and I have video. 

The LinuxCNC driver still fails to home the machine.  I'm missing something.  Working on it..

Discussions