QUESTION 1 During the COVID 19 lock down and staying home two things you have to monitor your temperature and weight. Yo
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
QUESTION 1 During the COVID 19 lock down and staying home two things you have to monitor your temperature and weight. Yo
QUESTION 1 During the COVID 19 lock down and staying home two things you have to monitor your temperature and weight. You are asked to deign a weight and temperature sensing system with integrated 2-Lines LCD, two warning LEDs (Temperature warning LED connected to RB15, and Weight warning LED connected to RB2) and a pushbutton switch connected to RB7. The scale output sensitivity equation is Vout= 47mV/1Kg+100mV and the temperature sensor output sensitivity equation is Vout=60mV/1C. Assume that the weight and Temperature sensors are connected to ADC channels 5 and 11 respectively, Fosc=45MHz, TAD=850nsec, N=8bits, Vref+=AVDD=5V, Vref-=AVSS=OV, Integer format. The system will read both sensors once the pushbutton switch is pressed, if the either the temperature or the weight is higher than a set threshold the corresponding warning LED will be ON. 1) Calculate the value of TRISB? TRISB=0X1 2) Calculate the maximum weight in kg that can be read using the system? (put your answer as is without any rounding and without the unit) Max Weight= kg 3) Calculate the ADC1BUFO return value if the measured Temperature is 38C. ADC1BUF0= 4) Calculate the error in the Temperature sensor reading in C at 38C due to the ADC conversion process? (round your answer to 5 digits after the decimal O.XXXXX and put it without the unit) Error= с