void setup()
{
Serial.begin(9600);
}
void loop() {
// Print "Hello world"
Serial.println("SEVERE TURBINE TRIP");
delay(750);
Serial.println("CHECK FEEDWATER VALVES");
delay(750);
Serial.println("HIGH TEMPERATURE: >800°F");
delay(750);
Serial.println("PWR REACTOR UNSTABLE");
delay(750);
Serial.println("RELIEF VALVE 1 OPEN");
delay(750);
Serial.println("RELIEF VALVE 2 OPEN");
delay(750);
Serial.println("RELIEF VALVE 3 OPEN");
delay(750);
Serial.println("RELIEF VALVE 4 OPEN");
delay(750);
Serial.println("RELIEF VALVE 5 OPEN");
delay(750);
Serial.println("RELIEF VALVE 6 OPEN");
delay(750);
}
int noteDuration = 3;
int numNotes = 16;
int notes[] = {
NOTE_AS4,
NOTE_E5,
NOTE_AS4,
NOTE_E5,
NOTE_AS4,
NOTE_E5,
NOTE_AS4,
NOTE_E5,
NOTE_AS4,
NOTE_E5,
NOTE_AS4,
NOTE_E5,
NOTE_AS4,
NOTE_E5,
NOTE_AS4,
NOTE_E5,
};
void setup()
{
pinMode(12, INPUT);
}
int i = 0;
void loop()
{
if (notes[i])
tone(noteDuration, notes[i]);
else
noTone(noteDuration);
delay(136);
i = (i + 1) % numNotes;
};
void setup()
{
Serial.begin(9600);
}
void loop() {
// Print "Hello world"
Serial.println("SEVERE TURBINE TRIP");
delay(750);
Serial.println("CHECK FEEDWATER VALVES");
delay(750);
Serial.println("HIGH TEMPERATURE: >800°F");
delay(750);
Serial.println("PWR REACTOR UNSTABLE");
delay(750);
Serial.println("RELIEF VALVE 1 OPEN");
delay(750);
Serial.println("RELIEF VALVE 2 OPEN");
delay(750);
Serial.println("RELIEF VALVE 3 OPEN");
delay(750);
Serial.println("RELIEF VALVE 4 OPEN");
delay(750);
Serial.println("RELIEF VALVE 5 OPEN");
delay(750);
Serial.println("RELIEF VALVE 6 OPEN");
delay(750);
}
void setup() {
for (int i = 2; i <= 13; i++) { // Digital pins 2 to 13
pinMode(i, OUTPUT);
}
}
void loop() {
// Turn on all digital pins
for (int i = 2; i <= 13; i++) { // Digital pins 2 to 13
digitalWrite(i, HIGH);
}
delay(500);
// Turn off all digital pins
for (int i = 2; i <= 13; i++) { // Digital pins 2 to 13
digitalWrite(i, LOW);
}
delay(500);
}
// Define pins for each segment of the 7-segment display
const int segmentPins[] = {13, 12, 11, 10, 9, 8, 7};
void setup() {
// Set all segment pins as OUTPUT
for (int i = 0; i < 7; i++) {
pinMode(segmentPins[i], OUTPUT);
Serial.begin(9600);
}
}
void loop() {
// Display "T"
digitalWrite(13, LOW); // T - segment a
digitalWrite(12, HIGH); // T - segment b
digitalWrite(11, HIGH); // T - segment c
digitalWrite(10, LOW); // T - segment d
digitalWrite(9, LOW); // T - segment e
digitalWrite(8, LOW); // T - segment f
digitalWrite(7, HIGH); // T - segment g
delay(333); // Delay between each letter change
// Display "U"
digitalWrite(13, LOW); // U - segment a
digitalWrite(12, LOW); // U - segment b
digitalWrite(11, HIGH); // U - segment c
digitalWrite(10, HIGH); // U - segment d
digitalWrite(9, HIGH); // U - segment e
digitalWrite(8, LOW); // U - segment f
digitalWrite(7, LOW); // U - segment g
delay(333); // Delay between each letter change
// Display "R"
digitalWrite(13, LOW); // R - segment a
digitalWrite(12, LOW); // R - segment b
digitalWrite(11, LOW); // R - segment c
digitalWrite(10, LOW); // R - segment d
digitalWrite(9, HIGH); // R - segment e
digitalWrite(8, LOW); // R - segment f
digitalWrite(7, HIGH); // R - segment g
delay(333); // Delay between each letter change
// Display "B"
digitalWrite(13, LOW); // B - segment a
digitalWrite(12, LOW); // B - segment b
digitalWrite(11, HIGH); // B - segment c
digitalWrite(10, HIGH); // B - segment d
digitalWrite(9, HIGH); // B - segment e
digitalWrite(8, HIGH); // B - segment f
digitalWrite(7, HIGH); // B - segment g
delay(333); // Delay between each letter change
// Display "I"
digitalWrite(13, LOW); // I - segment a
digitalWrite(12, LOW); // I - segment b
digitalWrite(11, HIGH); // I - segment c
digitalWrite(10, LOW); // I - segment d
digitalWrite(9, LOW); // I - segment e
digitalWrite(8, LOW); // I - segment f
digitalWrite(7, LOW); // I - segment g
delay(333); // Delay between each letter change
// Display "N"
digitalWrite(13, LOW); // N - segment a
digitalWrite(12, LOW); // N - segment b
digitalWrite(11, HIGH); // N - segment c
digitalWrite(10, LOW); // N - segment d
digitalWrite(9, HIGH); // N - segment e
digitalWrite(8, LOW); // N - segment f
digitalWrite(7, HIGH); // N - segment g
delay(333); // Delay between each letter change
// Display "E"
digitalWrite(13, HIGH); // E - segment a
digitalWrite(12, HIGH); // E - segment b
digitalWrite(11, LOW); // E - segment c
digitalWrite(10, HIGH); // E - segment d
digitalWrite(9, HIGH); // E - segment e
digitalWrite(8, HIGH); // E - segment f
digitalWrite(7, HIGH); // E - segment g
delay(666); // Delay between each letter change
// Display "T"
digitalWrite(13, LOW); // T - segment a
digitalWrite(12, HIGH); // T - segment b
digitalWrite(11, HIGH); // T - segment c
digitalWrite(10, LOW); // T - segment d
digitalWrite(9, LOW); // T - segment e
digitalWrite(8, LOW); // T - segment f
digitalWrite(7, HIGH); // T - segment g
delay(333); // Delay between each letter change
// Display "R"
digitalWrite(13, LOW); // R - segment a
digitalWrite(12, LOW); // R - segment b
digitalWrite(11, LOW); // R - segment c
digitalWrite(10, LOW); // R - segment d
digitalWrite(9, HIGH); // R - segment e
digitalWrite(8, LOW); // R - segment f
digitalWrite(7, HIGH); // R - segment g
delay(333); // Delay between each letter change
// Display "I"
digitalWrite(13, LOW); // I - segment a
digitalWrite(12, LOW); // I - segment b
digitalWrite(11, HIGH); // I - segment c
digitalWrite(10, LOW); // I - segment d
digitalWrite(9, LOW); // I - segment e
digitalWrite(8, LOW); // I - segment f
digitalWrite(7, LOW); // I - segment g
delay(333); // Delay between each letter change
// Display "P"
digitalWrite(13, HIGH); // P - segment a
digitalWrite(12, HIGH); // P - segment b
digitalWrite(11, LOW); // P - segment c
digitalWrite(10, LOW); // P - segment d
digitalWrite(9, HIGH); // P - segment e
digitalWrite(8, HIGH); // P - segment f
digitalWrite(7, HIGH); // P - segment g
Serial.println("TURBINE TRIP");
delay(666); // Delay between each letter change
}
void setup()
{
pinMode(13, OUTPUT);
}
void loop()
{
digitalWrite(13, HIGH);
delay(100);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(100);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(100);
digitalWrite(13, LOW);
delay(600);
digitalWrite(13, HIGH);
delay(300);
digitalWrite(13, LOW);
delay(300);
digitalWrite(13, HIGH);
delay(300);
digitalWrite(13, LOW);
delay(300);
digitalWrite(13, HIGH);
delay(300);
digitalWrite(13, LOW);
delay(300);
digitalWrite(13, HIGH);
delay(100);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(100);
digitalWrite(13, LOW);
delay(100);
digitalWrite(13, HIGH);
delay(100);
digitalWrite(13, LOW);
delay(600);
}
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println("CALLING 911");
delay(100);
}