Robotics‎ > ‎

CUYTF workshop 2010

Part 1

Programming Basics
  • Downloading a program
    • Download the Program mountain.vi onto your robot
  • Finding your program on your robot
  • Making changes to your program - make changes and download the modified program to your robot
Calculating distance - relating circumference to degrees
  • Use string to measure # of rotations to travel along one side of the box
  • To calculate degrees, multiply rotations by 360
Build your robot
  • Go to nxtprograms.com and make the Five Minute Bot
  • Click on building instructions.  
  • Follow instructions to build your robot
  • Plug your motors into ports A and C
Challenge
  • Modify the program to make your robot go around the mountain
  • Put two boxes together and modify your program to make your robot go around this newer mountain
Part 2

Bumper bots
  • Build a bumper - page 40 of book
  • Plug the touch sensor into port 1
  • You will place your robot inside a box
  • Program your robot to go straight until  it bumps into a wall or another robot
  • What do you want it to do after the touch sensor is pressed?
    • go backward?
    • turn?
  • Here is an example of a program you may want to use

Robot War
  • Keep the bumper on the robot and
  • Attach the light sensor
  • Plug the light sensor into port 2
Example Programs
Run Away

Fight



Programming Basics
Look at the webpage Programming help for examples