Turning a Piezo buzzer off


why
code: [select]
analogwrite(buzzer,255);

turn off and

code: [select]
analogwrite(buzzer,0);

turn on.

i thought other way around.

post circuit.... if have buzzer +ve 5v, , -ve in i/o pin, need i/o pin @ 0v there pd across buzzer, off on.


Arduino Forum > Using Arduino > Audio > Turning a Piezo buzzer off


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support