Tuesday, 23 October 2012

KIEL TUTORIAL

Here is some initial steps which are necessary before writing a program in KIEL.

  1. Open kiel u vision software.

  1. Click on Project from the menu bar.


  1. Click on the new project.

  1. Select the folder and name the project and click in save.

  1. Now you will see a window like below. Select the name of the microcontroller. We use P89V51RD2 from PHILIPS. Click OK.


  1. Click on YES.

  1. Now open file menu and create a new file.


  1. Name and save the file in same folder with  .c extension.


  1. Click the target 1 option from the left most window.

  1. Right click on the source group 1.

  1. Click on the add files from the source group. Now a window opens like below. Click Add and Close.
  1. Now click on the Target option. Click on Target and select the frequency of your microcontroller. (For 8051 it is 11.0592).

  1. Now click on Output and check the box create Hex file.

  1. Now click on Debug and check the box limit speed to real time.

  1. Now click on OK. Now you can write your program.

  1. After writing the program Click on Build or Rebuild option. You can errors and warnings in the bottom window.







  1. If your program consists I/O ports programming then you can test your program in kiel. After rebuilding your program if there is no error and warning then click on the debug from menu bar. Click on star/stop debug session option.

  1. Click OK.
  1. Now click on Peripherals from menu bar. Select your I/O ports.
  1. Now click on RUN.

Proper way to close the kiel is first stop your running program then stop the debug session and save your program.

IF YOU HAVE ANY QUERY THAN CONTACT US OR GIVE YOUR QUERY IN THE QUERY OPTION.      
                                                            GOOD LUCK

More embedded projects >>....                             More MAT LAB projects>>...

Sunday, 21 October 2012

LIGHT SENSOR / DARK INDICATOR

A light sensor is a module which can sense the presence of light or in other words we can say that it is a dark indicator.


Means in the dark it gives us a output as 1.

Concept :-
LDR
                   In light sensor or in a dark indicator the sensing device is LDR. LDR is stands for Light Depended Resistor. In the presence of light LDR gives very high impedance up to 1M ohm so we get 0 output and in the presence of dark LDR gives very low impedance(negligible) so we get the output 1. A LDR is shown in figure below:-


LDR symbol

List of components :-
  •                  330ohm resistor - 1
  •                 1M ohm resistor - 1
  •              100k ohm resistor - 1 
  •                                 LDR - 1
  •                         NE555 IC - 1
  • 1000 pf ceremic capacitor - 1
  •                            Red led - 1
  •                       5V battery - 1
Circuit of light sensor :-
                                         We use 555 timer IC in astable multivibrator mode for this purpose.

After making this circuit you can test your output by applying a led with the resistance of 330 ohm.

PCB layout of light sensor :-

print this layout as it is and make your own pcb

m1 and m2 are male connectors M1=5V.





Images :-
                      
top view and 0 output in the presence of light

bottom view

1 output in the presence of dark
                    


IF YOU HAVE ANY QUERY THAN CONTACT US OR GIVE YOUR QUERY IN THE QUERY OPTION.      
                                                            GOOD LUCK

More embedded projects >>....                             More MAT LAB projects>>...