122-28176 Parallax Inc, 122-28176 Datasheet - Page 35

GUIDE STUDENT PROCESS CONTROL

122-28176

Manufacturer Part Number
122-28176
Description
GUIDE STUDENT PROCESS CONTROL
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-28176

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Propeller Education (PE) Kit
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 122-28176