top of page

02 - Board Hardware

Speaker

The speaker is a small piezo element which vibrates at whatever frequency is placed on the positive terminal of the device.

The easiest way to get sound from the speaker is to use the tone() command.


Example: tone(bzr,300,50);


The volume output is frequency dependent.  This means that certain frequencies will be lowder than others. The volume will be lower around 200 to 500 hz.  This is useful for general input feedback. (like someone pressed a button) The volume will peak around 3000 hz and again at 4000 hz.  This is good for announcing a winner of a game.

Please be aware, this sound can be VERY annoying. A duration of 50 ms is plenty of time to make the beep heard while not being obnoxious.

© 2021 Odyssey Navigator. All rights reserved.

bottom of page