Question: 3.) write an UNO program that will play a brief concert (about 100 seconds long)that features three separate piezoelectric buzzers playing tones of 330 660
3.) write an UNO program that will play a brief concert (about 100 seconds long)that features three separate piezoelectric buzzers playing tones of 330 660 and 132 Hz at different modulation rates and duty cycles. Referring to the attached schematic diagram, in Figure 3 (a) buzzer B1 should play the 330 Hz tone at 1 Hz modulation and 40% duty for 4 seconds, then switch to 660 Hz tone with 2 Hz modulation and 60% duty for 6 seconds (b) buzzer B2 should play the 1320 Hz tone at 0.5 Hz modulation and 60% duty for 6 seconds, then switch to 330 Hz tone at 1 Hz modulation and 40% duty for 4 seconds (c) Buzzer B3 should play the 660 Hz tone at 2 Hz modulation and 50 duty for 5 seconds, then switch to 1320 Hz modulation and 50% duty for 5 seconds (d) Your code should repeat steps a-c for a total of ten times to create a 100 second long concert (e) HINT: the easiest way to accomplish the above concert simultaneously is to use a separate UNO for each of the three buzzers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
