Chapter 1 - Your Boe-Bot’s Brain |
Outcomes:
Assignments:
|
Videos and Simulations Activity Videos:
|
Program Code |
Key Points or FAQs: How do I access the help file? To access the help file, open the Basic Stamp Editor Program and select “Basic Stamp Help…” from the main Help menu at the top of the program window. How do I connect, power up and power down the BOE? To power up the BOE, make sure the battery pack has fresh batteries and that the power cord is connected to the power plug on the BOE. Then slide the Power switch to 1 to use just to components on the BOE or to 2 to power up the BOE and the Servos. What Comm Port is your BOE connected to? The Comm ports vary on every machine. If you are already connected, the easiest way to to view the comm. Port is to use the ‘Identify…” option under the Run menu in the Basic Stamp Editor. This will show the name of the comm port in use. If you do not know the comm port, use the Windows Device Manager to view the ‘Ports’ section to see the active comm port. What file type are the programs saved as? Basic Stamp program files are saved as *.bs2. For example, Myprogram.bs2
What are the two lines of code we have to have at the beginning of every program? The two lines of code required for all programs are called Directives. They tell the program what language is being used and what microcontroller you are working with. Here is an example: ' {$STAMP BS2} ' {$PBASIC 2.5} |
|||