Buzzer beeps 300+ times and then stops buzzing

Hi:

I'm using a low level trigger buzzer, it will sound if the pin is LOW, not in HIGH, ok.

I thought it had something to do with the sketch using interrupts and TIMERS, etc.

Then I wrote a simple sketch that beeps for a few milliseconds, counts the beep, and so.

After 320, 326, 335, etc, random values around those numbers, it will not buzz anymore until I reset the Nano.

What is happening here?

What is happening here?

How would we know as you have not posted your sketch or a schematic

UKHeliBob:
How would we know as you have not posted your sketch...

enclosed in code tags.

rva1945:
After 320, 326, 335, etc, random values around those numbers, it will not buzz anymore until I reset the Nano.

What is happening here?

Going to stick my neck out and guess it's something to do with a variable overflowing. But purely a guess in the absence of code.