Here is one another project which is useful in our daily life using aduino. As we had already posted “High Brightness LED Strobe Using NE555″ using array of 36 LEDs now here we use single high brightness Luxeon LED. The circuit of strobe light using arduino is shown in figure 1. The potentiometer VR1 is used to control the flashing rate of strobe light.
PARTS LIST OF STROBE LIGHT USING ARDUINO
|Resistor (all ¼-watt, ± 5% Carbon)|
|R1 = 270 Ω
R1 = 4 Ω/1W
VR1 = 100 KΩ
|Arduino Diecimila or Uno or clone
T1 = BD139 NPN transistor
LED1 = Luxeon 1W LED
The code of the project is straightforward and the interesting thing is we concerned with reaing the value from analog input and controlling the rate of flshing.
int ledPin = 11;
int analogPin = 0;
int period = (1023 –
analogRead(analogPin)) / 2 + 25;