# Arduino Stroboscopic Light

8,204

121

3

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

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## 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() {

val = 1025 * 5;

val = val - pot2;

digitalWrite(9, HIGH);

delayMicroseconds(pot2);

digitalWrite(9, LOW);

delayMicroseconds(val + pot1);

}

## 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!

## Recommendations

• ### Internet of Things Class

22,808 Enrolled

## 3 Discussions

Hi. Thanks for sharing your code! I have two questions:

1.How did you set up the multipliers for pot1 & pot 2 ( 30 and 5)?

2. Why do you define val as 1025 * 5?