A MECHANISM TO REDUCE WASTE DUE TO VOLTAGE DIPS IN NARROW FABRIC LOOMS A dissertation submitted to the Department of Electrical Engineering, University of Moratuwa in partial fulfillment of the requirements for the Degree of Master of Science by H.K.L GAMINI Supervised by: Dr. J. P. Karunadasa Department of Electrical Engineering University of Moratuwa, Sri Lanka 2010 94846 Abstract Like any other industry, apparel industry too tries to minimize their product cost by reducing production waste. Voltage fluctuations and power failures are two of the most concerning factors affecting the production. Even though these voltage fluctuations & voltage failures affect different kinds of looms at different degrees, its effect on the weaving looms which manufacture elastics is severe. As a narrow fabric elastic manufacturer it has been faced difficulties in minimizing the number of joints in the fabric (tape), which is a direct consequence of the same. There are no research papers or commercial devices found to minimize the fabric joints in case of voltage dips or short period voltage interruptions. The significance of the proposed system is its ability to sense the voltage dips/sags or interruption with the fast AC to DC converter and take decisions intelligently to suit the situation prevailed, e.g. whether to let the machine run or stop depending on the time elapsed. The brain of the controller 0" isa '--peripheral interface controller (PIC) and is programmed as assembly language. MPLAB Software compiles assembly to hex codes and the required sequence of signals is generated from PIC. This signal is sent to control unit of the loom via the DPDT relay to hold down the control. switches to perform the controller operations of the looms within a 3 second period during the short-time voltage variations such as interruptions and dips. Numerous other applications are possible with this system in other industries too. One is in the rubber extruder and another is mixing mill in manufacturing rubber tires. D E C L A R A T I O N T h e w o r k s u b m i t t e d i n t h i s d i s s e r t a t i o n i s t h e r e s u l t o f m y o w n i n v e s t i g a t i o n , e x c e p t w h e r e o t h e r w i s e s t a t e d . I t h a s n o t a l r e a d y b e e n a c c e p t e d f o r a n y d e g r e e , a n d i s a l s o n o t b e i n g c o n c u r r e n t l y s u b m i t t e d f o r a n y o t h e r d e g r e e . \ ! 1 \ ! ! \ , r ' ~ , • l \ , ! ' · ' I I . K . L i Q C } I D i n i D a t e ' J - , c 1 • ) _ ( r ~ I e n d o r s e t h e d e c l a r a t i o n b y t h e c a n d i d a t e . / ~ ' / - - ' ~ ~-·JI/:... , : ) t _ , L D r . J . P . K a r u n a d a s a S u p e r v i s o r A C K N O W L E D G E M E N T F i r s t I p a y m y s i n c e r e g r a t i t u d e t o D r . J . P . K a r u n a d a s a \ v h o e n c o u r a g e d a n d g u i d e d m e t o c o n d u c t t h i s r e s e a r c h a n d o n p e r p e t r a t i o n o f f i n a l d i s s e r t a t i o n . I m a k e t h i s o p p o r t u n i t y t o e x t e n d m y t h a n k s t o P r o f J . R L u c a s a n d D r . N a l i n \ V i c k r a m a a r a c h c h i , D r . L a n k a U d a w a t t a a n d c o u r s e c o o r d i n a t o r M r W . D P r a s a d C o r t h e v a l u a b l e i n s t r u c t i o n s g i v e n t o m e d u r i n g t h e p r o j e c t . I f u r t h e r t h a n k t o t h e o f f i c e r s i n p o s t g r a d u a t e o t 1 i c c a n d p e o p l e w h o s e r v e i n t h e d e p a r t m e n t o f E l e c t r i c a l E n g i n e e r i n g o f f i c e , f a c u l t y o f e n g i n e e r i n g , U n i v e r s i t y o f M o r a t u w a f o r h e l p i n g i n n u i o u s w a y s . I \ V o u l d l i k e t o t a k e t h i s o p p o r t u n i t y t o e x t e n d m y s i n c e r e t h a n k s t o M r . D . C J S u b a s i n g h e ( M a n a g e r P o w c r g c n T r a d e P r o m o t e r s ( P v t ) L t d ) , M r . N . M R c r k y ( S e n i o r T e c h n i c i a n S t r c t c h l i n e ( P v t ) L t d ) , M r . I T . I H e t t i a r a c h c h i ( S e n i o r E n g i n e e r i n g E x e c u t i v e S t r e t c h l i n c ( P v t ) L t d ) , M r . P . S u g a t h ( E l e c t r i c a l E n g i n e e r S c h n e i d e r l : l c c t r i c ) , M r . H . W J a y a n t h a H e w a w a d u g e ( S e n i o r E n g i n e e r E x e c u t i v e S t r e t c h ! i n c ( P v t ) L t d ) . M r S h a m m i e d e S i l v a ( P r o j e c t E x e c u t i v e - S t r e t c h l i n e ( P v t ) L t d ) , M r N . P A t h u k o r a l a ( M a r k e t i n g M a n a g e r H a r r i s & M c n u k ( P v t ) L t d ) , M r K r i s h a n W e e r a w a n s a ( D i r e c t o r S t r c t c h l i n c ( P v t ) L t d ) . M r K u m a G a n e g o d a a n d M r A . J . R C h a n d r a k u m a r a ( M a n a g e r P e r s o n n e l & A d m i n S t r e t c h l i n e ( P v t ) L t d ) , \ V h o g m e t h e i r c o - o p e r a t i o n t o c o n d u c t t h e r e s e a r c h a n d t o d e v e l o p t h e P r o t o t y p e d e s i g n s u c c e s s f u l l y . l t i s a g r e a t p l e a s u r e t o r e m e m b e r t h e k i n d c o o p e r a t i o n e x t e n d e d b y t h e c o l l e a g u e s i n t h e p o s t g r a d u a t e p r o g r a m m e , f r i e n d s , m y s u b o r d i n a t e s i n t h e o f t i c c a n d e s p e c i a l l y m y w i C e v v h o h e l p e d m e t o c o n t i n u e t h e s t u d i e s f r o m s t a r t t o e n d . F i n a l l y . I s h o u l d a l s o a d m i r e t h e p a t i e n c e o f m y b e l o v e d k i d d u r i n g t h e p r o j e c t . I l l D e c l a r a t i o n A b s t r a c t ! \ c k n o w l c d g e m e n t C o n t e n t s L i s t o f T a b l e s L i s t o f F i g u r e s 1 . I n t r o d u c t i o n 1 . 1 B a c k g r o u n d 1 . 2 M o t i v a t i o n 1 . 3 G o a l s C O N T E N T S 1 . 3 . 1 H a r d \ \ a r e D e s i g n 1 . 3 . 1 . 1 S e l e c t i o n o f R e l a y ( P C B d r i v e r ) 1 . 3 . 1 . 2 S e l e c t i o n o f t r a n s i s t o r ( R e l a y D r i v e r ) 1 . 3 . 1 . 3 S e l e c t i o n o f o p t o c o u p l e r 1 . 3 . 1 . 4 S e l e c t i o n o f P e r i p h e r a l l n t e r h 1 c e ( P I C ) 1 . 3 . 2 S o f t v v a r e D e v e l o p m e n t 1 . 3 . 3 I m p l e m e n t a t i o n 1 . 4 A c h i e v e m e n t i n b r i e f 2 . P r o b l e m s t a t e m e n t 2 . 1 I I ! ' ) L . . _ ) . I d e n t i f i c a t i o n o f t h e m a c h i n e s t a t e s B e h a v i o r o f t h e m a c h i n e c o n t r o l l e r t o t h e v o l t a g e s I d e n t i f i c a t i o n o f t h e P r o b l e m 2 . 3 . 1 S t o p m a r k 2 . 4 O b j e c t i v e o f t h e p r o j e c t 3 . H a r d w a r e D e s i g n o f t h e s y s t e m 3 . 1 M i c r o c o n t r o l l e r t y p e f o r t h e a p p l i c a t i o n ( M C U ) 3 . 2 S o m e r e l a t e d f e a t u r e s o f p e r i p h e r a l i n t e r f a c e c o n t r o l l e r ( P I C ) 3 . 3 S e l e c t i o n o f M i c r o c o n t r o l l e r u n i t ( P I C ) P a g e N o . . . 1 1 I l l I V \ ' 1 V I I . . . . . \ ' 1 1 - V l l l I 4 4 4 4 4 4 5 5 5 7 7 X 1 0 1 1 1 1 1 3 1 3 1 ' ) _ ) 1 3 I V 3 . 3 . 1 T h e P I C 1 6 F 8 8 7 ! \ b a s i c f e a t u r e s 3 . 3 . 2 P I N A s s i g n m e n t o f P I C 1 6 F 8 7 7 A 3 . 3 . 3 D e v i c e b l o c k d i a g r a m 3 . 3 A P r o g r a m m e m o r y o r g a n i z a t i o n 3 . 3 . 5 D a t a M e m o r y O r g a n i z a t i o n 3 . 3 . 6 O s c i l l a t o r 3 . 3 . 6 . 1 T y p e s o f o s c i l l a t o r s 3 . 3 . 6 . 2 X T o s c i l l a t o r 3 . 3 . 6 . 3 R C o s c i l l a t o r 3 . 3 . 7 ! I i g h s p e e d 1 0 b i t A I D c o n v e r t e r 3 . 3 . 7 . 1 P o r t s 3 . 3 . 7 . 2 I n p u t O u t p u t p o r t s 3 . 3 . 7 . 3 P O R T a n d T R I S 3 . 3 . 8 T i m e r T R M l 3 . 4 P h o t o t r a n s i s t o r O p t o c o u p l e r 3 . 5 P r e c i s i o n A C / D C C o n v e r t e r 3 . 6 C a l c u l a t i o n o f t h e c o m p o n e n t s 3 . 6 . 1 P u l l d o v m r e s i s t o r o f t h e o p t o c o u p l c r 3 . 6 . 2 C u r r e n t l i m i t i n g r e s i s t o r ( R v ) 3 . 6 . 3 C u r r e n t l i m i t i n g r e s i s t o r ( R b ) . t . S o f t w a r e D e s i g n o f t h e s y s t e m 4 . 1 I n t r o d u c t i o n 4 . 2 M e t h o d 4 . 3 A l g o r i t h m 4 . 3 . 1 S o f h v a r e d e v e l o p m e n t f l o w c h a r t 4 . 4 R e s o l u t i o n a n d T i m e 4 . 4 . 1 R e s o l u t i o n o f t h e A n a l o g s i g n a l 4 . 4 . 2 A c q u i s i t i o n t i m e f o r t h e A n a l o g m o d u l e 4 . 4 . 3 B a s i c o p e r a t i o n o f t h e p r o g r a m 4 . 5 S c h e m a t i c c i r c u i t d i a g r a m s 4 . 5 . 1 S o m e p h o t o g r a p h s o f t h e S P V D A 4 . 5 . 2 M a c h i n e c o n t r o l l e r c i r c u i t d i a g r a m 1 5 1 7 2 0 2 0 2 1 2 2 2 2 2 2 ) " - - ' 2 5 2 5 2 6 2 6 2 7 2 8 3 0 3 2 , , -'~ , , . L ) 3 4 3 6 3 6 3 7 3 7 3 8 3 9 3 9 3 9 4 0 4 1 4 4 4 5 \ ' 5 . S t a t i s t i c a l a n a l y s i s o f d a t a 4 6 5 . 1 C a t e g o r y o f w a s t e 4 6 - , . . , ) . . c . M o n i t o r i n g o f r e s u l t s 4 7 5 . 3 A n a l y s i s o f t i m e w a s t e 4 8 5 . 4 A n a l y s i s o f p r o d u c t i o n w a s t e 4 9 5 . 5 B u d g e t a r y R e q u i r e m e n t 4 9 6 . E x p e r i m e n t a l R e s u l t s a n d C o n c l u s i o n 5 0 6 . 1 . T e s t i n g a t s i g h t 5 0 6 . 2 . C o n c l u s i o n 5 1 R e f e r e n c e s 5 3 A p p e n d i x A A s s e m b l y c o d e s o f t h e p r o g r a m 5 4 A p p e n d i x B T r a n s i s t o r D a t a s h c c t 5 9 A p p e n d i x c S i l i c o n R e c t i f i e r D i o d e D a t a s h e e t 6 0 A p p e n d i x ) ) P C B R e l a y D a t a s h e e t 6 2 A p p e n d i x E C o n t a c t o r R e l a y T h r e s h o l d v o l t a g e s 6 5 A p p e n d i x F O p e r a t i o n a l A m p l i f i e r D a t a s h e e t 6 6 A p p e n d i x G O p t o c o u p l e r C N Y 1 7 - 1 D a t a s h c e t 6 9 A p p e n d i x I I P h o t o g r a p h s o f t h e m a c h i n e 7 2 \ ' I L i s t o f t a b l e s T a b l e n u m b e r I D e s c r i p t i o n T a b l e 2 . 1 I C o m b i n a t i o n s o f m a c h i n e s t a t e s . T a b l e 2 . 2 I B e h a v i o r o f m a c h i n e c o n t r o l l e r t o d i f f e r e n t v o l t a g e l e v e l s . T a b l e 2 . 3 I . B e h a v i o r o f o t h e r c o m p o n e n t t o d i f f e r e n t v o l t a g e l e v e l s . T a b l e 3 . 1 I P I C 1 6 F D e v i c e F e a t u r e s T a b l e 3 . 2 P I N A s s i g n m e n t o f P I C 1 6 F 8 7 7 i \ T a b l e 3 . 3 P I N A s s i g n m e n t o f P I C 1 6 F 8 7 7 A ( c o n t i n u e d ) T a b l e 3 . 4 P I N A s s i g n m e n t o f P I C 1 6 F 8 7 7 A ( c o n t i n u e d ) T a b l e 3 . 5 I B a n k s e l e c t i o n T a b l e 3 . 6 I C a p a c i t o r s e l e c t i o n T a b l e 3 . 7 O p t o c o u p l e r P a r a m e t e r s T a b l e 3 . 8 O p t o c o u p l e r E l e c t r i c a l C h a r a c t e r i s t i c s T a b l e 3 . 9 R e s i s t o r s o f o p t o c o u p l e r c i r c u i t T a b l e 5 . 1 S o l i d v v a s t e d a t a i n y e a r 2 0 0 8 T a b l e 5 . 2 V o l t a g e d i p s a n a l y s i s r e p o r t L i s t o f f i g u r e s F i g u r e n u m b e r I D e s c r i p t i o n F i g u r e 1 . 0 I S e q u e n c e o f d e s i g n . F i g u r e 2 . 1 I S c h e m a t i c d i a g r a m f o r m a c h i n e c o n t r o l l e r F i g u r e 3 . 1 I P I C 1 6 F 8 7 7 P i n d i a g r a m F i g u r e 3 . 2 I I n t e r n a l a r c h i t e c t u r e o f P I C m i c r o c o n t r o l l c r F i g u r e 3 . 3 ! M e m o r y m a p F i g u r e 3 . 4 I C o n n e c t i o n s o f t h c c r y s t a l O s c i l l a t o r . F i g u r e 3 . 5 F i g u r e 3 . 6 O s c i l l a t o r c l o c k s i g n a l F i g u r e 3 . 7 V l l f i g u r e 3 . 8 F i g u r e 3 . 9 F i g u r e 3 . 1 0 F i g u r e 3 . 1 1 F i g u r e 3 . 1 2 F i g u r e 3 . 1 3 F i g u r e 4 . 1 F i g u r e 4 . 2 F i g u r e 4 . 3 F i g u r e 4 . 4 F i g u r e 4 . 5 F i g u r e 4 . 6 F i g u r e 4 . 7 f i g u r e 4 . 8 F i g u r e 5 . 1 F i g u r e 6 . 1 C u r r e n t l i m i t i n g r e s i s t o r a t R R 1 C u r r e n t l i m i t i n g r e s i s t o r a t R B 2 P r o c e s s o f c o m m u n i c a t i o n b e t v v e e n a m a n a n d a m i c r o c o n t r o l l c r . F l o w c h a r t f o r s o f h v a r e d e v e l o p m e n t A n a l o g m o d u l e f o r ; \ c q u i t t i n g t i m e . C o n t r o l c i r c u i t o f t h e m i c r o c o n t r o l l c r c i r c u i t P o w e r c i r c u i t o f t h e A C / D C c o n v e r t e r E x t e r n a l a p p e a r a n c e o f t h e d e s i g n D e s i g n c i r c u i t w i t h m a c h i n e c o n t r o l l e r W e a v i n g l o o m m a i n c o n t r o l u n i t c i r c u i t d i a g r a m W a s t e a n a l y s i s M o t o r c u r r e n t v a r i a t i o n f o r m o m e n t a r y i n t e r r u p t i o n V I I I