Arduino nano: buzzer freezes serial port

Hi,

Why does Buzzer on arduino nano "breaks" serial port?

Buzzer is BPT-14X on port D17

I am using tone function and ordinary digitalWrite (digital write gives out solid tone)

So ... whenevery I beep something Serial port (over usb) freezes shut.

Connection is direct (without resistors)... should I?

Thanks,
B

I don't know about the other problem, but you seem to have what is called an "active buzzer", which means it already contains tone generating components and will totally ignore a tone sent on the pin powering the buzzer. Did you not see the headline for the device that has a built-in tone generator?
The other problem is likely caused by an error in your code.

It is a bit confusing for me. It sounds like electrical noise is messing up the processor which should not happen. A simple schematic of how you have it wired and powered would help a lot along with links to technical information on the hardware items.

Looks like that to me too ... I got it singing (not great, not terrible)

Anything I can do to isolate the buzzer from the rest of the system?

Post the information asked for so we can answer the question instead of paying "guess who has the ball".

As a said before buzzer + on D17 (analog port) -to ground … I have other stuff connected like relays and ir receiver, switches … but none od that is used up to the point of failure

If I beep I loose the serial … if I don’t serial works fine

Good Luck!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.