Grove beginner kit buzzer not working

I’ve been teaching a intro to microcontroller class for teachers with both the arduino grove starter kit and the arduino grove beginner kit. I am actually testing the use of the Grove Beginner Kit for seeedstudio.

3 of us have the Beginner Kit, which is very cool. The built in buzzer on pin 5 does not work on any of them.

I plugged in another wired grove buzzer into the plug next to the buzzer on the beginner kit (which the board says is connected to d5) and it works just fine. So, it looks like the problem is with the built-in buzzer or the wiring of the built-in buzzer to the board.

Is there some “trick” to getting the buzzer to work? Have other folks reported this problem? is there an easy diy fix?

Thanks for any help you can give!

Susan in Boston @

Hi klimczaksusan

Do you only use buzzer without breakout any modules?
if yes, please try this code on your board.

int BuzzerPin = 5;
 
void setup() {
  pinMode(BuzzerPin, OUTPUT);
}
 
void loop() {
  analogWrite(BuzzerPin, 128);
  delay(1000);
  analogWrite(BuzzerPin, 0);
  delay(0);
}

if no, please provide more detail I will help with it.
keep in touch.

Best regards
Fenyi