28176 Parallax Inc, 28176 Datasheet - Page 36
![KIT PARTS PROCESS CONTROL W/TEXT](/photos/8/99/89989/mfg_28176_sml.jpg)
28176
Manufacturer Part Number
28176
Description
KIT PARTS PROCESS CONTROL W/TEXT
Manufacturer
Parallax Inc
Datasheet
1.122-28176.pdf
(330 pages)
Specifications of 28176
Accessory Type
Process Control
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® 2 and Board of Education
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 36 of 330
- Download datasheet (11Mb)
' -----[ Main Routine ]----------------------------------------------------
DO
LOOP
Challenge 1-3 Solution
' -----[ Title ]-----------------------------------------------------------
' Process Control - ConditionalLEDBlinkChallenge.bs2
' Modify ConditionalLEDBlink for If-Else
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Declarations ]----------------------------------------------------
Photo
LED
Buzzer
PB
PBVal
PhotoVal
BuzzerDur CON
' -----[ Initialization ]--------------------------------------------------
' -----[ Main Routine ]----------------------------------------------------
DO
LOOP
HIGH LED
PAUSE 500
FREQOUT Buzzer, 1000, 2000
LOW LED
PAUSE 500
' ******** Read Pushbutton
PBVal = PB
' ******** Display Pushbutton value
DEBUG CLS,"Pushbutton value = ", DEC PBVal,CR
' ******** Button Pressed Conditional and Code
IF (PBVal = 0) THEN
ELSE
ENDIF
' ******** 1/4 second pause
PAUSE 250
FREQOUT Buzzer, 1000,2000
HIGH LED
PAUSE 500
LOW LED
PIN
PIN
PIN
PIN
VAR
VAR
0
5
10
13
Bit
Word
250
' Alias for photo resistor circuit on P0
' Alias for LED on P5
' Alias for buzzer on P10
' Alias for pushbutton on P13
' Bit variable to hold pushbutton value
' Word variable to hold RC Time value
' Constant for duration of tone for buzzer
' Read Pushbutton Value and assign to PBVal
' If pushbutton pressed is true then,
' True - Sound buzzer
' False - Blink the LED
' Loop back to DO to repeat continuously
' Turn ON LED
' 1/2 second delay
' Sound buzzer at 2000Hz for 1 second
' Turn OFF LED
' 1/2 second delay
' Loop back to DO to repeat continuously
Related parts for 28176
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![27404](/photos/26/91/269197/27404-l_tmb.jpg)
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![70016](/photos/8/99/89966/mfg_70016_tmb.jpg)
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![28023](/photos/9/30/93020/mfg_28023_tmb.jpg)
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
![30010](/photos/9/30/93025/mfg_30010_tmb.jpg)
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: