spark
DESCRIPTION
SMART VEHICLE PARKING BY USING WIRELESS SENSOR NETWORKS..TRANSCRIPT
Design and Implementation of a prototype Smart Parking System
using Wireless Sensor Networks
PresentedBy
SIDDARTH T.SBRANCH:EMBEDDED SYSTEM TECHNOLOGY(MTEC)
ROLL NO:1590910067
GUIDED BY Mr. P.VIJAY KUMAR
BLOCK DIAGRAMTransmitter Side
IR sensors
IR sensors
8051Micro
controller
Power Supply
BLOCK DIAGRAMReceiver Side
Power Supply
CCTV
LCD
ARM7TDMI
LIST OF HARDWARE MODULES
MODULE 1: POWER SUPPLY FOR 8051
MICROCONTROLLERMODULE 2: IR SENSORMODULE 3: ARM LPC2129 • MODULE 4: ZIGBEEMODULE 5: LIQUID CRYSTAL DISPLAYSMODULE 6: GSMMODULE 7: CCTV
4
MODULE 1:Power Supply for 8051
Microcontroller 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
MODULE 2 Sensors – IR
• Active (emitting)– Oscillator generates IR reflections off objects– Filtered receiver looks for “reflections”– Pulses may be encoded for better discrimination– Typically frequencies around 40KHz– Doesn’t work well with dark, flat colored objects
• Passive (sensor only)– Pyro-electric (heat sensor)– Look for IR emissions from people & animals– Used in security systems & motion detectors
Infrared - Active
Sensor type:
TSOP 1738
MODULE 3What is ARM ?
• ARM stands for Advanced RISC Machine.• 32-bit General Purpose Micro-Processor Architecture• RISC Design offering:
a high instruction throughput an excellent real-time interrupt response a small, cost-effective, processor macrocell.
• ARM cores are widely used in mobile phones, handheld organizers, and a multitude of other everyday portable consumer devices.
More about ARM
• Spun out of Acorn Computers• Designs the ARM range of RISC processor cores• Licenses ARM core designs to semiconductor partners who
fabricate and sell to their customers• Also develop technologies to assist with the design-in of the
ARM architecture• Why is it called Advanced RISC Machine ?
Because ARM has the ability to access two instruction sets 32-bit ARM instruction set 16-bit Thumb instruction set
ARM7TDMI
• ARM7 Core with the following features : T - 16 bit Thumb operating state D - JTAG debug support M - fast multiplier I - EmbeddedICE macrocell
• 3 – Stage Pipeline: Fetch, Decode, ExecuteThree cycle latencyOne instruction per cycle throughput
NXP LPC2129• 16/32 bit ARM7TDMI Processor Core• 16 KB S-RAM, 256 KB Flash Memory• 60 MHz maximum CPU clock available from programmable
on-chip Phase-Locked Loop.• Four channel 10-bit A/D converter on board• Two 32-bit timers (with 4 capture and 4 compare channels),
PWM unit (6 outputs), Real Time Clock and Watchdog.• Multiple serial interfaces including two UARTs, I2C and two
SPIs.• Vectored Interrupt Controller with configurable priorities and
vector addresses.• Up to forty-six 5 V tolerant GPIO pins
Sample Code For Receiving Side
#include <LPC21xx.H>void uartinit(){PINSEL0=0x00000005;U0LCR=0x83;U0DLM=0x00;U0DLL=0x68; //baud rate generator//U0LCR=0x03;}Void serial_transmit (unsigned char dat)
{U0THR=dat;while((U0LSR&0x20)==0);}
unsigned char serial_recieve(){unsigned char a;while(U0LSR&0x01==0);a=U0RBR;return a;}
void serial_string(unsigned char *str){
while(*str!='\0'){
serial_transmit(*str);str++;
} }}void main(){
uart_init();while(1)
{serial_transmit('H');serial_string("HELLO");
}}
Sample code for LCD
#include<lpc21xx.h>void delay(unsigned int a){
unsigned int i,j;for(i=0;i<=a;i++)for(j=0;j<1000;j++);
}void cmd_lcd(unsigned char x){ IOPIN1=x<<16;
IOSET0=0x40000000;delay(100); IOCLR0=0x40000000;
}void dat_lcd(unsigned char y){
IOPIN1=y<<16;IOSET0=0x50000000;delay(100);IOCLR0=0x40000000;
}
}void init_lcd() { cmd_ lcd(0x38);
cmd_lcd(0x0E); cmd_lcd(0x01);
cmd_lcd(0x80); }
void main(){
init_lcd();cmd_lcd(0x80);wrt_lcd("HELLO");cmd_lcd(0xC0);wrt_lcd("WORLD");
}
void wrt_lcd(unsigned char *p){
while(*p!='\0'){
dat_lcd(*p); p++;
}
REFERENCES Gaurav Sehgal Monash Car Park SMS Project, School Of Computer Science And
Software Engineering Monash University Research Proposal, 2005 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
Jeffrey F. Paniati, Associate Advance Parking Management System : Across- Cutting Study, Taking The Stress Out Of Parking. January2007
http://www.amontec.com/lcd nokia 3310.shtml http://www.xbow.com/Products/Product pdf files/Wireless pdf/MTS MDA
Datasheet.pdf www.xbow.com/Products/Product pdf files/Wireless pdf/MICAZ Datasheet.pdf www.analogicgroup.com/Pdfs/datasheets/smart modem.pdf
THANK YOU