2011_Activity #2 - ONOFF Control with e BASIC Stamp

2011_Activity #2 - ONOFF Control with e BASIC Stamp - PAUSE...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 Activity #2 Purpose: The purpose of this acitivty is to build an LED circuit where the LED turns on and off. Programming Codes: HIGH 14 --> causes the BASIC Stamp to internally connect I/O pin P14 to Vdd (turns LED on) LOW 14 --> causes the BASIC Stamp to internally connect I/O pin P14 to VSS (turns LED off) PAUSE 500 --> causes the BASIC Stamp to do nothing for 1/2 second while the LED stays on
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: PAUSE --> pauses for a certain 'duration' of time, in millisenconds Do. ..LOOP --> the code segment placed between these two commands tells the BASIC Stamp to execute those commands o v Applying what we learned: The knowledge we learned from this activity can be used when we need our robot to preform and l o...
View Full Document

Ask a homework question - tutors are online