Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buzzer connection issue #471

Open
rinon13 opened this issue Feb 17, 2023 · 2 comments
Open

Buzzer connection issue #471

rinon13 opened this issue Feb 17, 2023 · 2 comments

Comments

@rinon13
Copy link
Contributor

rinon13 commented Feb 17, 2023

Description:Buzzer should only work when the POSITIVE pin is HIGH and the NEGATIVE pin is LOW. In the scenarios shown below, the Buzzer is not following that principle.

POSITIVE pin is the left pin of the Buzzer and the NEGATIVE is the right pin.

Screenshot from 2023-02-17 23-24-26

Screenshot from 2023-02-17 23-24-33

Scenario 1 : Buzzer works when POSITIVE pin is connected to GND (0/LOW) and NEGATIVE pin is connected to pin 13 of Arduino (programmed as HIGH).

Buzzer_Mismatched_Connection

Scenario 2 : Buzzer works when POSITIVE pin is connected to pin 13 of Arduino (programmed HIGH) and NEGATIVE pin is connected to any unassigned/unused pin of Arduino. (In figure below, pin 3 is not assigned in the .ino code)

Buzzer_Arduino_Pin

Scenario 3: Buzzer works when POSITIVE is connected to pin 13 of Arduino (programmed HIGH) and NEGATIVE pin is connected to unconnected Resistor (or any other component) and vice versa.

Buzzer_Incomplete_Connection

Buzzer_Incomplete_Connection2

Steps to Reproduce:

  1. Connect circuit as shown in figures above.
  2. Copy .ino code.
void setup(){
	pinMode(13, OUTPUT);
}

void loop(){
	digitalWrite(13, HIGH);
    delay(1000);
	digitalWrite(13, LOW);
    delay(1000);
}
  1. Press "Start Simulation"
  2. Buzzer will work.

Expected behavior: Buzzer should not work and throw an error.

  • OS: Ubuntu 22.04.1 LTS
  • Browser: Firefox 110 (Ubuntu)

Tested on:

  • develop
  • simulation.iitbx.in
@RAKSHIT-RAJ2028
Copy link

Assign: @RAKSHIT-RAJ2028

@Eyantra698Sumanto
Copy link

@RAKSHIT-RAJ2028 you may try it out and send your updated GitHub branch here and/or create a Pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants