loading
Picture of Simple Arduino serial communication.
I've wanted to make a wireless robot for a while by using x bees or other types of wireless communication. This isn't a complete i'ble as to where i show you how to make a robot this is more of a template. I'll show you the code i made and a couple pictures of what the setup would look like.

(please excuse the picture quality my camera is at my friends so i had to use an iPad)

ok i just realized that i didn't finish the transmit code ill get that up soon.

Step 1: The code.

Picture of The code.
Here's my simple code i wrote(its made using the Arduino 1.0 beta so its an .ino file but ill get a .pde soon.)

-there made for the mega just so u can have many functions
-one is a receive and the other is a send
-it just uses a switch and case function depending on the char or int it receives
 
Ice2monkey3 years ago
Hey there. This looks like jut the starting point I need for sending step & direction signals fom one arduino mega to another using xbees. Any progress on the rest of the send code so I can figure out how o modify it or my application? I'm pretty new to the whole arduino c+ stuff so learning as I go.
.
hightekrednek2396 (author)  Ice2monkey3 years ago
Im sorry Ive been working on other things lately and havent gotten around to it yet. But its simple just add a

Serial.print('U');

or another command and youll be good. Ill try and get it as soon as I get my computer back up and running.