Electronic Circuits and Projects Forum



PIC16F877 Project

  1. #1
    maxster03 maxster03 is offline

    PIC16F877 Project

    I am making a home alarm system, which i would test on a dummy house which has a door and a window. i would like you to send me a schematic, and the layout of the circuit in PROTEUS and the code for this project, i am using a PIC16F877 microcontroller, can you look at the schematic and tell if its alright or not ???

    THE PROJECT

    On the door i want to attach a magnetic switch, i tested the magnetic switch it gives 0 volts when its closed and when its separated it gives out 5 volts when connected with 5V power supply. so when someone breaks in it should light on LED1 and show a text on LCD that "Door" and it it should also be able to send a SMS to the user indicating tht someone has broken into your house

    On the window i am attaching a PIR sensor, the PIR sensor gives 0 Volts when no motion is detected and 5V when motion is detected when connected with 5V power supply,so when someone breaks in it should light on LED2 and show a text on LCD that "window".

    The third sensor which i am using is the Smoke detector, i don't want the buzzer to sound so i am taking the input to the buzzer when it detects smoke to give the input to the micro controller. The smoke detector gives a +5V to -5V square wave, i am using a ready made smoke detector so it has a battery connection, don't need to give power to it. oh and it has three wires red, black, and white, gives the above result when tested with red and black wires.so when the smoke is it should light on LED3 and show a text on LCD that "Smoke".

    The final sensor are two IR transmitter and receiver at different heights to differentiate between a pet or human which should be installed on the walls, If one of the two sensor are interfered then nothing would happen, but if both the sensor are interfered at the same time then the system would recognize it as a human being and it should light on LED4 and show a text on LCD that "Smoke"
    Attached Images

  2. #2
    naeemmughal naeemmughal is offline
    will u please post a source file of this project

    Naeem Mughal
    0

  3. #3
    dientudong dientudong is offline
    #include "C:\Program Files\PICC\Examples\lenhmoi.h"
    #define BITMAP_HEIGHT_BIT 2
    #define BITMAP_WIDTH_BIT 16
    unsigned char buff_mh[BITMAP_HEIGHT_BIT][BITMAP_WIDTH_BIT ];
    void point(int8 x,int8 y)
    {
    unsigned char *pt;
    int8 mask=0b00000001;
    int16 j;
    mask = mask << (y%8);//xác ?i.nh vi tri y:
    pt=&buff_mh[0][0];
    j=(y/8*8+x);//xác dinh vi tri x
    pt+=j;
    *pt|= mask;
    }

    void main()

    {
    while(1)
    {
    point(0,0);
    delay_ms(500);
    point(1,1);
    delay_ms(500);
    }
    }
    Please help me ! I have problem with the Code for ledmatrix. Please help me .
    0

  4. #4
    dientudong dientudong is offline
    Anyone help me ?
    0

Tags
Similar Threads
Thread Starter Forum Replies Last Post
help with pic16f877 and c kennyburns Microcontrollers 6 15th April 2008, 06:00 AM
Pic16f877 mittal.anish Microcontrollers 1 2nd November 2006, 01:02 PM
Need help in ADC PIC16F877 Eng.Abbasi Microcontrollers 5 15th July 2006, 01:08 PM
pic16f877 pinky Microcontrollers 1 10th December 2003, 01:47 PM
vdd of pic16f877 finst Microcontrollers 1 10th December 2003, 12:33 PM
Electronic Circuits  |  Learning Electronics

Join our community with over 100,000 Members! It's free, easy and when you're logged in you have many more features! Click to register.
Page Time: 0.06414 seconds      Memory: 7,273 KB      Queries: 17      Templates: 0