A method of inserting an electronic components in through-hole technology, THT, into a printed circuit board, PCB, by an industrial robot, comprising steps of:
- a) grabbing, by means of a tool mounted to the end-effector of the industrial robot, the electronic component to be inserted into the PCB;
- b) moving the tool to a starting position being in close proximity to a final position of the electronic component;
- c) acquiring at least one image showing the tool, the electronic component and the PCB;
- d) calculating, on a basis of the at least one image, at least one movement instruction for the industrial robot;
- e) adjusting position of the tool on a basis of the at least one movement instruction;
- f) repeating steps c), d), and e) until the electronic component is in the final position.