Saturday, November 5, 2016

Arduino Model Railroading - Arc Welder Flash

The guys at the Charleston Model Railroad Club asked for a simulated flash of an arc welder. A $4 (was $2.50, price went up since we purchased) arduino nano clone, a 130 ohm resistor, and a white LED later, they have their arc welder. This is a fun and inexpensive project that adds to the realism of your layout!

Project inspired by the work at

Just connect a wire from pin 9 to the resistor, from the resistor to the long leg (+) of your LED, and the short leg to Ground.


int ledPin = 9; // LED connected to digital pin 9
int i;
int count;

void setup()
pinMode(ledPin, OUTPUT);

void loop()
for (i=0;i{
digitalWrite(ledPin, HIGH); // set the LED on
digitalWrite(ledPin, LOW); // set the LED off
delay(random(800,2000)); // wait a random bit of time

1 comment:

  1. This is neat, you know were going to need one with a smoke unit right.... right? (Go on)


Related Posts Plugin for WordPress, Blogger...