Step 5The Software
' {$STAMP BS2}
' {$PBASIC 2.5}
These two commands above are to tell the compiler what type of coding you are using, and what type of hardware you will be using.
DO
The "do" command tells the controller to do everything it finds until it hits a loop command
HIGH 14
The "high" command tells the Controller to apply voltage to
the pin that follows, in this case the PIN is number 14,
the same number fourteen as there is on your micro controller
PAUSE 100
The "pause" command tells the controller to pause everything that it is doing
for a given time in this case it will pause for 100 mili seconds
FREQOUT 9,200, 1568
The "Freqout" command tells the Controller to output a certian frequency
for a certian durration of time through a certian pin number, in this case
the pin number is 9, the time is 200 mili seconds and the frequency is 1568Hz
LOW 14
The "low" command tells the controller to stop applying voltage to a certain pin,
in this case pin 14.
LOOP
The "loop" command tells the controller to go back the the "DO" command it
found earlier, this will create a loop.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|











































