Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Wifi Spy Robot - Internals - Arduino, WRT54GL

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,631
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 24, 2011

Here is a description of the internals of the Wifi Spy Robot I made.

You can view a video of the wifi spy robot in action here: http://www.youtube.com/watch?v=ncbQJTnY_1g

If you have questions, you should really check out jbprojects.net and ask Jon Bennet there - he is the guru for this stuff and I built my wifi robot with his help.

Enjoy!

Here is a sketch I used for the programming of the Arduino:

(Where you see a *, replace it with a greater than sign. Where you see **, replace it with a smaller than sign. This is because youtube does not accept greater than or smaller than signs in the description section.)

--- String readString;

void setup()
{
Serial1.begin(9600);
Serial1.println("I'm Online"); // so I can keep track of what is loaded
for (int thisPin = 2; thisPin ** 7; thisPin++) { pinMode(thisPin, OUTPUT);
}
}
void loop()
{
if (Serial1.available() *0)
{
char c = Serial1.read();
switch (c) { case 2: digitalWrite(2, HIGH); digitalWrite(3, HIGH); break; case 1: digitalWrite(4, HIGH); digitalWrite(5, HIGH); break; case 8: digitalWrite(5, HIGH); digitalWrite(2, HIGH); break; case 9: digitalWrite(5, HIGH); digitalWrite(2, HIGH); break; case 16: digitalWrite(5, HIGH); digitalWrite(2, HIGH); break; case 4: digitalWrite(4, HIGH); digitalWrite(3, HIGH); break; case 5: digitalWrite(4, HIGH); digitalWrite(3, HIGH); break; case 13: digitalWrite(4, HIGH); digitalWrite(3, HIGH); break; case 32: digitalWrite(6, HIGH); break; default: // turn all the LEDs off: for (int thisPin = 2; thisPin ** 7; thisPin++) { digitalWrite(thisPin, LOW); } }
}
}

---

Here is a sketch that will help Arduino users to troubleshoot if they have more than one UART or serial port (like the Arduino Mega).

(Where you see a *, replace it with a greater than sign. Where you see **, replace it with a smaller than sign. This is because youtube does not accept greater than or smaller than signs in the description section.)

---
int incomingByte = 0; // for incoming serial data

void setup() { Serial.begin(9600); Serial1.begin(9600); // opens serial port, sets data rate to 9600 bps
}

void loop() {

// send data only when you receive data:
if (Serial1.available() * 0) {
// read the incoming byte:
incomingByte = Serial1.read();

// say what you got:
Serial.print("I received: ");
Serial.println(incomingByte, DEC);
}
}
---

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more