Introduction: Password Protected Secret Telling Arduino!

About: Hey YOU! Yeah, I'm talking to you who is reading this. Send me ideas for instructables, like things that you are wondering how to make or build, or really anything electronically related, and I'll get back to …

I was fooling around with my Arduino UNO and started making some cool things. One of them was a password protected secret telling Arduino! You don't need anything but a computer and an Arduino!

Step 1: Programming

This is the code I used!
void setup() {
pinMode(13, OUTPUT);
  Serial.begin(9600);
  Serial.println("HELLO WORLD!!!!!!!!!!!!!!!!!");
  delay(1000);
  Serial.println("I am Arduino!");
  delay(1000);
    Serial.println("Input the correct passcode and I will tell you the secret!");
}

void loop()  {
  start:
const char passcode = 'lolification';

    if (Serial.read() == passcode) {
        Serial.println("I want Pizza"); //input secret line one here here
        delay(1000);
        Serial.println("I am Cold");//just copy paste these with the delays to keep on adding lines
                delay(1000);
        Serial.println("He broke an office computer!"); 
        delay(1000);
        Serial.println("I like when people program me!!!!!"); 
        delay(1000);
        goto start;
    }
  }

Step 2: HAVE FUN!

I had lots of fun when I made this project! You can play Capture The Secret with this. You need two different papers with codes on them. Each team inputs the codes in to the Password field on Arduino. You compile and program Open Serial Port and close main Arduino so they can not cheat. each side has opposite computers and have to find the paper to find the secret. The Secret is an object they have to find as well if you get tagged on the opposite team's territory then you have to go to the jail.

Look at some of my other projects at https://www.instructables.com/id/Candy-Drop-dispenser/
https://www.instructables.com/id/Password-protected-Secret-Telling-Arduino/
https://www.instructables.com/id/Arduinik-The-HumanoidBiped-Robot/
https://www.instructables.com/id/RFID-Reader-Identify-anything-with-RFID-from-cred/

Microcontroller Contest

Participated in the
Microcontroller Contest