stealthmonkey99 / OctoPrint-PWMBuzzer

M300 gcode handler (PWM buzzer via GPIO) for OctoPrint
6 stars 1 forks source link

Not an issue, really, but some questions. #12

Closed Lord-Memester closed 2 years ago

Lord-Memester commented 2 years ago

What buzzer would you suggest? Additionally, would a speaker work?

Could a script or other program be run to output the audio via the jack on the pi?

Just things I'd like to know. Good luck fixing the other issues I saw here!

stealthmonkey99 commented 2 years ago

Hi @Lord-Memester - I've tried a few buzzers and each one sounds uniquely awful 😆 so it's hard to pick one that I'd "recommend". Here are three that all worked with just wiring up the negative to ground and positive to a 3.3V GPIO pin:

Many speakers will require more than the 3.3V that I've been using off a GPIO pin, but if you have a spare one handy it's worth a shot (let me know how it goes). You might also experiment with amplifying/using 5V like I saw something about in here: https://raspberrypi.stackexchange.com/questions/61547/different-frequencies-with-piezo-buzzer-python.

As to the last one... great question, but unfortunately the plugin won't work through the audio jack.

stealthmonkey99 commented 2 years ago

(good questions, so I'm going to leave this open as a reminder/task to add some more info to the documentation later)