PWM using a 16F873


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Gixxer View Post
    Is it possible to drive these same control inputs to the L293 using PWM from the PIC ?
    John,

    I do this all the time with the L293 - what you want to do is exactly what you are doing for direction control except use PWM on the enable lines (rather than leaving them on).

    Is that enough to get you going? (I expect to hear back from you in the next 10 minutes - we have a schedule to keep ... its 5AM here)
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  2. #2
    Join Date
    Dec 2007
    Location
    Toronto, Ontario
    Posts
    23


    Did you find this post helpful? Yes | No

    Talking

    hahaha,

    That actually cracked me up Paul. Thanks alot guys for the replies. Yesterday I was at a point in my project that you have all been I'm sure-STUCK. So you say to drive the enable pins with the PWM and continue to use my existing four control lines for direction? In other words six i/o are required from the pic. Seems like alot of io to use on motor control only, but I should be able to manage. I'm building a small tracked robot with half duplex rf tranceivers for telemetry and radio control-all digital R/C of course. It's such an involved project and I've had to break it up into sections and learn how to build it. Slowly but surely!
    So does anyone have a small snippet PWM code that may get me going ?

    thanks,

    John.

  3. #3
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  4. #4
    Join Date
    Dec 2007
    Location
    Toronto, Ontario
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Thanks again Paul, that appears to be exactly what I need to get started on this. I'll give it a try when I get home tomorrow and let ya know.

    John.

Similar Threads

  1. Half-bridge PWM with a 16F684 ?
    By Byte_Butcher in forum General
    Replies: 7
    Last Post: - 17th January 2010, 23:18
  2. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 07:03
  3. PWM: Vernacular/Function (Newbee)
    By TerryN in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd July 2008, 17:58
  4. PWM setting PIC16F887
    By Gevo in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th June 2008, 08:24
  5. Tidying Up PWM Routine
    By Tissy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st February 2005, 01:26

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