I'm relay new to serial communications. I know a little a bought the world of Arduino. So I'm learning a lot. However, I'm certainly open to new ways of doing things. My end goal is to send a code or string from one Arduino mega in the body of my robot to the Arduino mega in the head and then have the Arduino mega turn on a relay or something of that nature. So if there is a better way better code I'm open to it. However I will say that for some reason the I2C will not work. One of the boards is buried deep in my project.
example of data sent: Sean_Moore ( I used my name for lack of something better as a test. )
and so on. I really just need to send something a numbered code or text from one Arduino to the second then chek the recived data in an if statement like:
if (msg = "2490")
if (msg = "relay6_on")
Thanks for the help. :)