Using PIC16F877 for wheels


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Posts
    29

    Cool Using PIC16F877 for wheels

    Hi guys!

    well! i want to use PIC16877 for my two wheels that are driving my robot.

    There is one DC motor attached with each of the two wheels so there are total Two DC motors for Two wheels. I want to use differential drive in this case. Can i use HPWM on this PIC16F877??
    if yes then at what ports this is supported???


    In my robot, i have to perform certain other functions while its wheels are running. So using HPWM, i think it would be possible to control other functions?

    I have to use two sensors to detect a white line during operation, so should i use the interrupt option or GOSUB one?
    please send me any example if u have!

    can anyone plz give me some code examples????

    Im a newbie to this PIC world and tried to study the datasheet but found it very very hard, please provide me with some examples so that i can understand what i have to do.

    Thanks in advance!

    Take carez
    LETS MOVE TOWARDS SOMETHING PRACTICAL---

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Use the HPWM function

    Hi Shaig,

    You can use the HPWM function for two different drive outputs in your PIC. If you do not want to modify the PWM registers yourself then just use the HPWM command once and then modify the duty cycle register in your program.
    Regards

    Sougata

Similar Threads

  1. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  2. PIC16F877 I2C programme
    By cooqo in forum mel PIC BASIC
    Replies: 3
    Last Post: - 21st April 2008, 10:02
  3. Replies: 8
    Last Post: - 17th January 2007, 19:18
  4. Ericsson T10 interface with PIC16F877
    By jam547 in forum GSM
    Replies: 0
    Last Post: - 25th March 2006, 22:27
  5. USB interface from PIC16F877 to PC
    By headshouter in forum USB
    Replies: 0
    Last Post: - 26th February 2006, 04:58

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts