PWM using a 16F873


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    I'm sure there are people here that can answer the question, but many of them only check the forum every few days or weeks.
    Not to mention that there are a lot of time zones and not everybody is on your sleep schedule.

    But like DT said, there's a lot of people around who are good with PWM'ing 2 motors bidirectionally, which without some sort of method of counting rev's or speed, good luck trying to get the thing to run straight.

    The big thing I can suggest... Get yourself 4 LEDs, wire them up in 2 pairs of opposing parallel before getting PIC driven MOSFETs connected to motors.
    That way you can play with PWM (no matter what your method, software, hardware, off-chip driven, etc), watching LED brightness, and the opposing parallel pairs of LEDs will give you a visual indication of both direction and relative speed, with practically no chance of blowing up a PIC.

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Gixxer, I built this circuit some years ago. There are 2 such circuits. Each has a pwm channel connected to the "F" terminal and a couple of direction bits associated with it. The reason for 2 direction bits? They set the output to either battery or to ground state. for braking. This circuit is used with a 16F876 which has 2 pwm circuits available. The completed circuit runs 2 motors, forward and reverse with 10 bit pwm values.

    Dave Purola,
    N8NTA
    Attached Images Attached Images

Similar Threads

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