Introduction: Arduino Stroboscopic Light

Picture of Arduino Stroboscopic Light

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

Step 1: Marerials

Picture of Marerials

You will need:

- Arduino board,

- 220 Ohm resistor,

- LED,

- 2 potentiometers,

- Battery.

Step 2: Building

Picture of 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);


digitalWrite(9, LOW);

delayMicroseconds(val + pot1);



Step 4: How It Works

Picture of 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

Picture of 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!


AndreaD20 (author)2017-04-26

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?

Thank you in advance for your reply

1. This multipliters just worked gret with my camera, but any other value should also work.
2. If val was 1023 or 1024 the strobe effect will stop in some cases (for example time when led is off could be set to 0 or even less).
* 5 is the same multiplites as in pot2.

wold630 (author)2016-02-12

Great first instructable! Can't wait to see what you make next!

About This Instructable




Bio: I am just a bit of electrons orbiting around neutrons and protons
More by TheSuperSewcio.:Black As LineDrawing Plotter1000 steps Servo
Add instructable to: