Professional Documents
Culture Documents
The main importance of this project is to make each and every vehicle smart for the "smart
city". We implemented using PIC microcontroller and RF Module.
To drive a vehicle the rules should be followed correctly and efficiently by the drivers but in
some cases we fail to follow. To stop these problems we made “a smart vehicle " system. It helps
to drive the vehicle according to the rules system. The engine will start only if we wore the seat
belt. Using the RF module speed of the vehicle is controlled at the speed break areas, school
zones and horn sound is also controlled in hospital zone. . Nowadays people are driving very fast;
we lost our valuable life by making small mistake while driving (school zone, hills area, and
highways). So in order to avoid such kind of accidents and to alert the drivers and to control their
vehicle speed in such kind of places the highway department have placed the signboards.
The project focused in designing a system which can provide the high security monitoring and
controlling for particular busy zones with wireless communication. This system automatically
controls the vehicle speed at particular. Whenever the RF receiver receives signals from RF
transmitter which is placed at the school zone then it sends the information to the
microcontroller. The microcontroller is programmed in such a way that it gives a beep sound
indicating that the vehicle has entered the school zone and then the vehicle speed is reduced
based on the zone and accident will be prevents in the school and hospital zones.
2.BLOCK DIAGRAM
DEPARTMENT Mode
OF ECSswitch VLBJCAS
1
RF receiver
PIC16F877A
Buzzer
Relay Motor 1
Relay Motor 2
Driver 2003
Relay Horn
When vehicle with 70 Kmph speed enters the school zone, it receives the alert
message”School Zone, Please go slowly. Speed limit it 30 KiloMeterPerHour”.
Also receiver checks the speed limit of the vehicle and found above 30 kmph
then reduces it until crosses the School Zone area.
When the same vehicle enters the Hospital Zone, it receives the alert message
“Hospital Zone, Please do not blow Horn”, and reduces the supply voltage to
minimum level such that horn should blow in low pitch.
3 HARDWARE SECTION
3.1PIC MICROCONTROLLER
PICs are popular with both industrial developers and hobbyists alike due to their low cost, wide
availability, large user base, extensive collection of application notes, availability of low cost or
free development tools, and serial programming (and re-programming with flash memory)
capability.
Microchip announced on February 2008 the shipment of its six billionth PIC processor.
Core architecture
Separate code and data spaces (Harvard architecture) for devices other than PIC32, which has a
Von Neumann architecture.
A small number of fixed length instructions
Most instructions are single cycle execution (2 clock cycles), with one delay cycle on branches
and skips
One accumulator (W0), the use of which (as source operand) is implied (i.e. is not encoded in the
opcode)
All RAM locations function as registers as both source and/or destination of math and other
functions.
A hardware stack for storing return addresses
A fairly small amount of addressable data space (typically 256 bytes), extended through banking
Data space mapped CPU, port, and peripheral registers
There is no distinction between memory space and register space because the RAM serves the
job of both memory and registers, and the RAM is usually just referred to as the register file or
simply as the registers.
PICs have a set of registers that function as general purpose RAM. Special purpose control
registers for on-chip hardware resources are also mapped into the data space. The addressability
of memory varies depending on device series, and all PIC devices have some banking
mechanism to extend addressing to additional memory. Later series of devices feature move
instructions which can cover the whole addressable space, independent of the selected bank. In
earlier devices, any register move had to be achieved via the accumulator.
To implement indirect addressing, a "file select register" (FSR) and "indirect register" (INDF)
are used. A register number is written to the FSR, after which reads from or writes to INDF will
actually be to or from the register pointed to by FSR. Later devices extended this concept with
post- and pre- increment/decrement for greater efficiency in accessing sequentially stored data.
This also allows FSR to be treated almost like a stack pointer (SP).
External data memory is not directly addressable except in some high pin count PIC18 devices.
Code space
The code space is generally implemented as ROM, EPROM or flash ROM. In general, external
code memory is not directly addressable due to the lack of an external memory interface. The
exceptions are PIC17 and select high pin count PIC18 devices.
Word size
The word size of PICs can be a source of confusion. All PICs handle (and address) data in 8-bit
chunks, so they should be called 8-bit microcontrollers. However, the unit of addressability of
In order to be clear, the program memory capacity is usually stated in number of (single word)
instructions, rather than in bytes.
Stacks
PICs have a hardware call stack, which is used to save return addresses. The hardware stack is
not software accessible on earlier devices, but this changed with the 18 series devices.
Hardware support for a general purpose parameter stack was lacking in early series, but this
greatly improved in the 18 series, making the 18 series architecture more friendly to high level
language compilers.
Instruction set
A PIC's instructions vary from about 35 instructions for the low-end PICs to over 80 instructions
for the high-end PICs. The instruction set includes instructions to perform a variety of operations
on registers directly, the accumulator and a literal constant or the accumulator and a register, as
well as for conditional execution, and program branching.
Some operations, such as bit setting and testing, can be performed on any numbered register, but
bi-operand arithmetic operations always involve W (the accumulator) ; writing the result back to
either W or the other operand register. To load a constant, it is necessary to load it into W before
it can be moved into another register. On the older cores, all register moves needed to pass
through W, but this changed on the "high end" cores.
PIC cores have skip instructions which are used for conditional execution and branching. The
skip instructions are: 'skip if bit set', and, 'skip if bit not set'. Because cores before PIC18 had
only unconditional branch instructions, conditional jumps are implemented by a conditional skip
The PIC architecture has no (or very meager) hardware support for automatically saving
processor state when servicing interrupts. The 18 series improved this situation by implementing
shadow registers which save several important registers during an interrupt.
1. Operation on W with 8-bit immediate ("literal") operand. E.g. movlw (move literal to W), andlw
(AND literal with W). One instruction peculiar to the PIC is retlw, load immediate into W and
return, which is used with computed branches to produce lookup tables.
2. Operation with W and indexed register. The result can be written to either the W register (e.g.
addwf reg,w). or the selected register (e.g. addwf reg,f).
3. Bit operations. These take a register number and a bit number, and perform one of 4 actions: set
or clear a bit, and test and skip on set/clear. The latter are used to perform conditional branches.
The usual ALU status flags are available in a numbered register so operations such as "branch on
carry clear" are possible.
4. Control transfers. Other than the skip instructions previously mentioned, there are only two: goto
and call.
5. A few miscellaneous zero-operand instructions, such as return from subroutine, and sleep to
enter low-power mode.
Performance
The architectural decisions are directed at the maximization of speed-to-cost ratio. The PIC
architecture was among the first scalar CPU designs,[citation needed] and is still among the simplest
and cheapest. The Harvard architecture—in which instructions and data come from separate
sources—simplifies timing and microcircuit design greatly, and this benefits clock speed, price,
and power consumption.
The PIC instruction set is suited to implementation of fast lookup tables in the program space.
Such lookups take one instruction and two instruction cycles. Many functions can be modelled in
Execution time can be accurately estimated by multiplying the number of instructions by two
cycles; this simplifies design of real-time code. Similarly, interrupt latency is constant at three
instruction cycles. External interrupts have to be synchronized with the four clock instruction
cycle, otherwise there can be a one instruction cycle jitter. Internal interrupts are already
synchronized. The constant interrupt latency allows PICs to achieve interrupt driven low jitter
timing sequences. An example of this is a video sync pulse generator.
Limits
The following limitations have been addressed in the PIC18, but still apply to earlier cores:
Conditional skip instructions are used instead of conditional jump instructions used by most
other architectures
Indexed addressing mode is very rudimentary
Stack:
o The hardware call stack is so small that program structure must often be flattened
o The hardware call stack is not addressable, so pre-emptive task switching cannot be implemented
With paged program memory, there are two page sizes to worry about: one for CALL and
GOTO and another for computed GOTO (typically used for table lookups). For example, on
PIC16, CALL and GOTO have 11 bits of addressing, so the page size is 2048 instruction words.
For computed GOTOs, where you add to PCL, the page size is 256 instruction words. In both
cases, the upper address bits are provided by the PCLATH register. This register must be
changed every time control transfers between pages. PCLATH must also be preserved by any
interrupt handler.
Compiler development
These properties have made it difficult to develop compilers that target PIC microcontrollers.
While several commercial compilers are available, in 2008, Microchip finally released their C
compilers, C18 and C30, for their line of 18f 24f and 30/33f processors. By contrast, Atmel's
AVR microcontrollers—which are competitive with PIC in terms of hardware capabilities and
price, but feature a more traditional instruction set—have long been supported by the GNU C
Compiler.
Also, because of these properties, PIC assembly language code can be difficult to comprehend.
Judicious use of simple macros can make PIC assembly language much more palatable, but at
the cost of a reduction in performance. For example, the original Parallax PIC assembler
("SPASM") has macros which hide W and make the PIC look like a two-address machine. It has
macro instructions like "mov b, a" (move the data from address a to address b) and "add b, a"
(add data from address a to data in address b). It also hides the skip instructions by providing
three operand branch macro instructions such as "cjne a, b, dest" (compare a with b and jump to
dest if they are not equal).
These devices feature a 12-bit wide code memory, a 32-byte register file, and a tiny two level
deep call stack. They are represented by the PIC10 series, as well as by some PIC12 and PIC16
devices. Baseline devices are available in 6-pin to 40-pin packages.
Generally the first 7 to 9 bytes of the register file are special-purpose registers, and the remaining
bytes are general purpose RAM. If banked RAM is implemented, the bank number is selected by
the high 3 bits of the FSR. This affects register numbers 16–31; registers 0–15 are global and not
affected by the bank select bits.
The ROM address space is 512 words (12 bits each), which may be extended to 2048 words by
banking. CALL and GOTO instructions specify the low 9 bits of the new code location;
additional high-order bits are taken from the status register. Note that a CALL instruction only
includes 8 bits of address, and may only specify addresses in the first half of each 512-word
page.
The instruction set is as follows. Register numbers are referred to as "f", while constants are
referred to as "k". Bit numbers (0–7) are selected by "b". The "d" bit selects the destination: 0
indicates W, while 1 indicates that the result is written back to source register f.
Receiver Module
It is an ideal for short-range remote control applications where cost is a primary concern.
The receiver module requires no external RF components except for the antenna. It generates
virtually no emissions, making FCC and ETSI approvals easy. The super-regenerative design
exhibits exceptional sensitivity at a very low cost.
PIN DIAGRAM:
PIN DESCRIPTION:
ANT:
Antenna input.
GND:
VCC pins are electrically connected and provide operating voltage for the Receiver. VCC
can be applied to either or both. VCC should be bypassed with a .1μF ceramic capacitor. Noise
on the power supply will degrade receiver sensitivity.
DATA:
Digital data output. This output is capable of driving one TTL or CMOS load. It is a
CMOS compatible output.
Operation:
Super-Regenerative AM Detection:
The data slicer converts the base-band analog signal from the super-regenerative detector
to a CMOS/TTL compatible output. Because the data slicer is AC coupled to the audio output,
there is a minimum data rate. AC coupling also limits the minimum and maximum pulse width.
Typically, data is encoded on the transmit side using pulse-width modulation (PWM) or non-
return-to-zero (NRZ).
The most common source for NRZ data is from a UART embedded in a micro-controller.
Applications that use NRZ data encoding typically involve microcontrollers. The most common
source for PWM data is from a remote control IC such as the HC-12E.
Data is sent as a constant rate square-wave. The duty cycle of that square wave will
generally be either 33% (a zero) or 66% (a one). The data slicer on the STR-433 is optimized for
use with PWM encoded data, though it will work with NRZ data if certain encoding rules are
followed.
Power Supply:
The STR-433 is designed to operate from a 5V power supply. It is crucial that this power
supply be very quiet. The power supply should be bypassed using a 0.1uF low-ESR ceramic
capacitor and a 4.7uF tantalum capacitor. These capacitors should be placed as close to the
power pins as possible. The STR- 433 is designed for continuous duty operation. From the time
power is applied, it can take up to 750mSec for the data output to become valid.
Antenna Input:
It will support most antenna types, including printed antennas integrated directly onto the
PCB and simple single core wire of about 17cm. The performance of the different antennas
433 MHz RF Transmitter is an ideal for remote control applications where low cost
and longer range is required. The transmitter operates from a 1.5-12V supply, making it ideal for
battery-powered applications. The transmitter employs a SAW-stabilized oscillator, ensuring
accurate frequency control for best range performance. Output power and harmonic emissions
are easy to control, making FCC and ETSI compliance easy.
PIN DIAGRAM:
PIN DESCRIPTION
ANT
VCC
Operating voltage for the transmitter. VCC should be bypassed with a .01uF ceramic
capacitor and filtered with a 4.7uF tantalum capacitor. Noise on the power supply will degrade
transmitter noise performance.
DATA
Digital data input. This input is CMOS compatible and should be driven with CMOS
level inputs.
GND
Operation
Theory
OOK (On off Keying) modulation is a binary form of amplitude modulation. When a
logical 0 (data line low) is being sent, the transmitter is off, fully suppressing the carrier. In this
state, the transmitter current is very low, less than 1mA. When a logical 1 is being sent, the
carrier is fully on. In this state, the module current consumption is at its highest, about 11mA
with a 3V power supply.
On-off keying (OOK) is a type of modulation that represents digital data as the presence
or absence of a carrier wave. In its simplest form, the presence of a carrier for a specific duration
OOK is the modulation method of choice for remote control applications where power
consumption and cost are the primary factors. Because OOK transmitters draw no power when
they transmit a 0, they exhibit significantly better power consumption than FSK transmitters.
OOK data rate is limited by the start-up time of the oscillator. High-Q oscillators which have
very stable center frequencies take longer to start-up than low-Q oscillators. The start-up time of
the oscillator determines the maximum data rate that the transmitter can send.
Data Rate
The oscillator start-up time is on the order of 40uSec, which limits the maximum data rate to 4.8
Kbit/sec
The transmitter is basically a negative resistance LC oscillator whose center frequency is tightly
controlled by a SAW resonator. SAW (Surface Acoustic Wave) resonators are fundamental
frequency devices that resonate at frequencies much higher than crystals.
Features
3.4 ENCODER
An encoder can be a device used to change a signal (such as a bit stream) or data into a
code. The code serves any of a number of purposes such as compressing information for
transmission or storage, encrypting or adding redundancies to the input code, or translating from
one code to another. This is usually done by means of a programmed algorithm, especially if any
part is digital, while most analog encoding is done with analog circuitry.
ENCODER HT12E:
The HT12E encoder is a CMOS IC built especially for remote control system
applications. It is capable of encoding 8 bits of address (A0-A7) and 4 bits of data (AD8-AD11)
information. Each address/data input can be set to one of the two logic states, 0 or 1. Grounding
the pins is taken as a 0 while a high can be given by giving +5V or leaving the pins open (no
connection). Upon reception of transmit enable (TE-active low), the programmed address/data
are transmitted together with the header bits via an RF medium.
CIRCUIT DIAGRAM
A decoder is a device which does the reverse of an encoder, undoing the encoding
so that the original information can be retrieved. The same method used to encode is usually just
reversed in order to decode. In digital electronics this would mean that a decoder is a multiple-
input, multiple-output logic circuit that converts coded inputs into coded outputs. Enable inputs
must be on for the decoder to function, otherwise its outputs assume a single "disabled" output
code word. Decoding is necessary in applications such as data multiplexing, 7 segment display
and memory address decoding.
HT12D:
The HT12D is a decoder IC made especially to pair with the HT12E encoder. It is a
CMOS IC made for remote control system application. The decoder is capable of decoding 8 bits
of address (A0-A7) and 4 bits of data (AD8-AD11) information. For proper operation, a pair of
encoder/decoder with the same number of addresses and data format should be chosen. The
decoders receive serial addresses and data from programmed encoders that are transmitted by a
carrier using an RF or an IR transmission medium. They compare the serial input data three
times continuously with their local addresses. If no error or unmatched codes are found, the input
data codes are decoded and then transferred to the output pins. The VT pin also goes high to
indicate a valid transmission. The decoders are capable of decoding information that consists of
N bits of address and 12_N bits of data. Of this series, the HT12D is arranged to provide 8
address bits and 4 data bits, and HT12F is used to decode 12 bits of address information.
FIGURE 9: OPERATION FLOW CHART OF DECODER
Relays are usuallly SPDT or DPDT but they can have many more sets of switch contacts, for
example relays with 4 sets of changeover contacts are readily available.
The coil will be obvious and it may be connected either way round. Relay coils produce brief
high voltage 'spikes' when they are switched off and this can destroy transistors and ICs in the
circuit. To prevent damage you must connect a protection diode across the relay coil.
COM = Common, always connect to this, it is the moving part of the switch.
NC = Normally Closed, COM is connected to this when the relay coil is off.
NO = Normally Open, COM is connected to this when the relay coil is on.
Connect to COM and NO if you want the switched circuit to be on when the relay coil is
on.
Connect to COM and NC if you want the switched circuit to be on when the relay coil is
off.
Choosing a relay
If you are choosing a relay for an existing PCB you will need to ensure that its
dimensions and pin arrangement are suitable. You should find this information in the
supplier's catalogue.
2. Coil voltage
The relay's coil voltage rating and resistance must suit the circuit powering the
relay coil. Many relays have a coil rated for a 12V supply but 5V and 24V relays are also
readily available. Some relays operate perfectly well with a supply voltage which is a
little lower than their rated value.
3. Coil resistance
The circuit must be able to supply the current required by the relay coil. You can
use Ohm's law to calculate the current:
For example: A 12V supply relay with a coil resistance of 400 Ohm passes a
current of 30mA. This is OK for a 555 timer IC (maximum output current 200mA), but it
is too much for most ICs and they will require a transistor to amplify the current.
The relay's switch contacts must be suitable for the circuit they are to control. You
will need to check the voltage and current ratings. Note that the voltage rating is usually
higher for AC, for example: "5A at 24V DC or 125V AC".
Most relays are SPDT or DPDT which are often described as "single pole
changeover" (SPCO) or "double pole changeover" (DPCO).
Like relays, transistors can be used as an electrically operated switch. For switching small DC
currents (< 1A) at low voltage they are usually a better choice than a relay. However, transistors
cannot switch AC (such as mains electricity) and in simple circuits they are not usually a good
choice for switching large currents (> 5A). In these cases a relay will be needed, but note that a
low power transistor may still be needed to switch the current for the relay's coil! The main
advantages and disadvantages of relays are listed below:
Battery Cells
Battery Cells are the most basic individual component of a battery. They consist of
a container in which the electrolyte and the lead plates can interact. Each lead-acid cell fluctuates
in voltage from about 2.12 Volts when full to about 1.75 volts when empty. Note the small
voltage difference between a full and an empty cell (another advantage of lead-acid batteries
over rival chemistries).
A lead-acid battery is an electrical storage device that uses a reversible chemical reaction to store
energy. It uses a combination of lead plates or grids and an electrolyte consisting of a diluted
sulphuric acid to convert electrical energy into potential chemical energy and back again. The
electrolyte of lead-acid batteries is hazardous to your health and may produce burns and other
permanent damage if you come into contact with it.
Lead-acid batteries are composed of a Lead-dioxide cathode, a sponge metallic Lead anode and a
Sulphuric acid solution electrolyte. This heavy metal element makes them toxic and improper
disposal can be hazardous to the environment. The cell voltage is 2 Volts
Discharge
During discharge, the lead dioxide (positive plate) and lead (negative plate) react with the
electrolyte of sulfuric acid to create lead sulfate, water and energy.
Charge
During charging, the cycle is reversed: the lead sulfate and water are electro-chemically
converted to lead, lead oxide and sulfuric acid by an external electrical charging source.
Many new competitive cell chemistries are being developed to meet the requirements of the auto
industry for EV and HEV applications.
Even after 150 years since its invention, improvements are still being made to the lead acid
battery and despite its shortcomings and the competition from newer cell chemistries the lead
acid battery still retains the lion's share of the high power battery market.
Gassing is the production and release of bubbles of hydrogen and oxygen in the electrolyte
during the charging process, particularly due to excessive charging, causing loss of electrolyte. In
large battery installations this can cause an explosive atmosphere in the battery room. Sealed
batteries are designed to retain and recombine these gases.
Shedding or loss of material from the plates may occur due to excessive charge rates or excessive
cycling. The result is chunks of lead on the bottom of the cell, and actual holes in the plates for
which there is no cure. This is more likely to occur in SLI batteries whose plates are composed
of a Lead "sponge", similar in appearance to a very fine foam sponge. This gives a very large
surface area enabling high power handling, but if deep cycled, this sponge will quickly be
consumed and fall to the bottom of the cells.
Decomposition of the Electrolyte Cells with gelled electrolyte are prone to deterioration of the
electrolyte and unexpected failure. Such cells are commonly used for emergency applications
such as UPS back up in case of loss of mains power. So as not to be caught unawares by an
unreliable battery in an emergency situation, it is advisable to incorporate some form of regular
self test into the battery.
INTRODUCTION:
Liquid crystal cell displays (LCDs) are used in similar applications where LEDs are used.
These applications are display of display of numeric and alphanumeric characters in dot matrix
and segmental displays.
The construction of a dynamic scattering liquid crystal cell:
The liquid crystal material may be one of the several components, which exhibit optical
properties of a crystal though they remain in liquid form. Liquid crystal is layered between
glass sheets with transparent electrodes deposited on the inside faces.
When a potential is applied across the cell, charge carriers flowing through the liquid
disrupt the molecular alignment and produce turbulence. When the liquid is not activated, it
is transparent. When the liquid is activated the molecular turbulence causes light to be
scattered in all directions and the cell appear to be bright.
This phenomenon is called dynamic scattering.
The construction of a field effect liquid crystal display is similar to that of the dynamic
scattering type, with the exception that two thin polarizing optical filters are placed at the
inside of each glass sheet. The liquid crystal material in the field effect cell is also of
different type from employed in the dynamic scattering cell. The material used is twisted
numeric type and actually twists the light passing through the cell when the latter is not
energised.
WORKING
When sufficient voltage is applied to the electrodes the liquid crystal molecules would be
aligned in a specific direction. The light rays passing through the LCD would be rotated by the
polarizer, which would result in activating/highlighting the desired characters. The power supply
should be of +5v, with maximum allowable transients of 10mv. To achieve a better/suitable
contrast for the display the voltage (VL) at pin 3 should be adjusted properly. A module should
not be removed from a live circuit.
The ground terminal of the power supply must be isolated properly so that voltage is
induced in it. The module should be isolated properly so that stray voltages are not induced,
which could cause a flicking display. LCD is lightweight with only a few, millimeters thickness
since the LCD consumes less power, they are compatible with low power electronic circuits, and
can be powered for long durations. LCD does not generate light and so light is needed to read the
display. By using backlighting, reading is possible in the dark. LCDs have long life and a wide
operating temperature range. Before LCD is used for displaying proper initialization should be
done.
LCDs with a small number of segments, such as those used in digital watches and pocket
calculators, have individual electrical contacts for each segment. An external dedicated circuit
supplies an electric charge to control each segment. This display structure is unwieldy for more
than a few display elements. Small monochrome displays such as those found in personal
16 LAMP+(L+) Enable
(E2)
The function of each pins of LCD is described below VCC, VSS and VEE while v and v provide
+5v and ground, respectively, v is used for controlling LCD contrast.
R/W, read/write
R/W input allows the user to write information to the LCD or read information from it.
R/W=1 when reading; R/W=0 when writing.
E, enable
D0 - D7
The 8-bit data pins, D0 – D7, are used to send information to the LCD or read contents of
the LCD’S internal registers. There are also instruction codes that can be sent to the LCD to clear
the display or force the cursor to the home position or blink the cursor. RS=0 is used to check the
busy flag bit to see if the LCD is ready to receive information. The busy flag is D7 and can be
read when R/W=1 and RS=0, as follows: if R/W=1, RS=0.when D7=1, the LCD is busy taking
care of internal operation and will not accept any new information, when D7=0, the LCD is
ready to receive new information.
10.MOTOR
Geared motors for robotics applications. Very easy to use and available in standard size.
Nut and threads on shaft to easily connect and internal threaded shaft for easily connecting it to
wheel.
Features
3.10BUZZER
It most commonly consists of a number of switches or sensors connected to a control unit that
determines if and which button was pushed or a preset time has lapsed, and usually illuminates a
light on the appropriate button or control panel, and sounds a warning in the form of a
continuous or intermittent buzzing or beeping sound. Initially this device was based on an
In game shows it is also known as a "lockout system," because when one person signals ("buzzes
in"), all others are locked out from signalling. Several game shows have large buzzer buttons
which are identified as "plungers".
The word "buzzer" comes from the rasping noise that buzzers made when they were
electromechanical devices, operated from stepped-down AC line voltage at 50 or 60 cycles.
Other sounds commonly used to indicate that a button has been pressed are a ring or a beep.
4. SOFTWARE TOOLS
4.1MP LAB X
MPLAB X IDE brings a host of features to enhance the debug experience during the design
phase of your project. Based on the open source NetBeans IDE from Apache Software
Foundation, Microchip has been able to add many frequently requested features very quickly and
easily, while also providing a much more extensible architecture to bring you even more new
features fast – including added support for PIC®, dsPIC®, AVR®, CEC and SAM
microcontrollers and digital signal controllers.
The PIC microcontroller can be programmed in different languages. Use a higher level language
– C language - to program microcontroller.
Its efficiency
The debugger can display program variables, examine and modify the PIC microcontroller's on-
chip registers, and it allows you to control program execution.
4.2 CODING
#include<pic.h>
#include<htc.h>
#include"lcd.h"
__CONFIG(0X3F72);
int loop=0,loop1=0,loop2=0,loop3=0;
void adc_display()
data(((temp/100)+0x30));
data((((temp%100)/10)+0x30));
data((((temp%100)%10)+0x30));
cmd(0xce);
data('%');
void adc_data1()
ADCON0=0x05;
if(ADGO==1)
while(ADGO==1);
i=ADRESH<<8;
j=ADRESL;
val=i+j;
temp=val/2.05;
__delay_ms(10);
void main()
ADCON1=0x82;
TRISA=0xff;
PORTA=0x00;
TRISB=0xff;
PORTB=0x00;
TRISC=0x00;
PORTC=0x00;
lcd_init();
__delay_ms(10);
cmd(0x80);
while(RB4==0);
__delay_ms(500);
cmd(0x80);
cmd(0xc0);
display("Happy journey...");
__delay_ms(500);
cmd(0x80);
cmd(0xc0);
display("TEMPATURE: ");
RC1=1;
while(1)
adc_data1();
RC1=0;
cmd(0xc0);
__delay_ms(500);
while(RB4==0);
cmd(0x80);
cmd(0xc0);
display("TEMPATURE: ");
RC1=1;
if((temp>0)&&(temp<=32)&&(loop==0))
loop=1;
RC3=0;
__delay_ms(1000);
if((temp>32)&&(temp<=80)&&(loop==1))
RC3=1;
loop=0;
cmd(0x80);
if(RB7==1)
__delay_ms(500);
if((RB7==1)&&(loop1==0))
cmd(0x80);
loop1=1;
RC0=1;
__delay_ms(1000);
if((RB7==0)&&(loop1==1))
__delay_ms(500);
if(RB7==0)
loop1=0;
cmd(0x80);
RC0=0;
__delay_ms(1000);
if((RB6==1)&&(loop2==0))
__delay_ms(500);
if(RB6==1)
cmd(0x80);
loop2=1;
RC2=1;
__delay_ms(1000);
if((RB6==0)&&(loop2==1))
__delay_ms(500);
cmd(0x80);
loop2=0;
RC2=0;
__delay_ms(1000);
if((RB5==1)&&(loop3==0))
loop3=1;
cmd(0x80);
RC1=0;
__delay_ms(1000);
cmd(0x80);
loop3=0;
RC1=1;
__delay_ms(1000);
The speed, the speed of the vehicle can be maintained in the limited speed without the
intervention of the driver. If this can be implemented effectively rash driving and over speeding
in the speed limit zones can be reduced to a large extend, thus decreasing the total number of
road accidents in our country
In our study, we have presented a reliable model for speed control in vehicles. This system can
be easily implemented on commercial vehicles and has a large number of applications. One of its
uses is in the automobile sector where it can be used to increase road safety. We have explained
about this application in detail in the paper Other vehicular applications of this system are toll
collection systems on highways. These are being currently in countries like Norway and Italy.
This system can also be used in traffic light areas and can prevent constant monitoring of
crowded areas. So, there is a lot of scope for implementing this system in roadways not only in
developed countries but also in the developing and underdeveloped world as it is very cost
effective and requires less maintenance than other comparable systems. There is also scope for
further research and development in the system making it more convenient for commuters at
night. A clock system can be introduced which can help to bypass the automatic speed control
system at night when there are lesser chances of accidents in certain areas like schools and
hospital zones.
[1]. William stalings, “wireless Communication and networks” pearson, 2nd Edition,2009.
2002.
[4]. Kumari Nimmi , Ruby Kumari,Pragati Bag, “Wireless Motor Speed Control Using Rf
Sensor,” Dept. Of Elect & Telecommunication, Bharath University Chennai-73.
[5]. Joshué Pérez *, Fernando Seco, Vicente Milanés, Antonio Jiménez, Julio C. Díaz And
Teresa De Pedro, “An RFID-Based Intelligent Vehicle Speed Controller Using Active Traffic
Signals”.
[6]. Preeti, Sandeep Dogra, Rashmi Jain, “DC Drives: Microcontroller Based Control”.
[7]. Sudip K. Mazumder, “Rotor Position Feedback Over An RF Link For Motor Speed
Control”, Senior Member, IEEE, Rongjun Huang, Student Member, IEEE, and Kaustuva
Acharya.
[10]. www.products.boch-mobilitysolutions.com/en/de/driving_comfort/driving_comfort_syst
ems_for_passenger_cars_1 [4] www.microwavejournal.com/articles/5271-modern-rfidreader
[11]. www.electronics.stackexchange.com
[13]. Joshue Perez Rastelli, Fernando Seco, Vicente Milanes, Antonio Jimenez, Dıaz Julio C., et
al.. An RFID-Based Intelligent Vehicle Speed Controller Using Active Traffic Signals. Sensors,
MDPI, 2010. .
[14]. Nellipudi. Siva Rama Krishna Prasad, Arepalli Rajesh. RFID- based Hospital Real Time
Patient Management System. International Journal of Computer Trends and Technology.
Volume 3 Issue 3- 2012.
[15]. Seda Yildirim, Kenan Aydin. A Qualitative Study on Perspectives of Retailers about RFID
System in Turkey. International Journal of Computer Trends and Technology. Volume 19
Number 2-2015.
[16]. U. Jyothi Kameswari, M Satwik, A Lokesh, G Venkateswara Reddy. A design model for
automatic vehicle speed controller. International Journal of Computer Applications (0975-8887).
Volume 35-No. 9, December 2011.
[17]. Manjunath Chincholi1, Dr. K. Chandrashekara2. Design & Analysis of Vehicle Speed
Control Unit Using RF Technology. International Advanced Research Journal in Science,
Engineering and Technology. Vol. 2, Issue 8, August 2015. ISSN(Online) 239