Question: Do it with C programming. Give complete logic with PIC Microcontroller Qw3 Consider a scenario in which we have to design a height or length

Do it with C programming. Give complete logic with PIC Microcontroller
Qw3 Consider a scenario in which we have to design a height or length measurement instrument workins of Instrumente instrument consists of a U-shaped Infra ked sensor which is attached on "Measuring tape" in such a way that "U-Cut" of sensor is mounted across a transparent disk Disk revolves when tape is stretched out. Transparent disk has one thick black line on it Sensor has only one output pin that becomes high whenever black line pass through it, otherwise it is zero it in a character type variable namely HEIGHT Output of IR sensor is given to PIC as shown in figure. A switch Swis also Code: We have to write code to get measured height of a person in feet's (ignore inches) using this instrument and store attached with RAO which is only set high manually when we are measuring anything using this instrument otherwise microcontroller he will press SW and meanwhile stretch out the measuring tape and then he will release the sw button and after this height is calculated and stored in HEIGHT variable. 17-marks, Et - 40 min) Note: Take XTALEA MHz, IPEN bit is zero One complete revolution of disk means 2 inches tape has been stretched out. And one feet consists of 12 inches. Hint: Counting. Transparent disk along with U-cut i sensor will be attached with this shaft of measuring tape so that disk revolves when tape is stretched out of it. Transparent disk IR sensor with one output line Thick black line Qw3 Consider a scenario in which we have to design a height or length measurement instrument workins of Instrumente instrument consists of a U-shaped Infra ked sensor which is attached on "Measuring tape" in such a way that "U-Cut" of sensor is mounted across a transparent disk Disk revolves when tape is stretched out. Transparent disk has one thick black line on it Sensor has only one output pin that becomes high whenever black line pass through it, otherwise it is zero it in a character type variable namely HEIGHT Output of IR sensor is given to PIC as shown in figure. A switch Swis also Code: We have to write code to get measured height of a person in feet's (ignore inches) using this instrument and store attached with RAO which is only set high manually when we are measuring anything using this instrument otherwise microcontroller he will press SW and meanwhile stretch out the measuring tape and then he will release the sw button and after this height is calculated and stored in HEIGHT variable. 17-marks, Et - 40 min) Note: Take XTALEA MHz, IPEN bit is zero One complete revolution of disk means 2 inches tape has been stretched out. And one feet consists of 12 inches. Hint: Counting. Transparent disk along with U-cut i sensor will be attached with this shaft of measuring tape so that disk revolves when tape is stretched out of it. Transparent disk IR sensor with one output line Thick black line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
