olliw42 / mLRS

2.4 GHz & 915/868 MHz & 433 MHz/70 cm LoRa based telemetry and radio link for remote controlled vehicles
GNU General Public License v3.0
295 stars 67 forks source link

tx-diy-E28-dual-f103cb add test of buzzer pin #73

Closed vrquaeler closed 1 year ago

vrquaeler commented 1 year ago

Hi Olli, The buzzer pin is broken but not used yet. Here is a small enhancement of the test code.

PS: Looking forward to see some "buzzer" code.

olliw42 commented 1 year ago

THX!!

there is buzzer code already, see other hal files as example, and https://github.com/olliw42/mLRS/blob/main/mLRS/Common/hal/hal.h#L43. If you want to have a physical buzzer one needs to add some hardware though, the buzzer, a transistor, a diode and 2 resistors, see https://github.com/olliw42/mLRS-hardware/blob/master/olliw-stm32-based/tx-module-02/mLRS-tx-dual-base-v031-np-scheme.png.