OpenMarine

Full Version: RPI, OpenCPN and buzzer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Bonjour,
Je voudrais avoir un buzzer au lieu de la sonnerie de l'alarme AIS. (Je n'ai aucun amplificateur).
Je pensais que c'était simple avec GPIO, mais en fait, je ne sais pas comment faire ça.
Une idée?
You would need something like a transistor to use as a switch for the buzzer. RPI GPIO pins don't provide enough current for a buzzer directly.
(2018-03-13, 09:34 PM)abarrow Wrote: [ -> ]You would need something like a transistor to use as a switch for the buzzer. RPI GPIO pins don't provide enough current for a buzzer directly.

I know. But my first problem is to open a GPIO pin...
Here is a good thread on doing it using PWM. GPIO pins on RPIs are limited to a safe current of 16ma, so you won't get much volume without a transistor to switch the power to the buzzer.

https://www.raspberrypi.org/forums/viewt...hp?t=40515
Thank you, but how AIS alarm can switch on GPIO pin ?
Don't know for sure, but I would think you could do it with Node Red.
Node-red, that's what I was thinking about. But I don't know how to do that.
""Thank you, but how AIS alarm can switch on GPIO pin ?""

you can look into this node i haven't played with it yet but looks like it would work, probably work for anchor watch too..
https://flows.nodered.org/node/node-red-...b-geofence
https://www.npmjs.com/package/node-red-node-geofence

opencpn has AIS "sound cpa alarm"
OK, but I think it's too complicated.
Isn't it possible to use OpenCPN alarm system for switching on a GPIO pin?
http://forum.openmarine.net/showthread.php?tid=1032
if i had something built already to do it i would give it to you but i don't sorry
https://opencpn.org/wiki/dokuwiki/doku.p..._activated
Pages: 1 2 3