27220 Parallax Inc, 27220 Datasheet - Page 62
27220
Manufacturer Part Number
27220
Description
BOOK STAMPWORKS
Manufacturer
Parallax Inc
Datasheet
1.27220.pdf
(230 pages)
Specifications of 27220
Accessory Type
Booklet
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
StampWorks
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Not applicable / Not applicable
- Current page: 62 of 230
- Download datasheet (3Mb)
Program: SW21-EX07-Light_Show.BS2
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Program Description ]---------------------------------------------
'
' Runs a small, multi-mode light show controller using six outputs (runs
' on LEDs, but with proper interfacing could run incandescent lamps).
' This program will require modifications (to the constants LoSpeed and
' Scale) when running on the BS2Sx, BS2p, or BS2px.
' -----[ I/O Definitions ]-------------------------------------------------
Lights
LightsDirs
Speed
LtMode
' -----[ Constants ]-------------------------------------------------------
LoSpeed
Scale
' -----[ Variables ]-------------------------------------------------------
rawSpd
delay
btnVar
mode
offset
rndVal
1. Using white wire, connect BASIC Stamp pins P0 – P5 to LEDs 0 – 5.
2. Plug a 0.1 µF (marked 104) capacitor into sockets C15 and C16.
3. Using white wire, connect socket A16 to BASIC Stamp P6.
4. Using a blackwire, connect socket A15 to the Vss (ground) rail.
5. Using white wire, connect socket B16 to the wiper (center terminal) of the
6. Using black wire, connect the Vss (ground) rail to the bottom terminal of the
7. Using white wire, connect BASIC Stamp pin P7 to a pushbutton.
10K potentiometer.
10K potentiometer.
VAR
VAR
PIN
PIN
CON
CON
VAR
VAR
VAR
VAR
VAR
VAR
OUTL
DIRL
6
7
10
$0163
Word
Word
Byte
Byte
Byte
Word
' light control outputs
' DIRS for lights outputs
' speed control Pot input
' mode select input
' low end of POT reading
' 1.3868 with */
' speed input from POT
' time between patterns
' workspace for BUTTON
' selected mode
' offset into patterns
' workspace for RANDOM
Related parts for 27220
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: