This post describes how to use the Raspberry Pi camera as a Macro camera.
I use it to do control checks when soldering PCBs with very small components.
It is very convenient since I get the picture directly on the screen, I like it more than using a microscope as long as no huge magnification is needed.
Simple to do and it makes life much easier in terms of checking small things! 🙂