Monday, 5 December 2016

LM35 sensor

LM35 





  • it is one of the temperature sensor
  • it have 3 pins 
  • center pin only give the output value
  • LM35 used for calculating the current temperature at your atmosphere
  • if the lm35 is connected to any microprocessor we can take any action based on the lm35's output
  • basic circuit for lm35 ,it will be either connected to microcontroller or it may be separate

  • vc  is positive charge pin(1), down pin is ground pin(3) , Vout is output pin(2)

  • Ra is resistor it may be a value of 1kor less than.
  • for any clarification command me

What is a Computer Virus - simple to undersand

computer virus



      • Basically computer virus is a set of programming codes to spoil your system.
      •  code may in the sense of copying  files from one location to another location with n number of times.
      • code may delete your files or data in your system drive
      • in my experience the C drive is heart of the computer
      • that the programming code can delete your C drive 
      • Without C drive OS can't be run
      • corrupt the software related files 
      • this programming language can create a multiple processes at a same time in your system its called a HANG

Simple C Program to Check Whether given Number is Prime or Not

     
   
   Prime Number - defn
        
                 Prime Number can be divided evenly only by 1, or itself. And it must be a whole number greater than 1. 

  •  Most of the new c language beginers didnt know to code for checking prime number or not
  • Here this blog tell the logic of prime number check


C-Code

#include <stdio.h>
main()
{
    int n, i, flag = 0;

    printf("Enter a positive integer: ");
    scanf("%d",&n);

    for(i=2; i<=n/2; i++)
    {
        if(n%i==0)
        {
            flag=1;
            break;
        }
    }

    if (flag==0)
        printf("%d is a prime number.",n);
    else
        printf("%d is not a prime number.",n);
    
}

  1. %   it will return  number that the  remainder of the division ( / it will return quotient of division)
  2. (flag) is a simple variable that keeps on checking the state of any operation at any iteration.
  3. using modulus operator ,get the remainder if the remainder is not equal to 0 
  4. then the flag is set to 0 ,at end of for loop flag  value is 0.
  5. then display the message as prime number.
this is a simple logic for prime number checking,if u have further doubts commend me

BC548 or BC547 transistor - simple tutorial

 BC548 - Transistor


BC548


  • It will have 3 pins ( see above diagram)
  • it act  nothing like a switch
  • basically transistor's are boost the signal to raise the quality of output
  • Both 547 or 548 are same 


  1. base pin(2) only trigger the transistor
  2.  if the base pin is triggered ,collector and emitter are makes a connection between those pins(1,3)
  3. based on the current pressure at pin(2) the transistor will make a strong connection or week connection.

BC548 used in many mini projects or big projects.



ldr-simple tutorial


LDR - light dependent resistor or photo resistor

\
A typical ldr looks like it



What is a Light Dependent Resistor?

An LDR or light dependent resistor is also known as photo resistor, photocell, photoconductor.It is a one type of resistor whose resistance varies depending on the amount of light falling on its surface. When the light falls on the resistor, then the resistance changes. These resistors are often used in many circuits where it is required to sense the presence of light. These resistors have a variety of functions and resistance. A typical light dependent resistor has a resistance in the darkness of 1MOhm, and in the brightness a resistance of a couple of KOhm.
  • ldr will be apllicable for all light projects
  • ldr will have so many types size
  • you can buy it from your local electronic shops or online
The basic circuit diagram for ldr


Components :
  1. resistor- 1k for handling LED  
  2.  BC547 transistor 
  3. preset 4.7 k or less than 1 k resistor (either preset or resistor)
  4. preset will give flexibilty to adjust the resistance based on input 
it needs a minimum 3v or 9v power supply  

      Using microcontroller we can controll or take decision based on your projects.

pls make a comments to improve my knowledge and your's

Sunday, 4 December 2016

Uses of pir sensor




pir-sensor


Uses

  • Application of this device is good for security reasons.
  • It is good source of saving energy.
  • In this globalization world save electricity is the important fact and PIR sensor looks after it effectively.
  • It responds aptly to human motion and can get adjusted to body temperature.
  • You can also adjust it according to the outside changing temperature.
  • Spotlight of IR light is possible because of lenses present in PIR sensor.
  • Evaluation of moving object becomes easy due to intensity of infrared lights.
  • You can make use of these detectors in equipments as well as appliances.
  • You can make use of it on television sets, DVDs or VCRs.
  • Some of the other places where PIR sensor can be used are hospital, super market, library, grocery stores, parking area, garden and many such public places.
  • Military people can also make use of it especially during night time.
  • You don’t have to get dependent on exterior source of energy as electricity gets produced from infrared lights.