Wifi Spy Robot - Internals Arduino wrt54gl


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...详情
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() { Ser隐藏

标签: arduino视频