Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krypten/zetta-buzzer-raspberrypi-driver
https://github.com/krypten/zetta-buzzer-raspberrypi-driver
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/krypten/zetta-buzzer-raspberrypi-driver
- Owner: krypten
- Created: 2015-04-03T03:08:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-03T07:50:30.000Z (over 9 years ago)
- Last Synced: 2024-04-16T08:46:14.218Z (7 months ago)
- Language: JavaScript
- Size: 2.46 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##Control an Piezo Buzzer using Zetta and Raspberry Pi
###Install [Currently won't work as project is not published]
```
$> npm install zetta-buzzer-raspberrypi-driver
```###Usage
```
var zetta = require('zetta');
var Buzzer = require('zetta-buzzer-raspberrypi-driver');zetta()
.use(Buzzer, 17)
.listen(1337)
```### Hardware
* [Piezo Speaker](https://www.sparkfun.com/products/7950)
###Transitions
#####turn-on
No arguments. Turns on the buzzer continuously at 500Hz.
This signal conforms to Swedish Standard SS 03 17 11, No. 4 "All clear"
#####turn-on-pulse
No arguments. Alternately turn the buzzer on at 500Hz for 150 ms then off for 100ms.
The signal conforms to Swedish Standard SS 03 17 11, No. 1 "Imminent Danger".
#####turn-on-alternating
No arguments. Alternately turns on the buzzer at 560Hz for 100 ms then off for 400ms.
The signal conforms to "French fire sound" NF S 32-001-1975.
#####turn-off
No arguments. Turns off the beeping.
#####beep
No arguments. Beeps the buzzer once.
###Design
The sound designs in the buzzer driver follow international standards. Confer with list of alarm sound tones from [Siemens](http://www.buildingtechnologies.siemens.com/bt/global/en/firesafety/fire-detection/cerberus-pro-fire-safety-system/peripherals/alarm-equipment/pages/alarm-sounds.aspx).