Hi everyone,
I'm currently in the process of doing a Zenith Z-150 handwire/restoration and want to include the original built in beeper. There's a good chance I'd need some external circuitry to properly drive it as it might not be within the specifications of what a Teensy can drive. I'm wondering if anyone has done something similar and can show how they did it, primarily the code. Thanks!
Adding a beeper/buzzer to a Teensy/TMK
-
- Location: Stockholm, Sweden
- DT Pro Member: 0011
The QMK firmware should have support for a buzzer, because the QMK Proton C microcontroller board (which is not based on an AVR microcontroller though) has a space for an optional buzzer.
However, there is a big different between an actual speaker (which you have to drive yourself), a piezoelectric buzzer (which drives itself from simple DC) and a beeper made to be driven by a specific signal. You would have to find out which type it is that your Zenith actually has.
However, there is a big different between an actual speaker (which you have to drive yourself), a piezoelectric buzzer (which drives itself from simple DC) and a beeper made to be driven by a specific signal. You would have to find out which type it is that your Zenith actually has.
-
- Location: United Kingdom
- Main keyboard: Modded Novatouch
- Main mouse: Deathadder Pro
- DT Pro Member: -
Thanks, I will take a look at that. I think the beeper I have might require something to drive it, but I admittedly haven't looked into it much. I will check out the datasheet tomorrow. I'm more curious how I can get a signal from the Teensy whenever I press a key but I suppose the link you supplied covers that somewhere.
- vvp
- Main keyboard: Katy/K84CS
- Main mouse: symetric 5-buttons + wheel
- Favorite switch: Cherry MX
- DT Pro Member: -
You did not say which Teensy it is. Different versions have different MCUs.
Anyway I drive a piezo buzzer directly from an MCU pin and it works ok. I'm still using only about 1/3 of the pin current capacity.
Compute the maximum current your buzzer will need and if you are bellow the pin current rating (and the whole MCU is bellow its maximum current rating) then you are fine connecting it directly.
Anyway I drive a piezo buzzer directly from an MCU pin and it works ok. I'm still using only about 1/3 of the pin current capacity.
Compute the maximum current your buzzer will need and if you are bellow the pin current rating (and the whole MCU is bellow its maximum current rating) then you are fine connecting it directly.
- Drclick
- Location: China
- Main keyboard: HHKB
- Main mouse: logi anywhere 2s
- Favorite switch: Brwon
- DT Pro Member: -
You can use haptic feedback feature to make it work.
https://github.com/qmk/qmk_firmware/blo ... eedback.md
https://github.com/qmk/qmk_firmware/tre ... ers/haptic
https://github.com/qmk/qmk_firmware/blo ... eedback.md
https://github.com/qmk/qmk_firmware/tre ... ers/haptic