Introduction: Arduino Stroboscopic Light

About: DIY projects, CNC, 3D Printing and Arduino

Here is the tutorial how to build strobe using the Arduino.

Step 1: Marerials

You will need:

- Arduino board,

- 220 Ohm resistor,

- LED,

- 2 potentiometers,

- Battery.

Step 2: Building

Everything you need is in the picture. There is also my circuit.

You can use more LED's if you want to have stronger light.

Step 3: Software

Program for Arduino:

int pot1;

int pot2;

int val;


void setup() {

pinMode(9, OUTPUT);

}


void loop() {

pot1 = analogRead(0) * 30;

pot2 = analogRead(1) * 5;

val = 1025 * 5;

val = val - pot2;


digitalWrite(9, HIGH);

delayMicroseconds(pot2);

digitalWrite(9, LOW);

delayMicroseconds(val + pot1);

}

Download:

Step 4: How It Works

Stroboscopic light is a type of light that turns On and Off very fast (more than 100 times per second), too fast for human eyes. Mostly it's giving amazing effects, but it can also be dangerous.

To show you when, I've made engine from my LEGO bricks with rotating yellow blrick. There was nothing special until I turned On the srtoboscopic light and regulate it with potentiometers.

It looks awesome, almost staying still, but keep your fingers away!

Step 5: Conclusion

Stroboscopic light is produced by fluorescents, thats why they are always paired - when first is turned On second is turned Off, few microseconds later first is Off and second is On, and over and over again.

You can also find it on some parties - it creates nice effects when someone is moving next to it.

---

Build your own strobe and enjoy the effects!