asked 21.0k views
1 vote
Design a circuit that make a tone of the buzzer 75% of the time on and 25% of the time off.

( using arduino and proteus)

asked
User Bgoldst
by
8.2k points

1 Answer

3 votes

Answer:

To design a circuit that makes a tone of the buzzer 75% of the time on and 25% of the time off using Arduino and Proteus, you can use the tone() function in the Arduino programming language. Here are the steps:

Open Proteus and create a new project.

Add an Arduino board to the project by searching for "Arduino" in the Components toolbar and dragging it to the workspace.

Add a piezo buzzer to the workspace by searching for "piezo" in the Components toolbar and dragging it to the workspace.

Connect the positive (+) pin of the piezo buzzer to pin 8 of the Arduino board, and the negative (-) pin of the piezo buzzer to a GND pin on the Arduino board.

Open the Arduino IDE and write the code to make the tone of the buzzer 75% of the time on and 25% of the time off using the tone() function. Here's an example code:

int buzzerPin=8;

void setup() {

pinMode(buzzerPin, OUTPUT);

}

void loop() {

tone(buzzerPin, 523); // 523Hz is the frequency of the C musical note

delay(750); // buzzer on for 75% of the time (750ms)

noTone(buzzerPin);

delay(250); // buzzer off for 25% of the time (250ms)

}

Upload the code to the Arduino board by clicking on the "Upload" button in the Arduino IDE.

Run and simulate the Proteus circuit by clicking on the "Play" button in Proteus.

You should hear the tone of the buzzer playing for 750ms and stopping for 250ms repeatedly.

That's it, you have successfully designed a circuit that makes a tone of the buzzer 75% of the time on and 25% of the time off using Arduino and Proteus.

Step-by-step explanation:

answered
User Matthias Sommer
by
8.2k points