Hooking up speaker to duet 2 wifi to "beep"



  • Is there a way to hookup a small internal 2 wire speaker to the Duet 2 wifi board directly? Trying to get the mobo to "beep" when prints or autobed leveling finishes WITHOUT installing the PanelDue monitors.

    If this is possible, how can I make this happen? Will this speaker work and where can I connect the black and red wires to the motherboard?

    Thanks in advance

    https://www.amazon.com/PC-Internal-Mini-Onboard-Speaker/dp/B002W4M0DW



  • There was a routine for adding a sounder - rather than speaker - to the duet v0.6/v0.8.5. That maybe your best answer. I'll look for a link.



  • Check out activate output on the following page:

    https://reprap.org/wiki/RepRap_Firmware_macros#Activate_output.2Fbuzzer

    Be aware this would only work with devices designed to emit a tone when supplied with a smooth DC voltage. A PC speaker would require an oscilating signal.

    Be careful to respect current limits and use flyback/flywheel diodes on inductive loads.



  • It may seem like a complicated solution, but to me the "simple" solution is an arduino connected to the PanelDue port with a piezeo busser attached. Code waiting for M300 commands and playing the tone and duration requested. Its simple to use as it supports the common g-code for making the sound.

    With the assumption that Duet sends M300 to PandelDue ofcourse. The most compact, plug and play set of parts seems to be a wemos d1 mini with buzzer shield. Should work with wifi disabled, but the code will need to be written. I may post back in a few weeks as I have something similar on the drawing board.



  • How about just setting a fan output to a PWM frequency of about 1600hz then just turning it on for a second then off.



  • Lots of great ideas. I've been spending too much time tinkering with this thing, I went ahead and bought a PanelDue 5i hoping the trial-and-error learning curve will be minimal to get the speaker to beep. Would be nice to have a display anyways for those moments when I'm not near my phone or laptop and need to adjust print settings as the printer is going...

    Thanks for all the feedback and options.



  • The panel is pretty sweet!

    And it beeps without issues when using M300 g-code (with the parameters for frequency/tone and duration).


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.