Page 17 - Robot Builder's Bonanza
P. 17

xvi  CONTENTS


                   Part 7—Microcontroller Brains

                   Chapter 37—Using the Arduino                                         463
                       Arduino under the Hood                                            463
                       Many Variations on a Theme                                        464
                       Ready Expansion via Shields                                       465
                       USB Connection and Power                                          466
                       Arduino Pin Mapping                                               467
                       Programming the Arduino                                           467
                       Programming for Robots                                            469
                       Using Servos                                                      473
                       Creating Your Own Functions                                       474
                       On the Web: Operating Two Servos                                  475
                       Flow Control Structures                                           476
                       Using the Serial Monitor Window                                   477
                       Some Common Robotic Functions                                     478
                       Using Switches and Other Digital Inputs                           479
                       Interfacing to DC Motors                                          479


                   Chapter 38—Using the PICAXE                                          482
                       Understanding the PICAXE Family                                   482
                       Programming the PICAXE                                            487
                       Core Language Syntax                                              488
                       PICAXE Functions for Robotics                                     492
                       Example: Controlling an RC Servo with the PICAXE                  493
                       Example: Reading Buttons and Controlling Outputs                  494


                   Chapter 39—Using the BASIC Stamp                                     496
                       Inside the BASIC Stamp                                            496
                       Stamp Alone or Developer’s Kit                                    498
                       Physical Layout of the BS2                                        498
                       Hooking Up: Connecting the BASIC Stamp to a PC                    499
                       Understanding and Using PBasic                                    500
                       Interfacing Switches and Other Digital Inputs                     506
                       Interfacing DC Motors to the BASIC Stamp                          507
                       Interfacing RC Servo Motors to the BASIC Stamp                    508
                       Additions in PBasic 2.5                                           509











   00-frontmatter.indd   xvi                                                                    4/21/11   11:42 AM
   12   13   14   15   16   17   18   19   20   21   22