This thesis presents a method for producing a computer controlled CNC device for drilling printed circuit boards. The presented work is the realization of machine equipment, materials and manufacturing processes. Stepper motors are used for moving machining tool, which allow us to achieve the desired precision. Due to the mechanical movements of the machine, end switches are installed which in case of error stops the device. The device is controlled by STM32F407 microcontroller running FreeRTOS operating system. The device is controlled by a program that was written in the C# programming language using the. NET Framework. The program allows the user complete control over the device, automatic or manual control of individual axes and the ability to import drilling coordinates from Sprint-Layout program. The program communicates with the controller over USART (Universal Synchronous synchronous Receiver Transmitter) interface and the prede_ned commands are used for communication.