I've posted a related post before:
https://www.eevblog.com/forum/manufacture/(cdpnp)-tiny-semi-automatic-pnp-machine-support-0201-smt/Supported by the latest upgrade:
- Automatic calibration of the distance from the primary camera to the nozzle rotation center;
- Automatic calibration of the nozzle rotation error, and the distance from the secondary camera to the nozzle rotation center;
- Automatic secondary calibration of picked-up components.
The accuracy is also significantly improved when not using secondary calibration.
There should be a bug in the old method of calculating rotation error.
The rotation angle has been changed from an integer to a floating point number. The camera also changed to fixed exposure mode.
(In the old code, there was also a problem with converting floats to integers, e.g. 1.9 was converted to 1.)
Hardware changes are minimal: just remove the acrylic plate from the top of the secondary camera and move the secondary camera backlight to the top.
Please watch with subtitles on: