Smooth and remove pulsed signal

Discussion in 'Analog & Mixed-Signal Design' started by JackPollack, Sep 2, 2017.

  1. JackPollack

    Thread Starter New Member

    Feb 29, 2016
    7
    0
    Im trying to used a hacked optical mouse to drive a relay. The tracking LED in the mouse is lit when the device is on and the LED is off when the unit is in sleep mode (the USB port has power in both modes).

    The tracking LED is pulsed around 4Khz. I want to smooth the 4Khz signal so that I can drive a relay (ie LED lit - even +/- 4Khz the relay triggers, LED off the relay is off).

    I was fooling around with some RC filters but couldn't get the desired result.

    Some help would be appreciated.
     
  2. crutschow

    Expert

    Mar 14, 2008
    20,060
    5,650
    If you want to convert the pulsed signal a steady DC, you can rectify and filter it with a diode and capacitor as shown below:

    upload_2017-9-2_20-22-9.png
     
  3. JackPollack

    Thread Starter New Member

    Feb 29, 2016
    7
    0
    Thanks for the help. the diode was the one thing I didnt try. Worked perfectly.
     
Loading...