Enabling Ultratronics Pro v1.0 Buzzer
Hi,
I need some help making M300 : Play beep sound GCode work with Ultratronics Pro v1.0.
I defined BEEPER_PIN 27 in pins.h under Ultratronics Board section. Before adding this line I was getting unknown command error. Now printer accepts the command, but there is no sound.
The buzzer is located on the mainboard, not on LCD board. In fact, this is newly built printer and at the moment it does not even have display, so FEATURE_CONTROLLER in configuration.h file is set to NO_CONTROLLER. Can this be the issue?
The printer runs on the latest 1.x Development version of firmware downloaded from here https://github.com/repetier/Repetier-Firmware/tree/development
Thanks
I need some help making M300 : Play beep sound GCode work with Ultratronics Pro v1.0.
I defined BEEPER_PIN 27 in pins.h under Ultratronics Board section. Before adding this line I was getting unknown command error. Now printer accepts the command, but there is no sound.
The buzzer is located on the mainboard, not on LCD board. In fact, this is newly built printer and at the moment it does not even have display, so FEATURE_CONTROLLER in configuration.h file is set to NO_CONTROLLER. Can this be the issue?
The printer runs on the latest 1.x Development version of firmware downloaded from here https://github.com/repetier/Repetier-Firmware/tree/development
Thanks
Comments
Does it make a sound with M42 P27 S255
and disables with M42 P27 S0 ?
Thanks!
As per explanation given here https://www.cuidevices.com/product-spotlight/piezo-and-magnetic-buzzers
So, transducers can generate tones with different frequencies matching the frequency of square signal they get. Indicators just beep with fixed frequency of built in generator.
If Ultratronics' buzzer is Indicator, then it works as it should, however if it has Transducer, then there may be a problem.
I checked the code of Ultratronics test firmware and, if I read it right, it generates several beeps with 1 sec interval using the following code
This is the way one would control Indicator, but not Transducers.
Here is the reply I got from Ultratronics technical support:
KXG0905C datasheet is available from here http://www.farnell.com/datasheets/97486.pdf
It does not mention Transducer or Indicator, but says that KXG0905C has resonant frequency 2730 +/- 300 Hz.
https://www.programmingelectronics.com/an-easy-way-to-make-noise-with-arduino-using-tone/
On due we use a interrupt to generate a frequency as well. So question is if it is not switching pin due to some error or does it not work with that piezo. If the tone example works the error would be in firmware tone handling.
I am out of town until the end of next week. Will try this once I am back.
Thanks
Pasting below the exact code I used. SD card was removed during this test and Ultratronics was powered only via programming USB port.
Thanks.
Worked perfectly!!
@Repetier Thanks for outstanding support!!