Documente Academic
Documente Profesional
Documente Cultură
Professor
DESCRIPTION OF PROJECT
Through the knowledge in programming the PIC16F877A, we were able to create a design that functions as a Product Sorter. The design sorts the product by its height, in our design; we have programmed it only with two specific range of height. The design consists of DC motor, servo motors and sensors that is being controlled by the microcontroller. In order to build a conveyor for the system, the DC motor was used, the servo motors serves as the sorter wherein it pushes the product into the designated container. The sensor was positioned to the specific height of products that will pass through the sensor. Signals from the sensor was amplified in order to produce a more efficient signal and passed through the relay for more accurate input bits. When a signal is being sent from the sensor, it will activate the relay and will send a positive signal for an input port on the microcontroller which activates the servo motors. There are two servo motors designated for the two sensors, whenever a signal is sent, both sorters will be pulled by the servo motors, but only one sorter will be pushed inside the container.
limangsegundo: call Delay_1s call Delay_1s call Delay_1s call Delay_1s call Delay_1s goto R180 R180: BSF MOVLW CALL BCF MOVLW PORTC,5 d'5' Delay_10x PORTC,5 d'35' ;180 ; set delay of approx 1.5ms ; ; Turn them off, no more pulse ; set delay of approx 18ms
;delay of 10ms for 4mHz clock Delay_10ms movlw d'10' Delay_10x ;call here with W set allows different delays movwf Delay2 Delay_Loop_10ms Call Delay_1ms ; Call 1ms delay Decfsz Delay2,f goto Delay_Loop_10ms return Delay_1s movlw d'100' call Delay_10x movlw d'100' call Delay_10x movlw d'100' call Delay_10x movlw d'100' call Delay_10x movlw d'100' call Delay_10x movlw d'100' call Delay_10x movlw d'100' call Delay_10x movlw d'100' call Delay_10x movlw d'100' call Delay_10x movlw d'100' call Delay_10x return end