Control current with arduino for testtool for explosion sensor

Discussion in 'General Electronics Chat' started by Jef Van Gorp, Sep 24, 2016.

  1. Jef Van Gorp

    Thread Starter New Member

    Sep 24, 2016
    1
    0
    Hi,

    I need to create a small testtool for explosion sensors. These sensor uses a BPX 61 photodiode.
    I want to control the intensity of a 3 mm led with an arduino nano. But I can't directly use the PWM signal because my photodiode sees also a blockwave. The current through the diode must be constant but I need to be able to adjust the current so the intensity changes. Does anyone have an idea?

    Thanks,
    Jef
     
  2. Veracohr

    Well-Known Member

    Jan 3, 2011
    552
    76
    If it can't be PWM use a DAC with a resistor to drive the LED.
     
  3. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,804
    1,105
    Welcome to AAC!
    Use a low-pass filter to smooth the PWM, then use the resulting DC voltage to drive a constant-current source.
     
Loading...