27220 Parallax Inc, 27220 Datasheet - Page 119

BOOK STAMPWORKS

27220

Manufacturer Part Number
27220
Description
BOOK STAMPWORKS
Manufacturer
Parallax Inc
Datasheet

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
EXPERIMENT #18: A LIGHT CONTROLLED THEREMIN
This experiment demonstrates FREQOUT by creating a light-controlled Theremin (the
first electronic musical instrument ever produced). While the output from our BASIC
Stamp-based Theremin is not quite as haunting as the real thing, it is a fun project
and demonstrates the ability to use a non-standard input (light level) for program
control.
Look It Up: PBASIC Elements to Know
Building the Circuit
Note: The 220 Ω resistor is marked: red-red-brown.
Program: SW21-EX18-Theremin.BS2
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Program Description ]---------------------------------------------
'
' This program uses RCTIME with a photocell to create a light-controlled
' Theremin.
' -----[ I/O Definitions ]-------------------------------------------------
Speaker
PitchCtrl
FREQOUT
CON
CON
0
1
' speaker output
' pitch control input

Related parts for 27220