---
+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Newbie level 2
    Points: 280, Level: 3

    Join Date
    Jun 2011
    Posts
    2
    Helped
    0 / 0
    Points
    280
    Level
    3

    URGENT: 12V DC motor speed control using PIC16f877a

    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...

    •   Alt13th June 2011, 05:39

      advertising

        
       

  2. #2
    Advanced Member level 3
    Points: 6,340, Level: 18

    Join Date
    Jun 2007
    Posts
    819
    Helped
    209 / 209
    Points
    6,340
    Level
    18

    Re: URGENT: 12V DC motor speed control using PIC16f877a

    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



    •   Alt13th June 2011, 06:09

      advertising

        
       

  3. #3
    Newbie level 2
    Points: 280, Level: 3

    Join Date
    Jun 2011
    Posts
    2
    Helped
    0 / 0
    Points
    280
    Level
    3

    Re: URGENT: 12V DC motor speed control using PIC16f877a

    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 by nicole_yulynn; 14th June 2011 at 17:26.



    •   Alt13th June 2011, 14:31

      advertising

        
       

  4. #4
    Advanced Member level 3
    Points: 6,340, Level: 18

    Join Date
    Jun 2007
    Posts
    819
    Helped
    209 / 209
    Points
    6,340
    Level
    18

    Re: URGENT: 12V DC motor speed control using PIC16f877a

    You can try this: Microchip PIC micros and C - source and sample code

    there are 3 types of c compiler that you can choose from mikroC, C18 and hi tech c

    ---------- Post added at 14:41 ---------- Previous post was at 14:38 ----------

    For L293D :http://www.solarbotics.com/assets/do...tion/kit10.pdf

    ---------- Post added at 14:42 ---------- Previous post was at 14:41 ----------

    and Google of course


    1 members found this post helpful.

  5. #5
    Advanced Member level 3
    Points: 4,654, Level: 16

    Join Date
    Jun 2010
    Posts
    728
    Helped
    221 / 221
    Points
    4,654
    Level
    16

    Re: URGENT: 12V DC motor speed control using PIC16f877a

    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 (http://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


    1 members found this post helpful.

+ Post New Thread
Please login