Old Hobby in New Age

After my (mis)adventure with ordering a micro controllers in QFN pack, I decided to play it safe. Meaning take the new things in baby steps. To start in the uncharted territory ordered a development board and programmer from the “source” – Microchip. For the beginner PICKIT2 with LPC development board looks safe one to handle.

LPC+Pickit is good. One can program it without taking it out from the circuit. It has nice LEDs switch and potentiometer that suffice many applications. But soon I realized the full meaning of LPC – L is for limited. One needs more space to connect various things with the LPC. So came a bread board.

 Now, connecting LPC with bread board is not a easy task. Connecting 14 sets of wire is a chore. A bridge connector makes the 14 wire to one connection.

 Concept of modularity gets carried further into break out boards. Here is an array that I got myself end of a couple weeks. From top left is a DIP switch with extra long connector to get firm connection on breadboard, a set of eight pins shorted for getting Vcc to DIP switch, a power supply from battery eliminator, I could not find a resistor block in the local store so made one, next is a LED array to check the states of a port, next is to check 1 bit – green and red, then a piezo buzzer from a discarded clock to make some noise and a set of four LEDs to check a nibble size.

After all the LEDs it is time for some real output – here is a 4 segment LED display. I am using here a CD4511 – BCD to 7Segment decoder/latch/driver. This IC reduces the no of pin required quite a bit, then I use a program to multiplex the display.

Now, connecting the LPC with this board requires some 10 set of wire. This is made simple with another bridge connector. For protection, I encased all the wires in a good dose of glue. Now it will develop any loose connection with multiple handling.
Here is a small timer on my LPC prototype. Requires 3 connections.

 Working with 4511 requires less pin from microcontroller but it has limitation. One can only display numbers with it. Here is another display that is totally software driven and multiplexed. This is made on a stripboard. Connections from LED pins are taken out below the LED resulting in a rather neat appearance.

Next step is a LCD display. LCD is good companion to uCs. It does not need to be refreshed continously, has more number of character and gives better look and feel.

I have put header pins on the LCD display for quick connection to breadboard. But I realized, there is something wrong with this display. Checking LCD display is rather difficult. The display has a uC on its own

 and requires complex sequence of instruction to show anything. There is a nice blog by Suhas [http://iamsuhasm.wordpress.com/tutsproj/using-lcds/] that describes how to check a LCD. COncept is nice, but I felt the PCB can be improved. Some more search on the net got me a nice CAD package – VCAD that supports strip board layout. A weekend on VCAD, I could get the circuit on a 16×16 piece of board. Here is the layout. that you can also use in some place.

While making the board, I found some used components and modified the layout a little bit to use those old rusty pieces.

Result is slightly different, but still needs less footprint and desk space and goes into breadboard without any other additional piece of wire.

Posted in Electronics, Hobby | Leave a comment

My favorite quote

You do your thing and I do mine.
I am not in this world 
   to live up to your expectation.
You’re not to live up to mine.
You are You and I am I.
If we meet, then it is fine.

by Frederick E. Perl  / Bruce Lee
Posted in Art of living, Philosophy | Leave a comment

Remembering fall colors

Posted in My Life, Travel | Leave a comment

Hobby Electronics is not same any more

Gone are the days when electronics hobby meant spending a tidy sum in building most funky amplifier in the town. In my student days it was mostly transistors, with some ICs making its appearance. All electronics had their legs that went nicely inside the holes of a vero board. Sometime a few more adventure loving specimen went ahead and actually made their own PCBs.

I had left electronics in the nineties and thought of picking up the lost thread. In the current state of economics, building amps are no more viable. So I thought of piking up the latest fad in town and ventured into the world of micro controller.

After some research on net and then after reading a bit more on the new animal in technology, I finally ventured into ordering some part. After mousing through the catalog I zeroed on 12f519. Supposed to be a neat tiny piece of silicon. It packs more computing power than what I had used for my first computer project at BHU on a 3rd generation computer.

After a week or so I get a nice package – some 6″ x 3″ cardboard box. I open it, inside there is another box of foam, open that. Now all I see is an envelop.

Inside the envelop there is a tiny pipe. Not to be intimidated, I open the sealed pipe – out come two tine pieces of plastic.

Welcome to the world of qfn package – chips with no legs.

It is nice for miniature piece of appliances, but for hobbyists I hope, there were some better alternative.

Posted in Electronics, Hobby | Leave a comment

Kesab Babu

When we are in class nine we discovered a short, stern figure, He was with short dhoti, khadi kurta, head cocked on one side with Shantiniketani bag hanging at one side. The man symbolized defiance; with an eternal frown he looked as if ready to fight at slightest provocation. This was Kesab babu, our new Sanskrit teacher.

We started to learn Sanskrit from class 8. Someone at board had decided that Sanskrit is good for us. Unfortunately, we could not fathom that goodness and accepted it as our fate.  Usual method of teaching Sanskrit was to memorize the cases of diferent nouns and mugup slokas and regargulate them during exam. It was a chore and we accepted it that way. The subject was the most hated thing, History came close. We had learnt to somehow mug things to pass the exam. On seeing Kesab babu, we braced for another year of tolerating a subject with information that did not seem to serve any practical purpose.

Kesab Babu was a shock! On the first day he skipped the initial verses and went at the middle of the book where there was a short verse from Megadutam. He started reciting the poem. We hardly understood it but liked the rythm. Surprisingly, he was quite good in recitation. Like a jackfruit, despite of his stern appearence, Kesabbabu had good appriciation of poetry. He was also very candid in discussing Kalidasa’s description on the beauty of Yakshini. After his recitation, he proceeded to explain the meaning and all the nuances of case and conjunct words. After the recitation, he proceded on telling a story about Kalidasa, innovation of Meghdutam and the leap of imagination Kalidasa could do to image areal view at an age when no one had experienced air travel.. Suddenly, Sanskrit was looking interesting.

Before he finished, he asked us our name and laid a rule – in his class all conversation will be in Sanskrit. If someone do not understand, he will explain them – but in Sanskrit. He never bothered to teach us those Dhaturup (cases), and left that as something we should pickup in order to understand the words.He will recite slokas and poem and tell us historical and philosophical relevence of these. Hearing these, history started to become interesting. All the kings and events started to be meaningful and relevant with the slokas. It looked, Sanskrit can really be as interesting as reading a novel. We actually started to differentiate between Balmiki’s Ramayana and Kalidasa’s Raghubansha.

Kesab Babu was taken as an miser, living a frugal lifestyle, and was a model of rudeness. Even headmaster used to avoid him and we saw he used to be afraid to antagonize him.. I never remember him contributing a single rupee for things like flag day, flood relief, etc. There was a student in our class. His parents were not well to do and the fellow was pretty bad in studies. We found, this fellow used to meet Kesab Babu during our tiffin time secretly. We are pretty sure, this fellow is doing some kind of spying on us. One day we followed him and found he is eating in a corner of teachers room. Kesab Babu was sitting close by. We wondered, what is going on.

Later that year, we attended Kesab Babu in private coaching class. Once we got to know him a little more personally we asked him, what he was doing with that student. He told, this fellow is good at sports but lacked good food. So he used to bring some egg/paneer for him. In person, Kesab Babu was strict vegeterian and used to do his own cooking. That he will bring egg for this student spending his own money secretly made us very much curious about him.

We used to poke him about his life and one day he told us his life story. Oh Boy! what a story it was.

Kesab babu came from Chattogram – a port town in present Bangladesh that is below the Arakan range. During his class eight, he got motivated by freedom fighters and left study to join a Freedom fighter’s group called Anushilan Samity. He was a child worker, and maintained watch posts, passed on information. He was the leader of boys wing at his location. After spending some three four years with Anushian Samity he got a shocker.. Anushilan Samity was banned for aiding anti British work. The leader – Aurobindo Ghosh suddenly got devine insparation and asked the workers to wound up the operations. Aurobindo Ghosh himself became spiritual leader. He did not do much to protect the organization. An class eight dropout, Kesab Babu, was afraid for his life. He also lacked any proper skill to earn an respectable livelyhood. In the Chattogram Area, Naga Sanyasins are much respected and feared. Kesab babu aspired to be a Naga Sanyasin and fled from his house.

Kesabbabu served Naga Sanyasins for almost five years. Naga Sanyasin remain naked and said to be in full control of their body. Even in coldest of winter, Naga Sanyasin will not cover their body. To his surprise, Kesab babu found these people to be a bunch of farse. They were camoflaged looters who raid house of well to do person with their elephants. They will plunder, take away all they and their chelas liked. The unfortunate person, who’s house were raided wre even not able to protest, for the fear of social ostrasization. Such is the social makeup, people around will think he has been very fortunate to have the opportunity to serve the great Sadhus. The ones who knew, preferred to keep silent. He found there is nothing spiritual in the whole thing. Even, their self control is nothing extraordinary. They use heavy doses of drugs and some surgical procedure. After spending few years with them Kesab babu decided to flee the Sanyasins,

Fleeing the Sanyasins was not an easy task. Sanyasins did not hesitate to kill escapers to keep their secret. In addition there was arraest warrant on him as key member of He was also aware of banning of Anushilan Samity. That meant certain death in the hands of British Police if he was caught.  So he crossed over to Tibet, which is beyond the reaches of both Nagas and British. He heard of a person alled Rahul Sanskritayanan. Rahul was famous as indologist and was sympathatic to freedom movement. On his way to Lasha, he learnt Rajhul is no more in Lasha, and instead gone to Kashmir. So Kesab babu travelled through the silk route towadrs Srinagar. He had no money with him. So he had to work some time in hotel, sometime as waiter, sometime doing menial job in garden. It took him over twoyears to travel the distance. He met Rahul, convinced him about his seinceriety and become his disciple. He studied Indian scripts with Rahul Sanskrityanan for about 14 yrs. He was able to recite all the works of Vedas and Kalidasa from memory. After Rahul Sanskrityan passed away, he needed some job.

Rahul Sanskritayan was a giant. Although he was never given much recognition in free India, he was the architect of what India we see today. During the final days of freedom struggle, Britishers never accepted India as one nation. The India they got was bunch of princely states and Mughal empire; Muslims wanted restoration of Mugal rule, Fact is Mughals during pre-British got only limited to UP and part of MP, rest of India was divided with Peshwas and multiple princely states in between.. It was certain, restoring the status to what India was before Britishers came would have led India to be fragmented into huge number of pricely states, each warring for its suprimacy. The situation would have been very chaotic. It was Rahul Sanskrityan’s interpretation and proof that Chanakya’s laws being the central to ruling of all princely states established India to be one nation composed of several states and become the basis of what we see India as today. Rahul was also seen as great educator in Tibet. He was conferred the title – Mahamohopadhayay – meaning the greatest teacher by Dalai Lama. Kesab Babu had no formal  education, but just the mention of Rahul Sanskrityan’s name got him a job as curator in National Library. After few years however, he got bored with the job in Library and wanted a teaching job. That’s how, he got to be a school teacher.without actually passing any examination.

Althogh Kesab Babu left Naga Sanyasins, he followed their lifestyle to an extent. He would cook his own food and only eat once in a day. He will leave a frugal lifestyle with just few trademark dhoti and kurta. His principle was if you are in control of your needs no one can influence you. That was the basic principle of Naga Sanyasins and he followed it to core. He cared no one and always ready to stand for his principle. He did not even care for the post of headmaster. A very strict discplinarian,t he was kind of gurdain for his students. The fellow I mentioned needed high protine diet for this play, which his parents could not afford. That was Kesab babu’s secret for carrying egg for this guy. I never recall him using more than a frown and a very soft scold when someone did not come up to his expectation. But then, the word will be in such pointed manner and so reasonable the reciepient will be more hurt than severest of punishment other teachers in their arsenal.

We used to ask pretty personal questions about his values and he would answer them cheerfully. Once we asked him, why do you take private tution. He was prompt. He explained, in private tution he can talk on Indian culture, philosophy that is not possible in the short Sanskrit class. In addition his dream was to build a flower garden and a coaching class after his retirement. But someone out there had other design. He died in cerebral attack much before his retirement. That was a big loss for the society. He was one of last relics who believed in building values and character in the students rather than just helping students to cram some information and get good marks in examination. Many things what Kesab Babu said did not make sense at that young age, but it does now. That was greatness of a good teacher, who continue to influence years after one has left his contact.

Posted in Teacher | Leave a comment

View from my balcony

Posted by Picasa
Posted in My Life | Leave a comment

Minnesota State Fair

Minnesota state fair is one place possibly every one in Minneapolis comes. It is part of cultural tradition that dates back to 1859. It is fun to see so many people at a time. Official record shows on this day attendance was 229,943 people. Some number!!!


It is a 12 day long event completing on the Labor Day (1st Monday of Sep). 


Main attractions are Agriculture and Animals. It is also a place to taste authentic local delicacies and enjoy the rides.

Posted by Picasa
Posted in My Life | Leave a comment

Debilal

“Apne safed hati dekh liye” — “Have you seen the white elephant” A short dark man in shorts suddenly darted in front of JRD Tata as he was making his round in the shop floor of Jamshedpur Plant. Most thought this is a mad man, those who knew him thought this time pranks of this man has got beyond tolerance.

The senior officers quickly wisked away this man. There were talks of taking disciplenary action against him. But the personal managers advised against it. To the adivasis around Jamshedpur, this man was a uncrowned king. Any undue punishment will have huge adivashi backlash, so they chose to ignore it as a prank from a half mad character. That was Debilal – a sweeper in Plant-III of Tata Motors.

Debilal was in his mid-thirties, he was very sincere in his job and will always be humming some song. Although he was a janitor, he will occasionally pull some pranks on officers. There used to a bully officer who loved to shout at the people on smallest slip. One day Devilal got a dog with a shirt and specs . On back of the shirt written “Mukho” with big letters and let loose the dog in shopfloor.

In the nearby villages Debilal was counted as a man with great wisdom. People will come to him for all kind of advice. No one took any penal action against him and learnt to live with these  pranks as sign of madness.

Next day, as Debilal came to clean the room I asked him why did you tell such thing to Tata. Here is the dialog:

Me:     Why did you jumped in front of  Big Boss

Debilal: I was refering to the new Forge Plant you people have put up. I thought he is wise man and would listen to me.

Me: What is wrong with the Plant

Debilal: It is a White Elephant. Just a costly show piece that does no good

(I thought, this has gone too much – this illeterate sweeper is questioning wisdom of Engineers.  The plant he was referring was fully automated forge plant that produces Front Axle Beam and Crank Shaft. In early 80s, that was the best technology one could get.

Moreover, fresh from PG in Industrial Engg, I thought, let me teach this fellow not to mess with professionals. To teach him a lesson, I started to question in the ragging style.)

Me: Really! How do you say this plant is costly. It has all robots – latest technology in the world

Debilal: Maybe it has lot of new technology, I am a stupid fellow, I can only count on what it produces at what cost

Me: (Oh my God! What does this fellow know about cost)  What is to cost

Debilal : OK! let us start from the begining – there is the old plant that produces Crank Shaft. How many burners are there in the old plant and in the new plant to heat the material

Me: (I was taken aback – not sure) You tell me

Debilal: In the old plant there are 8 burner, in the new furnace there are 12 of them. That’s because new furnace a wide opening for the robotic arm, in old furnace operators could manipulate material with a much smaller opening. In addition old furnace was round like a “Handi” New one is a straight one that only heats the shop, not the iron.

Me: (Now cautious) OK, Fuel cost is not all you know

Debilal: Well, old plant just needed half a bay, new plant requires two full bay

Me: New Plant do not require any man.

Debilal: Who says – It still require two operators to take care of occational miss, then it requires one person to continiously do maintenance and has a maintenance staff of five to do maintenance on regular basis. In the contrary, old plant was much simpler, just required five operator and only a weekly maintenance. The only thing the new plant has over the old one that it do not require the skilled forge smiths, you can run the plant with engineers and operators without any experience. But it takes more people.

Debilal: Not only the plant is costlier to operate, it produces less job per hour. Robots produce only 30 odd piece  per hour against 45 piece in the manual operation. Moreover it requires special billets without any bend in the new line. Old line could manage with some small bend in billets.

(Now my ego totally shattered – I realize this non-matric sweeper, has just taken a class on benchmarking. Still I had not learnt the lession. As last resort I try –)

Me: OK, I take the new plant may be more costly. Actually there are more thing to cost than the comparison you did. But tell me, what is your stake in blocking Tata’s way. What you have to get out of it.

Debilal: This land belongs to me, we people have created this land from forest. You people from outside have come with your money and knowledge and converted the paddy field to a truck factory. We are thankful to you. But at the same time, if people are not working to best of the intension then it is my duty to raise voice and object.

Debilal: As I see it, this new plant is only good in replacing skilled adivasis with urban, unskilled, college educated folks. Had it been more productive, I would have still accepted it, but as it stands, this new plant is not even as productive as the old plant. This I can not tolerate. If Mr. Tata did not listen me on one to one basis, he will have to face mass movement in future.

Saying this, Debilal left the room, humming – “Bombay se aya mera dost, dost ko salam karo…”

Now, I felt what Adi Shankara must have felt in the bylanes of Varanasi. I saluted Debilal in my mind and hold him as one the great teacher I have come across.

Posted in Art of living, Philosophy, Teacher | Leave a comment

A Personal Website

A personal website is like owning your own house in the cyberspace. Like house, it comes in all shapes, sizes, features, flavors. It also has its own advantages and issues. Craze for personal website started with GeoCities and AltaVista making it easy to create a website for your own. While it satisfied the narcissist within us, soon we realized its limitation.

One puts up a website for various reasons. Most important that comes to my mind are:

Web presence: You may like to grab a piece of cyber reality, have your identity known around cyber world. At times, you feel comfortable to have a bill board that people may give more attention than they give it your card.

Information dissemination: You may like to tell those things that no one seem to listen. Putting them in nice font and format may look more promising than standing on the podium at market corner

Collaboration: You may need to share information that require little more structure than what is available in simple mail

Consolidation of information: You may use web mashup or pool information from other web pages for analysis. Facebook, orkut, Google News, iGoogle, myYahoo are good examples of these

Showcasing talent: You may want to show case your skill of photography, performing art in picasa, flicker, you-tube etc.

E-Commerce: You may be interested in buying and/or selling things online

Data Repository: Some may use cloud computing, and shift their information repository to online

Today there are number of option to host the website. You can use a free site like google-site or take some shared box webhost service costing less than $10 per year or chose to host it on data center. It all depends on what kind of traffic you expect to get and what kind of material you want to distribute.

If your page is like Richard Stallman – simple with only text then you will be able to manage even very high hit rate with relatively low end server. On the other hand a website heavy with flash and graphics, say like J K Rowling’s will need a high end server even for a modest number of hits.

Apart from cost, there are other consideration of service reliability and connection speed. In such cases many free sites offered on piggyback of big players offer advantage.

Web space requirement is the next improtant factor; essential but can be managed. Once I had a request from a professional society to make them a Content Management System. Now a CMS like Joomla or Drupal takes almost 5MB space just for the core software, your own stuff comes over and above that. But with careful redisn, it is possible to reduce even a CMS to less than 1 MB. tinyCMS was result of that effort. In similar line you have simpleBlog and TigerWiki.

This is not a problem, if you plan to setup the server from your own home. If you have a broadband connection and willing to put up your machine always on and connected to internet then setting up a website at your home desttop is a simple thing. (more of that in my later blog)

One thing personal website, in own setup suffers is ranking in search engine. These gives higher rating to known popular sites rather than low traffic pesonal site. As an example my blog – http://soumyanath.blogger.com has about ten times more traffic than my earlier blog http://www.soumya.name/blog

In current context perhaps, it is not going to be a choice of setting every thing up at one nice little site with a monolithic site. Current age is of clound computing and mashups. So put your stuff in various places, mixthem and present at a site with consolidation, parts of the stuff may come from various other sites which may or may not be owned by you.

Posted in web technology | Leave a comment

Simple Electric motor

This is a simple motor with explanation how it works

This one takes the cake in its innovation:  So simple, that it is now difficult to explain

Posted in K12 | Leave a comment