3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Password protected Secret Telling Arduino!

Password protected Secret Telling Arduino!
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!
 
Remove these adsRemove these ads by Signing Up
 

Step 1Programming

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;
    }
  }
« Previous StepDownload PDFView All StepsNext Step »
11 comments
Apr 20, 2012. 5:08 PMzer0nerz says:
Like if you using RFID's for a door, you could store your RFIDs information, copy it to another card. Delete that card out of the memory?
Apr 20, 2012. 3:13 PMzer0nerz says:
like... how would you program it to save, copy , and delete...
Apr 20, 2012. 5:06 PMzer0nerz says:
stored information.
Apr 20, 2012. 3:12 PMzer0nerz says:
Wow thats pretty damn cool. Im new to C++ or C, i never understood where does all this code pop up from? Like how do you know that the Arduino will respond properly to what you tell it to do? like the pins and the analog stuff. Is there something i can get. Or is it more simple than i think? My C++ is basic... i can't write anything. But I understand some things. Just not enough.
Mar 1, 2012. 12:34 PMmkunst says:
this is cool :D made by yourzelf?
Dec 9, 2011. 12:58 AMseriari3 says:
ca va

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
9
Followers
12
Author:simonfrfr
A student currently enrolled in 8th grade. Thanks guys for your support :D. Post Comments on any of my instructables and I will be happy to reply. Thank you