i am making a robot which can perform multiple tasks on commanding i m using arduino mega and connecting to my android phone via Bluetooth i want it to function like if i send a value it becomes a line follower, other case RC car, on another value, obstacle avoiding bot, and as such but i have problem with the code that how to keep the robot to once receive the type of function it has to as if RC car then further receive the vales to move accordingly and then again receive the values like now to become a obstacle avoidance robot and as such...PLZZZZ help.....THANKS