L298N Motor Driver using pwm code not working..


Results 1 to 15 of 15

Threaded View

  1. #11
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223


    Did you find this post helpful? Yes | No

    Default Re: L298N Motor Driver using pwm code not working..

    Hi Henrik, thanks you for your comments..I guess I have to rearrange my codes.
    don't change it the main loop.
    Does this mean I have to remove this in the main loop..
    Code:
    ; Start rolling
    HPWM 1 ,Gear[i],10
    HPWM 2 ,Gear[i],10
    and place it in a sub program?

    I did remove the analog reading to digital because I thought it will better...don't you think so?

    Regarding the timer, should this be the value T1CON = %00100001 ?
    I really appreciate for answering my questions..not really all clear to me at this time but I hope I will learn some if not all.
    BTW do you think it is best to have a fix speed instead of changing from time to time?

    regards,
    tacbanon
    Last edited by tacbanon; - 29th September 2012 at 12:27.

Similar Threads

  1. Replies: 2
    Last Post: - 7th August 2012, 17:16
  2. Motor driver problem w/ HPWM
    By Amoque in forum General
    Replies: 2
    Last Post: - 21st May 2011, 21:51
  3. L293 motor driver options?
    By Ron Marcus in forum Off Topic
    Replies: 0
    Last Post: - 5th December 2006, 16:39
  4. Stepping motor Driver
    By mesamune80 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th August 2006, 05:36
  5. Driver code for 14 segment LED display
    By Durward Searcy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th December 2004, 21:08

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