1 / 23

Lab 3 Details

Lab 3 Details. Lab 3. Develop a bio-feedback system based on a PWM (pulse width modulated) thermal sensor Use temperature setting to control the delays in an audio signal so that ‘stereo music’ seems to move across your head (left to right) in response to thermal changes. End of Lab. 2.

arista
Télécharger la présentation

Lab 3 Details

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab 3 Details

  2. Lab 3 • Develop a bio-feedback system based on a PWM (pulse width modulated) thermal sensor • Use temperature setting to control the delays in an audio signal so that ‘stereo music’ seems to move across your head (left to right) in response to thermal changes

  3. End of Lab. 2

  4. Demonstration of bio-feedback operation using a ‘Mock’ temperature sensor

  5. Build and test mock (fake) temperature device

  6. Reminder of how to test a TTCOs taskDesign the task state diagram

  7. Develop Basic Test forFlashLED6 “working”

  8. Write the code to satisfy the Tests

  9. Defects • The number of syntax errors you did not see IS A PROXY FOR • The number of logical errors present in your code • DO A PROPER CODE REVIEW

  10. Don’t ignore ANY compiler warning messages

  11. Why is a warning message such a big deal?

  12. “crewOkay = true” is always true so ‘Customer release’ removes code

  13. Back to Lab. 3 • If this works – then when you get your thermal sensor working (and writing into the global variable roomTemperature), then your bio-feedback device will operate

  14. Handling key-presses and timing

  15. Better solution? • If there is no change in the Switch centre, then increment a counter each time the FlashRateLED5_SW3( ) is called • More technical solution – read the clock cycle register (Assignment 1). However, does the increased accuracy (and increased coding time) actual give the customer a better solution

  16. Displaying the temperature(Mock now, true later) • Led5 and LED6 continue flashing when SW1 is released

  17. Temperature sensor • Task 1 – accurately determine the PWM values of the thermal sensor using input and place values in T1_Low and T2_High global variables • Task 2 – Use T1_Low and T2_High global variables to calculate temperature • Task 3 and 4 – Display temperature and do bio-feedback task

  18. Design and test CalculateTemperature function BEFORE making TTCOS task

  19. TMP03 Thermal sensor

  20. Check that sensor still works

  21. Low accuracy measurement of T1 and T2 (80% of Lab 3 complete)

  22. Design part of Lab. 3 using General Purpose timer Will need to read up in the Blackfin Processor Hardware Manual

More Related