First modify your robot to include a Touch LED you will use this to start your auto mode of your bot LED should be in a place where its easy to touch and see the color… we are going to make a program that when the program is started the led is red and then when its running the LED is green ______ Electrical work for your BOT plug your LED into port 5 ___ Programming in RobotC Open RobotC Graphical Select NEW FILE Select Robot tab and make sure that your platform is VEX IQ Select Robot again and make sure that you are set to autonomous- no controller required Select Motor and Sensor Setup Select Standard Models → from the pull down menu select Drive-A-Bot-- You know have the basic set up for your drive bot configured Now you must add your LED Go to the DEVICES tab in the motor and sensor setup and first DELETE distance MM and set to No Sensor before after Now ADD your LED to port 5 === name it led and select Touch LED from the menu ****disregard tag*** You have now set up your tag bot and ready to start programming it SAVE YOUR WORK NOW *** save as MASTER_FILE** Now Save-AS --- Autoprogram1 (this way you are not saving over your master file and will now all you have to do is update the master file whenever you make changes to the configuration of your bot) This first part of code will set your LED to red then wait untill you touch the LED and change it to green and then run the rest of the program that you wrote To have the robot move in a direction use the simple behaviors commands now you can select how far you want you robot to move forward in this example the robot moves 1 rotation of the motor at 50% power *** this will not move your robot much but it will give you tell you how far the robot moves in one rotation*** continue to write your program until you have the desired outcome. Now SAVE YOUR WORK Using the black cable with small USB plug the robot into the computer via usb in the computer and small USB into the brain Click Compile Program == it might as you to save again that is OK Click Download to robot -- make sure the robot is on..a box should come up showing progress and then unplug the wire and your program should be on your bot under auto programs be sure not to run the debugger while a robot is on the table.. sometimes they like to take off Everytime you change your program you need to press the compile button and then download to robot again
© Copyright 2026 Paperzz