Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 sensing and control system using a PIC microcontroller. That system will include a data acquisition operation using a light intensity sensor as an input to the system and two output devices: an LED diode and a Servo motor The parts given include a PIC16F18857, a photoresistor (LDR sensor), a LED and assorted diodes, resistors and a Servo motor. 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. Implementation steps: 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. ANO) 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. 6. Enable and use the internal PWM module of PIC to control a Servo Motor which turn its blade to a specified degree. 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 sensing and control system using a PIC microcontroller. That system will include a data acquisition operation using a light intensity sensor as an input to the system and two output devices: an LED diode and a Servo motor The parts given include a PIC16F18857, a photoresistor (LDR sensor), a LED and assorted diodes, resistors and a Servo motor. 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. Implementation steps: 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. ANO) 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. 6. Enable and use the internal PWM module of PIC to control a Servo Motor which turn its blade to a specified degree
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started