Emergency Flasher

US Police response vehicle lights clone.

Very simple little project, started easy for first time using FRITZING. It was very easy to use. Anyways here is the scetch:

/* Project - Emergency Response Signals

Free Code by Tim Semborski

This is for learning purposes. Please be responsible with this code!/

//Create new variables and store the pin number byte redPin = 12; byte bluePin = 10;

//Setup function, declare pins as OUTPUTs void setup() { pinMode(redPin, OUTPUT); pinMode(bluePin, OUTPUT); }

//Loop function, makes the LEDs blink void loop() { digitalWrite(redPin, HIGH); delay(100); digitalWrite(redPin, LOW); digitalWrite(bluePin, HIGH); delay(100); digitalWrite(bluePin, LOW); }

By Semborski
Created on July 14, 2011, 21:10

Category: Digital

Difficulty: kids

License:  Creative Commons Attribution-Share Alike 3.0 Unported License

Tags: emergency, lights, simple, led, resistor, flashing, police, nice

Files

Comments

  1. Sugar # July 15, 2011, 1:56 p.m.

    Well done Tim. I added triple the amount of LED's (35,000 MCD each) and nearly burnt out the retina's of the guy next door, while he was next door. Cheers, Sugar
  2. Semborski # July 17, 2011, 12:03 a.m.

    Hahaah. Thanks for the reply!

Login to post a comment...
  • Print this
© 2007 - 2011 University of Applied Sciences Potsdam