Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to controll motor via personal computer? (8051+dc motor+keyboard)

Status
Not open for further replies.

regin

Junior Member level 1
Joined
Oct 11, 2011
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,430
hi friends,

please help me for the following work.

my aim is to controll a dc motor via pc(keyoard).

i am planning to asssign certain alphabets for motor input,
example: "A"-clockwise rotation, "B"-anticlockwise rotation.....etc.

by using serial communication how can i control the motor?

i am using AT89c51,11.0592 mhz frequency.
 

  • Like
Reactions: regin

    regin

    Points: 2
    Helpful Answer Positive Rating
If it is necessary to use serial communication you may need a microcontroller based system. Else if parallel port can be used, the whole thing becomes very simple. You can directly control the stepping motor from printer parallel port.
 

consider using USB, both and serial and parallel port are becoming obsolete..
 

@arbj,
Using USB for this type of work is not that easy. Can you please provide details for implementation !!!
 

I don't work with 8051 but you can use the PIC 18F4550 mcu for interfacing with a computer via USB. The code is well documented in the datasheet..you probably have to implement a serial to USB converter cdc...

I use CCS compiler, and the code for implementing the USB driver is provided, similar driver codes are there for Microchip's C compiler, you just need to study it..

A good book on USB interfacing would also be helpful..
 
Last edited:

simply interface the dc motor to the controller using the H-bridge..
communicate with the controller using any of the terminal communication software..
now when you recieve any thing from the serial port of the pc to the rx of the controller, just check if it is 'A' or 'B', compare them and do whatever you want i.e. rotate the motor in clockwise or anticlockwise, stop it or actuate it...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top