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.

code to control DC motor through PC

Status
Not open for further replies.

wasim_arshad75@yahoo.com

Newbie level 6
Joined
Oct 12, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,339
I want code to control DC motor through PC to PIC18f2620 and L293D using VB6 as GUI.For Serial interfacing i am using RS232 communication via Max 232. plz try to send Entire code
 

PIN no pic 18f2620 it may be high or low
first we select pin no-----
then we select high or low

- - - Updated - - -

http://www.rentron.com/sending_data.htm
 

PIC cannot drive motor directly. You have to use ULN2803A or L293D between MCU and DC motor. You have to set the TRIS of the pin and then use the pin to ON/OFF motor. Your question is not clear.
 

You need a controller at the output of the microcontroller to drive DC motor. The controller board must be able to drive forward/reverse with ability to cope with the current rating of the intended motor. L293 or L298 motor driver will fulfill these needs. With L298, you will have to use a 2 pins to alter the direction of rotation communication from your 232 outputs. You can buy the motor driver.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top