L298N Motor Driver using pwm code not working..


Results 1 to 15 of 15

Threaded View

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

    Default L298N Motor Driver using pwm code not working..

    Hi, I know I have unfinished topic in another thread, but I'm still waiting some parts to come, so I decided to move on to my simple mobile robot structure. The sensors mentioned from the other thread are going to be placed on this three wheeled robot. But I hit another brick wall. I've been losing my head since this morning..it's 2Am now already . I hope anybody can help me out..I'm having trouble driving the motors using PWM. When not using the PWM, motors work great...please see image\schematic below.

    Attachment 6682
    My setup
    Attachment 6684
    My codes:
    Code:
    Define OSC 20
    ANSEL=%00000000
    ANSELH=%00000000
    TRISC = 0
    PORTC = 0
    TRISD = 0
    PORTD = 0
    
    MainLoop:
    PortD.0 =1
    PortD.1 =0
    PortD.2 =1
    PortD.3= 0
    PortC.4 ,127, 100
    PortC.5 ,127, 100
    
    Goto MainLoop
    Can any one spot what I'm doing wrong...I appreciate any input.

    Kind regards,
    tacbanon
    Attached Images Attached Images    
    Last edited by tacbanon; - 26th September 2012 at 20:40.

Similar Threads

  1. Replies: 2
    Last Post: - 7th August 2012, 16:16
  2. Motor driver problem w/ HPWM
    By Amoque in forum General
    Replies: 2
    Last Post: - 21st May 2011, 20:51
  3. L293 motor driver options?
    By Ron Marcus in forum Off Topic
    Replies: 0
    Last Post: - 5th December 2006, 15:39
  4. Stepping motor Driver
    By mesamune80 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th August 2006, 04: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, 20:08

Members who have read this thread : 1

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