Intelligent pencil capable of automatically controlling lead discharging and lead discharging length

The invention relates to an intelligent pencil capable of automatically controlling lead discharging and lead discharging length. The intelligent pencil comprises a pencil rod, a pencil lead and a pencil cap. A lead protecting pipe, an upper limiting switch, a lower limiting switch and a controlling mechanism are installed in the pencil rod. Three pressure sensors are evenly distributed in the pencil rod. The outer end of a lead storage pipe is sleeved with a fixed spring and an electromagnetic coil, and a supporting ring is further arranged between the electromagnetic coil and the pencil cap. A movable magnet is arranged along the inner ring of the electromagnetic coil and tightly connected with an upper stopping end of the lead storage pipe in a clamped mode, and the outer end of the movable magnet is sleeved with an iron core spring. The controlling mechanism further comprises an acceleration sensor. The pressure sensors, the lower limiting switch, the upper limiting switch, the electromagnetic coil and the acceleration sensor are electrically connected with the controlling mechanism. The intelligent pencil is capable of automatically controlling lead discharging and the lead discharging length, has no noise in the use process, is low in energy consumption, can correct a wrong pencil holding posture in time, and has a self-protecting function.