• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Load ’n Go

You’ll want to enter the code outlined in the previous section into a copy of your discRover1.osc program, and give it a different name, such as discRover2.osc. When you’re finished entering the new code, double check it, hook up your rover, and compile the program as you did for the motor control program. (When it loads to the rover, it will erase the earlier program. You can only have one program in the MCU at a time.) If you entered the code correctly, you should now have a robot brain that knows how to motor your rover forward, and to back up and turn if it hits an obstacle (see Figure 9.12). If nothing happens, or you get strange behaviors, such as wheels turning in opposite directions, check out the “Troubleshooting the DiscRover” section.

Figure 9.12. Our completed DiscRover, ready to spread the word on free trial Internet access!



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint