Ok DC Motor Speed Control Using Arduino and Potentiometer
Ok DC Motor Speed Control Using Arduino and Potentiometer
Ok DC Motor Speed Control Using Arduino and Potentiometer
A PROJECT REPORT ON
IN
ELECTRICAL
2018-2019
PREPARED BY
KISHAN VERMA
ABHISHEK KHARE
DEPARTMENT OF ELECTRONICS
ENGINEERING SESSION
2018-2019
Certificate
1. PREFACE
2. ACKNOWLEDGEMENT
3. WHY A PROJECT
4. MARKET SURVEY
5. DISCRIPTION OF COMPONENTS
5.1 DIODE
6. TESTING & INSPECTION
6.1 VISUAL INSPECTION TEST
6.2 ASSEMBLE TEST
6.3 FINAL TEST
6.4 MECHANICAL VIBRATION TEST
7. PACKAGING & DELIVERY
8. SALES & PUBLICITY
9. CONCLUSION
10. BIBLIOGRAPHY
ACKNOWLEDGEMENT
We sincerely acknowledge with a deep helpful
gratitude and endetness to Project Incharge Shri BHUPENDRA SINGH
S.A.T.I Vidisha for his valuable and faithful guidance, encouragement &
suggestion through out the completion of this work. He generously shared his
immense knowledge with us. His personal attention brought the project the
expendetiousty. We own much more to him.
Last but not the least gratitude to all those, who extended their co-
operation directly or indirectly in completion of this project work.
S.A.T.I VIDISHA
WHY
PROJECT
A student specially technical student is expected to do some
experimentation and research work on the subject, which he thought in the class
textbook during the course of his studies. Such an effort when well organized
with a definite aim or purpose is called a project.
PREFACE
automation system ,with the above ends in views. This subject has a unique
importance in the field of electronics .
In the second case, the switch is closed for 5ms and opened for 5ms over a
period of 10ms, so the average terminal voltage at the output will be 50% of the
battery voltage. Say if the battery voltage is 5V and the duty cycle is 50% and
so the average terminal voltage will be 2.5V.
In the third case the duty cycle is 20% and the average terminal voltage is 20%
of the battery voltage.
Material Required
Arduino UNO
DC motor
Transistor 2N2222
Potentiometer 100k ohm
Capacitor 0.1uF
Breadboard
Jumping Wires
Circuit Diagram
int c1 = 0;
int c2 = 0;
Now, in the below code, setting pin A0 as input and 12 (which is PWM pin) as
output.
void setup() {
Now, in void loop (), we are reading the analog value (from A0)
using analogRead(pot), and saving it to variable c2. Then, subtract c2 value
from 1024 and save the result in c1. Then make the PWM pin 12 th of Arduino
HIGH and then after a delay of value c1 make that pin LOW. Again, after a
delay of value c2 the loop continues.
The reason for subtracting Analog value from 1024 is, the Arduino Uno
ADC is of 10-bit resolution (so the integer values from 0 - 2^10 = 1024 values).
This means that it will map input voltages between 0 and 5 volts into integer
values between 0 and 1024. So if we multiply input anlogValue to (5/1024),
then we get the digital value of input voltage. Learn here how to use ADC input
in Arduino.
void loop()
c2= analogRead(pot);
c1= 1024-c2;
}
Working Explanation:
In this circuit, for controlling the speed of DC motor, we use a 100K ohm
potentiometer to change the duty cycle of the PWM signal. 100K ohm
potentiometer is connected to the analog input pin A0 of the Arduino UNO and
the DC motor is connected to the 12th pin of the Arduino (which is the PWM
pin). The working of Arduino program is very simple, as it reads the voltage
from the analog pin A0. The voltage at analog pin is varied by using the
potentiometer. After doing some necessary calculation the duty cycle is adjusted
according to it.
For example, if we feed 256 value to the analog input, then the HIGH time will
be 768ms (1024-256) and LOW time will be 256ms. Therefore, it simply means
the duty cycle is 75%. Our eyes cannot see such high frequency oscillation and
it looks like motor is continuously ON with 75% of speed. So that’s how we can
control the speed using Potentiometer.
Code
void loop()
{
c2= analogRead(pot);
c1= 1024-c2; // subtracts c2 from 1000 ans saves the result in c1
digitalWrite(pwmPin, HIGH);
delayMicroseconds(c1);
digitalWrite(pwmPin, LOW);
delayMicroseconds(c2);
}
MARKET SURVEY
CONSIDERATION
The choice of suitable location must play a dominant role in the success
of any undertaking. The selection of site should be based on the availability of
raw material. Proximity to market, transport facilities, availability of power
fuel, availability of labour, conductive climatic and atmospheric conditions as
also sale of the proposed product in the present market.
The success of the business is based in better quality and latest variety of
a product being easily available in the present market and at a lower cost.
FINANCING :
For starting any industry, first requirement is capital. So we have to
estimate in detail provision for a capital considering all the aspects of a
factory.
1. Drilling Machine
2. Cutting Machine
3. Bending Machine
5. Digital Multimeter
PRINTED CIRCUIT BOARD
* LAYOUT
D) While drawing the layout of the copper side circuitry, one should be very
cautious, that circuit copper line thickness is as per the expected current
drain in the circuit at various stages.
* PREPARTAION OF SCREEN
* PRINTING
After printing the PCB should be allowed for necessary drying in a dust
proof chamber at least for 10 hrs. in a normal room temperature.
NOTE
Afterwards the whole circuit should be seen through a magnifying glass
that there is no break is arriving, otherwise proper touching should be given to
the circuit.
* ETCHING
The removal of excess copper on the copper laminated PCB , apart form
printed circuit is known as etching.
ferric chloride solution (FeCl3) and it kept so far about one hour and then
taken out.
After testing immediately the etched plates should dipped into a clean
water for about one hour in order to get the printed plate away form any acidic
properties which may cause poor performance of the circuit system by making
chemical reactions with metal components leads.
* DRILLING
NOTE
Always the drilling should be done form copper side in order to avoid
possibility of coming out of the copper circuit and chipping out of the bakelite
After drilling the PCB circuit side is given tin plating to increase the
conductivity of the conducting media and top avoid the oxidizing effects. As
copper gets oxidized very quickly and these circuits are designed and
manufactured to work in open atmosphere. At this process is being done
through electroplating system. The circuit plate is being treated as anode for
operation.
* COMPONENT SIDE PRINTING
In this process with the help of screen as in circuit, but with a white
paint. Component values are their designations are printed as per earlier made
layout. Generally this method is applied for commercial purpose, in order to
make the assembly convenient. Then plates are allowed for drying in dust proof
chamber.
* COMPONENT MOUNTING
a) During this operation should be very cautions that the component are not
everything which may damage semiconductors.
b) The soldering iron being used for soldering of semiconductors should be
of low voltage.
c) While soldering semiconductors, heat sink should be use.
d) There should not be blow holes which may cause discontinuity of the
circuit and improper test.
e) While soldering solder should not spread over the entire circuit solder tip
should be sharp and smooth.
f) For soldering flux cored solder with a fine ratio of tin (80:20) and lead
should be used .
g) While mounting components always values should be visible
h) Semiconductors and other polarized components should be mounted be
correct polarities.
After this operation is over immediately the PCB’s are given ultrasonic
treatment.
COMPONENT DESCRIPTION
TRANSFORMER
current stem into another of different voltage and current. However power
remains the some during the transformation. That transformers play a major
The resistance are heat dissipating elements and in the electronic circuits they
are mostly used for either control 98ng the currents in the circuit or developing
a voltage drop across it which could be utilized for so application There are
various types of resistance’s which can be classified according to a number of
factors depending upon (I0) Material used for fabrication a resistance (II)
Wattage an physical size (III) Intended application (iv) Ambient temperature
rating (v) Cost basically the resistor can be splinted in to the following four
parts with the construction view point (1) Base(2) Resistance element (3)
Terminals (4) Protective means. The following characteristics are inherent in all
resistance’s an may be controlled by design considerations and choice of
material I.e. Temperature co–efficient Voltage co–efficient of resistance high
frequency characteristics power rating and reseating tolerance voltage retting of
Resistors Resistance’s may be classified as (1) Fixed (2) semivariable (3)
Variable resistance’s We have used carbon resistance’s.
CAPACITORS
The fundamental relation for the capacitance between two flat plates
separate be a dielectric materiel is given by C=0.08854KA where
C= capacitance in p:f.
K= dielectric constant
caterial with particular type of application. The dielectric material used for
capacitors may be grouped in the various classed like Mica Glass air ceramic
frequency and aging. The capacitance value marked on the capacitor strictly
applies only at specified room temperature and at low frequencies some of the
DIODES
LED
As the name is indicated it is a forward biased P-N junction which emits
visible light when energized. Charge carrier recombination tacked place when
elections from the N- side cross the junction and recombine with the heeds on
the P side Now electrons are in the higher conduction hand on the N side
whereas holes are in the lower valance band on the P side During recombination
some of the energy difference is given up in the form of heat and light
(i.e.proton) in the case of semiconductor materials like gallium arsenate (Ga As)
Gallium phoshide (Gap) and Gallium arsenate phoshide (GaAsP) a greater
percentage of energy is released during recombination and is given out in the
form of light LED’s emit no light when the are reverse biased.
ESTIMATING AND COATING
As the ratio of labor to the total cost of production is diminishing where the
material , power and equipment cost is increasing day by day more need of
Estimating is done for finding the cost , which is likely to incorrect for
different department.
FIXED CAPITAL
Fixed capital is that sum of money is required while starting any business.
It comprises of cost of land machinery and equipment and furniture cost and
space is required for establishment Any suitable building held on rental basis
COST = 5000/-
COST = 20000/-
BREAKE EVEN POINT
B.E.P. = 4.9 %
TESTING
AND
INSPECTION
The testing and inspection procedure are laid down in such a way that
equipment manufactured by a passes though all the simulation test, which may
out instrument be subjected to in actual use. After a careful study we have laid
down the final tests.
2) ASSEMBLY TEST
TESTING
A) VISUAL CHECK
B) CRCUIT TESTING
In this circuit is given to the required supply and various parameters i.e.
voltage current etc. are recorded and then is kept on for cycle operation that is
for 24 hrs. and parameters are recorded after a certain intervals.
TYPES OF TEST
DAMP TESTING
`In this testing job is subjected to a wet atmosphere for one cycle at a
designed temperature and afterwards immediately normal testing is conducted
and observed that reading are in line with desired readings.
On completing the testing the various stages readings are completed with
designed parameters for necessary approval.
PACKING
AND
PUBLICITY
INTRODUCTION
With the growth of business and multiplication of types of goods for sales
and above all better competition advertising has become a part of trade to
familiarize the people with our product. Advertisement forms a distinct branch
of selling publication of advertisement is newspapers, cinema slides, TV etc. are
powerful modern methods of publicity. The advertising publicity. The
advertising policy must be co-related with sales policy becomes.
WAY OF PUBLICITY
Our equipment has been designed using the most modern LSI chips
available in the market which can take the voltage fluctuation of greater degree.
2. Easy to use.
3. Low cost.