pot controlled pwm -- help


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Posts
    76


    Did you find this post helpful? Yes | No

    Default

    thank you all for your help so far. to answer the first question, I am using the 16F877A. It wont be the chip that I will actually use for this item when I finally have a finished board, but it is feature rich and good for prototyping.

    maus: I will give your code changes a shot. my main reason for using pot was I get a value from 0-255, the same as the input for hpwm, so no conversion necessary. what kind of values do you get from the adcin? I havent found any documentation that has answered this question thus far.


    Acetronics: thanks for the input as well, it looks like the pot command is going out the window. Ill read up on the RC command

    sayzer: I thought the scale was an adjustment for setting the pot's upper limit? I used a counter program that read the pot with an if then statement and blinked an LED equal to the scale amount, this is where 23 came from.

    thanks again for all your help. I will probably be able to test some of these things tonight after work.


    included is a schematic, it also may be crude, its my first time using the schematic software.
    Attached Images Attached Images  
    Last edited by docwisdom; - 25th January 2006 at 17:44.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    As you use a 16F877, why spending time and extra capacitor when life can be sooo much easier by using internal ADC on PORTA?

    Look for ADCIN in the PBP manual and Section 11 of the datasheet.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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. Serial controlled PWM
    By The Master in forum Off Topic
    Replies: 1
    Last Post: - 26th November 2007, 06:47
  4. Replies: 4
    Last Post: - 24th January 2007, 22:20
  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