Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

URGENT: 12V DC motor speed control using PIC16f877a

Status
Not open for further replies.

nicole_yulynn

Newbie level 2
Joined
Jun 9, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
Hi,

I'm doing my final project for my diploma. My project title is DC motor speed control using PIC16f877a. Currently, I faced some problem in how to interface the PC-PIC-Tx/Rx.....Tx/Rx-PIC-L293D-Motor. And how to do the feedback result of optical encoder to PIC.

Basically, my project consists of 2 PIC, 433MHz RF Module with PT2262 & PT2272-L4 (Cytron), Max232, RS232 cable, 12V DC motor, Optical encoder.

I'm using assembly lang and Visual Basic.

Thank you...
 

john blue

Advanced Member level 3
Joined
Jun 7, 2007
Messages
821
Helped
213
Reputation
430
Reaction score
204
Trophy points
1,323
Activity points
4,749
You need to work them out part by part. Try do loop back from PIC to PC then controlling motor with L293D, then acquire data from opto isolator to PIC, then RF modules. Then, only combine all together. I would recommend you to use C. It will be easier compared to asm
 

nicole_yulynn

Newbie level 2
Joined
Jun 9, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
Hi, do you have any reference or example? Because i'm not familiar with C language. By the way, I'm using MPLAB and PIC kit2 Programmer.
Thanks for your help....^^
 
Last edited:

john blue

Advanced Member level 3
Joined
Jun 7, 2007
Messages
821
Helped
213
Reputation
430
Reaction score
204
Trophy points
1,323
Activity points
4,749

jpanhalt

Advanced Member level 3
Joined
Jun 28, 2010
Messages
724
Helped
216
Reputation
442
Reaction score
219
Trophy points
1,323
Activity points
6,964
While C is certainly appropriate, you mentioned in your first post that you were using Assembly. That is what I use with the 8-bit chips. Microchip has many application notes using Assembly code for motor control. I assumed your motor was brushed rather than brushless. Here is a link to the Microchip site with several additional links to help you.

As for the wireless control that you mention, I suggest you visit this group (https://www.edaboard.com/group146.html). Bigdogguru has put a lot of effort into assembling resources on that subject. The ones on Manchester coding may be most applicable for your project, but that is based only on a guess as to what RF links you plan to use.

John
 
Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top