Question: Lab 1: Sensor Design and Analog Digital Conversion Objectives: Learn how to design sensors with embedded microcontrollers Understand the operation of ADC Understand the design

Lab 1: Sensor Design and Analog Digital Conversion

Objectives:

Learn how to design sensors with embedded microcontrollers

Understand the operation of ADC

Understand the design of sensor circuitry

Description: It is often necessary that we understand the surrounding environment using sensors. To design sensors and their associated circuitry, and to obtain and processor sensory data are important tasks in the design of an embedded system. In this lab, you will need to design a light intensity sensor controlled by a PIC microcontroller. The parts given include a PIC16F18857, a photoresistor, a LED and assorted diodes and resistors. You can use a breadboard (or a wire-wrapping prototype board) to implement your circuit. The ADC module in PIC microcontroller will be used to convert an analog signal to corresponding digital value.

Your PIC based light sensor device must:

1. Convert the light intensity information to a variable voltage (0-3V).

2. Obtain an analog input signal (sensory data) via an analog pin of the PIC (e.g. AN0)

3. Use the internal ADC of PIC to convert analog signals to digital values

4. Turn on a LED if the sensor is encapsulated in a dark box or put in a dark environment.

5. Turn off the LED if the sensor is placed in a well-lighted environment.

Need circuit schematic and code in either C or PIC assembly.

Thanks!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!