Machine Robot Demo 2: Realtime Control throught the console GUI.


This example program is designed to allow the user to control the machine robot model in real time. It accepts input through the console to rotate the arm left and right, or up and down. Additional controls allow the user to open or close the claw to pick objects up. The touch sensor attached to the front of the rover allows it to detect when it has successfully picked up a ball and it will output the message: “The ball was grabbed”. The light sensor will then check the reflected light to determine the color of the ball and will output the color.


Requirements:


Program logic:

picture: Input loop diagram