Is there any mineral identification techniques that works for all minerals? Are there any mineral identification techniques that work for all minerals(non-metallic/metallic), so that an electronic device could be made to distinguish between 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.