The Piezo Buzzer Bricklet ca be used to extend the features of Bricks by the capability to beep. The device can output 1kHz beeps in different lengths. It is possible to beep for a specified timespan or to transmit a Morse Code string.
A typical application is to beep on specific events (e.g. “email received”).
| Property | Value |
|---|---|
| Buzzer | PS1420P02CT |
| Beep | Frequency 1kHz, configurable duration |
| Sound Pressure | 63 dB/10cm (according to datasheet) |
| Dimensions (W x D x H) | 25 x 25 x 14mm (0.98 x 0.98 x 0.55”) |
| Weight | 4g |
To test the Piezo Buzzer Bricklet you need to have the Brick Daemon and the Brick Viewer installed (for installation guides click here and here) and the Brick Viewer has to be connected to the Brick Daemon.
Connect the Piezo Buzzer Bricklet to a Brick with the supplied cable (see picture below).
If you connect the Brick to the PC over USB, you should see a new tab named “Piezo Buzzer Bricklet” in the Brick Viewer after a moment. Select this tab. If everything went as expected the Brick Viewer should look as depicted below.
Generate a beep by pressing “Send Beep”. You should hear a beep with the specified duration.
After this test you can go on with writing your own application. See the Programming Interface section for the API of the Piezo Buzzer Bricklet and examples in different programming languages.
See High Level Programming Interface for a detailed description.
| Language | API | Examples | Installation |
|---|---|---|---|
| Modbus | API | ||
| TCP/IP | API | ||
| C/C++ | API | Examples | Installation |
| C# | API | Examples | Installation |
| Delphi | API | Examples | Installation |
| Java | API | Examples | Installation |
| PHP | API | Examples | Installation |
| Python | API | Examples | Installation |
| Ruby | API | Examples | Installation |
| VB.NET | API | Examples | Installation |