Page 66 - The Definitive Guide to Building Java Robots
P. 66

Preston_5564C02.fm  Page 47  Wednesday, September 14, 2005  5:42 AM



                                                                     CHAPTER 2  ■  SERIAL COMMUNICATION   47



                            The classes and interface created in this section were
                           • JController.java: This is the interface that will specify behavior for all controllers.
                           • Controller.java: This is the abstract super-class implementing execute() and execute2()
                             for all future controllers.
                           • SimpleStamp.java: This is an implementation class for the SerialEcho.bs2 program
                             presented in section 2.3.
                            The only thing left to create is to get wireless communication with the combination of our
                        BASIC Stamp and Bluetooth device.

                        2.6  Bluetooth Serial Communications

                        This is so easy once the Bluetooth device is set up. All you need to do is change the com port ID.
                        I used the EB500 from Parallax. This plugs right into the boards they have and it’s a great value
                        at under $100 compared with other Bluetooth serial adapters. Make sure you use the com port
                        as specified beneath the Bluetooth Serial Port under the Client Applications tab.
                            You can find the instructions for setting up the microcontroller and the EB500 adapter at
                        the Parallax site or in the manual under the title “Connecting Between a PC with a DBT-120 and
                        a BOE.” Photos of the EB500 and DBT-120 are shown in Figures 2-9 and 2-10.























                        Figure 2-9. The Parallax EB500 Bluetooth Transceiver Module
   61   62   63   64   65   66   67   68   69   70   71