Chinese calligraphy as a Chinese character writing art is an important part of Chinese art. As a representative of the intangible cultural heritage of humanity, Chinese calligraphy is under protection and its universal education is a very important inheritance means. This paper proposes a new method to teach a robot to implement the vivid replication of personal writing without losing the shape and effect of a calligraphy character. In the method, a capacitive touch screen used as an input device to obtain the features such as touch point positions, strokes, width, writing velocity and acceleration. After a series of processes, the writing is eventually transformed to a language program for a calligraphy robot to perform the repeated writing. The writing on the touch screen, writing with a brush by hand and one with a brush by the robot are compared. The results show that the robot taught with the proposed method can preserve the writing features of a writer and achieve the effect of brush writing.