A 3D-printable, ARDUINO-based multipurpose X-ray stage of compact dimensions enabling in situ electric field and temperature-dependent measurements is put into practice and tested here. It can be routinely applied in combination with a technique of structural characterization of materials. Using high-performance X-ray laboratory equipment, two investigations were conducted to illustrate the device's performance. The lattice characteristics and microstructure evolution of piezoelectric ceramics of barium titanate, BaTiO