rd_royale
Published © GPL3+

The police??!!

What do you need to become the police?

BeginnerProtip166
The police??!!

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
5 mm LED: Red
5 mm LED: Red
×1
LED, Blue Green
LED, Blue Green
it means any blue led
×1
Buzzer
Buzzer
an active one
×1
Resistor 221 ohm
Resistor 221 ohm
it can be 220
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

police_bb_tR8E9soWrQ.jpg

Code

Untitled file

Arduino
const int ledpin = 9;

const int redpin = 11;

const int buzzer = 3;
void setup() {
  // put your setup code here, to run once:
pinMode(ledpin, OUTPUT);
pinMode(redpin, OUTPUT);
pinMode(buzzer, OUTPUT);
}

void loop() {
 // put your main code here, to run repeatedly:
digitalWrite(ledpin, HIGH);
digitalWrite(redpin, LOW);
tone(buzzer, 450);
delay(400);
tone(buzzer, 600);
digitalWrite(ledpin, LOW);
digitalWrite(redpin, HIGH);
delay(400);
}

Credits

rd_royale
2 projects • 1 follower

Comments