PART II
Exercise 9B
I first defined all notes from the given table with the right frequency. This way I didn't have to work with the frequencies. Then I made an array in which I determine the duration of each note and an array with what notes needs to be played. Then I only need to determine the length of the array to make it loop properly. As a bonus I could make the melody play louder by bypassing the resistor.
Exercise 9D
I tried playing a melody on my instrument, but it's too inaccurate for this (light spillage etc). It would probably be more accurate and playable using the Ultra Sonic sensor.
Exercise 10D
Note: cooling back down takes longer than heating up. In order to cool down faster, blowing on the NTC helps.
Exercise 11D
Back to Top