CSE466-03au Lab Assignment 8 - Port Birdie to tinyOS

This is a
3 part lab.  In it, you will:

    1.   Connect your Piezo element to Mica2dot
    2.   Build a tinyOS module to  monitor the light sensor , and trigger the birdie
    3.   Port your Birdie code to tinyOS

In this lab, you will learn the following:
Steps

Part 1

   1. connect your piezo transducer to your mica2mote,
between TP15(PWM1B) and ground (TP18).:

  

End of Part 1


Part 2

   Build a tinyOS module to  monitor the light sensor , and light the LED when light exceeds a threshold.
    Suggestion:  Copy the Oscilloscope app, and trash what you don't need. Adapt, don't invent (in this case).


End of Part 2

Part 3: Port Birdie to tinyOS


   
1. Use timer 1 for PWM; use timer 2 and/or timer 3 for tempo and ADSR-keeping.
    2. Remember that the mica2dot has a 4 MHz clock frequency, which will require you to re-calculate your tempo and Phase-increment values.
    3. Use your light-sensor module to trigger a birdsong when the LED changes state.
    Use "bbwa.txt" when the LED goes from off to on, and "cardinal.txt" when the LED goes from on to off.
   

End of Part 3
 
Deliverables

Part 1 and 2: none

Part 3:

Demonstrate your completed part 3. Turn in a printout of your code.


End