28176 Parallax Inc, 28176 Datasheet - Page 35

KIT PARTS PROCESS CONTROL W/TEXT

28176

Manufacturer Part Number
28176
Description
KIT PARTS PROCESS CONTROL W/TEXT
Manufacturer
Parallax Inc
Datasheet

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
SOLUTIONS TO CHAPTER 1 CHALLENGES
Challenge 1-1 Solution
Note that the yes-no questions became true-false statements.
Challenge 1-2 Solution
Your program might look like this:
' -----[ Title ]-----------------------------------------------------------
' Process Control - SimpleFlowchartChallenge.bs2
' Code from flowchart
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Declarations ]----------------------------------------------------
Photo
LED
Buzzer
Figure 1-12 Shower Temperature Flowchart with True/False
A
PIN
PIN
PIN
Temperature
3 Seconds
0
5
10
Turn On
Turn On
Check
Start
Cold
Wait
Hot
' Alias for photoresistor circuit on P0
' Alias for LED on P5
' Alias for buzzer on P10
F
F
Chapter 1: Process Control and Flowcharts · Page 25
Stop
Cold.
Too
Too
Get
Hot.
In
T
T
Turn Down
Turn Up
Hot
Hot
A
A

Related parts for 28176