Propeller Boe And Propeller Quickstart - Parallax 29132 Manual

Sound impact sensor kickstart
Table of Contents

Advertisement

Propeller BOE and Propeller QuickStart

Propeller BOE Wiring Diagram
OBJ
pst : "Parallax Serial Terminal"
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
PUB Main
dira[0]~
pst.Start(115_200) ' Set Parallax Serial Terminal to 115,200 baud
repeat
if ina[0] == 1
pst.Str(string("Sound detected!")) ' If loud sound detected
pst.NewLine
waitcnt(clkfreq / 10 + cnt)
Note: This program uses the Parallax Serial Terminal object library, which is included with the
Propeller Tool software download.
Note: To view the results of the demonstration, after uploading is complete run the Parallax
Serial Terminal from the Run menu, or press F12. Momentarily depress the Reset button on the
Propeller QuickStart board to restart the program.
Copyright © Parallax Inc.
' Set pin 0 to input
Propeller QuickStart Wiring Diagram
' Wait 1/10 second
' Repeat
Page 4 of 5

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 29132 and is the answer not in the manual?

Table of Contents