Measurement of shear and compression wave velocities in rock and soil samples play an important role in the detection of their types and characteristics. The instruments employed for these measurements are too expensive and bulky. Thus, a low cost instrument is required to measure the primary (shear) and secondary (compression) waves velocities in real time. This paper describes an implementation of an ultrasonic nondestructive measuring system using Piezoceramic transducers. The operational frequency of the system is 0.2KHz – 30KHz and 500KHz, 1MHz for measuring shear and compression wave velocities respectively. It is able to detect the wave velocities in rock specimens and some compacted soils of different properties (dry & wet).