In this contribution, the application of single-board computers for the investigation of the hydro-mechanical behaviour of unsaturated granular soils is presented. Single-board computers, such as the Raspberry Pi or Arduino, have recently experienced a hype of applications in school and university teaching, in the maker scene, amongst hobbyists, but also in research. In combination with easy to learn and open programming languages, such as Python, individual experimental set-ups for research in unsaturated soil mechanics, using actuators and sensors can be easily developed with the help of different programmable hardware, such as stepper motors, analog-to-digital converters and other controller boards. For the experimental application in imaging of unsaturated granular soils by computed tomography (CT), we present a miniaturized uniaxial compression device for the measurement of unsaturated shear strength and capillary cohesion in CT-experiments. The device has already been applied for CT-imaging of the development of water distribution and capillary bridges in between different shear steps. Furthermore, a new fully programmable hydraulic experimental set-up for the automated investigation of transient hydraulic paths of the water retention curve of granular media is presented. Both devices have been developed in the framework of the Raspberry Pi single-board computer and Python programming language with simple and relatively inexpensive hardware components. In addition to the technical development of the testing devices, experimental results of the hydro-mechanical behaviour of unsaturated sand and glass beads, derived from uniaxial compression tests and water retention tests, will be presented.