This paper presents a sensor-based cane mechanism for walking aid of the visually impaired person. We also describe an approach to decide properly the length of the specified cane mechanism. The cane mechanism has some sensors to identify the possibility of a collision between the cane user and an object and/or a person, and a signal processing unit that enables the user to recognize such a collision is attached in the mechanism. Thus, the walker using this cane can recognize in advance the possibility of such a collision in his walking process. Consequently, it is helpful for the visually impaired person to walk on a pedestrian road safely. The feature of the proposed cane mechanism and its availability have been shown through experimental works in a typical walking environment.