Beruflich Dokumente
Kultur Dokumente
CHAPTER 1
INTRODUCTION
The aim of this project is the design and development of an automated PCB
melting point to join metal parts together. The process of soldering requires
skilled labors and lot of time for the proper working of PCB . Our project
will demonstrate a PCB being soldered using an XYZ plotter through the use
Soldering is a process in which two or more items (usually metal) are joined together
by melting and putting a filler metal (solder) into the joint, the filler metal having a
lower melting point than the adjoining metal.. The process of soldering requires some
skillest to correctly implement. Not everyone has the time and/or patience to learn the
art of precise soldering. We propose the creation of a PCB soldering machine that
will fully automate the process. The machine will include an XY plotter which is
actuated by stepper motors, for correct positioning of the PCB to be soldered. Then,
the soldering arm extension fixed over the XY table will actuate and solder the
junction. All stepper motors used in the X-Y plotter and soldering arm extension are
driven through an arduino via the motor driver for increased precision and stability.
soldering iron and a solder feeder. Thus, the basic principle is to correctly gauge the
1
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
position to be soldered, move the XY table over to those coordinates through stepper
actuation, and then wait for the soldering arm extension to solder the junction.
Soldering is a labour intensive process which requires lot of time and hardwork
for the appropriate working of the PCB circuit. It requires lot of manual power.
There are chances of lot of errors when doing it manually which leads to lot of
dilemmas in the working of the device or circuit. The proposed system helps in
reducing these issues
CHAPTER 3
3.1 OVERVIEW
This chapter deals with the block diagram of this project. The section 3.2
gives the block diagram and explanation of block diagram is given in section
3.3.The various blocks in the diagram are the microcontroller, fire sensor, motor
driver, dc motors, ultrasonic sensor, dc pumps, Bluetooth module, and power
supply. The PIC16F877A microcontroller is used in the project since it has large
memory and it acts as the heart of the project. On land, the fire sensors detect the
position of the fire and sends interrupt signal to the microcontroller and controls
the dc pump to pump out water automatically thus extinguishing the fire. On
2
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
water, the robot is moved in the direction of wastes manually and a shaft is used to
collect floating wastes and is deposited into a bin. Bluetooth module is used for
controlling the movement of the robot.
PERIPHERALS
SOLAR PANEL LIPO VOLTAGE
AND WIND BATTERY REGULATOR
TURBINE
MOTOR
FIRE SENSOR
PIC MOTOR
MICROCONTROLLER
PUMP PUMP
MOTOR
3
Dept. of ECE Prime College of Engin eering
ULTRASONIC
Automatic
MODULEPCB Soldeing MOTOR
TRANSMITTER DRIVE
RECEVIER
MOTOR
PIC
MICROCONTROLLER
MOTOR
DRIVER MOTOR
MOBILE BLUETOOTH
COLLECTOR
3.3.1 MICROCONTROLLER
5
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
FEATURES
High Performance
– 1KBytes EEPROM
• EEPROM (ATmega48PA/88PA/168PA/328P)
7
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
8
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
3.3.1.2 OLED
There are two main families of OLED: those based on small molecules and those
employing polymers. Adding mobile ions to an OLED creates a light-emitting
electrochemical cell (LEC) which has a slightly different mode of operation. An OLED
display can be driven with a passive-matrix (PMOLED) or active-matrix (AMOLED)
control scheme. In the PMOLED scheme, each row (and line) in the display is
controlled sequentially, one by one,[4] whereas AMOLED control uses a thin-film
transistor backplane to directly access and switch each individual pixel on or off,
allowing for higher resolution and larger display sizes.
An OLED display works without a backlight; thus, it can display deep black levels and
can be thinner and lighter than a liquid crystal display (LCD). In low ambient light
conditions (such as a dark room), an OLED screen can achieve a higher contrast
ratio than an LCD, regardless of whether the LCD uses cold cathode fluorescent
lamps or an LED backlight.
FEATURES
• Type: graphic •
• +3 V power supply
9
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
Liquid crystal displays (LCDs) have materials which combine the properties
of both liquids and crystals. Rather than having a melting point, they have a
temperature range within which the molecules are almost as mobile as they would be
in a liquid, but are grouped together in an ordered form similar to a crystal.
An LCD consists of two glass panels, with the liquid crystal material sand
witched in between them. The inner surface of the glass plates are coated with
transparent electrodes which define the character, symbols or patterns to be
displayed,polymeric layers are present in between the electrodes and the liquid
crystal, which makes the liquid crystal molecules to maintain a defined orientation
angle.One each polarizer are pasted outside the two glass panels. This polarizer would
rotate the light rays passing through them to a definite angle, in a particular direction
When the LCD is in the off state, light rays are rotated by the two polarizer
and the liquid crystal, such that the light rays come out of the LCD without any
orientation, and hence the LCD appears transparent.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 LCD’s are lightweight with only a few millimeters thickness. Since the
LCD’s consume less power, they are compatible with low power electronic circuits,
10
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
and can be powered for long durations. The LCDs used exclusively in watches,
calculators and measuring instruments are the simple seven-segment displays, having
a limited amount of numeric data.
3.3.3 DC MOTOR
DC motor used in this project provides the rotating mechanism to the robot
according to the need of project. There are five motors employed in this project
with a DC voltage of 5V for operation. Four motors are connected to the upper
wheels thus working as a rack and pinion mechanism for lower wheels. One
motor for controlling the movement of shaft by which floating trashes are
collected. The motor driver IC L293D provides the required power for the motors.
.
11
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
3.3.4 DC PUMP
12
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
FIRE SENSOR
Flame sensor is most sensitive to ordinary light that is why its reaction is
generally used as flame alarm purposes. This module can detect flame or
wavelength in 760 nm to 1100 nm range of light source. Small plate output
interface and single-chip can be directly connected to the microcomputer IO port.
The sensor and flame should keep a certain distance to avoid high temperature
damage to the sensor. The shortest test distance is 80 cm, if the flame is bigger,
test it with farther distance. The detection angle is 60 degrees so the flame
spectrum is especially sensitive
13
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
14
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
The circuit to work has to be provided with the power and this power is
supplied to the other blocks through the power supply section. The power is
generated through solar and wind energy from the same devices using solar panel
and wind turbine. The generated power is stored in the LIPO battery and the
power is regulated by the voltage regulator and supplied to all peripherals.
15
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
CHAPTER 4
4.1 OVERVIEW
This chapter includes the circuit design, circuit diagram and circuit diagram
description of this project. The heart of the circuit is PIC16F877A
microcontroller. It is an 8 bit CMOS microcontroller with flash program memory.
It is a RISC processor with high performance, fully static design. The controller
has 4Kx14 words of FLASH program memory and 192x8 bytes of data memory
(RAM). The 5V supply is given to the VDD and the VSS pin of the
microcontroller is grounded. 4MHz crystal oscillator is used in the controller.
The section 4.2 shows the circuit design, the section 4.3 shows the circuit
diagram and the subsections in the section 4.4 explain the different parts of the
circuit.
Constant power of 5V are provided using voltage regulators. Here we use 78xx
series regulators. The regulated voltage is supplied to all other peripherals .
16
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
LM7805
Current rating 1A
17
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
18
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
4.2.6 CAPACITOR
f=50Hz.
Resistance R=V/I=10K.
Y=Vac /V.
V=5V,Y=(0.4/2˩3)/5=0.072.
4.2.7LED
Vf=2.5V, If=2mA
Total current=60+20=80mA
Ic=80mA
19
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
FIRE SENSOR
8
1.0 RV4
27%
10k 2
1
3
U2:B
8
1.0 RV3
27%
LM358
4
10k 6
7
5 LCD1
LCD2 R4
LM016L
10K
LM358
4
R3
10K
R9 U5
VDD
VSS
VEE
16 8
RW
RS
D0
D1
D2
D3
D4
D5
D6
D7
E
10k
2 3
5v IN1 VSS VS OUT1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
7 6
IN2 OUT2
1
ultrasonic sensor 1 EN1
Tx Rx R5 9 DC MOTOR 1 , 2, 3 & 4
EN2
10k 10 11
IN3 OUT3
15 14
IN4 GND GND OUT4
RT1 R2
-tc 10k 10k L293D
C1
RT1 U1
-tc 10k 22pF
4 MHz
13 33
R1
X1 OSC1/CLKIN RB0/INT U5
14 34 10k 16 8
OSC2/CLKOUT RB1
C2 35
CRYSTAL RB2
2 36 2 3
R11 RA0/AN0 RB3/PGM IN1 VSS VS OUT1
3 37 7 6
10k RA1/AN1 RB4 IN2 OUT2
4 38 1
22pF
5
RA2/AN2/VREF-/CVREF RB5
39
R6 EN1
RA3/AN3/VREF+ RB6/PGC
R11 6
RA4/T0CKI/C1OUT RB7/PGD
40
R810k
10k 7 9
RA5/AN4/SS/C2OUT EN2
15 10k 10 11
RC0/T1OSO/T1CKI IN3 OUT3
8 16 15 14
RE0/AN5/RD RC1/T1OSI/CCP2 IN4 GND GND OUT4
9 17
RE1/AN6/WR RC2/CCP1
10 18
RE2/AN7/CS RC3/SCK/SCL
23
R7 L293D
U5 RC4/SDI/SDA
16 8 1 24 10k
MCLR/Vpp/THV RC5/SDO
25
RC6/TX/CK
2 3 26
IN1 VSS VS OUT1 RC7/RX/DT
7 6
IN2 OUT2
1 19
EN1 RD0/PSP0 BLUE TOOTH MODULE
20
RD1/PSP1
21
RD2/PSP2
9 22
EN2 RD3/PSP3
10 11 27
IN3 OUT3 RD4/PSP4
15 14 28
IN4 GND GND OUT4 RD5/PSP5
29
RD6/PSP6
30
RD7/PSP7
L293D
PIC16F877A
8V
8V
RXD
TXD
RTS
CTS
DC PUMP 1 DC PUMP 2
R12
R14 10K R12
10K 10K
WIND TURBINE
RESET
SOLAR PANEL Q1
BC547 Q1
BC547
R10
10K R10
10K
12v DC
Power supply
1
U2
VI
7805
2
GND
5v DC
VO
3
C4
1000u
Fig 4.6 Circuit diagram of solar and wind powered multipurpose Amphibot
20
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
4.4.1 PIC16F877A
The microcontroller board is connected with reset pin, crystal oscillator circuit,
Bluetooth module, sensors, motors, pumps etc. The reset pin MLCB is the one
which is an external interrupt is designed to reset the program. And the crystal
oscillator circuit is the one used to generate the pulses to here 4MHz crystal is
used which generates pulses up to 4000000 Hz frequencies. The PIC16F877A is a
low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC
architecture. The PIC16F877A contains 16/32K bytes On-chip In-System
Reprogrammable Flash memory for program storage. The DIP of PIC16F877A is
shown in figure 4.8.
21
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
22
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
23
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
24
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
PORT D is an 8-bit port with Schmitt Trigger input buffers. Each pin is
individually configurable as an input or output. The 7 pins of PORTD are used as
data pin and are connected to LCD data pins. It can be used as both input/output
data pins.
25
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
26
Dept. of ECE Prime College of Engin eering
Automatic PCB Soldeing
27
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
CHAPTER 5
PCB DESIGN
5.1 OVERVIEW
The first step of assembling is to procure a printed circuit board. The fabrication of
the program counter plays a crucial role in the electronic field. The success of a circuit
also depends on the PCB. As far as cost is concerned the 25% of total cost is gone for
PCB design and fabrication.
We are using a microcontroller based system that handles high frequencies.
In the high frequency circuit the data may be easily violated in the PCB due to
physical parameters. This is the track capacitance and inductance can cause the cross
talk in the buses. Also unwanted noise can be induced into supply rails and from there
it can affect the total response.
Design of PCB is concerned as the last step of electronic circuit design as
well as first step in the production of PCBs. The design of PCB consists of designing
of the layout followed by the generation of the art work. EXPRESS PCB is a powerful
tool for designing electronic circuit’s diagrams.
The layout is printed in a butter paper using a laser printer. The layout is
transferred to copper clad sheet using the screen print procedure. First a negative
screen of the layout is prepared with the help of a professional screen printer. The
copper clad sheet is kept under the screen. The screen printing ink is poured on the
screen and brushed through the top of the screen. The printed board is kept under
shade for few hours till the ink become dry. Etching medium is prepared with the un-
hydrous ferric chloride and water. The printed board is kept in this medium till the
28
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
exposed copper dissolves in the solution completely. After that the board is taken out
and rinsed in flowing water under a tap. The ink is removed with the help of NC
thinner. The board is coated with soldering in order to prevent oxidation.
Another screen, which contains component side layout, is prepared and the same is
printed on the component side of the board. A paper epoxy laminate is used in the
board.
The minimum conductor width of finished PCB shall not be less than
0.05mm for signal and 0.4mm for power line. The standard ratio is taken as 1:1, 5:2
for signal power and ground respectively.
5.1.3 CLEANING
Surface of copper clad may contain oxides greases, oils or solid. They should
be removed by the following procedure.
Wipe with cotton wool soaked with tricolor ethylene.
Dip in 10% HCL solution at room temperature.
Scrap with powder.
Rinse with chlorine free water.
Art work transfer can be done in many ways and the procedure used in work is
named fabrication process, usually used methods are:
Silk screen printing.
Photographic method.
Direct method.
29
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
First methods are used for industrial and professional applications. In direct method
artwork is transferred to clad sheet in 1:1 ratio using paint or permanent ink. This
method is used where a single PCB is needed.
5.1.5 ETCHING
5.1.6 DRILLING
The holes for mounting components are drilled using a high speed of drilling
machine. The size of the holes to drill will be specified during the layout designing
depending upon the component lead diameter. For drilling we use the mm drill bit.
If the board is unprotected copper oxides are formed over the conductor and
it affects arability and neatness of the board. For this insulation coating such as
varnish can be used.
A printed circuit board has pre-designed copper tracks on a conducting sheet. The
pre-defined tracks reduce the wiring thereby reducing the faults arising due to lose
connections. One needs to simply place the components on the PCB and solder them.
Materials required:
Laser Printer.
30
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
Electric iron.
Steel wool.
Copper board/ PCB (eg: paper phenolic, glass epoxy, FR4, FR10, etc.)
Drill machine.
Step 1: Prepare a layout of the circuit on any commonly used PCB designing
software. A layout is a design which interconnects the components according to the
schematic diagram (circuit diagram). Take a mirror image print of the layout on the
OHP sheet using a laser printer. Make sure that the design is correct with proper
placement of the components.
Fig5.1: Step1
Step 2: Cut the copper board according to the size of layout. A copper board is the
base of a PCB, it can be single layer, double layer or multi-layer board.
Single layer copper board has copper on one side of the PCB, they are used to make
single layer PCBs, it is widely used by hobbyist or in the small circuits. A double
layer copper board consists of copper on both the sides of the PCB. These boards are
generally used by the industries. A multilayer board has multiple layers of copper they
are quite costly and mainly used for complex circuitries like mother board of PC.
31
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
Step 3: Rub the copper side of PCB using steel wool. This removes the top oxide
layer of copper as well as the photo resists layer if any.
Step 4: Place the OHP sheet (wax paper) which has the printed layout on the PCB
sheet. Make sure that the printed/mirror side should be placed on the copper side of
PCB.
32
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
Step 5: Put a white paper on the OHP sheet and start ironing. The heat applied by the
electric iron causes the ink of the traces on the OHP sheet to stick on the copper plate
exactly in the same way it is printed on the OHP sheet. This means that the copper
sheet will now have the layout of the PCB printed on it. Allow the PCB plate to cool
down and slowly remove the OHP sheet. Since it is manual process it may happen
that the layout doesn’t comes properly on PCB or some of the tracks are broken in
between. Use the permanent marker and complete the tracks properly.
Step 6: Now the layout is printed on PCB. The area covered by ink is known as the
masked area and the unwanted copper, not covered by the ink is known as unmasked
area. Now make a solution of ferric chloride. Take a plastic box and fill it up with
some water. Dissolve 2-3 tea spoon of ferric chloride power in the water. Dip the PCB
into the Etching solution or approximately 30 mins. The Fecl3 reacts with the
unmasked copper and removes the unwanted copper from the PCB. This process is
called as Etching.
33
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
Step 7:Take out the PCB wash it in cold water and remove the ink by rubbing it with
steel wool. The remaining area which has not been etched is the conductive copper
tracks which connect the components as per the circuit diagram.
Step 8:Now carefully drill the PCB using a drilling machine on the pads.
Step 9: Put the components in the correct holes and solder them.
34
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
CHAPTER 6
35
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
The main part of the project was choosing a microcontroller, since different
microcontrollers are available in the market from different vendors. First, the
functional microcontroller is considered, as it can be programmed directly, so
there is no need to purchase or make special programmer for burning the firmware
onto chip. Second one is that the selected chip (PIC16F877A) is supported with
the most famous open source embedded prototyping platform. Thus the project
uses the PIC16F877A prototyping platform microcontroller, as it is easy to learn
and experiment, because of its open source community over the world.
In the phase1 fire is detected using fire sensor. After the detection of fire
autonomous pumping is executed through control signals from microcontroller.
The DC pumps pump out water to extinguish fire.
In the phase2 robot is moved in different directions of floating bodies and
collects the wastes to a bin attached with the device.
6.1 ADVANTAGES
It is energy efficient.
Low cost.
6.2 DISADVANTAGES
6.3 APPLICATIONS
36
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
37
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
CHAPTER 7
CONCLUSION
38
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
APPENDIX I
PIC16F877A MICROCONTROLLER
39
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
40
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
DEVICE OVERVIEW
41
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
• The 28-pin devices have fourteen interrupts, while the 40/44-pin devices have
fifteen
• The 28-pin devices have five A/D input channels, while the 40/44-pin devices
have eight
• The Parallel Slave Port is implemented only on the 40/44-pin devices
The available features are summarized in the following TableBlock diagram of the
PIC16F/877A devices are provided in Figure 1-1 and Figure 1-2, respectively.
The pinouts for thesedevice families are listed in Table 1-2 and Table 1-3.
42
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
43
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
44
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
45
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
APPENDIX II
SENSORS
ULTRASONIC SENSOR
HC-SR04 Ultrasonic Distance Sensor is a popular and low cost solution for non-
contact distance measurement function. It is able to measure distances from 2cm
to 400cm with an accuracy of about 3mm. This module includes ultrasonic
transmitter, ultrasonic receiver and its control circuit.
TRIG and ECHO pins can be used to interface this module with a microcontroller
unit. These are TTL (0 – 5V) input output pins.
46
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
Circuit Diagram
PIC 16F877A is the heart of this circuit. VDD and VSS of PIC Microcontroller is
connected to +5V and GND respectively which will provide necessary power for
its operation. A 8MHz crystal is connected to OSC1 and OSC2 pins of PIC, to
provide clock for its operation. 22pF capacitors connected along with the crystal
will stabilize the oscillations generated by the crystal. 16×2 LCD is connected to
PORTD which is interfaced using 4 bit mode communication. 10KΩ preset is
used to adjust the contrast of the LCD. A 100Ω resistor is used to limit current
through the LCD back-light LED.
48
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
TRIGGER pin of HC-SR04 sensor is connected to RB0 (pin 33) of PIC which is
to be configured as an Output PIN (TRIS bit is 0) and ECHO pin is connected to
RB4 (pin 37) which is to be configured as an Input PIN (TRIS bit is 1)
Timer1 Module
49
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
Since we are using Timer1 module as a Timer, we should use internal clock
(Fosc/4), ieTMR1CS = 0. Prescaler is used to divide the internal clock (Fosc/4).
Here we can set Prescaler as 2, ieT1CKPS1 = 0&T1CKPS0 = 1. T1SYNC bit is
ignored when TMR1CS = 0. As we are using internal clock (Fosc/4) we can
disable oscillator, ieT1OSEN = 0. TMR1ON bit can be used to ON or OFF timer
as per our requirements.
Fosc is the oscillator frequency, here we are using 8MHz crystal henceFosc =
8MHz.
Distance Calculation
50
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
FIRE SENSOR
General Description:
Flame sensor is the most sensitive to ordinary light that is why its reaction
is generally used as flame alarm purposes. This module can detect flame or
wavelength in 760 nm to 1100 nm range of light source. Small plate output
interface can and single-chip can be directly connected to the microcomputer IO
port. The sensor and flame should keep a certain distance to avoid high
temperature damage to the sensor. The shortest test distance is 80 cm, if the flame
is bigger, test it with farther distance. The detection angle is 60 degrees so the
flame spectrum is especially sensitive. The detection angle is 60 degrees so the
flame spectrum is especially sensitive.
Specifications
On-board LM393 voltage comparator chip and infrared sensing probe.
51
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
On-board signal output indication, output effective signal is high level, and the
same time the indicator light up, output signal can directly connect with
microcontroller IO.
Pin Configuration:
1. VCC
2. OUTPUT
3. GROUND
SCHEMATIC DIAGRAM
52
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
APPENDIX III
L293D MOTOR DRIVER
1 Features 3 Description
The L293 and L293D devices are quadruple high- 1• Wide Supply-Voltage
Range: 4.5 V to 36 V
• Separate Input-Logic Supply current half-H drivers. The L293 is designed to
provide bidirectional drive currents of up to 1 A at
• Internal ESD Protection voltages from 4.5 V to 36 V. The L293D is designed
• High-Noise-Immunity Inputs to provide bidirectional drive currents of up to
600-mA
• Output Current 1 A Per Channel (600 mA for at voltages from 4.5 V to 36 V.
Both devices are L293D) designed to drive inductive loads such as relays,
solenoids, DC and bipolar stepping motors, as well as
• Peak Output Current 2 A Per Channel (1.2 A for other high-current/high-voltage
loads in positive-L293D) supply applications.
• Output Clamp Diodes for Inductive Transient Each output is a complete totem-
pole drive circuit, Suppression (L293D) with a Darlington transistor sink and a
pseudo-Darlington source. Drivers are enabled in pairs, with
2 Applications drivers 1 and 2 enabled by 1,2EN and drivers 3 and 4
• Stepper Motor Drivers enabled by 3,4EN.
• DC Motor Drivers The L293 and L293D are characterized for operation
• Latching Relay Drivers from 0°C to 70°C.
53
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
54
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
55
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
APPENDIX IV
SOFTWARE DESCRIPTION
#include<pic.h>
#include"pic_lcd8.h"
#include"pic_serial.h"
#include"pic_adc.h"
void forward();
56
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
void reverse();
void left();
void right();
void stop();
void Distance_Measure();
bit u1,pm;
if(RCIF)
RCIF=0;
val[yy]=RCREG;
yy++;
57
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
void main()
TRISA=0X03;
TRISB=0X10;
TRISC=0X83;
TRISD=0X00;
TRISE=0X00;
ADCON1=0X04;
stop();
Lcd8_Init();
m11=m12=m21=m22=0;relay_val=0;alarm=0;
mot_waste11=0;mot_waste12=0;
Serial_Init(9600);
GIE=1;
PEIE=1;
58
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
Delay(65000);Delay(65000);
Receive(1);
Lcd8_Display(0X80,"D:......Stop ",16);
while(1)
tmp_left =Adc8_Cha(0);
tmp_left=tmp_left-107;
//tmp_left=tmp_left-119;
tmp_right=Adc8_Cha(1);
//tmp_right=tmp_right-119;
tmp_right=tmp_right-110 ;
Lcd8_Decimal3(0xc2,tmp_left);
Lcd8_Decimal3(0xcc,tmp_right);
if(yy>0)
Receive(0);
if(val[0]=='A') {forward(); }
else if(val[0]=='B'){reverse(); }
else if(val[0]=='C'){left(); }
else if(val[0]=='D'){right(); }
else if(val[0]=='1'){stop(); }
59
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
else
if(val[0]=='2'){mot_waste11=1;mot_waste12=0;Delay(5000);mot_waste11=0;mot
_waste12=0;}
else
if(val[0]=='4'){mot_waste11=0;mot_waste12=1;Delay(5000);mot_waste11=0;mot
_waste12=0;}
else if(val[0]=='3'&&pm==0){pm=1;pump=1;}
else if(val[0]=='3'&&pm==1){pm=0;pump=0;}
yy=0;val[0]=0;val[1]=0;
Receive(1);
if
(fir_sn_lf==0&&fir_sn_rg==0&&tmp_left>=45&&tmp_right>=45){stop();relay_
val=1; while(fir_sn_lf==0||fir_sn_rg==0); }
Lcd8_Display(0Xc0,"Ab",2);alarm=1; }
else if(fir_sn_rg==0&&tmp_right>45)
{right();Lcd8_Display(0Xca,"Ab",2);alarm=1; }
else if(fir_sn_lf==1&&fir_sn_rg==1&&tmp_left<45&&tmp_right<45 )
{Lcd8_Display(0Xc0,"Nm",2);Lcd8_Display(0Xca,"Nm",2);alarm=0;relay_val=0
;}
Distance_Measure();
// if(dis<5){mot_waste11=1;mot_waste12=0;Delay(65000);
mot_waste11=0;mot_waste12=1;Delay(65000);mot_waste11=0;mot_waste12=0;}
60
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
void forward(){m11=0;m12=1;m21=0;m22=1;Lcd8_Display(0X88,"Forward
",8);}
void
reverse(){m11=1;m12=0;m21=1;m22=0;Lcd8_Display(0X88,"Backward",8);}
void Distance_Measure()
Lcd8_Decimal4(0X82,dis);
61
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
Delay(40); //400mS
LCD INTERFACING
void Lcd8_Init();
62
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
void Lcd8_Init()
Lcd8_Command(0x0c); //display on
Data_Port=com;
Lcd_en=1;
Lcd_rs=0;
Delay(125);
Lcd_en=0;
Delay(125);
63
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
Lcd8_Command(com);
Data_Port=lr; // Data
Lcd_en=1;
Lcd_rs=1;
Delay(125);
Lcd_en=0;
Delay(125);
for(Lcd_i=0;Lcd_i<n;Lcd_i++)
Lcd8_Write(com+Lcd_i,word[Lcd_i]);
64
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
unsignedintLcd_hr,Lcd_t,Lcd_o;
Lcd_hr=val%100;
Lcd_t=Lcd_hr/10;
Lcd_o=Lcd_hr%10;
Lcd8_Write(com,Lcd_t+0x30);
Lcd8_Write(com+1,Lcd_o+0x30);
unsignedintLcd_h,Lcd_hr,Lcd_t,Lcd_o;
Lcd_h=val/100;
Lcd_hr=val%100;
Lcd_t=Lcd_hr/10;
Lcd_o=Lcd_hr%10;
65
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
Lcd8_Write(com,Lcd_h+0x30);
Lcd8_Write(com+1,Lcd_t+0x30);
Lcd8_Write(com+2,Lcd_o+0x30);
unsignedintLcd_th,Lcd_thr,Lcd_h,Lcd_hr,Lcd_t,Lcd_o;
val = val%10000;
Lcd_th=val/1000;
Lcd_thr=val%1000;
Lcd_h=Lcd_thr/100;
Lcd_hr=Lcd_thr%100;
Lcd_t=Lcd_hr/10;
Lcd_o=Lcd_hr%10;
Lcd8_Write(com,Lcd_th+0x30);
Lcd8_Write(com+1,Lcd_h+0x30);
Lcd8_Write(com+2,Lcd_t+0x30);
66
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
Lcd8_Write(com+3,Lcd_o+0x30);
while(del--);
SERIAL INTERFCING
voidSerial_Out(unsigned char);
Baudrate(baud);
TXEN = 1; // tx enable
GIE=1;
67
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
PEIE=1;
CREN = 0; // rx enable
TXREG =val;
while(!TXIF);
TXIF = 0;
for(ser_j=0;ser_j<n;ser_j++)
Serial_Out(data[ser_j]);
68
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
else if(baud==2400)
else if(baud==4800)
69
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
else if(baud==9600)
else if(baud==57600)
else if(baud==115200)
70
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
if(rece==1)
CREN = 1; // rx enable
else
CREN = 0; // rx enable
71
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
72
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
73
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
74
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
75
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
APPENDIX IV
76
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
REFERENCES
[1]Choi. Charles Q : “Solar and Wind Energy From the Same Device”, IEEE
Spectrum,May,2016.
77
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
[3]Li.Maoxum,Guo.Shuxiang,Hirata.Hideyaki,Ishihara.Hidenori:“A roller –
skating/walking mode-based amphibious robot”, Elsevier ,Robotics and
computer-integrated manufacturing July 2016 ,Vol44
[4]V.Divya,S.Dharanya,S.Shaheen,A.Umamakeswari:“Amphibious Survelleince
Robot with Smart Sensor Nodes”, Indian Journal of Science and Technology ,May
2013,Vol 6.
78
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
79
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
80
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
81
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
82
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
83
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
84
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
85
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
86
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
87
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
88
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
89
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
90
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
91
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
92
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
93
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
94
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
95
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
96
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
97
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
98
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
99
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
100
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
101
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
102
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
103
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
104
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
105
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
106
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
107
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
108
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
109
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
110
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
111
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
112
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
113
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
114
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
115
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
116
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
117
Dept. of ECE Prime College of Engin eering
Solar and wind powered multipurpose amphibot
118
Dept. of ECE Prime College of Engin eering