Subscribe to Arduino Academy and start learning today for FREE!

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 http://mrrwa.org/wp-content/uploads/2011/07/ModelRailroadingWithArduino.pdf

Become the Maker you were born to be. Try Arduino Academy for FREE!

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.

Code:

https://pastebin.com/pEfLMAih

 

Subscribe
Notify of
guest
4 Comments
Inline Feedbacks
View all comments
Unknown
5 years ago

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

Unknown
4 years ago

arduino does not like the statement
for(i=0;i{
Too easy to make a code mistake.

Steve Spence
4 years ago

Thanks for the catch. Fixed.

Unknown
3 years ago

thanks Steve this is amazing and works well

Archives

4
0
Would love your thoughts, please comment.x
()
x