Question: Modify the following program to make the buzzer generate 2 different 5 second call sounds. The 2nd sound should be produced 20 seconds after the
Modify the following program to make the buzzer generate 2 different 5 second call sounds. The 2nd sound should be produced 20 seconds after the first. An Arduino mega 2560 board is used as the micro-controller to connect the buzzer. Must employ C programming language and must NOT use any Ardiuno functions.
//Buzzer I/O signal is connected to PIN 5 int tune1[]={10,15,80,55,122,177}; int dur1[]={50,70,90,110,130,150}; int i,j,n=6; //n is inialitsed to the number o fnotes in tune 1. int tmp; void setup() { DDRE = (1<
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
