Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
Cool. But doesnt it have to be programmed at Avr? Also, I'm having trouble understanding how the robots communicate to each other messages like: "I found food" or something like that.
byte FoundFood=12;byte GoHome=100;byte Beacon=200;IR_send(FoundFood);
byte Message=0;Message=IR_receive();switch (Message){ case GoHome: FindDirection(Beacon); // home is marked by a beacon that pulses twice a second Forward(); break; case FoundFood: FindDirection(Message); // similar with above, but different message Forward(); break;}