Spark

1,840 views

Published on

SMART VEHICLE PARKING BY USING WIRELESS SENSOR NETWORKS..

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,840
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
91
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • If you want to sense something at a short distance, there are choices that emit some sort of signal that produces reflections that they can see.
  • Picture of an active IR sensor system.
  • Spark

    1. 1. Design and Implementation of a prototype Smart Parking System using Wireless Sensor Networks Presented By SIDDARTH T.S BRANCH:EMBEDDED SYSTEM TECHNOLOGY(MTEC) ROLL NO:1590910067 GUIDED BY Mr. P.VIJAY KUMAR
    2. 2. BLOCK DIAGRAM Transmitter Side  IR sensors IR sensors 8051 Micro controller Power Supply
    3. 3. BLOCK DIAGRAM Receiver Side  Power Supply CCTV LCD ARM7TDMI
    4. 4. LIST OF HARDWARE MODULES   <ul><li>MODULE 1: POWER SUPPLY FOR 8051 MICROCONTROLLER </li></ul><ul><li>MODULE 2: IR SENSOR </li></ul><ul><li>MODULE 3: ARM LPC2129 </li></ul><ul><li>MODULE 4: ZIGBEE </li></ul><ul><li>MODULE 5: LIQUID CRYSTAL DISPLAYS </li></ul><ul><li>MODULE 6: GSM </li></ul><ul><li>MODULE 7: CCTV </li></ul>
    5. 5. MODULE 1: Power Supply for 8051 Microcontroller <ul><li>The power supply section is the important one. It should deliver constant output regulated power supply for successful working of the project. A 0-12V/1 mA transformer is used for this purpose. The primary of this transformer is connected in to main supply through on/off switch& fuse for protecting from overload and short circuit protection. The secondary is connected to the diodes to convert 12V AC to 12V DC voltage. And filtered by the capacitors, which is further regulated to +5v, by using IC 7805 </li></ul>
    6. 6. MODULE 2 Sensors – IR <ul><li>Active (emitting) </li></ul><ul><ul><li>Oscillator generates IR reflections off objects </li></ul></ul><ul><ul><li>Filtered receiver looks for “reflections” </li></ul></ul><ul><ul><li>Pulses may be encoded for better discrimination </li></ul></ul><ul><ul><li>Typically frequencies around 40KHz </li></ul></ul><ul><ul><li>Doesn’t work well with dark, flat colored objects </li></ul></ul><ul><li>Passive (sensor only) </li></ul><ul><ul><li>Pyro-electric (heat sensor) </li></ul></ul><ul><ul><li>Look for IR emissions from people & animals </li></ul></ul><ul><ul><li>Used in security systems & motion detectors </li></ul></ul>
    7. 7. Infrared - Active Sensor type: TSOP 1738
    8. 8. MODULE 3 What is ARM ? <ul><li>ARM stands for Advanced RISC Machine. </li></ul><ul><li>32-bit General Purpose Micro-Processor Architecture </li></ul><ul><li>RISC Design offering: </li></ul><ul><ul><li>a high instruction throughput </li></ul></ul><ul><ul><li>an excellent real-time interrupt response </li></ul></ul><ul><ul><li>a small, cost-effective, processor macrocell. </li></ul></ul><ul><li>ARM cores are widely used in mobile phones, handheld organizers, and a multitude of other everyday portable consumer devices. </li></ul>
    9. 9. More about ARM <ul><li>Spun out of Acorn Computers </li></ul><ul><li>Designs the ARM range of RISC processor cores </li></ul><ul><li>Licenses ARM core designs to semiconductor partners who fabricate and sell to their customers </li></ul><ul><li>Also develop technologies to assist with the design-in of the ARM architecture </li></ul><ul><li>Why is it called Advanced RISC Machine ? </li></ul><ul><ul><li>Because ARM has the ability to access two instruction sets </li></ul></ul><ul><ul><li>32-bit ARM instruction set </li></ul></ul><ul><ul><li>16-bit Thumb instruction set </li></ul></ul>
    10. 10. ARM7TDMI <ul><li>ARM7 Core with the following features : </li></ul><ul><ul><li>T - 16 bit Thumb operating state </li></ul></ul><ul><ul><li>D - JTAG debug support </li></ul></ul><ul><ul><li>M - fast multiplier </li></ul></ul><ul><ul><li>I - EmbeddedICE macrocell </li></ul></ul><ul><li>3 – Stage Pipeline: </li></ul><ul><ul><li>Fetch, </li></ul></ul><ul><ul><li>Decode, </li></ul></ul><ul><ul><li>Execute </li></ul></ul><ul><ul><li>Three cycle latency </li></ul></ul><ul><ul><li>One instruction per cycle throughput </li></ul></ul>
    11. 11. NXP LPC2129 <ul><li>16/32 bit ARM7TDMI Processor Core </li></ul><ul><li>16 KB S-RAM, 256 KB Flash Memory </li></ul><ul><li>60 MHz maximum CPU clock available from programmable on-chip Phase-Locked Loop. </li></ul><ul><li>Four channel 10-bit A/D converter on board </li></ul><ul><li>Two 32-bit timers (with 4 capture and 4 compare channels), PWM unit (6 outputs), Real Time Clock and Watchdog. </li></ul><ul><li>Multiple serial interfaces including two UARTs, I2C and two SPIs. </li></ul><ul><li>Vectored Interrupt Controller with configurable priorities and vector addresses. </li></ul><ul><li>Up to forty-six 5 V tolerant GPIO pins </li></ul>
    12. 12. Sample Code For Receiving Side <ul><li>#include <LPC21xx.H> </li></ul><ul><li>void uartinit() </li></ul><ul><li>{ </li></ul><ul><li>PINSEL0=0x00000005; </li></ul><ul><li>U0LCR=0x83; </li></ul><ul><li>U0DLM=0x00; </li></ul><ul><li>U0DLL=0x68; //baud rate generator// </li></ul><ul><li>U0LCR=0x03; </li></ul><ul><li>} </li></ul><ul><li>Void serial_transmit (unsigned char dat) </li></ul><ul><li>{ </li></ul><ul><li>U0THR=dat; </li></ul><ul><li>while((U0LSR&0x20)==0); </li></ul><ul><li>} </li></ul><ul><li>unsigned char serial_recieve() </li></ul><ul><li>{ </li></ul><ul><li>unsigned char a; </li></ul><ul><li>while(U0LSR&0x01==0); </li></ul><ul><li>a=U0RBR; </li></ul><ul><li>return a; </li></ul><ul><li>} </li></ul>
    13. 13. <ul><li>void serial_string(unsigned char *str) </li></ul><ul><li>{ </li></ul><ul><li>while(*str!='') </li></ul><ul><li>{ </li></ul><ul><li>serial_transmit(*str); </li></ul><ul><li>str++; </li></ul><ul><li>} }} </li></ul><ul><li>void main() </li></ul><ul><li>{ </li></ul><ul><li>uart_init(); </li></ul><ul><li>while(1) </li></ul><ul><li>{ </li></ul><ul><li>serial_transmit('H'); </li></ul><ul><li>serial_string(&quot;HELLO&quot;); </li></ul><ul><li>} </li></ul><ul><li>} </li></ul>
    14. 14. Sample code for LCD <ul><li>#include<lpc21xx.h> </li></ul><ul><li>void delay(unsigned int a) </li></ul><ul><li>{ </li></ul><ul><li>unsigned int i,j; </li></ul><ul><li>for(i=0;i<=a;i++) </li></ul><ul><li>for(j=0;j<1000;j++); </li></ul><ul><li>} </li></ul><ul><li>void cmd_lcd(unsigned char x) </li></ul><ul><li>{ </li></ul><ul><li>IOPIN1=x<<16; </li></ul><ul><li>IOSET0=0x40000000; </li></ul><ul><li>delay(100); </li></ul><ul><li>IOCLR0=0x40000000; </li></ul><ul><li>} </li></ul><ul><li>void dat_lcd(unsigned char y) </li></ul><ul><li>{ </li></ul><ul><li>IOPIN1=y<<16; </li></ul><ul><li>IOSET0=0x50000000; </li></ul><ul><li>delay(100); </li></ul><ul><li>IOCLR0=0x40000000; </li></ul><ul><li>} </li></ul>
    15. 15. <ul><li>} </li></ul><ul><li>void init_lcd() </li></ul><ul><li>{ </li></ul><ul><li>cmd_ lcd(0x38); </li></ul><ul><li>cmd_lcd(0x0E); </li></ul><ul><li>cmd_lcd(0x01); </li></ul><ul><li>cmd_lcd(0x80); </li></ul><ul><li>} </li></ul><ul><li>void main() </li></ul><ul><li>{ </li></ul><ul><li>init_lcd(); </li></ul><ul><li>cmd_lcd(0x80); </li></ul><ul><li>wrt_lcd(&quot;HELLO&quot;); </li></ul><ul><li>cmd_lcd(0xC0); </li></ul><ul><li>wrt_lcd(&quot;WORLD&quot;); </li></ul><ul><li>} </li></ul>void wrt_lcd(unsigned char *p) { while(*p!='') { dat_lcd(*p); p++; }
    16. 16. REFERENCES <ul><li>Gaurav Sehgal Monash Car Park SMS Project, School Of Computer Science And Software Engineering Monash University Research Proposal, 2005 </li></ul><ul><li>Tapas, Dileep K Panjala, S V Srikanth High Level Design Document for SPARK, for Establishment of National Level Ubiquitous Research Resource Centre, C-DAC Hyderabad, 2008 </li></ul><ul><li>Jeffrey F. Paniati, Associate Advance Parking Management System : Across- Cutting Study, Taking The Stress Out Of Parking. January2007 </li></ul><ul><li>http://www.amontec.com/lcd nokia 3310.shtml </li></ul><ul><li>http://www.xbow.com/Products/Product pdf files/Wireless pdf/MTS MDA Datasheet.pdf </li></ul><ul><li>www.xbow.com/Products/Product pdf files/Wireless pdf/MICAZ Datasheet.pdf </li></ul><ul><li>www.analogicgroup.com/Pdfs/datasheets/smart modem.pdf </li></ul>
    17. 17. THANK YOU

    ×