DOC PREVIEW
TCC EGR 120 - Communicating with the BOE BOT

This preview shows page 1-2 out of 5 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

EGR 120 Due date: _________________________ Introduction to Engineering File: N120T2 Team Assignment #2 Communicating with the BOE-BOT Reading Assignment: 1) Refer to the following sections in Robotics Version 2.2 (instructor’s webpage or online at www.parallax.com) • Chapter 1, Activity 3 – Setting Up the Hardware and Testing the System (pp 13 - 22) • Chapter 1, Activity 4 – Your First Program (pp 22 - 30) • Chapter 2, Activity 2 – Tracking Time and Repeating Actions With a Circuit (pp 45 – 58) 2) Refer to various sections of BASIC Stamp Syntax and Reference Manual, Version 2.1 for information of PBASIC commands (instructor handout or available online at www.parallax.com) 3) Lecture #14 – The BOE-BOT Team Assignment: 1) Setting Up the Hardware and Testing the System • Obtain a BOE-BOT from the instructor. Record the number on the BOE-BOT box. Include this number on the title page of all reports involving the BOE-BOT. Be sure that you use the same BOE-BOT each class. • Use care when handling the BOE-BOT! • Connect the serial cable from the computer to the BOE-BOT. • Connect the battery pack to the BOE-BOT (be sure to disconnect this at the end of the class.) • Turn the BOE on (move the slide switch to position 1 or 2). • Launch the BASIC Stamp Editor. • Select Run – Identify from the main menu in the BASIC Stamp Editor. A window like the one shown below should indicate that a BASIC Stamp 2 was found on COM1 on your computer. Check with the instructor if this does not work properly.Page 2 2) Your First Program A) Program 2A – Sending a message from the BOE-BOT to the computer screen • Launch the BASIC Stamp Editor. • Insert directives in your program: o Specifying a BASIC 2 Stamp o Specifying PBASIC 2.5 as the programming language o Specifying COM1 as the communications port • Write a program similar to the one shown on p. 25 of Robotics, Version 2.2 (shown below) except make the following changes: o Include comments specifying:  course number  team assignment number  BOE-BOT number  your team number  each team member’s name (only if present)  the program number (Program 2A, etc)  the filename (pick an appropriate filename). o Change the greeting to “Hello Group N, this is a message from your BOE-BOT”, where N is your group number. o Run the program and verify that it works properly. o Demonstrate proper operation of the program to the instructor. o Save and print the program. o Print the output of the program from the DEBUG screen.. B) Program 2B – Sending the result of a calculation from the BOE-BOT to the computer screen • Make additions to Program 2A above like those on p. 29 of Robotics, Version 2.2 (shown below) o Run the program and verify that it works properly. o Demonstrate proper operation of the program to the instructor. o Save and print the program. o Print the output of the program.Page 3 3) Tracking Time and Repeating Actions With a Circuit A) Program 3A – Printing a message from the BOE-BOT once per second to the computer screen o Write a program like the one on p. 43 of Robotics, Version 2.2 (shown below) except: o Include initial comments as in previous programs. o Add additional comments to explain different PBASIC commands that are used o Modify the program so that it displays: Start timer … One second elapsed … Two seconds elapsed … . . Ten seconds elapsed … Done o Run the program and verify that it works properly. o Demonstrate proper operation of the program to the instructor. o Save and print the program. o Print the output of the program. B) Program 3B – Turning ON and OFF an LED o Write a program like the one on p. 50 of Robotics, Version 2.2 (shown below) except: o Include initial comments as in previous programs. o Add additional comments to explain different PBASIC commands that are used o Use the output pin corresponding to your group number. o Run the program and verify that it works properly. o Demonstrate proper operation of the program to the instructor. o Save and print the program.Page 3 C) Program 3C – Turning ON and OFF two LEDs (alternating) o Write a program like the second one on p. 53 of Robotics, Version 2.2 (shown below) except: o Include initial comments as in previous programs. o Add additional comments to explain different PBASIC commands that are used o Use the output pin corresponding to your group number and the next higher pin. o Modify the program so that the first LED is on for two seconds while the second LED is off and then the second LED is on for two seconds while the first is off (i.e., the LED’s alternate blinking indefinitely). o Run the program and verify that it works properly. o Demonstrate proper operation of the program to the instructor. o Save and print the program. D) Program 3D – Simulating a traffic light using red, yellow, and green LEDs o Write a program to control green, yellow, and red LEDs like a traffic signal. The green light should come on for 10 seconds, followed by the yellow for 1 second, and then the red for 7 seconds. The program should loop indefinitely. o Include initial comments as in previous programs. o Add additional comments to explain different PBASIC commands that are used o Use any three output pins. o Run the program and verify that it works properly. o Demonstrate proper operation of the program to the instructor. o Save and print the program. E) Program 3E – Turning ON and OFF an LED using the PULSOUT command o Write a program like the second one on p. 55 of Robotics, Version 2.2 (shown below) except: o Include initial comments as in previous programs. o Add additional comments to explain different PBASIC commands that are used o Use the output corresponding to your group number. o The program should turn on the LED for 0.1 seconds and turn it off for N seconds, where N is your group number. The program should loop indefinitely. o Run the program and verify that it works properly. o Demonstrate proper operation of the program to the instructor. o Save and print the program.Page 4 4) Report Organize your results into a report and submit a single typed report for the group to the instructor by the assigned due date. The report should consist of: A) A title page as shown below. B) Printouts for each of the programs (2A, 2B, 3A, 3B, 3C, 3D, and 3E). EGR 120


View Full Document
Download Communicating with the BOE BOT
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Communicating with the BOE BOT and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Communicating with the BOE BOT 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?