Showing posts with label Rotary Encoder. Show all posts
Showing posts with label Rotary Encoder. Show all posts

Day 31: Codes of Life


Week number SEVEN! Here we go! Hey, wake up! Its 6.30am! Go and iron your clothes NOW! That tiny voice inside my head won't stop bothering me until I get off that bed! Half awaken, went to the cupboard and took a set of attire and went to the ironing board. Sometimes life feels like a big computer program. The 5 senses act like an input device while the hands and legs outputs the preprogrammed tasks. The brain is obviously the central processing unit. Can somebody come and program my brain to be like Mr. Einstein?

Alright, enough with the nonsense. Today has got nothing to do with inverters, AGAIN! No fieldwork today, just another day in the office. But tomorrow I will definitely go out, according to Mr. James. In the morning I did some filing work, then Mr. James gave me a set of gadgets consists of a switching PSU, weird-looking rotary encoder and its best friend, the counter. Whenever you see a rotary encoder, there's definitely a counter connected to it. Supposedly, when the rotary encoder rotates one unit, the counter will count one unit and resets when it reaches a certain preset value. I may have discussed this on the early days of my blog post. The setup is shown below:



What a funny looking encoder! At first glimpse one may think this is the code-manipulator-thingy of a safe! In fact, it looks just like one! But beware, your eyes can fool you! Ok back to the story. The reason why the switching PSU is needed is because the encoder can only accept 5VDC as input unlike its best friend which can consume the household 230VAC like a hungry beast! In short, when everything is connected properly, the counter will reset when the encoder completes one revolution. 

After lunch Mr. James asked me to play around with the Panasonic PLC. He asked me to program the PLC to control some input device and outputs to a relay. Before he went out, he asked me to connect the photoelectric switch and the relay to the PLC. With the help and guidance of Mr. James I managed to connect them and start work on the programming. The setup is shown below:



Initially I only used a single switch and relay to simplify my program and to start learning slowly. Mr. James went out at 2.30pm so I have until 5.30pm to experiment with the ladder diagram and the PLC. Again I would like to stress out that PLC programming is totally different than PIC18 programming. There's no "code" for a specific task, only "symbols" that can be either ON of OFF. Not to mention the limited types of symbols a ladder diagram can have (sometimes less than 10 symbols) unlike the 77 instructions of a PIC18. For beginners, its tougher than the MicroP subject! But I slowly learn and managed to do a simple input-output program that works.

Went back at 5.25pm today. Traffic was amazing! The journey back took a record-breaking 35 minutes! Normally the drive back took about 50 to 75 minutes. Maybe because coincidentally most of the traffic lights are green along Persiaran Kewajipan. If only life is that easy.. 

Day 10: Two is Better than One

Yes, thank you Captain Obvious! Of course two brains are better than one lonely brain! Today my collie didn't show up for work! I was quite lonely today..huhu..well not for long. Today is full of meaningful activities. Started off the day by learning a new component. The "Pilot Lamp". The pilot lamp is normally used to indicate if there's any fault in the machine. Its like an LED on steroids because it uses either 24VDC or 240VAC to power it. In my case it is used to see the state of the output of the SSR. I connected them to the output of the solid-state relay (SSR). Remember I mentioned about SSR last week? Below is how the SSR looks like. At the end of this assignment I learnt how to connect the pilot lamp. The connection is shown below. Its not clearly visible though.



Today Mr. James brought me around Shah Alam and Petaling Jaya to deliver some stuffs to the customer. Then we went to Giant Hypermarket near UNITAR. Guess what? Mr. James "belanja" me KFC at the hypermarket! Wow what a great employer! Thanks a lot Mr. James!!

Then we revisited the food factory in Shah Alam again to look at the counter. Its the same machine that I described on Day 8. Apparently the relay mechanism under the table that controls the motor and the relays are not synchronized with the other two relay mechanism. I managed to set the counter such that the open-close-open-close rate of the clamper is synchronized with the other two clampers but somehow the relays that controls the motor and something else under the table had a different on-off pattern than the rest. Quite a stressful moment I would say because I was given a time limit by Mr. James and I fail to solve the problem. But its all part of the challenge of being an engineer. Feels great to have experienced such a situation.

Then we went to an LED and semiconductor manufacturing factory to inspect their UPS system. Too bad the UPS system is outside of the factory, away from the manufacturing plant. I wish to see the doping process of a semiconductor and how to fabricate the LED. Ok back to the story. The UPS is used to control the factory's compressors. There are so many compressors around all the size of a car! I wonder why they need such a big compressor. At the control panel I saw BIG and THICK wires! Its the thickness of the rope used in "tarik tali" competitions. It is used to carry a whopping 1200 Amps of current! Those amps not only kill, it will fry the unlucky fellow in moments!
The compressors are located in an isolated room outside of the manufacturing plant. Its very noisy and hot inside the room with all that compressors heating up and the high level of noise they generate. Truly an uncomfortable place to work at. Lucky I was in the room for a short period of time. Once the UPS is wired, the compressor (the one controlled by the UPS) is powered up. The sound of the compressor powering up is melodious. Its like a Lamborghini engine being powered up but the noise is a lot louder and lasts longer. Very nice melody.

Today I saw two UNITEN students on the road! One in LDP near the big Western Digital Factory. I can't recall the guy's name but he's driving a black saga aeroback plate number WHP3090. He looks quite stressed maybe because the highway was jam-packed at that time. The other one on my way back home at Kewajipan intersection. I don't know this guy but I always see his car in UNITEN. He's driving a green satria plate number MAM 11. I know this car because of the plate number. Very unique.

The week's over! Time to rest. But I feel like going out tomorrow. Maybe to OneUtama or The Curve just to look around and buy some stuffs. Its been a while since the last time I went shopping.. Yes you read correctly. Shopping. Women are not the only ones holding many shopping bags in the Megamall you know!

Day 6: Long Way to Go...


Monday blues..every worker has it. The weekend is never enough to relax the mind, body and soul after 5 days of hard labor. Is it just me or time seem to flow faster during the weekends? If only Mr. Einstein lived a little longer and invent the time machine..

Today is mainly about rotary encoder and counters. I was asked to test the newly purchased counter device and a rotary encoder. The rotary encoder is used as the input to the counter. Basically, a rotary encoder is a kind of motor that converts its relative angular position to digital signal that is then used to precisely measure length, angle and robotic components. In my case, the angular position is output-ed at the counter. Here's the setup to test both the counter and encoder:



First and foremost, read the manual. The reason why is that I need to know the circuit connections and how to setup the counter to meet the customer's specifications. What I meant by setup is the number of decimal value, enabling the memory function and some other parameters. One revolution of the encoder equals to 1000 units at the counter. Once that value is reached, the counter resets. One can easily understand the application of a rotary encoder and a counter by looking at the picture below: (taken from the manual)



Briefly, it is used to precisely cut a preset length value of paper/sheet/whatever you can think of. The rotation of the encoder that correlates to the length can be easily calculated by applying some formula (not shown here). The purpose of the counter is to set and display the length values.

After lunch, Mr. James brought me and my collie to a factory in Kapar, Klang to deliver some stuffs to the client. Then we went to a food manufacturing factory in Shah Alam to install a counter. To enter the manufacturing department, visitors (me) must wear a safety jacket, hair cover, face mask and a specialized plastic bag to cover the shoe. All provided by the factory. Then before entering the department, we have to go through a small chamber. Inside the chamber were air blower that blows off any dirt from us. Its like in the movies where there's a "clean room" where anyone who wants to enter must go through the cleaning chamber. Too bad  I have no pictures of myself wearing all those stuff. Somehow I feel like a doctor wearing that face mask and the safety jacket..

On the way to the factory we went through Section 7 of Shah Alam. Guess what I saw? Mansions! Oh my God those mansions are HUGE! Some were as big as a mini shopping mall! They must be worth tens of millions each! I wonder what these people do for a living! The mansions kept me drooling..well not physically but mentally of course..wouldn't want to smear Mr. James car with my drool..Should have taken a photo of those mansions. That is someone's dream that came true! Quite an inspirational view!

Inspirational indeed. The owners must have gone through some hard times before. Something like what I'm going through now. If they can make it why not me? THAT is still a long way to go though...but I'll get there..god willing..

Older Posts Home

About Me

My photo
Born in Klang during the Year-of-the-Dragon on the month of Scorpio. Currently 171cm tall, quite skinny with the face of a 17 year old. Perfect Melancholy Personality trait. Timid, loner, hardworking, dedicated to a job and full of ideas. Loves to feed stray cats and often nicknamed "kucing" by friends.

Followers