
Re: How to switch an LED at 1/1000 of a second at 30 times a sec
Tim Zeifer wrote:
> I am building a toy fan with an LED for fun. The LED spins and
> should produce a blink instead of a streak of light when it moves
> at high speed. I am having trouble switching a super bright LED
> to stay on for 1/1000th of a second at 30 times a second. I'd tried
> using a function generator to generate a VVVV wave to drive an
> npn transistor which drives the LEDs but instead of turning the
> LED on for 1/1000th of a second it doesn't. Instead, the transistor
> is creating a square wave (with equal on time and off time) for the
> LEDs. Can someone suggestion a practical way to switch a
> super bright LED on at 1/1000th of a second at 30 times
> a second?
It's time for you to take a look at using microcontrollers.

If you absolutely must do it the hard way, try driving the base of the
transistor thru a capacitor to shorten the on time to the duration of the
voltage "surge". Use a pulldown resistor after the cap.
Using a micro would allow you to take this project very far. CVS pharmacy
was clearancing these cool waving wand type LED message clocks for $5 each:
http://cgi.ebay.com/tde-PROGRAMMABLE-ME ... dZViewItemMy wife got me one the other day, I'm headed back to clean out the rest of
their stock later. A really cool starting platform for stupid PIC tricks.
