1.1 General: 1.2 Scope of The Project
1.1 General: 1.2 Scope of The Project
INTRODUCTION
1.1 General
A movable spy robot with a remote controller is implemented. The robot is not quite huge
one and designed to be easy in transportation. The remote controller is to control the robot to
reach the desirable destination. The spy robot is made up of PICs microcontroller, a wireless
camera, an antenna, batteries and four movable wheels. The robot will transmit the images
that are spied via antenna to the laptop for a good spying system.
The user will get required information due to a movable the spy robot and seeing the
images when it spies. The system is to build a spy robot that has a wireless camera and the
capabilities to control the movement by using the remote controller. The images will appear
on the laptop which is intended for the visual. In this research, the wireless camera is
involved the two direction to rotate left and right. It is just only to monitor the images around
the robot. The block diagram of remote operated spy robot is shown in figure.
Scope of the project is to handle the spy in efficient way and to operate the spy anywhere
in the world through internet that is to reduce the human energy and time. It is also has the
scope for security purpose and industrial purpose.
The project is to design and develop an intelligence robot to detect dangerous Gas/Smoke
by using a microcontroller. The robot is designed to move as per the command given by the
controller. To move in all the direction like forward, reverse, right and left. If any gas/smoke
detected, robot will switch ON the Alarm Unit. The video and audio are monitored at the
remote PC. For transmitting audio and video, wireless camera has been used.
The proposed system composed of surveillance robot, wireless charge control station.
Surveillance robot is rectangular shape and it has three wheels. It communicates with device
through wireless medium such as Bluetooth. Robot has some sensors like Humidity,
Temperature, Ultra sonic and PIR. Humidity sensor senses the Humidity around the robot.
While Temperature sensor senses the climate changes based on the numerical temperature
value. Ultra sonic sensor senses the object present in the way in which the robot has to go.
PIR sensor senses the presence of human near the robot. These sensor notations and the
information can be received in the mobile with the use of a GSM module. Each and every
change can be sensed and the changes can be seen in a mobile through a message. The
wireless charging system charges the battery in the robot and it gives the power to all the
other modules.
The proposed system SPY ROBOT uses Embedded System with a technique of
PIC16F866 micro controller with a software of keil uv vision.
By using the hardware components DC gear motor, Batteries, RF module, IR sensor, light
emitting diodes, transmitter, receiver and spy camera. Spy camera is connected to the internet
and operation of the robot is done within a some range and section of viewing can be done
throughout the world via internet
EMBEDDED SYSTEM
Embedded systems are controlled by one or more main processing cores that are
typically either microcontrollers or digital signal processors (DSP). The key characteristic,
however, is being dedicated to handle a particular task, which may require very powerful
processors. For example, air traffic control systems may usefully be viewed as embedded, even
though they involve mainframe computers and dedicated regional and national networks
between airports and radar sites.
Since the embedded system is dedicated to specific tasks, design engineers can optimize
it to reduce the size and cost of the product and increase the reliability and performance. Some
embedded systems are mass-produced, benefiting from economies of scale.
Physically embedded systems range from portable devices such as digital watches and
MP3 players, to large stationary installations like traffic lights, factory controllers, or the
systems controlling nuclear power plants. Complexity varies from low, with a single
microcontroller chip, to very high with multiple units, peripherals and networks mounted inside
a large chassis or enclosure.
In general, "embedded system" is not a strictly definable term, as most systems have
some element of extensibility or programmability. For example, handheld computers share
some elements with embedded systems such as the operating systems and microprocessors
which power them, but they allow different applications to be loaded and peripherals to be
connected. Moreover, even systems which don't expose programmability as a primary feature
generally need to support software updates.
Labeled parts include microprocessor (4), RAM (6), flash memory (7).Embedded
systems programming is not like normal PC programming. In many ways, programming for an
embedded system is like programming PC 15 years ago. The hardware for the system is usually
chosen to make the device as cheap as possible. Spending an extra dollar a unit in order to
make things easier to program can cost millions. Hiring a programmer for an extra month is
cheap in comparison. This means the programmer must make do with slow processors and low
memory, while at the same time battling a need for efficiency not seen in most PC applications.
Below is a list of issues specific to the embedded field.
2.2 History
2.3 Tools
Debugging tools are another issue. Since you can't always run general programs on your
embedded processor, you can't always run a debugger on it. This makes fixing your program
difficult. Special hardware such as JTAG ports can overcome this issue in part. However, if
you stop on a breakpoint when your system is controlling real world hardware (such as a
motor), permanent equipment damage can occur. As a result, people doing embedded
programming quickly become masters at using serial IO channels and error message style
debugging.
2.4 Debugging
Embedded debugging may be performed at different levels, depending on the facilities
available. From simplest to most sophisticate they can be roughly grouped into the following
areas:
Interactive resident debugging, using the simple shell provided by the embedded
operating system (e.g. Forth and Basic.
Reliability
Embedded systems often reside in machines that are expected to run continuously for
years without errors and in some cases recover by themselves if an error occurs.
Therefore the software is usually developed and tested more carefully than that for
personal computers, and unreliable mechanical moving parts such as disk drives, switches or
buttons are avoided.
Software Architecture
In this design, the software simply has a loop. The loop calls subroutines, each of which
manages a part of the hardware or software.
Some embedded systems are predominantly interrupt controlled. This means that tasks
performed by the system are triggered by different kinds of events. An interrupt could be
generated for example by a timer in a predefined frequency, or by a serial port controller
Cooperative Multitasking
The advantages and disadvantages are very similar to the control loop, except that
adding new software is easier, by simply writing a new task, or adding to the queue-interpreter.
Primitive Multitasking
This is the level at which the system is generally considered to have an "operating
system" kernel. Depending on how much functionality is required, it introduces more or less
of the complexities of managing multiple tasks running conceptually in parallel.
As any code can potentially damage the data of another task (except in larger systems using
an MMU) programs must be carefully designed and tested, and access to shared data must be
controlled by some synchronization strategy, semaphores or a non-blocking synchronization
scheme.
Embedded systems which are used to perform a specific task or operation in a specific
time period those systems are called as real-time embedded systems. There are two types of
real-time embedded systems.
These embedded systems follow an absolute dead line time period i.e.., if the tasking is
not done in a particular time period then there is a cause of damage to the entire equipment.
Eg: Consider a TV remote control system, if the remote control takes a few milliseconds delay
it will not cause damage either to the TV or to the remote control. These systems which will
not cause damage when they are not operated at considerable time period those systems comes
under soft real-time embedded systems.
Whenever a person comes near the door, it captures the image of a person and sends to
the desktop of your computer which is connected to internet. This gives an alerting message
with image on to the desktop of your computer, and then you can open the door lock just by
clicking the mouse. Fig: 2.2 show the network communications in embedded systems.
The central processing unit (c.p.u) can be any one of the following microprocessor,
microcontroller, digital signal processing.
Among these Microcontroller is of low cost processor and one of the main advantage
of microcontrollers is, the components such as memory, serial communication
interfaces, analogto digital converters etc.., all these are built on a single chip.
The numbers of external components that are connected to it are very less according to
the application
Microprocessors are more powerful than microcontrollers. They are used in major
applications with a number of tasking requirements.
1. Consumer applications:
At home we use a number of embedded systems which include microwave oven, remote
control, vcd players, dvd players, camera etc….
3. Industrial automation
Today a lot of industries are using embedded systems for process control. In industries
we design the embedded systems to perform a specific operation like monitoring temperature,
pressure, humidity ,voltage, current etc.., and basing on these monitored levels we do control
other devices, we can send information to a centralized monitoring station.
In critical industries where human presence is avoided there we can use robots which are
programme
MICROCONTROLLER
Pins 1 to 8 − These pins are known as Port 1. This port doesn’t serve any other
functions. It is internally pulled up, bi-directional I/O port.
Pin 9 − It is a RESET pin, which is used to reset the microcontroller to its initial
values.
Pins 18 & 19 − These pins are used for interfacing an external crystal to get the
system clock.
Pins 21 to 28 − These pins are known as Port 2. It serves as I/O port. Higher order
address bus signals are also multiplexed using this port.
Pin 29 − This is PSEN pin which stands for Program Store Enable. It is used to read
a signal from the external program memory.
Pin 30 − This is EA pin which stands for External Access input. It is used to
enable/disable the external memory interfacing.
Pin 31 − This is ALE pin which stands for Address Latch Enable. It is used to
demultiplex the address-data signal of port.
Pins 32 to 39 − These pins are known as Port 0. It serves as I/O port. Lower order
address and data bus signals are multiplexed using this port.
8051 models may also have a number of special, model-specific features, such as UARTs,
ADC, OpAmps, etc…
In the following diagram, the system bus connects all the support devices to the CPU. The
system bus consists of an 8-bit data bus, a 16-bit address bus and bus control signals. All other
devices like program memory, ports, data memory, serial interface, interrupt control, timers,
and the CPU are all interfaced together through the system bus.
8051 microcontrollers have 4 I/O ports each of 8-bit, which can be configured as input or
output. Hence, total 32 input/output pins allow the microcontroller to be connected with the
peripheral devices.
Pin configuration: i.e. the pin can be configured as 1 for input and 0 for output as
per the logic state.
o Input/Output (I/O) pin − All the circuits within the microcontroller must
be connected to one of its pins except P0 port because it does not have pull-up
resistors built-in.
In order to apply logic 1 (5V) on this output pin, it is necessary to build an external pullup
resistor.
Port 1
P1 is a true I/O port as it doesn’t have any alternative functions as in P0, but this port can be
configured as general I/O only. It has a built-in pull-up resistor and is completely compatible
with TTL circuits.
Port 2
P2 is similar to P0 when the external memory is used. Pins of this port occupy addresses
intended for the external memory chip. This port can be used for higher address byte with
addresses A8-A15. When no memory is added then this port can be used as a general
input/output port similar to Port 1.
Port 3
In this port, functions are similar to other ports except that the logic 1 must be applied to
appropriate bit of the P3 register.
trivial products, such as a musical birthday card or electronic price tag, can include an MCU.
They are an important factor in the digitization of analog systems, such as sound systems or
pretty useful to know how they work. The computer or digital controller has three main
elements: input and output devices, which communicate with the outside world; a processor,
to make calculations and handle data operations; and memory, to store programs and data.
Figure 1.1 shows these in a little more detail. Unlike the conventional microprocessor system
(such as a PC), which has separate chips on a printed circuit board, the microcontroller contains
all these elements in one chip. The MCU is essentially a computer on a chip; however, it still
needs input and output devices, such as a keypad and display, to form a working system. The
microcontroller stores its program in ROM (read only memory). In the past, UV (ultraviolet)
erasable programmable ROM (EPROM) was used for prototyping or small batch production,
and one-time programmable ROM for longer product runs. Programmable ROM chips are
programmed in the final stages of manufacture, while EPROM could be programmed by the
user.
The range of microcontrollers now available developed because the features of the MCU used
in any particular circuit must be as closely matched as possible to the actual needs of the
● Range of interfaces.
The PIC16F877A is useful as a reference device because it has a minimal instruction set but
a full range of peripheral features. The general approach to microcontroller application design
followed here is to develop a design using a chip that has spare capacity, and then later select
a related device that has the set of features most closely matching the application requirements.
If necessary, we can drop down to a lower range (PIC10/12 series), or if it becomes clear that
more power is needed, we can move up to a higher specification chip (PIC18/24 series). This
is possible as all devices have the same core architecture and compatible instructions sets.
16 bits. The A suffix indicates that the chip has a maximum clock speed of 20 MHz, the main
upgrade from the original 16F877 device. These chips can otherwise be regarded as identical,
the suffix being optional for most purposes. The 16F877A pin-out is seen in Figure 1.2 and
the internal architecture in Figure 1.3 . The latter is a somewhat simplified version of the
definitive block diagram in the data sheet. Program Execution The chip has 8k (8096 / 14 bits)
of flash ROM program memory, which has to be programmed via the serial programming pins
PGM, PGC, and PGD. The fixed-length instructions contain both the operation code and
operand (immediate data, register address, or jump address). The mid-range PIC has a limited
number of instructions (35) and is therefore classified as a RISC (reduced instruction set
computer) processor.
enable pin.
Comparator2 output.
8. RE0/!RD/AN5 PORTE Digital I/O-Read control for parallel slave port- Analog input 5
9. RE1/!WR/AN6 Digital I/O-Write control for parallel slave port- Analog input 6
10. RE2/!CS/AN7 Digital I/O-Chip Select control for parallel slave port-
Analog input 7.
I2C mode.
Depending on the device selected, there are either five ports or three ports available. Some pins of
the I/O ports are multiplexed with an alternate function from the peripheral features on the device.
In general, when a peripheral is enabled, that pin may not be used as a general purpose I/O pin. Each
port has three registers for its operation. These registers are:
The data latch (LAT register) is useful for read-modify-write operations on the value that the I/O pins
are driving.
PORTA is a 7-bit wide, bi-directional port. The corresponding Data Direction register is TRISA. Setting
a TRISA bit (= 1) will make the corresponding PORTA pin an input (i.e., put the corresponding output
driver in a Hi-Impedance mode). Clearing a TRISA bit (= 0) will make the corresponding PORTA pin an
output (i.e., put the contents of the output latch on the selected pin). Reading the PORTA register
reads the status of the pins, whereas writing to it will write to the port latch. The Data Latch register
(LATA) is also memory mapped. Read-modify-write operations on the LATA register reads and writes
the latched output value for PORTA. The RA4 pin is multiplexed with the Timer0 module clock input
to become the RA4/T0CKI pin. The RA4/ T0CKI pin is a Schmitt Trigger input and an open drain output.
All other RA port pins have TTL input levels and full CMOS output drivers. The other PORTA pins are
multiplexed with analog inputs and the analog VREF+ and VREF- inputs. The operation of each pin is
selected by clearing/setting the control bits in the ADCON1 register (A/D Control Register1). The TRISA
register controls the direction of the RA pins, even when they are being used as analog inputs. The
user must ensure the bits in the TRISA register are maintained set when using them as analog inputs.
PORTB is an 8-bit wide, bi-directional port. The corresponding Data Direction register is TRISB. Setting
a TRISB bit (= 1) will make the corresponding PORTB pin an input (i.e., put the corresponding output
driver in a Hi-Impedance mode). Clearing a TRISB bit (= 0) will make the corresponding PORTB pin an
is also memory mapped. Read-modify-write operations on the LATB register reads and writes the
latched output value for PORTB. Each of the PORTB pins has a weak internal pull-up. A single control
bit can turn on all the pull-ups. This is performed by clearing bit RBPU (INTCON2<7>). The weak pull-
up is automatically turned off when the portpin is configured as an output. The pull-ups are disabled
on a Power-on Reset Four of the PORTB pins, RB7:RB4, have an interrupt- on-change feature. Only
pins configured as inputs can cause this interrupt to occur (i.e., any RB7:RB4 pin configured as an
output is excluded from the interrupt- on-change comparison). The input pins (of RB7:RB4) are
compared with the old value latched on the last read of PORTB. The “mismatch” outputs of RB7:RB4
are OR’ed together to generate the RB Port Change Interrupt with flag bit, RBIF (INTCON<0>). This
interrupt can wake the device from SLEEP. The user, in the Interrupt Service Routine, can clear the
a) Any read or write of PORTB (except with the MOVFF instruction). This will end the
mismatch condition.
b) Clear flag bit RBIF. A mismatch condition will continue to set flag bit RBIF. Reading
PORTB will end the mismatch condition and allow flag bit RBIF to be cleared.
PORTC is an 8-bit wide, bi-directional port. The corresponding Data Direction register is TRISC. Setting
a TRISC bit (= 1) will make the corresponding PORTC pin an input (i.e., put the corresponding output
driver in a Hi-Impedance mode). Clearing a TRISC bit (= 0) will make the corresponding PORTC pin an
output (i.e., put the contents of the output latch on the selected pin). The Data Latch register (LATC)
is also memory mapped. Read-modify-write operations on the LATC register reads and writes the
latched output value for PORTC. PORTC is multiplexed with several peripheral functions PORTC pins
have Schmitt Trigger input buffers. When enabling peripheral functions, care should be taken in
defining TRIS bits for each PORTC pin. Some peripherals override the TRIS bit to make a pin an out-
This section is applicable only to the PIC18F4X2 devices. PORTD is an 8-bit wide, bi-directional port.
The corresponding Data Direction register is TRISD. Setting a TRISD bit (= 1) will make the
corresponding PORTD pin an input (i.e., put the corresponding output driver in a Hi-Impedance mode).
Clearing a TRISD bit (= 0) will make the corresponding PORTD pin an output (i.e., put the contents of
the output latch on the selected pin). The Data Latch register (LATD) is also memory mapped. Read-
modify-write operations on the LATD register reads and writes the latched output value for PORTD.
PORTD is an 8-bit port with Schmitt Trigger input buffers. Each pin is individually configurable as an
input or output. PORTD can be configured as an 8-bit wide microprocessor port (parallel slave port)
by setting control bit PSPMODE (TRISE<4>). In this mode, the input buffers are TTL. See Section 9.6 for
This section is only applicable to the PIC18F4X2 devices. PORTE is a 3-bit wide, bi-directional port. The
corresponding Data Direction register is TRISE. Setting a TRISE bit (= 1) will make the corresponding
PORTE pin an input (i.e., put the corresponding output driver in a Hi-Impedance mode). Clearing a
TRISE bit (= 0) will make the corresponding PORTE pin an output (i.e., put the contents of the output
latch on the selected pin). The Data Latch register (LATE) is also memory mapped. Read-modify-write
operations on the LATE register reads and writes the latched output value for PORTE. PORTE has three
pins (RE0/RD/AN5, RE1/WR/AN6 and RE2/CS/AN7) which are individually configurable as inputs or
outputs. These pins have Schmitt Trigger input buffers. PORTE pins are multiplexed with analog inputs.
When selected as an analog input, these pins will read as '0's. TRISE controls the direction of the RE
The 877 chip has two main clock modes, CR and XT. The CR mode needs a simple capacitor and resistor
circuit attached to CLKIN, whose time constant (RC) determines the clock period. R should be between
For example, if R=10 k Ω and C=10nF, the clock period will be around 2. C . R . 200 μ s
(calculated from the CR rise/fall time) and the frequency about 5kHz. This option is
acceptable when the program timing is not critical. The XT mode is the one most commonly
used, since the extra component cost is small compared with the cost of the chip itself and
accurate timing is often a necessity. An external crystal and two capacitors are fitted to
CLKIN and CLKOUT pins. The crystal frequency in this mode can be from 200 KHz to 4
MHz and is typically accurate to better than 50 ppm (parts per million) or 0.005%. A
convenient value is 4Mz, as this is the maximum frequency possible with a standard crystal
and gives an instruction execution time of 1.000 μ s (1 million instructions per second, or 1
Mips).
A low-speed crystal can be used to reduce power consumption, which is proportional to clock
speed in CMOS devices. The LP (low-power) mode supports the clock frequency range 32–
200 kHz. To achieve the maximum clock speed of 20MHz, a high-speed (HS) crystal is
needed, with a corresponding increase in power consumption. The MCU configuration fuses
must be set to the required clock mode when the chip is programmed. Many PIC chips now
have an internal oscillator, which needs no external components. It is more accurate than the
RESET:-
6. RESET Instruction
Most registers are unaffected by a RESET. Their status is unknown on POR and unchanged by all other
RESETS. The other registers are forced to a “RESET state” on Power-on Reset, MCLR, WDT Reset,
Brownout Reset, MCLR Reset during SLEEP and by the RESET instruction. Most registers are not
affected by a WDT wake-up, since this is viewed as the resumption of normal operation. Status bits
from the RCON register, RI, TO, PD,POR and BOR, are set or cleared differently in different RESET
situations. These bits are used in software to determine the nature of the RESET. The Enhanced MCU
devices have a MCLR noise filtering the MCLR Reset path. The filter will detect and ignore small pulses.
The MCLR pin is not driven low by any internal RESETS, including the WDT.
A Power-on Reset pulse is generated on-chip when VDD rise is detected. To take advantage of the POR
circuitry, just tie the MCLR pin directly (or through a resistor) to VDD. This will eliminate external RC
components usually needed to create a Power-on Reset delay. A minimum rise rate for VDD is
specified. When the device starts normal operation (i.e., exits the RESET condition), device operating
parameters (voltage, frequency, temperature, etc.) must be met to ensure operation. If these
conditions are not met, the device must be held in RESET until the operating conditions are met.
Serial data connections are useful because only one or two signal wires are needed compared
with at least eight data lines for a parallel bus plus control signals. The typical PIC
microcontroller offers a choice of serial interfaces. The best one for any given
communication channel depends on the distance between nodes, the speed, and the number of
3.7 USART:
asynchronous means no separate clock signal is needed to time the data reception, so only a
data send, data receive, and ground wires are needed. It is quick and simple to implement if a
limited data bandwidth is acceptable. A common application is connecting the PIC chip to a
host PC for uploading data acquired by the MCU subsystem (Figure 1.10 ). The USART
link can send data up to 100 meters by converting the signal to higher-voltage levels
(typically 12 V). The digital signal is inverted and shifted to become bipolar (symmetrical
The PIC 16F877 has a dedicated hardware RS232 port, but CCS C allows any pin to be set
up as an RS232 port, providing functions to generate the signals in software. The basic form
of the signal has 8 data bits and a stop and start bit. The bit period is set by the baud rate. A
typical value is 9600 baud, which is about 10k bits per second. The bit period is then about
When starting a new project, simply select the microcontroller you use from the Device
Database and the µVision IDE sets all compiler, assembler, linker, an memory options for
you.
Numerous example programs are included to help you get started with the most popular
embedded 8051 devices.
The Keil µVision Debugger accurately simulates on-chip peripherals (I²C, CAN, UART, SPI,
Interrupts, I/O Ports, A/D Converter, D/A Converter, and PWM Modules) of your 8051
device. Simulation helps you understand hardware configurations and avoids time wasted on
setup problems. Additionally, with simulation, you can write and test applications before
target hardware is available.
When you are ready to begin testing your software application with target hardware, use the
MON51, MON390, MONADI, or FlashMON51 Target Monitors, the ISD51 In-System
Debugger, or the ULINK USB-JTAG Adapter to download and test program code on your
target system.
The first feature of the Mobizen Screen Recorder is 'Record'. This feature is for recording the
screen of your phone. Once you have tapped on this option of the app, anything that you are
doing on your Smartphone will get recorded. You can use this option for recording high-quality
videos of your games.
To record a video of your game, all you have to do is to tap on the Record option while you are
playing the game. This screen recorder app will begin recording the screen as well as the game
sounds immediately. You can pause or stop the recording at any time by clicking on the Record
option again. The video recorded by the app will get stored on the SD Card if you have one
installed in your Smartphone. Otherwise, it will get stored in the internal memory.
Mobizen Screen Recorder also gives you the opportunity of capturing screenshots by providing
you the 'Capture' option. Like the Record feature, this feature is also very easy-to-use. For
capturing a snapshot of the screen of your phone with this screen recorder app, you have to
simply tap on the 'Capture' option. The app is going to instantly capture the screen and store
the image in the Gallery of your Smartphone.
Aside from the screen recording and screen capture options, Mobizen Screen Recorder offers
up a wide range of video editing tools to you as well. You can find them by tapping on the
Circle menu option of the app. The video editing tools that are made available to you by this
screen recorder app include addition of an intro video, addition of an outro video, trimming of
the video, addition of background music and screen capture. These tools are offered to help
you enhance the quality of your videosMobizen Screen Recorder has a settings menu too which
A smart feature of this screen recorder app is Face cam. This feature allows you to not only
record a video of the game you are playing but also to record your video and voice as well
while you are playing it. In order to make use of this feature, you will have to enable it in the
settings menu of the app.
4.3 Features:
BASIC COMPONENTS
5.1 Diode:
BASIC COMPONENTS :
Semiconductor Diodes:
Most modern diodes are based on semiconductor P-N junctions. In a P-N diode,
conventional current can flow from the P-type side (the anode) to the N-type side (the
cathode), but not in the opposite direction. A semiconductor diode s current-voltage, or I-V,
characteristic curve is ascribed to the behaviour of the so-called depletion layer or depletion
zone which exists at the P-N junction between the differing semiconductors. When a P-N
junction is first created, conduction band (mobile) electrons from the N-doped region diffuse
into the P-doped region where there is a large population of holes (places for electrons in
which no electron is present) with which the electrons recombine. When a mobile electron
recombines with a hole, the hole vanishes and the electron is no longer mobile. Thus, two
charge carriers have vanished. The region around the P-N junction becomes depleted of
charge carriers and thus behaves as an insulator.
Encapsulated in a single chip/package (IC), the 7805 is a positive voltage DC regulator that has
only 3 terminals. They are: Input voltage, Ground, Output Voltage. Although the 7805 were
primarily designed for a fixed-voltage output(5V). 7812 Voltage regulator
12V DC Voltage Regulator Data Sheet / Specs The 78012 provides circuit designers with an
easy way to regulate DC voltages to 12v. Encapsulated in a single chip/package (IC), the 78012
is a positive voltage DC regulator that has only 3 terminals. They are: Input voltage, Ground,
Output Voltage. Although the 78012 were primarily designed for a fixed-voltage output (12V).
7812 Voltage regulator It is indeed possible to use external components in order to obtain DC
output voltages of: 5V, 6V, 8V, 9V, 10V, 12V, 15V, 18V, 20V, 24V. Note that the input voltage
must, of course, be greater than the required output voltage, so that it can be regulated
downwards
5.3 Capacitor:
In the Regulated power supply the rating of the chosen capacitor filter is 1000µF.
The capacitance is greatest when there is a narrow separation between large areas of conductor,
hence capacitor conductors are often called "plates," referring to an early means of
construction. In practice, the dielectric between the plates passes a small amount of leakage
current and also has an electric field strength limit, resulting in a breakdown voltage, while the
conductors and leads introduce an undesired inductance and resistance. Capacitors are widely
used in electronic circuits for blocking direct current while allowing alternating current to pass,
in filter networks, for smoothing the output of power supplies, in the resonant circuits that tune
radios to particular frequencies, in electric power transmission systems for stabilizing voltage
and power flow, and for many other purposes.
5.4 Transistor:
An NPN transistor can be considered as two diodes with a shared anode. In typical operation,
the base-emitter junction is forward biased and the base–collector junction is reverse biased. In
an NPN transistor, for example, when a positive voltage is applied to the base–emitter junction,
the equilibrium between thermally generated carriers and the repelling electric field of the
depletion region becomes unbalanced, allowing thermally excited electrons to inject into the
base region. These electrons wander (or "diffuse") through the base from the region of high
concentration near the emitter towards the region of low concentration near the collector. The
electrons in the base are called minority carriers because the base is doped p-type which would
make holes the majority carrier in the base.
Transistors are manufactured in different shapes but they have three leads (legs). The BASE -
which is the lead responsible for activating the transistor.
The COLLECTOR - which is the positive lead.The EMITTER - which is the negative lead.The
diagram below shows the symbol of an NPN transistor. They are not always set out as shown
in the diagrams to the left and right, although the ‘tab’ on the type shown to the left is usually
next to the ‘emitter.
5.5 Resistors:
In electronics, an LED circuit or LED driver is an electrical circuit used to power a light-
emitting diode (LED). The circuit must provide sufficient current to light the LED at the
required brightness, but must limit the current to prevent damaging the LED. The voltage
drop across an LED is approximately constant over a wide range of operating current;
therefore, a small increase in applied voltage greatly increases the current. Very simple
circuits are used for low-power indicator LEDs. More complex, current source circuits are
HARDWARE DESCRIPTION
RF Module
IR Sensor
Light Emitting Diodes (LED’s)
DC Gear Motors
L293D
PIC16F866
6.1 RF Module
An RF module (radio frequency module) is a (usually) small electronic circuit used to
transmit and/or receive radio signals on one of a number of carrier frequencies. RF modules
are widely used in electronic design owing to the difficulty of designing radio circuitry. Good
electronic radio design is notoriously complex because of the sensitivity of radio circuits and
the accuracy of components and layouts required to achieve operation on a specific frequency.
Design engineers will design a circuit for an application which requires radio communication
and then "drop in" a radio module rather than attempt a discrete design, saving time and
money on development.
RF modules are most often used in medium and low volume products for consumer
applications such as garage door openers, wireless alarm systems, industrial remote controls,
smart sensor applications, and wireless home automation systems. They are sometimes used
to replace older infra red communication designs as they have the advantage of not requiring
line-of-sight operation.
Several carrier frequencies are commonly used in commercially-available RF modules,
including 433.92 MHz, 315 MHz, 868 MHz and 915 MHz. These frequencies are used
because of national and international regulations governing the used of radio for
communication.
The RF module, as the name suggests, operates at Radio Frequency. The corresponding
frequency range varies between 30 kHz & 300 GHz. In this RF system, the digital data is
The RF module is often used along with a pair of encoder/decoder. The encoder is used
for encoding parallel data for transmission feed while reception is decoded by a
decoder. HT12E-HT12D, HT640-HT648, etc. are some commonly used encoder/decoder pair
ICs.
RF Transmitter
Pin
Function Name
No
RF Receiver
Pin
Function Name
No
Vehicle monitoring
Remote control
Telemetry
Small-range wireless network
Wireless meter reading
Access control systems
Wireless home security systems
The wavelengths of these regions and their applications are shown below.
The frequency range of infrared is higher than microwave and lesser than visible light.
An infrared sensor emits and/or detects infrared radiation to sense its surroundings as shown
in fig 6.2.1 the working of any Infrared sensor is governed by three laws: Planck’s Radiation
law, Stephen – Boltzmann law and Wien’s Displacement law. Planck’s law states that “every
object emits radiation at a temperature not equal to 00K”. Stephen – Boltzmann law states that
“at all wavelengths, the total energy emitted by a black body is proportional to the fourth
power of the absolute temperature”. According to Wien’s Displacement law, “the radiation
curve of a black body for different temperatures will reach its peak at a wavelength inversely
proportional to the temperature”.
6.2.2 IR Transmitter
Infrared Transmitter is a light emitting diode (LED) which emits infrared radiations.
Hence, they are called IR LED’s. Even though an IR LED looks like a normal LED, the
radiation emitted by it is invisible to the human eye.
6.2.3 IR Receiver
Infrared receivers are also called as infrared sensors as they detect the radiation from
an IR transmitter. IR receivers come in the form of photodiodes and phototransistors. Infrared
Photodiodes are different from normal photo diodes as they detect only infrared radiation.
The picture of a typical IR receiver or a photodiode is shown below fig 6.2.3.
It is universal that black colour absorbs the entire radiation incident on it and white
colour reflects the entire radiation incident on it. Based on this principle, the second
positioning of the sensor couple can be made. The IR LED and the photodiode are placed side
by side. When the IR transmitter emits infrared radiation, since there is no direct line of
contact between the transmitter and receiver, the emitted radiation must reflect back to the
photodiode after hitting any object. The surface of the object can be divided into two types:
reflective surface and non-reflective surface. If the surface of the object is reflective in nature
i.e. it is white or other light colour, most of the radiation incident on it will get reflected back
If the surface of the object is non-reflective in nature i.e. it is black or other dark colour,
it absorbs almost all the radiation incident on it. As there is no reflected radiation, there is no
radiation incident on the photodiode and the resistance of the photodiode remains higher
allowing no current to flow. This situation is similar to there being no object at all. The
positioning and enclosing of the IR transmitter and Receiver is very important. Both the
transmitter and the receiver must be placed at a certain angle, so that the detection of an object
happens properly. This angle is the directivity of the sensor which is +/- 45 degrees.
In order to avoid reflections from surrounding objects other than the object, both the
IR transmitter and the IR receiver must be enclosed properly. Generally the enclosure is made
of plastic and is painted with black colour.
Appearing as practical electronic components in 1962, the earliest leds emitted low-
intensity infrared light.[7] Infrared leds are still frequently used as transmitting elements in
remote-control circuits, such as those in remote controls for a wide variety of consumer
electronics. The first visible-light leds were also of low intensity and limited to red. Modern
leds are available across the visible, ultraviolet, and infrared wavelengths, with very high
brightness.
Early leds were often used as indicator lamps for electronic devices, replacing small
incandescent bulbs. They were soon packaged into numeric readouts in the form of seven-
The electrons dissipate energy in the form of heat for silicon and germanium diodes but
in gallium arsenide phosphide (GaAsP) and gallium phosphide (GaP) semiconductors, the
electrons dissipate energy by emitting photons. If the semiconductor is translucent, the
junction becomes the source of light as it is emitted, thus becoming a light-emitting diode.
However, when the junction is reverse biased, the LED produces no light and—if the potential
is great enough, the device is damaged.
Let's start by looking at a simple 2-pole DC electric motor (here red represents a magnet
or winding with a "North" polarization, while green represents a magnet or winding with a
"South" polarization).
Every DC motor has six basic parts -- axle, rotor (a.k.a., armature), stator, commutator,
field magnet(s), and brushes. In most common DC motors (and all that beamers will see), the
external magnetic field is produced by high-strength permanent magnets1. The stator is the
stationary part of the motor -- this includes the motor casing, as well as two or more permanent
magnet pole pieces. The rotor (together with the axle and attached commutator) rotate with
respect to the stator. The rotor consists of windings (generally on a core), the windings being
electrically connected to the commutator. The above diagram shows a common motor layout
-- with the rotor inside the stator (field) magnets.
The geometry of the brushes, commutator contacts, and rotor windings are such that
when power is applied, the polarities of the energized winding and the stator magnet(s) are
misaligned, and the rotor will rotate until it is almost aligned with the stator's field magnets.
As the rotor reaches alignment, the brushes move to the next commutator contacts, and
energize the next winding. Given our example two-pole motor, the rotation reverses the
In real life, though, DC motors will always have more than two poles (three is a very
common number). In particular, this avoids "dead spots" in the commutator. You can imagine
how with our example two-pole motor, if the rotor is exactly at the middle of its rotation
(perfectly aligned with the field magnets), it will get "stuck" there. Meanwhile, with a two-
pole motor, there is a moment where the commutator shorts out the power supply (i.e., both
brushes touch both commutator contacts simultaneously). This would be bad for the power
supply, waste energy, and damage motor components as well. Yet another disadvantage of
such a simple motor is that it would exhibit a high amount of torque "ripple" (the amount
of torque it could produce is cyclic with the position of the rotor).
Like all electric motors or generators, torque is produced by the principle of Lorentz
force, which states that any current-carrying conductor placed within an external magnetic
field experiences a torque or force known as Lorentz force. Advantages of a brushed DC
motor include low initial cost, high reliability, and simple control of motor speed.
Disadvantages are high maintenance and low life-span for high intensity uses. Maintenance
involves regularly replacing the brushes and springs which carry the electric current, as well
as cleaning or replacing the commutator. These components are necessary for transferring
electrical power from outside the motor to the spinning wire windings of the rotor inside the
motor.
An assembly composed of an electric motor and a reduction gear in a single unit. The
most common types have planetary, planetary lantem, and wave transmissions. For greater
compactness, the driving gear of the reduction gear is mounted directly on the motor shaft.
Gearmotors are used in universal drivers for general use; they are manufactured serially by
specialized enterprises. They can operate in a horizontal, vertical, or tilted position, depending
on the lubrication system used.
6.5 L293D
The Device is a monolithic integrated high voltage, high current four channel driver
designed to accept standard DTL or TTL logic levels and drive inductive loads (such as relays
solenoids, DC and stepping motors) and switching power transistors. To simplify use as two
bridges each pair of channels is equipped with an enable input. A separate supply input is
provided for the logic, allowing operation at a lower voltage and internal clamp diodes are
included.