Is there any mineral identification techniques that works for all minerals?
Yes, it is called X-ray diffraction (XRD). It is done by machines that look like this:



I'm not sure this is in the scope of your electronic engineering project.