Lego has been popular for a long time. In the last few years, Lego has released a programmable module, which many educational organizations and micro-operation robots have used. This has given rise to a new topic of study, how to use Lego NXT in education. In this paper, we present an application of Lego NXT in the subject of mathematics. The principle is based on Kolb's innovative learning cycle, that the student's active learning and cooperative learning concepts complete the whole process of learning experience. In order to compare the effectiveness of learning, we use an experimental group and a control group, and give then pre- and post-tests.