Shop OBEX P1 Docs P2 Docs Learn Events
Question about current control — Parallax Forums

Question about current control

Brad03Brad03 Posts: 1
edited 2007-05-22 17:38 in BASIC Stamp
I am trying to use a BS2 to make a current control system for LEDs. My thought was to use the devices PWM function and a resistor capacitor hold circuit to make a controllable voltage input (for a voltage to current amplifier). I'm just wondering if this is a sensible approach.

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2007-05-22 17:03
    Brad,

    With suitable design, the LED can be controlled with the Stamp's PWM command without the capacitor.

    Of course, it means the Stamp can't do too much else because the PWM command must be continually refreshed.

    Going back to your original idea, the PWM command with the capacitor will indeed give you a variable voltage to feed into a V-to-I amplifier.
    With attention to the charge/discharge time of the capacitor, the Stamp will have considerable "extra" time to do other tasks.

    You could also have the LEDS driven by an independent constant-current-source which the Stamp switches on and off.

    Regards,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-05-22 17:26
    Why do you want to "control current" through an LED again? Most people control the voltage across it, or use "HIGH" and "LOW" with "pause" to pseudo-PWM to control the brightness.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-05-22 17:38
    allanlane5,

    Brad's approach is the correct one. LEDs are current-based devices, with forward voltages that can vary from model to model, from lot to lot, and with temperature. Controlling the current gives the best output uniformity over these variables and prevents over-current conditions which can shorten an LED's life considerably.

    -Phil
Sign In or Register to comment.