ENGR PBASIC programming
|
|
- Oswald Potter
- 5 years ago
- Views:
Transcription
1 ENGR 1100 PBASIC programming
2 Variables Why variables? To store values, Why store variables? To count, Why count? To control and keep track of the number of times something happens
3 Variables Variables can be used to store values. Before you can use a variable in PBASIC, you have to declare the variable. variablename VAR Size You can declare four different sizes of variable in PBASIC: Size Stores Bit 0 to 1 Nib 0 to 15 Byte 0 to 255 Word 0 to or to
4 Variable Declaration A variable in PBASIC is declared with the syntax of: variablename VAR size, for example
5 Variables can be read and modified. 'Prog 5B: Test of variable sizes ' *********************** Declare Variables ByteCount VAR BYTE WordCount VAR WORD BitCount VAR BIT NibCount VAR NIB Main: WordCount = WordCount 'Add to each variable ByteCount = ByteCount + 20 NibCount = NibCount + 1 BitCount = BitCount + 1 DEBUG CLS 'Clear the screen DEBUG? WordCount : DEBUG? ByteCount: DEBUG? NibCount: DEBUG? BitCount PAUSE 500 GOTO Main Colons may be used to separate instructions on a single line
6 DEBUG The DEBUG command is used solely for the purpose of observing the execution of a program not able to change values of variables or affect the flow of a program.
7 DEBUG DEBUG text to be displayed Prints the string between the quotes to the debug window. DEBUG dec variable Prints the value of variable to the debug window. DEBUG cr cr is the carriage return parameter. It moves the cursor the next line in the debug window. DEBUG cls Clears the debug window screen.
8 DEBUG example variable VAR byte variable = 27 DEBUG cls, The value of the variable is:, dec variable, cr DEBUG This is the second line. DEBUG Variable =, dec variable
9 DEBUG ' Robotics with the Boe-Bot - TimedMessages.bs2 ' Show how the PAUSE command can be used to display messages at human speeds. ' {$STAMP BS2} ' {$PBASIC 2.5} DEBUG "Start timer..." PAUSE 1000 DEBUG CR, "One second elapsed..." PAUSE 2000 DEBUG CR, "Three seconds elapsed..." DEBUG CR, "Done." END
10 Debug DEBUG "Hello!" DO DEBUG "!" PAUSE 1000 LOOP
11 PAUSE The PAUSE command suspends the execution of a program a specified amount of time.
12 HIGH, LOW Issuing the HIGH command sets the specified pin number to five volts. The LOW commands sets the specified pin number to zero volts.
13 HIGH, LOW HIGH 11 sets pin 11 to five volts LOW 12 sets pin 12 to zero volts
14 Variable Example ' {$STAMP BS2} ' {$PBASIC 2.5} value VAR Word variables anothervalue VAR Word value = 500 variables anothervalue = 2000 DEBUG? value DEBUG? anothervalue value = 10 * anothervalue operations DEBUG? value again DEBUG? anothervalue END ' Declare Initialize ' Display values ' Perform ' Display values
15 FOR..NEXT LOOP The most convenient way to control the number of times a piece of code is executed is with a FOR NEXT loop. Here is the syntax: FOR Counter = StartValue TO EndValue {STEP stepvalue} NEXT ' {$STAMP BS2} ' {$PBASIC 2.5} mycounter VAR Word FOR mycounter = 1 TO 10 DEBUG? mycounter PAUSE 500 NEXT DEBUG CR, "All done!" END
16 Do..LOOP You can place your commands between the words DO and LOOP if you want them executed over and over again. DO LOOP ' Display a message once every second. ' {$STAMP BS2} ' {$PBASIC 2.5} DO DEBUG "Hello!", CR PAUSE 1000 LOOP
17 Do Loop An EXIT command can be issued inside the DO...LOOP command variable VAR byte DO IF variable = 10 THEN EXIT LOOP
18 Pulseout PULSOUT Pin, Duration DO PULSOUT 13, PAUSE 2000 LOOP
19 IF..THEN The IF THEN statement is used to make decisions in PBASIC. The syntax for IF THEN statements is: IF (condition) THEN {ELSEIF (condition)} {ELSE} ENDIF IF (IN7 = 0) THEN HIGH 1 ELSE LOW 1 ENDIF IF (IN5 = 0) THEN HIGH 10 ELSE LOW 10 ENDIF
20 variable VAR word What would this do? IF (variable > 4000) THEN DEBUG Variable was greater than 4000, cr ELSEIF (variable = 4000) THEN DEBUG Variable was equal to 4000, cr ELSE DEBUG Variable was less than 4000, cr ENDIF
21 Blinking an LED with HIGH, LOW Main: HIGH 8 PAUSE 1000 LOW 8 PAUSE 5000 GOTO Main 'Turn off LED 'Wait 1 second 'Turn on LED 'Wait 5 seconds 'Jump back to beginning
22 Subroutine There are two parts of a PBASIC subroutine. Call Actual Subroutine
23 Subroutine It starts with a label that serves as its name and ends with a RETURN command. The commands between the label and the RETURN command is the code block that does the job you want the subroutine to do.
24 Subroutines DO DEBUG "Before subroutine",cr PAUSE 1000 GOSUB My_Subroutine DEBUG "After subroutine", CR PAUSE 1000 LOOP My_Subroutine: DEBUG "Command in subroutine", CR PAUSE 1000 RETURN
25 Subroutines ' Make forward movement in reusable subroutines. ' {$STAMP BS2} ' {$PBASIC 2.5} counter VAR Word GOSUB Forward END Forward: FOR counter = 1 TO 64 PULSOUT 13, 850 PULSOUT 12, 650 PAUSE 20 NEXT PAUSE 200 RETURN
Tutorial: Robotics with Boe-Bot and PBASIC
Tutorial: Robotics with Boe-Bot and PBASIC This tutorial introduces you to the PBASIC programming language and the Boe-Bot development board and robotics kit. PBASIC is used to program the microcontroller
More informationME2110: Creative Decisions and Design Electromechanical and Pneumatic Kit Manual
ME2110: Creative Decisions and Design Electromechanical and Pneumatic Kit Manual Contents 1 The Controller Box 1 2 Basic Programming of the Controller Box 2 2.1 Program Directives.....................................
More informationMechatronics and Pneumatics Kit Manual
ME2110: CREATIVE DECISIONS AND DESIGN Mechatronics and Pneumatics Kit Manual GEORGE W. WOODRUFF SCHOOL OF MECHANICAL ENGINEERING GEORGIA INSTITUTE OF TECHNOLOGY Introduction This document describes the
More informationCommunicating with the BOE-BOT
ME 1030 Name: Due date: Introduction to Mechanical Engineering BOE BOT Collected Assignment #1 Communicating with the BOE-BOT Reading Assignment: 1. Refer to the following sections in the BOE BOT Textbook
More informationRoboStamp Basic Software (A tutorial by Technotutorz)
RoboStamp Basic Software (A tutorial by ) The Robostamp robotic kit is one of the robots used as standard in the workshops. Two versions can be built up: the izebot and the RoboTank. The Robostamp can
More informationMemsic 2125 Accelerometer Demo Kit (#28017) Tilt and Rotation Measurement
599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003 General: info@parallaxinc.com Technical: support@parallaxinc.com Web Site: www.parallaxinc.com Educational:
More informationParallax Audio Amplifier AppMod (#29143)
599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003 General: info@parallax.com Technical: support@parallax.com Web Site: www.parallax.com Educational: www.stampsinclass.com
More informationLCD Terminal AppMod (#29121) 2 Line x 8 Character LCD Module with User Buttons
599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003 General: info@parallax.com Technical: support@parallax.com Web Site: www.parallax.com Educational: www.stampsinclass.com
More informationHitachi H48C 3-Axis Accelerometer Module (#28026)
Web Site: www.parallax.com Forums: forums.parallax.com Sales: sales@parallax.com Technical: support@parallax.com Office: (916) 624-8333 Fax: (916) 624-8003 Sales: (888) 512-1024 Tech Support: (888) 997-8267
More informationMicrocontrollers. What is a Microcontroller. Setting up. Sample First Programs ASCII. Characteristics Basic Stamp 2 the controller in the Boe Bot
Microcontrollers What is a Microcontroller Characteristics Basic Stamp 2 the controller in the Boe Bot Setting up Developmental Software Hardware Sample First Programs ASCII DEBUG using ASCII What is a
More informationLight Sensors. Measuring Light. The Phototransistor. Discharge Times. Measuring Light. Chapter 7: Measuring Light
ME456: Mechatronics Systems Design Chapter 7: Prof. Clark J. Radcliffe Mechanical Engineering Michigan State University http://www.egr.msu.edu/classes/me456/radcliff Light Sensors Digital Camera CCD s
More information' You should have received a copy of the GNU General Public License ' along with this program. IF NOT, see <
' {$STAMP BS2} ' {$PBASIC 2.5} ' Gimme Sugar v1.1 - A Basic Stamp software for gesture controlled sugar dispencer ' Copyright (C) 2007 Anna Keune, Jari Suominen ' For more details: mlab.taik.fi/paja '
More informationBASIC Stamp 1 Project Board (#27112) Development / Education Platform for the BASIC Stamp 1
599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003 General: info@parallax.com Technical: support@parallax.com Web Site: www.parallax.com Educational: www.stampsinclass.com
More informationSimulating Manufacturing Processes in Education and Training: Enhanced Color Sorting Example
Simulating Manufacturing Processes in Education and Training: Enhanced Color Sorting Example Richard rjohnson@bsu.edu Department of Technology Ball State University Introduction This design brief describes
More informationWeb Site: Forums: forums.parallax.com Sales: Technical:
Web Site: www.parallax.com Forums: forums.parallax.com Sales: sales@parallax.com Technical: support@parallax.com Office: (916) 624-8333 Fax: (916) 624-8003 Sales: (888) 512-1024 Tech Support: (888) 997-8267
More informationMicro-Controllers. Module 2: Outputs Control and Inputs Monitoring. IAT Curriculum Unit PREPARED BY. August 2008
Micro-Controllers Module 2: Outputs Control and Inputs Monitoring PREPARED BY IAT Curriculum Unit August 2008 Institute of Applied Technology, 2008 2 Module 2: Outputs Control and Inputs Monitoring Module
More informationProp-1 Programming Basics
Prop-1 Programming Basics Team EFX-TEK teamefx@efx-tek.com www.efx-tek.com Why Use a Programmable Controller? No off-the-shelf product exists that meets the requirements of your application Off-the-shelf
More informationProgramming Examples for Picaxe BASIC. NC Engineering Systems
Programming Examples for Picaxe BASIC NC Engineering Systems C:\Users\Mike\Desktop\TechStudies\Programs\Updated Programs\Example.bas 'EXAMPLE 4 'This program shows how to use the 5 'HIGH and LOW commands
More informationColumn #119: Ping I See You. Column #119 March 2005 by Jon Williams: Ping I See You
Column #119 March 2005 by Jon Williams: Ping I See You I used to work for a man named Bob who insisted and quite frequently that most of us needed to be exposed to the same piece of information five to
More informationWeek 6 - Robots and lights 2. Section 1. Objective: To Program the Boe-Bot for Light Following. Required parts: Same as the previous Experiment.
Section 1. Week 6 - Robots and lights 2 Simply by adding some forward motion to your Boe-Bot, you can turn it into a light-seeking robot, a photophile. An interesting experiment to try is to program the
More information1. Description of RBbasic2K4 Lite Program
1. Description of RBbasic2K4 Lite Program In this paragraph, let's study the commands using at RBbasic2k4. It is based on the previous BASIC commands. You should know each command's function and use method
More informationParallax Serial LCD 2 rows x 16 characters Non-backlit (#27976) 2 rows x 16 characters Backlit (#27977)
599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003 General: info@parallax.com Technical: support@parallax.com Web Site: www.parallax.com Educational: www.stampsinclass.com
More informationYou ve Got Robot Eyes
Column #99 July 2003 by Jon Williams: You ve Got Robot Eyes How about something simple this month, yet useful and even fun. Good I've had a crazy couple of weeks leading up to writing this, especially
More informationMeasuring Up Up to 80 Centimeters, That Is
Column #114 October 2004 by Jon Williams: Measuring Up Up to 80 Centimeters, That Is Add a bit of intelligence to your Halloween displays with IR distance measuring. The night is drawing closer... my favorite
More informationWeb Site: Forums: forums.parallax.com Sales: Technical:
Web Site: www.parallax.com Forums: forums.parallax.com Sales: sales@parallax.com Technical: support@parallax.com Office: (916) 624-8333 Fax: (916) 624-8003 Sales: (888) 512-1024 Tech Support: (888) 997-8267
More information12-Volt Unipolar Stepper Motor (#27964)
599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003 General: info@parallax.com Technical: support@parallax.com Web Site: www.parallax.com Educational: www.stampsinclass.com
More informationStatements and Operators
Statements and Operators Old Content - visit altium.com/documentation Mod ifi ed by Rob Eva ns on Feb 15, 201 7 Parent page: EnableBasic Enable Basic Statements Do...Loop Conditional statement that repeats
More informationParallax Serial LCD 2 rows x 16 characters Non-backlit (#27976) 2 rows x 16 characters Backlit (#27977) 4 rows x 20 characters Backlit (#27979)
599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003 General: info@parallax.com Technical: support@parallax.com Web Site: www.parallax.com Educational: www.stampsinclass.com
More informationKeyboard Entry and Display
Column #97 May 2003 by Jon Williams: Keyboard Entry and Display Im sure youve heard, perhaps many time, that "Imitation is the sincerest form of flattery." I happen to agree with that assertion. What Ive
More informationConnect BS2 to Phone Lines, Give the BS1 an LED Display
Stamp Applications no. 19 (September 96): Connect BS2 to Phone Lines, Give the BS1 an LED Display Project double-header for the BASIC Stamps I and II by Scott Edwards THIS MONTH we re going to blast our
More informationBS2p24 Demo Board (#45183)
599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003 General: info@parallaxinc.com Technical: stamptech@parallaxinc.com Web Site: www.parallaxinc.com Educational:
More informationDrumming Up Control. Traffic Control
Column #110 June 2004 by Jon Williams: Drumming Up Control Like most men, I'm not real big on the idea of shopping. I know what I want, I want what I want, and I know where to go get it and that's precisely
More informationParallax BASIC Stamp IIsx
Parallax BASIC Stamp IIsx The Parallax BASIC Stamp IIsx module is an extended form of the BASIC Stamp II that incorporates several key features of the Scenix Semiconductor SX microcontroller and an advanced
More informationEasy GPS Readings for the Basic Stamp Chip. By Randy R. Price Kansas State University Biological and Agricultural Engineering Department
Easy GPS Readings for the Basic Stamp Chip By Randy R. Price Kansas State University Biological and Agricultural Engineering Department Introduction: Small microcontrollers, such as the Basic Stamp II
More informationGET130 Intro to Engineering Technology Fall 2013
GET130 Intro to Engineering Technology Fall 2013 2 Programming is FUN! in addition to being a software package user, engineers and ETs can often benefit from being able to program computers for particular
More informationRFID Card Reader, Serial (#28140) RFID Card Reader, USB (#28340)
Web Site: www.parallax.com Forums: forums.parallax.com Sales: sales@parallax.com Technical: support@parallax.com Office: (916) 624-8333 Fax: (916) 624-8003 Sales: (888) 512-1024 Tech Support: (888) 997-8267
More informationRCX Tutorial. Commands Sensor Watchers Stack Controllers My Commands
RCX Tutorial Commands Sensor Watchers Stack Controllers My Commands The following is a list of commands available to you for programming the robot (See advanced below) On Turns motors (connected to ports
More informationPicBasic Compiler. microengineering Labs, Inc.
For i = 1 To 10 Gosub nextchar Serout 0,N2400,[#C count = count * 2 Next i Dtmfout 1,[1,2,3,4] I2cread cont,addr,[idata] If PORTA.1 = 0 Then pbpressed * slip + count + 1 loop 0 1 1 0 0 1 microengineering
More informationMore Control from the Couch
Column #112 August 2004 by Jon Williams: More Control from the Couch With Bluetooth technology, remote control blues may be a thing of the past. Yep, I m still a real man, alright. I still live in the
More informationRobot Electrical & Mechanical Block Diagram
Robot Electrical & Mechanical Block Diagram loudspeaker (output) 100 ufd cap. 5V G Basic Stamp II OEM Kit (www.parallax.com) wires f wheelcontrol signals Programming cable detach to run serial cable to
More informationIn Delphi script, when values are assigned to variables, the colon-equal operator is used; :=
Statements and Operators Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 Parent page: DelphiScript DelphiScript Statements A statement in DelphiScript is considered as simple when
More informationPINK (Parallax Internet Netburner Kit - #30013)
Web Site: www.parallax.com Forums: forums.parallax.com Sales: sales@parallax.com Technical: support@parallax.com Office: (916) 624-8333 Fax: (916) 624-8003 Sales: (888) 512-1024 Tech Support: (888) 997-8267
More informationBoard Of Education USB (#28850)
599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003 Sales: sales@parallax.com 1-888-512-1024 Tech Support: support@parallax.com 1-888-99-STAMP Web Site:
More informationMicrosoft Visual Basic 2015: Reloaded
Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Seven More on the Repetition Structure Objectives After studying this chapter, you should be able to: Code a counter-controlled loop Nest repetition
More informationChapter #3: Tilt with the Memsic Accelerometer
Chapter 3: Chapter Name Page 61 Chapter #3: Tilt with the Memsic Accelerometer Acceleration is a measure of how quickly speed changes. Just as a speedometer is a meter that measures speed, an accelerometer
More informationAW51V2, 8051 Development Board
AW51V2, 8051 Development Board All Amateur World s development boards represents irreplaceable tools for programming and developing micro-controller based devices. Carefully chosen components and best
More informationUFT Introduction to Automation and QTP
UFT Introduction to Automation and QTP What is automation? Why Automation Benefits of Test Automation Where to Begin? What to Automate? Tests that shouldn t be automated Basic Features of QTP Supporting
More informationLesson B Objectives IF/THEN. Chapter 4B: More Advanced PL/SQL Programming
Chapter 4B: More Advanced PL/SQL Programming Monday 2/23/2015 Abdou Illia MIS 4200 - Spring 2015 Lesson B Objectives After completing this lesson, you should be able to: Create PL/SQL decision control
More informationExperiment 3 3 Basic Input Output
Experiment 3 3 Basic Input Output Introduction The aim of this experiment is to introduce the use of input/output through the DOS interrupt. Objectives: INT Instruction Keyboard access using DOS function
More informationQuick Reference Guide
SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD mikroelektronika Development tools - Books - Compilers Quick Reference Quick Reference Guide with EXAMPLES for Basic language This reference guide
More informationProp-2 Controller PN: 31102
Prop-2 Controller PN: 31102 Document Version: 1.2 18 DEC 2007 Copyright 2007 EFX-TEK DESCRIPTION The Prop-2 is a small-scale controller designed to meet the needs to prop builders, effects technicians,
More informationSQL User Defined Code. Kathleen Durant CS 3200
SQL User Defined Code Kathleen Durant CS 3200 1 User Session Objects Literals Text single quoted strings Numbers Database objects: databases, tables, fields, procedures and functions Can set a default
More informationLaboratory 10. Programming a PIC Microcontroller - Part II
Laboratory 10 Programming a PIC Microcontroller - Part II Required Components: 1 PIC16F88 18P-DIP microcontroller 1 0.1 F capacitor 3 SPST microswitches or NO buttons 4 1k resistors 1 MAN 6910 or LTD-482EC
More informationProgrammable Control. Name Class Teacher. Ellon Academy Technical Faculty
Programmable Control Name Class Teacher Ellon Academy Technical Faculty Learning Intentions o Gain the ability to design and evaluate solutions to engineering problems in a range of contexts o I will gain
More informationAlternate Appendix A: Using the TI-92 Calculator
Alternate Appendix A: Using the TI-92 Calculator This document summarizes TI-92 calculation and programming operations as they relate to the text, Inside Your Calculator. Even those who do not read the
More informationIntroductory Notes: Condition Statements
Brigham Young University - Idaho College of Physical Sciences and Engineering Department of Mechanical Engineering Introductory Notes: Condition Statements The simplest of all computer programs perform
More informationBASIC Stamp Accessories Made Easier
Column #116 December 2004 by Jon Williams: BASIC Stamp Accessories Made Easier Not long after the BASIC Stamp started a revolution in small microcontrollers, Scott Edwards started what turned into a cottage
More informationUnderstanding the RCtime Instruction and Creating Strings in EEPROM
Stamp Applications no. 15 (May 96): Understanding the RCtime Instruction and Creating Strings in EEPROM BS2 Programming Hints by Scott Edwards TWO BS2-RELATED TOPICS keep coming up lately; how to use the
More informationFeel that Need for Speed: Hotter Hardware and Swifter Software Accelerating and Compiling PBASIC And More Boolean Logic
Column 14, April 1996 by Scott Edwards: Feel that Need for Speed: Hotter Hardware and Swifter Software Accelerating and Compiling PBASIC And More Boolean Logic THE STAMPS are no speed demons. Fortunately,
More informationUnderstanding the problem
2.1.1 Problem solving and design An algorithm is a plan, a logical step-by-step process for solving a problem. Algorithms are normally written as a flowchart or in pseudocode. The key to any problem-solving
More informationStamp Gives the Green Light To Efficient Programming
Column #26, April 1997 by Scott Edwards: Stamp Gives the Green Light To Efficient Programming THE ELECTRONICS Q&A column here in N&V is an amazing resource. Q&A editor T. J. Byers will go to any length
More informationGNU ccscript Scripting Guide IV
GNU ccscript Scripting Guide IV David Sugar GNU Telephony 2008-08-20 (The text was slightly edited in 2017.) Contents 1 Introduction 1 2 Script file layout 2 3 Statements and syntax 4 4 Loops and conditionals
More informationZX-17 Serial Real-Time Clock application board
ZX-1 Serial Real-Time Clock application board This application board is used for making the real-time clock data for any microcontroller system. It interfaces via a serial line. ZX-1 provides all time
More informationExercise 3. Task Programs EXERCISE OBJECTIVE
Exercise 3 Task Programs EXERCISE OBJECTIVE In this exercise, you will be introduced to task programs and task commands available in Robotics. You will also be introduced to the Task Editor window in Robotics.
More informationApplication of Microcontrollers Manual Part I - Principles & The BASIC Stamp Version 2.0
Application of Microcontrollers Manual Part I - Principles & The BASIC Stamp Version 2.0 Electronics Management Department of Information Management Systems Office of Off-Campus Academic Programs College
More informationCOURSE 11 PROGRAMMING III OOP. JAVA LANGUAGE
COURSE 11 PROGRAMMING III OOP. JAVA LANGUAGE PREVIOUS COURSE CONTENT Input/Output Streams Text Files Byte Files RandomAcessFile Exceptions Serialization NIO COURSE CONTENT Threads Threads lifecycle Thread
More information1. Before Programming
Chapter Programming 1. Before Programming 2. Programming Examples 3. Debugging a Program 4. Calculating the Number of Bytes Used by a Program 5. Searching for a File 6. Editing Program Contents 7. Deleting
More informationImplementing Serial I/O with RobotBASIC
Implementing Serial I/O with RobotBASIC R obotbasic has commands that can utilize any serial com port (real or virtual) on a PC to do serial I/O with any device that can communicate using Asynchronous
More informationLights, BASIC Stamp, Action!
Column #130, February 2006 by Jon Williams: Lights, BASIC Stamp, Action! Having been raised in the desert of southern California I'm pretty much a warm weather person. The fact is I don't like the winter
More informationSM800 BASIC LANGUAGE REFERENCE
SM800 BASIC LANGUAGE REFERENCE 1.1 BASIC Programs / Displays...3 1.2 BASIC Compiler...3 1.2.1 Overview...3 1.2.2 Access to BASIC (Inter-Active)...3 1.2.3 BASIC Access to Real-Time Registers...4 1.2.4 BASIC
More informationName: Per: Date: Intermediate Computers - Standard 5 Programming Checklist. again" if they got it wrong. Pay attention to the IF/THEN
Name: Per: Date: Intermediate Computers - Standard 5 Programming list Completed Assignment Assignment Description Commands & Hints Start-off Commands 5 quiz - Write a program that asks the user 5 Example:
More informationRC-4 Relay Board (#31204) Solid-State Relay Controller
599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003 General: info@parallax.com Technical: support@parallax.com Web Site: www.parallax.com EFX Products:
More informationRC-4 (SSR) Relay Control Board PN: 31204
RC-4 (SSR) Relay Control Board PN: 31204 Document Version: 2.0 01 JUN 2006 Copyright 2006 EFX-TEK DESCRIPTION Whether you build props or design small-scale industrial controls, there will likely come a
More informationDepartment of Computer and Mathematical Sciences. Lab 4: Introduction to MARIE
Department of Computer and Mathematical Sciences CS 3401 Assembly Language 4 Lab 4: Introduction to MARIE Objectives: The main objective of this lab is to get you familiarized with MARIE a simple computer
More informationSECTION 5: STRUCTURED PROGRAMMING IN MATLAB. ENGR 112 Introduction to Engineering Computing
SECTION 5: STRUCTURED PROGRAMMING IN MATLAB ENGR 112 Introduction to Engineering Computing 2 Conditional Statements if statements if else statements Logical and relational operators switch case statements
More informationStructure of Programming Languages Lecture 5
Structure of Programming Languages Lecture 5 CSCI 6636 4536 June, 2017 CSCI 6636 4536 Lecture 10... 1/16 June, 2017 1 / 16 Outline 1 Expressions and Evaluation 2 Control Structures Conditionals Repetition
More informationAppBee-Mod & AppBee-SIP Documentation for use with the BASIC Stamp
AppBee-Mod & AppBee-SIP Documentation for use with the BASIC Stamp Application Interface Boards for the ZigBee / IEEE 802.15.4 XBee and XBee-PRO Wireless Network Transceivers Document Revision 4. Device
More informationUse the BS1 s Debug Output For Stamp-PC Communication
Stamp Applications no. 20 (October 96): Use the BS1 s Debug Output For Stamp-PC Communication Plus a big-digit clock demo for the BASIC Stamp II by Scott Edwards GIVE ME ONE MORE PIN! That seems to be
More informationLECTURE 5 Control Structures Part 2
LECTURE 5 Control Structures Part 2 REPETITION STATEMENTS Repetition statements are called loops, and are used to repeat the same code multiple times in succession. The number of repetitions is based on
More informationOperating Software Instruction Manual for MCC Series of Motion Controllers
Operating Software Instruction Manual for MCC Series of Motion Controllers Control Panel Stand-alone Operation Command Reference Manual Host Controlled Operation Power-up Help System Operation Controlling
More informationChapter 1: Your Boe-Bot s Brain
Chapter 1: Your Boe-Bot s Brain Page 1 Chapter 1: Your Boe-Bot s Brain Parallax, Inc s Boe-Bot robot is the focus of the activities, projects, and contests in this book. The Boe-Bot and a close-up of its
More informationWading the BS1 DEBUG Stream
Column #131, March 2006 by Jon Williams: Wading the BS1 DEBUG Stream Until recently, I had never really considered using a BS1 as a front-end to a PC program unlike the BS2, the BS1 doesn't have the ability
More informationLynxmotion RIOS SSC-32 V1.04 Manual
Lynxmotion RIOS SSC-32 V1.04 Robotic Arm Interactive Operating System Manual Author and programmer : Laurent Gay - lynxrios@yahoo.fr 1 / 20 Lynxmotion RIOS SSC-32 V1.04 Manual Safety First! Read and understand
More informationMini SSC II Serial Servo Controller
Mini SSC II Serial Servo Controller SSC-ASD2 v2.1 07/00 pg 1 The Mini SSC II is an electronic module that controls eight pulse-proportional ( hobby ) s according to instructions received serially at 2400
More informationUsing BS2 Serial Communication: Serin and Serout Demystified Plus the ABCs of ASCII Characters
Column #16, June 1996 by Scott Edwards: Using BS2 Serial Communication: Serin and Serout Demystified Plus the ABCs of ASCII Characters EVERYONE LOVES TO HATE instruction manuals. In the Stamp world, users
More informationWhen Good Luck is not Enough: Watchdogs and Error Recovery Catching and Correcting Operating Errors and a few Bits of Boolean Logic
Column #13, March 1996 by Scott Edwards: When Good Luck is not Enough: Watchdogs and Error Recovery Catching and Correcting Operating Errors and a few Bits of Boolean Logic THIS is the thirteenth installment
More informationAutonomous Robot Navigation system Using Optical Mouse-based Odometry, Line Following and End Of Line Detection Robot
Autonomous Robot Navigation system Using Optical Mouse-based Odometry, Line Following and End Of Line Detection Robot A thesis submitted By Supta Richard Philip (ID: 03-04432-3) Amlan Chowdhury (ID: 02-03651-3)
More informationMicrosoft Visual Basic 2005: Reloaded
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 5 Repeating Program Instructions Objectives After studying this chapter, you should be able to: Include the repetition structure in pseudocode
More informationDemystifying Character Based LCDs
Column #31, September 1997 by Jon Williams: Demystifying Character Based LCDs There is no doubt that Scott s LCD Backpack has saved countless Stamp projects from oblivion and, in the process, has become
More informationComputer Systems Lecture 9
Computer Systems Lecture 9 CPU Registers in x86 CPU status flags EFLAG: The Flag register holds the CPU status flags The status flags are separate bits in EFLAG where information on important conditions
More informationHForth Glossary GL - 1! " # $ % & ` ( ) * + ' -. / 0-9 : ; < = A Z [ / ] ^ _ a z { } ~
D+ ( d1 d2 -- d1+d2, add double numbers ) Double precision numbers are 64 bits wide. HEX 12345678.55443322 19283746.98765432 D+ D. ( prints 1B4C8DAEEDBA8754 ) D- ( d1 d2 -- d1+d2, subtract double numbers
More informationUsing loops and debugging code
Using loops and debugging code Chapter 7 Looping your code pp. 103-118 Exercises 7A & 7B Chapter 8 Fixing Bugs pp. 119-132 Exercise 8 Chapter 7 Looping your code Coding a For loop Coding a Do loop Chapter
More informationPoE Digital Code Blue & Elapsed Timer Operation Guide
PoE Digital Code Blue & Elapsed Timer Operation Guide OneVue PoE Managed Time OneVue is a trademark of Primex. OneVue is an intelligent environmental monitoring and managed time solution. All other trademarks
More informationAcknowledgments About the Author
Acknowledgments p. xi About the Author p. xii Introduction p. xiii The Intel 8051 p. xv Additional information and resources p. xvi Conventions used in this book p. xvii Microcontrollers p. 1 Different
More informationBASIC Stamp Syntax and Reference Manual Version 2.1
BASIC Stamp Syntax and Reference Manual Version 2.1 Warranty Parallax Inc. warrants its products against defects in materials and workmanship for a period of 90 days from receipt of product. If you discover
More informationACTIVITY #4: CUSTOM CHARACTERS AND LCD ANIMATION
ACTIVITY #4: CUSTOM CHARACTERS AND LCD ANIMATION While not every picture saves a thousand words, even the ones that only save a sentence or two are useful when you've only got 32 characters. One example
More informationProgramming Fundamentals
Programming Fundamentals Computers are really very dumb machines -- they only do what they are told to do. Most computers perform their operations on a very primitive level. The basic operations of a computer
More informationAppKit: Using the DS1302 Trickle Charge Timekeeping Chip
AppKit: Using the DS1302 Trickle Charge Timekeeping Chip This AppKit shows how to use the Dallas Semiconductor DS1302 Trickle Charge Timekeeping Chip with the Parallax BASIC Stamp II single-board computer
More informationAVR Subroutine Basics
1 P a g e AVR Subroutine Basics READING The AVR Microcontroller and Embedded Systems using Assembly and C) by Muhammad Ali Mazidi, Sarmad Naimi, and Sepehr Naimi Chapter 3: Branch, Call, and Time Delay
More informationPHPoC vs PHP > Overview. Overview
PHPoC vs PHP > Overview Overview PHPoC is a programming language that Sollae Systems has developed. All of our PHPoC products have PHPoC interpreter in firmware. PHPoC is based on a wide use script language
More information