This work is dedicated to the design and development of a functional prototype of a tipping-bucket rain gauge, its calibration and testing. The rain gauge was designed with two-chambers and a magnetic reed sensor used to record its individual tips. The construction of the gauge utilized a new arising 3D printing technology, which enabled to test a large number of prototypes. The electronics of the rain gauge and the software processing and storing the information about the individual tips was based on the open source Arduino platform. In order to calibrate the rain gauge a peristaltic pump was designed and constructed using the same technologies. The pump enabled to perform a dynamic calibration of the rain gauge under various conditions of rainfall intensities.