In recent years, micro/nano robots have been increasingly widely used, providing a strong guarantee for human health and safety, with micro/nano drilling machines being the most typical example. However, at present, it is difficult for people to accurately and effectively control micro/nano drilling machines without damaging the human body. Based on this, this paper designed a nanoscale drilling machine with adjustable charge based on nested carbon nanotubes. By simply using a pre-designed coding strategy, it is possible to control the charge density and position on the surface of the outer carbon nanotube, thereby controlling the rotation speed and direction of the nanoscale drilling machine, to achieve different goals. The driving force of the nanoscale drilling machine is provided by electrostatic force, and the drilling machine will slowly stop under the Van der Waals force between the inner and outer nested nanotubes. This device contributes to the realization of the prospect of “precision medicine”.