Page 124 - Amphibionics : Build Your Own Biologically Inspired Robot
P. 124

Amphibionics 04  3/24/03  8:24 AM  Page 103
                                         Chapter 4 / Frogbotic: Build Your Own Robotic Frog
                                                                                   FIGURE 4.62
                                                                                   Rear-side view of the
                                                                                   finished robot frog.



























                        Now that Frogbotic’s hardware is complete, we will focus on pro-
                        gramming the robot to read input from the limit switch sensors,
                        control the leg servos, make sounds, and turn the LEDs on and off.


                        Programming and Experiments
                        with Frogbotic

                        To  test  the  main  controller  board,  the  PIC  16F84  will  be  pro-
                        grammed to flash the LEDs, make frog-like noises, and then start
                        rotating the servos. This will ensure that all of the components
                        have been correctly soldered to the board and that power has been
                        connected. The first program is called frog-test.bas and is listed in
                        Program 4.1. Type the program into your favorite text editor and


                                                                                                 103
   119   120   121   122   123   124   125   126   127   128   129