Hyperspectral imaging (HSI) systems have been demonstrated as a powerful imaging technique due to their high spectral resolution. HSI can obtain the spectrum for each pixel in the image of a scene, a feature that can be exploited to design optical systems with the purpose of analyzing and characterizing objects and identifying processes within the visible electromagnetic spectrum (bandwidth). In this paper, we present an HSI system comprising a diffraction grating placed in the exit pupil of our optical configuration. The spectrum for each pixel associated with the object appears in the first order of diffraction. We used this system to characterize and tune the required spectral band of the image of the captured object obtaining more information than with an optical imaging system. Accordingly, the proposed optical system is suitable to obtain spectral and hyperspectral imaging at low cost compared to an acoustooptic system or other HSI. The scanning system captures hundreds of spectral images associated with the object, obtaining a maximum spectral resolution of 0.26nm or 260 pm for one of our configurations.INDEX TERMS Hyperspectral imaging, spectral images, diffraction grating.