Friday, November 11, 2011
Wednesday, October 12, 2011
Online passwords how and where?
In on-line browsing your email id is your identity. It is unique.Never trust an email id unless you have exchanged id physically or any other secure communication.
Friday, September 23, 2011
Udayavani Download-Perl Script
I read the paper online in the link: http://epaper.udayavani.com/. I had a problem here:After reading first page, I needed to wait sometime to download second page and so on. Most of the time I got irritate with this. In order to solve the problem, I used a small script which download the whole paper to the desktop directory.
Nb: There is nothing special in this code. Just(Junk) do it(JDI).
The perl code is here
#### New udayavani, with self date and directory of download.
###date 10/09/2011.
print "===================================\n
Welcome to Udayavani e-paper
\n===================================\n";
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);
$dd=$mday;
$mm=$mon+1;
$yy=$year+1900;
print "Date:",$dd,"-",$mm,"-",$yy,"\n";
print "\n===================================\n";
#=====Date conversion
if ($dd<10){
@day[0]=0;
@day[1]=$dd;
}
else{
@sdd=split(//,$dd);
@day[0]=@sdd[0];
@day[1]=@sdd[1];
}
#=== @day;
#==========month conversion;
if ($mm<10){
@month[0]=0;
@month[1]=$mm;
}
else{
@smm=split(//,$mm);
@month[0]=@smm[0];
@month[1]=@smm[1];
}
#===@month;
#=================year conversion;
@syy=split(//,$yy);
shift(@syy);
shift(@syy);
$date=@day[0].@day[1].@month[0].@month[1].@syy[0].@syy[1];
#print "\n\n", $date,"\n\n"; converted value.
#========download converion for links
@letters=split(//,$date);
$date_part="2011-".@letters[2].@letters[3]."-".@letters[0].@letters[1];
$j=0;
for($i=1;$i<17;$i++){
if($i<10){
@letters[9]=0;
@letters[10]=$i;
}
else{
@letters[9]=1;
@letters[10]=$j;
$j=$j+1;
}
#print @letters,"\n";
$pageName=join("",@letters);
$pageName="Man".$pageName."M.pdf";
$link="http://epaper.udayavani.com/PDF/MANIPAL/".$date_part."\/".$pageName;
print $link,"\n";
#print $pageName;
system("wget --directory-prefix=/home/venkat/Desktop/Udayavani $link");
}
====end of the code =====
Thursday, September 8, 2011
Audio Volume-In noisy environments
Many times, we need to be in different environments/surroundings where noise level is not constant. If we are listening music in the cool surroundings the volume of the audio may be 5% of the maximum, however, if we are in market area we may need to raise it to 100%.
Since surrounding noise(also called as ambient noise) greatly influence on the volume of audio we like to have. My idea is why we should not design a volume controller such that volume of audio automatically increases or decreased depending on the ambient noise level ?
There is some kind of technique called ANC-Active Noise Cancellations (http://en.wikipedia.org/wiki/Active_noise_control). But I failed to understand whether I am talking is ANC in different way?
Friday, September 2, 2011
Bluetooth and Wifi
Hello, welcome to wire'less' world. I recently bought Motorola S305 bluetooth stereo headset. It is good one..!Enjoying.
I have android G-i5801,samsung galaxy 3 mobile. Interesting thing is that it has wifi,bluetooth and lots of application (available in android market).
My head cracked yesterday..! You know why, battery is 60% in half an hour!! Before having headset I was to use only wifi and now adding bluetooth stereo headset, the mobile is more power hungry.
I am thinking, if wifi and bluetooth are of operating at same frequency(with different protocols:it is a group of software programs which controls the hardware) why can not both share the same hardware? If we are able to share the hardware,whatever, complexity within the protocols can be compromised in the coding. I believe that if we make some changes in design, wifi can acts a bluetooth or wifi with a single hardware. Power will be saved, silicon area will be saved, $s will be saved.
Anybody have counter argument for this? Your suggestions are most welcomed.
Tuesday, August 23, 2011
Wednesday, June 8, 2011
Power on reset
Power on reset is an essential requirement for sequential circuit based modules. We consider a simple example, consider a remote controlled tube light or fan system, the circuit of interest is shown in below image.
The IR Rx is a infrared Receiver which trigger the DFF and switch ON/OFF the fan depending previous state of the DFF. The circuit is practically laid down on the PCB and is working fine. However, when the power is turned on some time the fan ON and some time OFF. It has happened that when supply line is goes off, and supply arrive later the fan can turn on automatically. The problem is the DFF can attain logic high or low state and was unpredictable.
In order to solve the problem, we need power on reset. Here R and C in the circuit do the job.
Whenever power is turned ON, while charging the capacitor, there is a current passing through the resistor and hence voltage across the resistor. This voltage uphold the reset pin of the DFF. The by selecting proper R and C values we can meet the reset condition of the DFF.After charging the capacitor C completely, reset pin is grounded as there is no current through resistor.
Very simple!
Thursday, May 26, 2011
Communication within 10cm!
Wednesday, May 25, 2011
Trainer is not a 'train' but a Teacher
I was to much enthusiast to become a trainer and I did many kind of testings at the beginning itself. The test cases which I did and aftermath of them are listed below:
- I wanted every one to be on time to classes(punctuality).
- The trainees need to be happy and comfortable.
- The technical matter should be discussed in way that enthrall the class, however, the technicality of any concept should not be wrongly taught.
- Do mistakes, but agree to mistakes rather than some one forces us to agree.
- In technical discussions, no matter who/what/where/when talks, if something is wrong raise the doubt and question it for clarifications.
- Have a good friendship with trainees.
- Explain the subject with examples where everyone can understand the things well.
- Be a free teacher, who is available all the time-in messages, chats, emails, class or lunch or dinner table.
- If the class is not going in the directions as expected, entertain the trainees by asking their hobbies and presenting them(like singing..jokes...shayirees...)Come back to technical with relaxed mind.
- Not to be strict on assignments, but convince the trainees about their responsibility.
- Some time, we need to stop questioning the people even if they are doing wrong as their ego may hurt and it may start bleeding.
- Very critical-never have friendship with trainees. We can not teach friends,but be friendly.
- Not to be available freely. There is no respect for things which comes free..!
- Technical classes, needs to be completely technical(for point-9), I did not understand, why people separate technical stuff from other stuffs?
- Assignment-we needs to be strict.
I would like to take an opportunity here to thanks all the trainees, who have enjoyed my training and those who suffered because of my tests.
Noise about "NOISE" in circuits
Let me know your views. Comment please.
Friday, May 20, 2011
Ubuntu:What is special about it?
Every engineer, whatever his/her branch of studies, will aware of computers.When there is a computer, there will be windows OS. But now the situation is changing. People are moving towards free software/open source softwares. Ubuntu is one of such free OS and almost graphically look like windows.I can say good competitor for windows.
All people are biased with windows and say linux is not user friendly. I believe that Ubuntu is exceptional with respect to user friendliness and with engineers view- it is far.. far.. better than windows.
What are the advantages of ubunut?
- No virus(Every OS can be hacked, but it very less chance for linux OS systems).
- Completely free.In 2010, Ubuntu has freely provided the OS cds. Now any one can download from here.(10.04 is good one. recently 11.04 stable version released).
- One time installation; you will get all softwares-No separate installation for drivers, adobe reader,open office,audio players, video players, games,.....never ending list. If you need any software jut search in "Ubuntu Software Center".
- Engineers have very good deals with Ubuntu. We can change the systems the way we wanted it to be.All kind of languages-Perl, C ...etc are inherently inbuilt. Also for circuit enthusiasts-PCB design, VLSI design, SPICE simulation tools are also available.
- Recently computers are coming with higher memory hard disk and RAMs and hence no trouble with speed or OS size.
Demerits:
- We all have background of windows and we refrain ourselves from looking an OS other than windows angle.
- Installations of software is little bit tricky in linux- No simple click !
- I suggest the beginners to talk about basics of linux with anybody who knows about linux.
- For property devices - for mobile, ipod, mp3 players no drivers available in linux. This is the only one worry that will make us to keep a copy of windows in our systems.
Some facts about Ubuntu:
- Brazil is completely linux-ised.
- Kerala government school supports linux(Read here)
- 100% on line supporting community.
- Live CD boot-able options.
- If your windows got "viral infection and died", then Ubuntu live CD is only way (As I know)to recover your data.
I welcome you all for Ubuntu OS.Ubuntu is made for human beings..!
Idle time in office != free time
Thursday, May 19, 2011
Pumpset electricity bill-'HOW TO' for rented houses?
Day by day energy(petrol, electricity) related bill per month are increasing in huge amount.Every one is trying to reduce the power consumption as well as very cautious about the energy bills.
Many people are staying in rented houses and many people are giving there houses for rent.Now each rented house also has an electricity meter, however,owner and renters needed to share common pump set and share electricity bill at the end of the month. Many times, the renters may be single(like me...!) or big families. Hence, it is difficult to calculate who used more water or(indirectly) who used more electricity.
My colleague Chetu (Chetan G) had trouble in renting his house in his native with a single water pump. "Venky, namamaneyaga water pump set problem ide...enadru madala...!". The problem given by chetu is exciting one.
After scratching my head for few hours, I came up with control circuit which can share the single water pump and directly energy consumption is recorded in respective meter of the house/rented rooms. The overview of the system is shown in below image:

I need few components, which related to mechanical assemblies, looking forward from some dealers in Bangalore.The microelectronics components are very costly in udupi and many of them are not available here.
I hope, I will be able to release the complete system as simple product for every house hold where everyone share the same water pump without fighting for electricity bill.
I thank our Chetu for bringing such problem in front of me.
Wednesday, May 18, 2011
Anode or Cathode?
This is a confusing thing to talk... isn't it? Ya..
The cathode is the terminal where the current always flowing out of it. For example, the electrode of the battery (while discharging ) acts as a cathode as it is giving out the current and a positive terminal. However, same electrode acts as a anode while recharging the battery. Cathode and Anode terminologies need to use very carefully.
In normal diode (P-N junctions) the P acts an anode and N acts as a cathode.Here, we believe that forward current is considered. However, in case of zenner or solar cell, there is no significance for forward currents. They working principle is reversed junctions.But, still we use the terminologies of the normal diodes.
I am thinking, which terminal is anode and cathode of schotkky diode...? 'Art of analog layout' says "Metal acts as anode and silicon acts as cathode".Is it same for both P-type and metal junction and N-type and metal junction?
Finally, I am confused..! bye.
Saturday, May 14, 2011
LTSPICE: A tool for Electronics engineer
LTSPICE is originally windows OS based tool, however,in linux under wine support it works fine.Very important thing about LTSPICE is not only a free tool but also ability to modify the things(not software) in a way that we needed. We can add external components to existing default library. Under simulation we can process the data files with ngspice as a background tool. We can add our own models.The option to make unlimited sub circuits hierarchy is appreciable.The help content is available in help file, yahoo forum, and LT-SPICE user guide.
If we compare other electronics tools-electronics workbench, circuit simulator,microcap,TINA...etc, we have very less options or more constrains imposed by the software vendors.
Friday, May 13, 2011
Audio amplifier:inverting or non-inverting ?
We know that op-amp can be used as inverting or non-inverting configuration. The basic configuration is shown in figure 1.The only difference between the two operation is change in phase between the input to output signal.
I have one question about these op-amp configurations:
If we give input audio signal (Example:in figure 2), with both are designed for same gain, what would be the quality impact on your ears? Which would be better configuration?

Finally, conclusion not yet reached. Any one can post me if you have good answers. I will place the components on breadboard and test one day and result will be declared here.
Tuesday, May 10, 2011
NMOS @GND and Weak "1" transfer
Example, in the inverter circuit PMOS is always connected to VDD and NMOS connected to GND.
Now,
1.What happens if we change NMOS and PMOS positions?
2.What is the problem in digital design with new topology(example: inverter)?
3.What is the problem in analog design with new topology(example:amplifier or current mirror)?
A pdf written by me is available on this subject in the link here
Monday, May 9, 2011
Ubuntu:Audio converter
http://ubuntuforums.org/showthread.php?t=712064
It is good to post here, at least for my reference in the future.
MOSFET amplifies the signals ONLY in Saturation Region Part-1
Yes, mosfet can be used as amplifier in saturation region. It is should not be forget that transistor shows highest gain in sub-threshold conduction. However, sub threshold conduction operation is not yet practical.
We can show the amplification property of transistor in saturation region by two ways:1).Analytical method and 2).Graphical method. In this post, we discuss about the analytical method.
Saturday, May 7, 2011
How to increase the clock frequency?
Let us say we have 100Hz clock and we need 200Hz clock from it. The block diagram is shown below:
It is also need to understand that, the delay element has impact on the duty cycle of the output waveform.We will discuss the delay elements in some other posts.
If we design the delay element with 50% delay of the period of the original wave form, we will have 50% duty cycle wave form at the output of XOR with frequency double the input CLK. The resulting waveform is shown in figure 2.
Thursday, May 5, 2011
How to decrease the frequency of a CLK?
The square wave has negative excursion but that is not the case with square pulses(=clock).

By using DFF, we can divide the clock frequency.
In the next post, I will discuss -how to increase clock frequency by digital technique..
Wednesday, May 4, 2011
Android mobile..!
I have an android os based samsung's galaxy 3 mobile.It is a capacitive touch screen based multimedia set with Eclair OS(android OS 2.1). Android is an OS developed for mobile device by Google Inc. in order to disrupt the mobile market by providing free software against proprietary softwares. It is a good OS with ability providing OS source code.
Android uses basic linux kernal and on which it runs java Davlik virtual machine. It seems to be fastest as compared to java's inherent virtual machine as it is based on register stack.
I am not a programmer, but I am desperately looking into the android application development.I am trying to build a simple system for mobile(I will not able to write about it) and struck in the java oops,inheritance, classes, objects, polymorphism...etc.
I think,java is a vast subject and there are different versions or application based on java. Example:java JDK and java JR something...something..any way I am confused in java.
One thing the android users need to aware about -android mobiles are not secure enough. The application are developed by hobbyist and there is a possibility of hacking applications. I suggest not to store credit card numbers,bank account details or passwords and any valuable information in the mobile.
However, android has millions of applications,games and so enjoyable as electronics toy...!
Let us enjoy...!
Tuesday, May 3, 2011
Laptop usage tips and circuit for power.
These are all known issues to everyone.But many people are negligent about them.
- Never keep laptop on softmaterials like bed or on any clothes. The reason is that processor fan will not get ventilation which results in processor failure as well as battery life will be reduced.All ways keep laptop on hard surface..
- Never put your laptop into the bags without turn it off completely(standby is also not allowed).
- Do not bend the laptop power cable and also always keep the battery charger in ventilated place while charging.
===>For circuit enthusiasts :
Automatic Laptop Power dis-connector.
It is really good practice to disconnect the laptop power cable after the use. However many times we (I) forget to do so. Here is a simple circuit which automatically connect or disconnect the laptop to main AC plug.
Oh I am taking interview...!
It is boasting news for me to say that I have taken interview four times for incoming engineers in my company.
Taking interview is not at all simple one. Some time I got shock,some time laughed at answers;some time I was sad to see the sad faces and some times it was ridiculous situations. Any way, my aim here is not to explain what happened to me in interview.
I have observed that many students from engineering colleges coming out with big projects names.My thinking is that,at engineering college level, however big and good may be a project the basics of it is must be clear.Many times student presented their projects as OFDM,QPSK modulation,motors,regulator-related projects.
I shocked to see,many are not able to tell about the requirements of modulations,they don't know how the motor works,they don't know why regulation required though their projects stands on these principles. If some one not aware of basics how to trust the project itself?
Another big trouble that I saw was lack of standards in drawing basic electronic symbols. There is a standard symbol for BJT, MOSFET, AND gate,OR gate,MUX, DFF etc.
Even if we understand what the candidate is trying to say,we need to more concentrate on what s/he writes on paper.Because ultimately what s/he writes on the paper is going to be practical knowledge used in the companies or any organizations.
Ultimately what I want to say is any engineering student needs to give very good attention to basic knowledge.The standards of electronics symbols/equations needs to be preserved.The lectures need to stress on in these lines. I hope, next interview will be happy one...!
Monday, May 2, 2011
Working in the Laboratory :Why it is not simple?
Working in laboratory is not at all simple. There are technical and non-technical problems which make me stay away from touching real physical elements.
The most difficult problem is when I leave the paper,pencil and computer the thinking mood changes and some time I confused to see what i need to do.The searching of wanted component in lab shelf is always a difficult task. If the last lab task had finished in hurry way it is likely that old lab set may be in place and need to shift the component back to shelf.
Once I was working on pcb in hurried way and the ferric chloride spread out in the room. The whole room tiles were shining(waw..!) with yellow patches.Ferric chloride is a acid and needs to be careful while handling.
Computer work can be saved and done in any time. However lab task can not be stopped in between and continuous time availability is very important. I am recalling now that digital clock pcb soldering in my engineering college days which had taken continuous 30 hours to finish it.
Working in the lab is interesting if our intended circuit works in 2 or 3 approaches. However, even simple circuits will not work single shots. The problems may be wrong connections,loose connections, wrong concepts,wrong testing methodologies, or any other "wrongs".
I find another difficult when a circuit or project involve mechanical parts. Most of the times the circuits end up with controlling few mechanical parts.Example: Water tap controller is circuit need to have some mechanical arrangements in order to place in practical use. I am fed up with how to go ahead with mechanical assembly of things.A grain shutter circuits(a circuit detect the rain and cover the grains which are kept under the sun) is still on breadboard and not able to transfer as practical idea as there is difficulty to fix the motor to mechanical parts.
However, working in a electronics lab is a happiest moment.Electronics engineer can give life to inanimate things and make magic out of it.I am proud to say I am a hobbyist in electronics.
Lovely SPICE and Stupid SPICE
All electronic engineers know the marvelous CAD tool called “SPICE“ for circuit simulation. The SPICE is only one tool that provide the accurate values for simulation PROVIDED THAT WE HAVE ACCURATELY SPICED AND CONTROLLED...!
SPICE is a inbuilt mathematical tool which uses matrix of circuit nodes and perform the mathematical solution like numerical integration differentiation ...etc. The details like how it works can be googled for further reading.
My aim of this post is to tell wrong and right things with SPICE usage. Generally, people say if some one able to generate some waveforms using SPICE, he is a designer. In reality good designer never use SPICE . He uses his head, pencil and paper. SPICE is like any C program, if you give something as input, it always gives you some output. That is the reason why some designers says spice is a “Garbage in- Garbage out” program. But if you feed good things to it, definitely,it provides fruitful things.
Before proceeding with spice simulation it is better to understand the basic spice syntax. We need to know do's and don'ts . For example, the first line of the spice deck should be a comment,another example,to indicate 1E+6 symbolically we need to use MEG and not M(M stands for 1E-3). This kind of small mistakes can leads to waste of time and wrong results.
Presence of mind is very important. If we need to measure any parameter,we need to have proper set up. The set up can be done iff we are aware of what are expected results. For example, in order to measure set up or hold time of a circuit we need to give enough time in spice .tran command, and another example may be, the spice .tran run time should be greater than the time period of the clock if clock is exist in the design. This kind of awareness towards the spice deck is possible if we are well aware of what the circuit does. So I can say that SPICE helps us in the design of circuits if we are aware of circuit design.
My suggestion is, don't go to the computer unless you know what you are expecting. You need to have command over the circuit analysis, then test you abilities with spice.
Sunday, May 1, 2011
QR code.
A simple linear barcode is shown in image below.

This barcode helps in reading the data by automated computer systems. You might have seen the usage of this code in Big bazzare or alike stores.
Another interesting code a 2-d version of barcode is a QR code(Quick Response code). It is very famous in Japan. The QR code can encode not only number but also data in large amount compared to linear barcode.
This code can be read by barcode readers. Now there is an option in android mobile to read the data. If you have android mobile you can data hidden /coded in the above QR code.(The above QR code has my personal information).
To generate QR code there are softwares as well on line links. Example: http://qrcode.kaywa.com/
I love this symbolic language of coding the information.