1 BACKGROUND The new generation of enhanced mid core PICs such as the 16F1847 and the 12F1840 have an inbuilt temperature sensor. This sensor consists of a current source which flows through four diodes in series and the voltage drop across the diodes which is proportional to temperature can be measured by internally connecting the sensor to the ADC and determining the temperature based on the ADC value In this assignment the temperature sensor is used to create a simple thermometer application and to create an alarm should the sensor go outside the set value. Assignment Details 1) Determine the register settings needed to switch the sensor on and connect the temperature sensor to the ADC. Using appropriate values for Vref+ and Vref- display the ADC count value on the 7 segment display. 2) With reference to Microchip Application Note AN1333, “Use and Calibration of the Internal Temperature Indicator” (DS01333) determine an appropriate algorithm to convert from the ADC value to the temperature in degrees centigrade and implement it using a lookup table or otherwise. Display this value on the 7 segment display. Additional marks will be given for accuracy, calibration and averaging the temperature readings to give a more accurate, and a more stable temperature reading. . 2 In order to meet the specification the following will be required. i) Selection of appropriate microcontroller to meet the requirement of the task. ii) Development of an assembly language program to control the operation of the embedded system. iii) Thorough testing to ensure correct operation of the system. iv) Produce a project report to evidence all of the above. Follow Report Requirements (20 pages max) 1) Introduction – Clearly state the scope and aims and objectives of the project: Include Aims and Objectives, i.e. break down the project into smaller attainable aims and objectives for example one objective could be to develop a program to control the LED display. If all objectives are met then the overall project should have been completed. 2) Theory – Include any relevant theory 3) Procedure, Results Discussion – The report should show a methodical, systematic design approach. The microcontroller kits in the laboratory can be used as the hardware platform, however circuit diagrams should be included in the report and explanations of operation is expected. 4) Include flowcharts and detailed explanations of software development. Include appropriate simulation screen shots. Show and discuss results e.g. ADC program, LED program, etc. Include final/complete program. Were results as expected, do they compare favourably with simulated results, what could be done to improve the operation and accuracy of the system? 5) Conclusion – Reflect back on the original aims and objectives. Were they met if not why not? What further work could be carried out to meet aims and objectives etc? 3 Marks ALLOCATION Marks are allocated for the given activities as follows: MARK (%) PROJECT WORK 60 PROJECT REPORT 30 PRESENTATION MARK 10 ______ Total 100 The marks awarded for the microcontrollers in embedded system module will be made up as follows:- PROJECT MARK Have all of the specifications been met? Correct Register settings to switch on sensor and connect temperature sensor to ADC 5% Display two different characters on the 7 segment display 5% Display the ADC count value on the 7 segment display 10% Display the temperature on the seven segment display 20% Calibration 10% Accuraccy 10% Total 60% REPORT MARK Introduction and Theory 5% Procedure, Results and Discussion 20% Report Presentation 5% Total 30% PRESENTATION (POWER POINT) & DEMO Demonstration 10% Total 10% TOTAL 100% 4 Schematic for the Assignment Seven Segment Display Code ;************************************************ ;Appropriate values to illuminate a seven segment display ;with numbers 0 – 9 are extracted from a look up table ;and output on PORTB. ;A software delay is incorporated between displaying ;successive values so that they can be observed. ;(This program is useful demonstrating software delays, ; and look up tables. ; ;************************************************ ; list p=16F1937A #include <p=16f1937.inc> ; ; ****** PROGRAM EQUATES ****** ; temp equ 0x20 value equ 0x21 outer equ 0x22 RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 a b c d e f g dp RA1 RA0 +5V 16F84 VDD Vss 220Ω x 8 CA2 CA1 100K x 2 5K6 5K6 +5V +5V a b c d e f g a b c d e f g middle equ 0x23 inner equ 0x24 w equ 0 f equ 1 ; ; ; ****** MAIN PROGRAM ****** ; org 0x00 banksel PORTB clrf PORTB banksel ANSELB clrf ANSELB clrf ANSELA banksel TRISB movlw 0x00 ;Set port b all outputs movwf TRISB movlw 0x00 ;Set port a all inputs movwf TRISA banksel PORTB ; movlw 0x00 movwf PORTB ;turn off display ; ; ; **** DISPLAY COUNT SEQUENCE *** ; display movlw 0x00 ;Use value as a counter ie movwf value ;value is incremented every begin movf value,w ;time a value is extracted from table bsf PORTA,0 ;turn on LSB display call get ;call subroutine to get value movwf PORTB ;output value to portb call wait ;call delay subroutine incf value ;increment counter btfsc value,3 ;test to see if counter = %1010 btfss value,1 ;if not get next value, if yes goto begin ; goto display ;go to display again ; ; **** LOOK UP TABLE FOR VALUES **** ; get brw ;look up table to illuminate retlw 0xc0 ;the numbers 0 – 9 on seven segment retlw 0xf9 ;display (outputs from port are retlw 0xa4 ;active low retlw 0xb0 retlw 0x99 retlw 0x92 retlw 0x82 retlw 0xf8 retlw 0x80 retlw 0x90 ; ; **** TIME DELAY ROUTINE **** ; ( THREE NESTED LOOPS ) ; wait ;delay subroutine movlw 0x02 ;-outer loop movwf outer ; wait3 movlw 0 xff ; -middle loop movwf middle wait2 movlw 0xff ;-inner loop movwf inner wait1 decfsz inner,f goto wait1 ;-inner loop decfsz middle,f goto wait2 ;-middle loop decfsz outer,f goto wait3 ;-outer loop return end

1 BACKGROUND The new generation of enhanced mid core PICs such as the 16F1847 and the 12F1840 have an inbuilt temperature sensor. This sensor consists of a current source which flows through four diodes in series and the voltage drop across the diodes which is proportional to temperature can be measured by internally connecting the sensor to the ADC and determining the temperature based on the ADC value In this assignment the temperature sensor is used to create a simple thermometer application and to create an alarm should the sensor go outside the set value. Assignment Details 1) Determine the register settings needed to switch the sensor on and connect the temperature sensor to the ADC. Using appropriate values for Vref+ and Vref- display the ADC count value on the 7 segment display. 2) With reference to Microchip Application Note AN1333, “Use and Calibration of the Internal Temperature Indicator” (DS01333) determine an appropriate algorithm to convert from the ADC value to the temperature in degrees centigrade and implement it using a lookup table or otherwise. Display this value on the 7 segment display. Additional marks will be given for accuracy, calibration and averaging the temperature readings to give a more accurate, and a more stable temperature reading. . 2 In order to meet the specification the following will be required. i) Selection of appropriate microcontroller to meet the requirement of the task. ii) Development of an assembly language program to control the operation of the embedded system. iii) Thorough testing to ensure correct operation of the system. iv) Produce a project report to evidence all of the above. Follow Report Requirements (20 pages max) 1) Introduction – Clearly state the scope and aims and objectives of the project: Include Aims and Objectives, i.e. break down the project into smaller attainable aims and objectives for example one objective could be to develop a program to control the LED display. If all objectives are met then the overall project should have been completed. 2) Theory – Include any relevant theory 3) Procedure, Results Discussion – The report should show a methodical, systematic design approach. The microcontroller kits in the laboratory can be used as the hardware platform, however circuit diagrams should be included in the report and explanations of operation is expected. 4) Include flowcharts and detailed explanations of software development. Include appropriate simulation screen shots. Show and discuss results e.g. ADC program, LED program, etc. Include final/complete program. Were results as expected, do they compare favourably with simulated results, what could be done to improve the operation and accuracy of the system? 5) Conclusion – Reflect back on the original aims and objectives. Were they met if not why not? What further work could be carried out to meet aims and objectives etc? 3 Marks ALLOCATION Marks are allocated for the given activities as follows: MARK (%) PROJECT WORK 60 PROJECT REPORT 30 PRESENTATION MARK 10 ______ Total 100 The marks awarded for the microcontrollers in embedded system module will be made up as follows:- PROJECT MARK Have all of the specifications been met? Correct Register settings to switch on sensor and connect temperature sensor to ADC 5% Display two different characters on the 7 segment display 5% Display the ADC count value on the 7 segment display 10% Display the temperature on the seven segment display 20% Calibration 10% Accuraccy 10% Total 60% REPORT MARK Introduction and Theory 5% Procedure, Results and Discussion 20% Report Presentation 5% Total 30% PRESENTATION (POWER POINT) & DEMO Demonstration 10% Total 10% TOTAL 100% 4 Schematic for the Assignment Seven Segment Display Code ;************************************************ ;Appropriate values to illuminate a seven segment display ;with numbers 0 – 9 are extracted from a look up table ;and output on PORTB. ;A software delay is incorporated between displaying ;successive values so that they can be observed. ;(This program is useful demonstrating software delays, ; and look up tables. ; ;************************************************ ; list p=16F1937A #include ; ; ****** PROGRAM EQUATES ****** ; temp equ 0x20 value equ 0x21 outer equ 0x22 RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 a b c d e f g dp RA1 RA0 +5V 16F84 VDD Vss 220Ω x 8 CA2 CA1 100K x 2 5K6 5K6 +5V +5V a b c d e f g a b c d e f g middle equ 0x23 inner equ 0x24 w equ 0 f equ 1 ; ; ; ****** MAIN PROGRAM ****** ; org 0x00 banksel PORTB clrf PORTB banksel ANSELB clrf ANSELB clrf ANSELA banksel TRISB movlw 0x00 ;Set port b all outputs movwf TRISB movlw 0x00 ;Set port a all inputs movwf TRISA banksel PORTB ; movlw 0x00 movwf PORTB ;turn off display ; ; ; **** DISPLAY COUNT SEQUENCE *** ; display movlw 0x00 ;Use value as a counter ie movwf value ;value is incremented every begin movf value,w ;time a value is extracted from table bsf PORTA,0 ;turn on LSB display call get ;call subroutine to get value movwf PORTB ;output value to portb call wait ;call delay subroutine incf value ;increment counter btfsc value,3 ;test to see if counter = %1010 btfss value,1 ;if not get next value, if yes goto begin ; goto display ;go to display again ; ; **** LOOK UP TABLE FOR VALUES **** ; get brw ;look up table to illuminate retlw 0xc0 ;the numbers 0 – 9 on seven segment retlw 0xf9 ;display (outputs from port are retlw 0xa4 ;active low retlw 0xb0 retlw 0x99 retlw 0x92 retlw 0x82 retlw 0xf8 retlw 0x80 retlw 0x90 ; ; **** TIME DELAY ROUTINE **** ; ( THREE NESTED LOOPS ) ; wait ;delay subroutine movlw 0x02 ;-outer loop movwf outer ; wait3 movlw 0 xff ; -middle loop movwf middle wait2 movlw 0xff ;-inner loop movwf inner wait1 decfsz inner,f goto wait1 ;-inner loop decfsz middle,f goto wait2 ;-middle loop decfsz outer,f goto wait3 ;-outer loop return end

No expert has answered this question yet. You can browse … Read More...
CURR 5702 Guidelines for Writing Analysis Project 1. Find a piece of writing written by a learner with special needs or an English learner. In your write-up, describe the learner’s background in as much detail as you can (country/language of origin, age/grade, gender, length of time in U.S., educational background, level of proficiency, etc.) and the type of writing it is (journal entry, 5-paragraph essay assignment, free write, etc.). 2. Determine what aspects of language are present in the writing. a. Where is the learner strong? b. Where does he/she need help? c. What features do you notice? (this is a list to get you thinking…you do not need to address every one) i. lexical variety ii. syntactic complexity iii. control of grammatical features (nouns, verbs, preps, etc.) iv. linking features (conjunctions) v. structures that mark order (first, second, later, finally) vi. structures that reference prior elements (using the right pronouns to refer back to some person or thing already mentioned) vii. Others? 3. Consider how you might assess this writing and provide feedback to the learner. a. Will you use a rubric? b. What will you focus on? Here are some possibilities: i. Organization and content ii. Language 1. Sentence fluency 2. Grammar/spelling/word choice iii. All of the above c. How will you convey your feedback? i. In writing 1. Highlight errors 2. Choose a few of the most common errors to highlight/ have the learner correct them? (e.g. Error log) 3. Provide general feedback without marking the paper? ii. Have a conference with the learner and discuss some of the areas in need of revision d. What are the next steps in the process? 4. What are your recommendations for literacy instruction? a. Based on your analysis and connections, how might you address the needs of this learner as a teacher? This is where you can connect your project with your readings from the course (or other readings as appropriate). i. Are there strategies, activities, tools, technology, resources, etc., that would be beneficial for your learner? Describe them and be sure to cite your sources. ii. Directly link the recommendations with the observations that you made in their writing sample and with your readings. 5. Write up the writing analysis you have done. Be sure to include the writing sample as an appendix. If you reference a rubric or Error log, etc., please include that as well. You should incorporate at least 4 references into this project (you can start with the 2 course texts if you like). Be sure to cite your sources within your paper and include a list of references at the end in APA format. The evaluation rubric for this project can be found below. Rubric for Writing Analysis Performance Excellent Good Needs Improvement Unacceptable 5 points 3-4 points 1-2 points 0 points Introduction and Context Writer introduces learner and gives clear context of learner. Writer identifies learner, but does not give full context OR writer describes context, but learner information sketchy. Writer has very little information about learner and/or context. No context provided. Writing Sample Writer describes clearly writing sample. Writer is too general about how writing sample. Writer has provided very little information about sample. No information provided regarding sample or no sample provided. 13-15 points 9-12 points 4-8 points 0-3 points Identification of Writing Challenges Language challenges are clearly identified and samples given to support challenges (including transcript numbers). Clear connections made to relevant topics covered in course. Writer indicates some idea of language challenges. Some support given. Some connections made to relevant topics covered in course. Writer discusses language challenges in general; does not support in terms of transcription. Minimal effort to make connections to relevant topics covered in course. Very little or no discussion language challenges identified and little or no transcription support provided. No connections to course topics. Plan for Assessment and Feedback Clear plan for assessing writing and providing feedback to learner. General plan for assessment; feedback addressed, but more details needed. Plan for assessment not clear; feedback to learner addressed superficially. No plan for assessment or feedback. Recommendations for Instruction Recommendations for instruction are clear and well-supported. Recommendations present, but need more description and support. Recommendations are implied or only partially supported. No recommendations given. 5 points 3-4 points 1-2 points 0 points References Writer includes at least 4 credible sources. Writer includes 3 sources. Writer includes 1-2 resources. Sources not included. Writing Conventions Writing is clear. No grammatical, spelling, or punctuation errors. APA format is correct. A few grammatical, spelling, or punctuation errors. APA format is mostly correct. Some grammatical, spelling, or punctuation errors. Numerous issues with APA format. Many grammatical, spelling, or punctuation errors. APA format disregarded. Total ____ / 75 Comments:

CURR 5702 Guidelines for Writing Analysis Project 1. Find a piece of writing written by a learner with special needs or an English learner. In your write-up, describe the learner’s background in as much detail as you can (country/language of origin, age/grade, gender, length of time in U.S., educational background, level of proficiency, etc.) and the type of writing it is (journal entry, 5-paragraph essay assignment, free write, etc.). 2. Determine what aspects of language are present in the writing. a. Where is the learner strong? b. Where does he/she need help? c. What features do you notice? (this is a list to get you thinking…you do not need to address every one) i. lexical variety ii. syntactic complexity iii. control of grammatical features (nouns, verbs, preps, etc.) iv. linking features (conjunctions) v. structures that mark order (first, second, later, finally) vi. structures that reference prior elements (using the right pronouns to refer back to some person or thing already mentioned) vii. Others? 3. Consider how you might assess this writing and provide feedback to the learner. a. Will you use a rubric? b. What will you focus on? Here are some possibilities: i. Organization and content ii. Language 1. Sentence fluency 2. Grammar/spelling/word choice iii. All of the above c. How will you convey your feedback? i. In writing 1. Highlight errors 2. Choose a few of the most common errors to highlight/ have the learner correct them? (e.g. Error log) 3. Provide general feedback without marking the paper? ii. Have a conference with the learner and discuss some of the areas in need of revision d. What are the next steps in the process? 4. What are your recommendations for literacy instruction? a. Based on your analysis and connections, how might you address the needs of this learner as a teacher? This is where you can connect your project with your readings from the course (or other readings as appropriate). i. Are there strategies, activities, tools, technology, resources, etc., that would be beneficial for your learner? Describe them and be sure to cite your sources. ii. Directly link the recommendations with the observations that you made in their writing sample and with your readings. 5. Write up the writing analysis you have done. Be sure to include the writing sample as an appendix. If you reference a rubric or Error log, etc., please include that as well. You should incorporate at least 4 references into this project (you can start with the 2 course texts if you like). Be sure to cite your sources within your paper and include a list of references at the end in APA format. The evaluation rubric for this project can be found below. Rubric for Writing Analysis Performance Excellent Good Needs Improvement Unacceptable 5 points 3-4 points 1-2 points 0 points Introduction and Context Writer introduces learner and gives clear context of learner. Writer identifies learner, but does not give full context OR writer describes context, but learner information sketchy. Writer has very little information about learner and/or context. No context provided. Writing Sample Writer describes clearly writing sample. Writer is too general about how writing sample. Writer has provided very little information about sample. No information provided regarding sample or no sample provided. 13-15 points 9-12 points 4-8 points 0-3 points Identification of Writing Challenges Language challenges are clearly identified and samples given to support challenges (including transcript numbers). Clear connections made to relevant topics covered in course. Writer indicates some idea of language challenges. Some support given. Some connections made to relevant topics covered in course. Writer discusses language challenges in general; does not support in terms of transcription. Minimal effort to make connections to relevant topics covered in course. Very little or no discussion language challenges identified and little or no transcription support provided. No connections to course topics. Plan for Assessment and Feedback Clear plan for assessing writing and providing feedback to learner. General plan for assessment; feedback addressed, but more details needed. Plan for assessment not clear; feedback to learner addressed superficially. No plan for assessment or feedback. Recommendations for Instruction Recommendations for instruction are clear and well-supported. Recommendations present, but need more description and support. Recommendations are implied or only partially supported. No recommendations given. 5 points 3-4 points 1-2 points 0 points References Writer includes at least 4 credible sources. Writer includes 3 sources. Writer includes 1-2 resources. Sources not included. Writing Conventions Writing is clear. No grammatical, spelling, or punctuation errors. APA format is correct. A few grammatical, spelling, or punctuation errors. APA format is mostly correct. Some grammatical, spelling, or punctuation errors. Numerous issues with APA format. Many grammatical, spelling, or punctuation errors. APA format disregarded. Total ____ / 75 Comments:

No expert has answered this question yet. You can browse … Read More...
The Rocket Equation The Tsiolovsky Rocket Equation describes the velocity that results from pushing matter (exploding rocket fuel) in the opposite direction to the direction you want to travel. This assignment requires you to do basic calculation using the Tsiolovsky Rocket Equation : v[t] = eV Log M M – bR t  – g t The parameters used are : ◼ eV exhaust velocity (m/s) ◼ pL payload (kg) ◼ fL fuel load (kg) ◼ M is the mass of the rocket (pL+fL, kg) ◼ bR the burn rate of fuel (kg/s) ◼ g the force due to gravity ms2 The variables calculated are : h(t) the height of the rocket at time t (m) v(t) the velocity of the rocket at time t (m/s) m(t) the mass of the rocket at time t (kg) Questions Question 1 (1 mark) Write an expression corresponding to the Tsiolovsky rocket equation and use integrate to find a function to describe the height of the rocket during fuel burn. Question 2 (2 marks) The fuel burns at a constant rate. Find the time (t0), velocity (vmax), and height (h0) of the rocket when the fuel runs out (calculate the time when the fuel runs out, and substitute this into the height Printed by Wolfram Mathematica Student Edition and velocity equations). Question 3 (2 marks) The second phase is when the only accelaration acting on the rocket is from gravity. This phase starts from the height and velocity of the previous question, and the velocity is given by the projectile motion equation, v(t) = vmax – g (t – t0). Use Solve to find the time when this equation equals 0. This will be the highest point the rocket reaches before returning to earth. Question 4 (1 marks) Integerate the projectile motion equation and add h0 to find the maximum height the rocket reaches. Question 5 (1 marks) Use Solve over the projectile motion equation to find the time when the height is 0. 2 assignment4.nb Printed by Wolfram Mathematica Student Edition

The Rocket Equation The Tsiolovsky Rocket Equation describes the velocity that results from pushing matter (exploding rocket fuel) in the opposite direction to the direction you want to travel. This assignment requires you to do basic calculation using the Tsiolovsky Rocket Equation : v[t] = eV Log M M – bR t  – g t The parameters used are : ◼ eV exhaust velocity (m/s) ◼ pL payload (kg) ◼ fL fuel load (kg) ◼ M is the mass of the rocket (pL+fL, kg) ◼ bR the burn rate of fuel (kg/s) ◼ g the force due to gravity ms2 The variables calculated are : h(t) the height of the rocket at time t (m) v(t) the velocity of the rocket at time t (m/s) m(t) the mass of the rocket at time t (kg) Questions Question 1 (1 mark) Write an expression corresponding to the Tsiolovsky rocket equation and use integrate to find a function to describe the height of the rocket during fuel burn. Question 2 (2 marks) The fuel burns at a constant rate. Find the time (t0), velocity (vmax), and height (h0) of the rocket when the fuel runs out (calculate the time when the fuel runs out, and substitute this into the height Printed by Wolfram Mathematica Student Edition and velocity equations). Question 3 (2 marks) The second phase is when the only accelaration acting on the rocket is from gravity. This phase starts from the height and velocity of the previous question, and the velocity is given by the projectile motion equation, v(t) = vmax – g (t – t0). Use Solve to find the time when this equation equals 0. This will be the highest point the rocket reaches before returning to earth. Question 4 (1 marks) Integerate the projectile motion equation and add h0 to find the maximum height the rocket reaches. Question 5 (1 marks) Use Solve over the projectile motion equation to find the time when the height is 0. 2 assignment4.nb Printed by Wolfram Mathematica Student Edition

No expert has answered this question yet. You can browse … Read More...