loading
Hey friends this is my 3rd year BE project " Speed control of DC motor"which i could like to share with you .In this you will learn how to interface LCD,hex keypad and motor .The code is written in assembly      
to simplify I have first explained separately LCD interfacing hex keypad interfacing ,motor interfacing with L293D 

so Lets get Started !!!

Step 1: Materials required

*89S52
*LCD 
*Hex keypad
*DC motor 



I assume u have basic knowledge of 8051 programming in assembly
<p>when the dc motor will know when they stop ? </p>
<p>I need the keypad Code in C please , I couldn't find it</p><p>can u send it via e-mail ? rukek@shotmail.ru</p>
<p>I tried this project in proteus.But it just glows the lcd &amp; no statement is appearing on lcd.Any help please.<br>assembly k bajay c ka code mil jay ya full code ?</p><p>Reply a little bit quick brothers</p>
<p>I need the keypad Code in C please , I couldn't find it<br>can u send it via e-mail ? aya.elsagheer@gmail.com</p>
<p>1.by desinging the PID controller , can we write a program for Kp,Kv values to 8051.</p><p>2.can we use PID controller in8051 for closed loop speed control of brushless dc motor</p>
<p>you can find the source code here</p><p><a href="http://s4silver.blogspot.in/p/programmers-colony.html" rel="nofollow">http://s4silver.blogspot.in/p/programmers-colony.h...</a></p><p><a href="http://s4silver.blogspot.in/p/8051-interfacing-with-dc-motor.html" rel="nofollow">http://s4silver.blogspot.in/p/8051-interfacing-wit...</a></p>
<p>you can find the source code here</p><p><a href="http://s4silver.blogspot.in/p/programmers-colony.html" rel="nofollow">http://s4silver.blogspot.in/p/programmers-colony.h...</a></p><p><a href="http://s4silver.blogspot.in/p/8051-interfacing-with-dc-motor.html" rel="nofollow">http://s4silver.blogspot.in/p/8051-interfacing-wit...</a></p>
<p>SIR SUGGEST ME</p>
<p>SIR..</p><p>IF THE MOTOR MOTION IS AUTOMATIC, MEANS WHEN CONTROLLER POWER UP, IT KNOWS THE ROUTINE AND IT DOING IT BECAUSE OF FEEDBACK. LIKE IN INDUSTRIES, ROBOT KNOWS ROUTINE AND IT ALWAYS DOING WITHOUT ANY INTERRUPTS.IN SHORT, IT RESERVE FOR ONLY ONE PURPOSE.. SUGGEST ME A GOOD ARTICLE ABOUT THIS AUTOMATIC CODING. </p><p>THANKS....</p>
<p>yes sir.. i have this book. </p><p>thanks for guidence. </p>
<p>THANKS SIR.. THIS IS GOOD ARTICLE.</p><p>SIR MY PROJECT IS THAT A ROBOTIC ARM WHICH ROTATES IN 3 DIRECTION.SIR I WANT THAT I CONNECT LCD WITH 8051 uc &amp; WHEN ROBOTIC ARM GOES ANY DIRECTION, IT SHOWS ON LCD,LIKE IF ARM IS MOVING UP SO THE LINE &quot;ROBOTE MOVING UP&quot; IS DISPLAY ON LCD. IS THIS POSSIBLE??? IS THIS POSSIBLE WITH PROGRAMMING????</p>
<p>Hey buddy its possible ,I recommend you to first learn programming of 8051,better to study C as it is easy then assembly and complex logic can easily be written and debug-ed.</p><p> refer <strong><a href="http://dc302.4shared.com/download/mP3Eg1rm?tsid=20140927-173713-84e205c7&dsid=9sp2f.d7bb195faebaadf7013819252acd1b7f&sbsr=ba0b469cd2f76156a6eb778b582c71c2311bb71ef89f7f3a&forDownloadHelper=true&lgfp=8000&dsid=9sp2f.d7bb195faebaadf7013819252acd1b7f" rel="nofollow">muhammad ali mazide 8051</a> </strong>its a great book you will get LCD code there. </p>
<p>hello sir.....</p><p>this motor has variable speed . if i want to drive in clockwise as well as anticlockwise what the code of this operation????</p><p>also L293d this ic can drive two motors at a time,so if i connect two motors , do both motors rotate at the same time?????</p>
<p>You need only 2 L293D driver IC, actually you can drive 4 motors with two L293D</p>
<p>For changing the direction of the motor you simple need to change the inputs A B of L293D </p><p> yeah you can connect the two motors but to make it rotate you need to connect the AB inputs and Enable2 inputs of second motor. study L293D and all your doubts will be cleared.</p>
<p>HELLO SIR..</p><p>sir if i want to drive 3 motors, can i use 2 l293d to drive 3 ic or we can use 3 ic with one l293d ic??????</p><p>i am making a robotic arm which moves in 3 direction so i have to use 3 motors....</p>
This is an interesting circuit and well made instructable. Note that what you are controlling is the power, not speed, however. For a future development consider adding a feedback loop that measures actually controls the speed.
thanx man........yeah you are right by varying PWM power is controlled

About This Instructable

57,536views

34favorites

License:

More by sunil93:Interfacing GY 26 with atmega640 Speed control of DC motor with 8051 Interfacing  PS2 controller with AVR -Bit Bang 
Add instructable to: