Download EXPERIMENTING with the PICBASIC PRO

Transcript
Experimenting with the PicBasic Pro Compiler
Contents . (continued)
Section 7 .
Temperature Measurement Experiments .
Dallas 1-wire interface principals .
Interfacing with the DS1 820, 1-wire temperature sensor .
Interfacing with the LM35 temperature sensor .
Page
7-1
7-5
7-8
Section 8 .
Experimenting with Robotics .
Proximity detection principals .
Single direction infrared proximity detector .
Infrared proximity detector with distance gauge .
Directional infrared proximity detector .
Ultrasonic proximity detector .
Driving a DC motor using an H-Bridge.
Driving a DC motor using the L293D .
8-1
8-2
8-4
8-5
8-7
8-10
8-12
Section 9 .
Experimenting with Audio Control Devices .
Adding a voice to the PIC with the ISD1416 chipcorder .
Recording and playing back multiple messages .
Allowing the PIC to audibly count .
Digital Volume control using the AD840X .
Controlling the gain of an op-amp .
Digital active Bass and Treble controls .
9-1
9-2
9-5
9-7
9-9
9-10
Section 10 .
Programming techniques
Integrating Assembly language into your programs .
Declaring variables for use with assembler .
Passing parameters using the DEFINE command .
Using INCLUDE files to tidy up your code .
Waking the PIC from SLEEP .
A brief introduction to Hardware interrupts .
Using the ON INTERRUPT command .
10-1
10-2
10-3
10-5
10-7
10-9
10-17