| China is a big country in the production and export of the global footwear,which plays an important role in the development of China’s national economy.At present,there are many problems in our country’s shoe-making equipment such as low technology、low automation level,which hinder the rapid development of China’s footwear industry to a certain extent.That how to improve the quality of shoe sole drilling and accelerate the development of the footwear industry is an urgent necessary problem to solve in Chinese footwear industry.Aiming at this problem,this paper accorded to the process of drilling and developed a numerical control machine tool based on FPGA,which is specially used for the drilling of sole.The main work of this paper is as follows:The sole drilling machine system composition and process flow are introduced and the digital image edge detection and location are studied.On the basis of the traditional canny edge detection operator,this paper using a median filter replace gaussian filter,improved canny edge detection operator is used based on the characteristics of the image gradient histogram,enables the generation of adaptive dynamic threshold,and also use the matlab software simulation,locate the edge accurately.The sub-pixel edge detection and center positioning method of realization is treated to determine drilling center point and use improved canny operator to find the image edge,then by using the method of moment algorithm,adding the gray value of the pixels around the pixel,the sub pixel edge information of the image is obtained.Finally,the circle edge fitting is used to get the accurate position of the hole,and also use the matlab software to simulate.This paper use the Cyclone II series FPGA of Altera company EP2C8Q208C8 as the core of the system control to achieve the collection and processing of the image data.It also achieve the design of the system based on SOPC technology.The overall hardware and software design of the system is given in this paper.The hardware circuit include the camera acquisition circuit,FPGA core circuit,image processing circuit,display circuit and motor drive circuit.The camera that achieve the sole data acquisition,after A/D conversion processing and then transmit to the FPGA to process,eventually transformed into drilling path information,achieve the drilling of mobile and will be displayed on the display image edge.Based on SOPC technology,it complete the part of the software design,build top file in the Quartus II software and finish NIOS soft processor configuration in the SOPC builder,and also complete the corresponding IP core such as JTAG EPCs,SDRAM,PIO custom to achieve SOPC system hardware design,programming the software of each module in the Nios II.Finally,the test carried on the simulation of drilling machine.And the results suggest that the edge location is accuracy,motor running is smooth,the whole system is simple,the transplantation has strong performance,which improve the sole drilling machine automation level and digital level,reach the requirements of the experiment. |