# Chapter 7 – Buzzer now available in the Pi-Ada Tutorial

**URL:** https://forum.ada-lang.io/t/chapter-7-buzzer-now-available-in-the-pi-ada-tutorial/4429
**Category:** Releases
**Tags:** embedded, ada, pi-pico, raspberry
**Created:** [May 18, 2026, 6:18pm UTC](https://forum.ada-lang.io/t/chapter-7-buzzer-now-available-in-the-pi-ada-tutorial/4429 "2026-05-18T18:18:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![krischik](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/krischik/32/420_2.png) [@krischik](https://forum.ada-lang.io/u/krischik)
#### Post date: [May 18, 2026, 6:18pm UTC](https://forum.ada-lang.io/t/chapter-7-buzzer-now-available-in-the-pi-ada-tutorial/4429/1 "2026-05-18T18:18:26Z")

</div>

Hello everyone,

I have just uploaded Chapter 7 of my Raspberry Pi Pico Ada tutorial.

In this chapter we drive both active and passive buzzers. We start with a simple button-controlled doorbell, then move on to a sweeping alert tone. The original bit-banging version shows the limitations of software-generated frequencies, so I rewrote it using the RP2040 PWM peripheral together with `Ada.Real_Time`. The result is rock-solid timing with no audible jitter.

I also cover the hardware side: why you need a flyback diode with inductive loads and how a cheap oscilloscope helped me spot (and fix) 50 V spikes.

You will find the complete chapter here: [Chapter 7: Buzzer · Pi Ada Tutorial](https://pi-ada-tutorial.sourceforge.io/pico_ada_c07_buzzer/)

Alire crate: [https://alire.ada.dev/crates/pico\_ada\_c07\_buzzer/](https://alire.ada.dev/crates/pico_ada_c07_buzzer/) (soon)  
GNATdoc: [https://pi-ada-tutorial.sourceforge.io/gnatdoc/pico\_doc/](https://pi-ada-tutorial.sourceforge.io/gnatdoc/pico_doc/)

As always, the source code is on SourceForge: [https://git.code.sf.net/p/pi-ada-tutorial/code](https://git.code.sf.net/p/pi-ada-tutorial/code)

Feedback and questions are very welcome!

Best regards,
