This paper describes a hardware design of connection places for an automatic detection of a newly connected module and detection of its orientation for use in the self-reconfigurable modular robotic system. It also describes a mechanical design for an energy and information transfer between modules in the system. This paper also describes testing of an automatic detection with a graphical display of the results for an actual shape of a newly created kinematic structure of the system.