Microprocessors: From Assembly Language to C Using thePIC18Fxx2

This chapter presents three capstone projects that combine various hardware topics from the previous chapters. The projects are a digital recorder that can store audio input and play it back; a monitoring system with a real-time clock, motion sensor, and temperature sensor; and a three-wheeled robot that can be remotely controlled via a universal remote control or function autonomously using an IR proximity sensor to avoid obstacles. Functions for writing to the PIC18 Flash program memory and Data EEPROM as well as an interface to a DS1621 Digital Thermometer are presented on a just-in-time basis to support these capstone projects.
After reading this chapter, you will be able to:
Design a system that can sample an audio signal, store it to a serial EEPROM, and then play it back.
Design a monitoring system with a real-time clock, motion sensor, and temperature sensor.
Use the DS1612 I 2C temperature sensor with the PIC18 for monitoring temperature.
Use the PIC18 internal Data EEPROM or Flash program memory for storing nonvolatile data.
Design and build an autonomous wheeled robot with an IR interface using a PIC18 for control functions.
The first project is a PIC18 system for capturing audio data for later playback. The simplest form of audio sampling uses a fixed sampling period and stores uncompressed digital data to a memory device as shown in Figure 14.1. A key parameter in audio recorders is the sampling period, which is the...