{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CE8_lab3 - CE-8 Lab 3 Introduction to PBASIC Lab Objectives...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CE-8 Lab 3: Introduction to PBASIC Lab Objectives By the end of this lab you should be able to: 1. know what is a PBASIC stamp editor, and how to download programs to your scribbler robot , 2. identify the different conditional operators and how to use them properly in the context of a program, 3. identify what a variable is and how to Declare and Use one in a program, and 4. create a program that properly use DO….LOOP command as well as use IF, THEN, ELSE commands to direct the behavior of your robot. Finally, you are in control of your robot. This lab is relatively short if you get the idea. Writing a Program To be able to program your scribbler, you should be able to type in a set of instructions (program) that will then be downloaded to you scribbler robot. The set of instructions should be typed in what is called main edit pane. The programs are written in a language called PBASIC. This language is then translated by the means of the BASIC stamp editor in a string of zeros and ones that could be understood by the computer. To be able to open the main edit pane and start typing a program, follow the following steps: 1. Double click the PBASIC stamp editor icon on your desktop. 2. Select file from the pull down menu, them open new file, or follow a short cut mentioned by you TA. 3. Type your program as will be explained in class and don’t forget to save your program. In every PBASIC program you should include the following: 1. What model of BASIC Stamp microcontroller you are programming (we use BASIC stamp 2 “BS2”), so click BS2 icon.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern