Professional Documents
Culture Documents
Universidad Autónoma de Yucatán: Facultad de Ingeniería
Universidad Autónoma de Yucatán: Facultad de Ingeniería
FACULTAD DE INGENIERA
Digital Sistems II
INTRODUCTION The conveyors are continuous transport systems, thus it can be found in the industry and others areas, like agricultural. The present project search to adapt, the system mentioned before, an optical medium to select pieces, getting an object classifier. DEVELOPMENT The present prototype involves areas that are very important to its development and control. To get a good explanation, it will be divided in the following steps: a)Mechanic and Electronic Assembling b) The conveyors Control c)The Selection Process a) Mechanic and Electronic Assembling To the mechanic assembling, were used too many recycling things, like the rail and some supports (these were useful to hold the camera and the servomotor). The main rail has several openings to adapt sensors, the griper of the servomotor (to get out the rejected coin), and the rails where are released the processed coins.
The electronic section has optocouplers that protect the FPGA ports. Besides, it has included transistors and comparators that condition the analogic signal.
O P T O A C O P L A D O R P U E R T O S C O N T R O
E S
Figure 2. Electronic Interface b) Conveyors Control (FPGA) The control of the conveyor involves two State Machines: The first watch the mechanisms state and the sending the byte to get the picture, that depend if the coin is in the camera focus. When the FPGA receive the high level logic, from the sensor, it sends a Byte toward LabView by the UART, keeping itself in the waiting state to receive other byte that represents the classification of that coin after analyzed. That Byte is saved in the FIFO memory from the receptor UART, to store the results in order.
The second control the position degree of the servomotor. This amount depends of the received Byte, while each of this will be read if the FIFO isnt empty and the coin is released.
To Read FIFO
Accepted (Sensor 2)
*State #3 After a decision was took, based in the similarity of the Invariant Moments, a byte is sending to the FPGA, backing to the first state waiting the order to process other image
c) The Selection Process (LabVIEW) The central logic of LabVIEW consists in one State Machine, which has the following 3 states: *State #1 While the buffer doesnt receive any byte, the process stays in this state, in other case, pass to the next state. This let us to have a control of the sending Bytes, because the FPGA only receive information when is necessary.
Figure 7. Sending Byte CONCLUSIONES The use of an FPGA in the construction of industrial systems is very efficient, because it allows control over the whole system in a coordinated and synchronized way. Additionally, it is possible to control a set of mechanisms as presented in this report, so is possible to create a synchronized and controlled industrial network. It is intended to replace the camera from the computer for a digital camera with UART communication toward the FPGA, to sorting processes are performed on this platform and get a complete Embedded Vision System.
Figure 5. Reception Byte *State#2 By this SubVI, is implemented the calculus of the Invariant Moments of the captured image and is compared with the pattern image. .