Braggs law: It relates the wavelength of electromagnetic radiation to the diffraction angle and the lattice spacing in a crystalline sample. These diffracted X-rays are then detected, processed and counted. By changing the geometry of the incident rays, the orientation of the centered crystal and the detector, all possible diffraction directions of the lattice should be attained.