Sampling a PWM signal


Results 1 to 10 of 10

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    The easy way, is to keep this diode there and add a resistor from the cathode to the ground to discharge the capacitor.

    Usually what i use, some higher resistor value, lower capacitor value, connect this to a OP-AMP input, OP-AMP output to the PIC. THat's it. There's no big chance to interfer to the PWM signal and the PWM circuit driver charge and discharge the Cap via the same resistor. BUT in some case, using some kind of OPTO-Isolator can also do the job.

    OR skipping the kinda 'frequency to voltage conversion' and measure the duty but... depending of you.

    This might be useful... well some parts

    EDIT: Warrier point you to some good idea too. I can't really comment them but those really make sense.
    Last edited by mister_e; - 7th May 2005 at 01:36.
    Steve

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

Similar Threads

  1. PWM signal
    By Battalinoglu in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th January 2010, 08:07
  2. PIC16F877A pwm use for IR transmission
    By mcbeasleyjr in forum General
    Replies: 0
    Last Post: - 11th July 2009, 19:51
  3. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 07:03
  4. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 15:19
  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