130-28176 Parallax Inc, 130-28176 Datasheet - Page 19
![KIT PARTS PROCESS CONTROL](/photos/8/99/89975/mfg_130-28176_sml.jpg)
130-28176
Manufacturer Part Number
130-28176
Description
KIT PARTS PROCESS CONTROL
Manufacturer
Parallax Inc
Specifications of 130-28176
Accessory Type
Education Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 19 of 330
- Download datasheet (11Mb)
BuzzerDur CON
' -----[ Initialization ]--------------------------------------------------
OUTPUT LED
OUTPUT Buzzer
' -----[ Main Routine ]----------------------------------------------------
DO
LOOP
' ******** Read Pushbutton
PBVal = PB
' ******** Display pushbutton value
DEBUG CLS, "Pushbutton Value = ", DEC PBVal,CR
' ******** Set LED to pushbutton value
LED = PBVal
' ******** Measure Photoresistor
HIGH Photo
PAUSE 10
RCTIME Photo, 1, PhotoVal
' ******** Display photoresistor value
DEBUG "Photo RC Time Value = ", DEC PhotoVal,CR
' ******** Sound buzzer at set duration at frequency of PhotoVal
FREQOUT Buzzer,BuzzerDur,PhotoVal
' ******** 1/4 seconds delay
PAUSE 250
√
√
Test the circuit by pressing the pushbutton and varying the light falling on the
photoresistor.
If your circuit does not operate properly, verify your circuit connections and
code.
o
o
o
o
250
When the button is pressed does the state of the pushbutton change from
1 to 0 in the Debug Terminal?
When the button is pressed does the LED change from on to off?
When the sensor is darkened does the photoresistor RC time value
change in the Debug Terminal?
Does the frequency output of the buzzer change in relation to the
photoresistor's RC time value? Note that the buzzer has a very limited
frequency response range.
' Constant for duration of tone for buzzer
' Set LED pin to be an output
' Set Buzzer pin to be an output
' Read Pushbutton value and assign to PBVal
' Display Pushbutton value
' Set LED based on Pushbutton value
' Charge photoresistor's RC network Capacitor
' Allow 10 milliseconds to charge fully
' Measure discharge time through photoresistor
' 1/4 second pause
' Loop back to DO to repeat continuously
Chapter 1: Process Control and Flowcharts · Page 9
Related parts for 130-28176
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![130-32000](/photos/8/99/89967/mfg_130-32000_tmb.jpg)
Part Number:
Description:
KIT PROPELLER EDU PROJECT PARTS
Manufacturer:
Parallax Inc
Datasheet:
![130-28029](/photos/9/0/90016/mfg_130-28029_tmb.jpg)
Part Number:
Description:
KIT PARTS SMART SENSORS
Manufacturer:
Parallax Inc
Datasheet:
![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:
![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:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
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: