This paper shows the results of the study, the purpose of which is to solve the problem of identifying the shape of an obstacle and its orientation in a certain coordinate system using a sensor system of a modular mobile robot consisting of ultrasonic sensors. . Two implementations of the sensor system are considered: the ultrasonic sensor is located on the pivot-tilt mechanism controlled from a microcontroller; a multitude of ultrasound sensors is located along the perimeter of the robot sensor module. In the first case, the form of the obstacle is determined by scanning the surrounding space with one sensor; in the second case, all ultrasonic sensors are simultaneously firing and, based echo analysis the relief of the surrounding space is constructed, thereby performing a parallel scanning over the range of the territory. Experiments are show that the echo analysis of ultrasonic sensors with using the microcontroller is able to determine not only the azimuth of the obstacle, but also its shape such as the external (convex) corner, the internal (concave) corner, the flat wall, the doorway with the open door, the object of round shape and etc., and their orientation in some coordinate system.