# Piezo Ring Tones with Raspberry Pi

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/023/681/medium800/components_piezo-rttl.png?1425497401)

The ringtone text transfer language ( **RTTTL** ) is a way to represent music data for play on older mobile phones. &nbsp;The format was created by Nokia for thier phones, but it also works with GPIO pins and a piezo buzzer.

This project shows how to use the Raspberry Pi's GPIO pins to play RTTTL on a piezo buzzer. &nbsp;This project was inspired by existing RTTTL implementations, but differs from those in that its user interface is Web enabled.

The application, written in Java, starts an HTTP server. &nbsp;The HTTP server presents the user interface via HTML. &nbsp;The user interface provides a list of built-in RTTTL ditties&nbsp;available for play. &nbsp;The application's interface also accepts user-provided RTTTL sequences, via its on-the-fly input controls.

- [Next Page](https://learn.adafruit.com/piezo-ring-tones-with-raspberry-pi/assemble.md)

## Featured Products

### Piezo Buzzer

[Piezo Buzzer](https://www.adafruit.com/product/160)
Piezo buzzers are used for making beeps, tones and alerts. This one is petite but loud! Drive it with 3-30V peak-to-peak square wave. To use, connect one pin to ground (either one) and the other pin to a square wave out from a timer or microcontroller. For the loudest tones, stay around 4 KHz,...

In Stock
[Buy Now](https://www.adafruit.com/product/160)
[Related Guides to the Product](https://learn.adafruit.com/products/160/guides)
### Large Enclosed Piezo Element w/Wires

[Large Enclosed Piezo Element w/Wires](https://www.adafruit.com/product/1739)
This large (30mm diameter) piezo element is nicely enclosed with mounting holes so you can attach easily. Piezo elements convert vibration to voltage or voltage to vibration. That means you can use this as a buzzer for making beeps, tones and alerts AND you can use it as a sensor, to detect...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1739)
[Related Guides to the Product](https://learn.adafruit.com/products/1739/guides)
### Small Enclosed Piezo w/Wires

[Small Enclosed Piezo w/Wires](https://www.adafruit.com/product/1740)
This small (14mm diameter) piezo element is nicely enclosed so you can attach easily. Piezo elements convert vibration to voltage or voltage to vibration. That means you can use this as a buzzer for making beeps, tones, and alerts, AND you can use it as a sensor to detect fast movements like...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1740)
[Related Guides to the Product](https://learn.adafruit.com/products/1740/guides)

## Related Guides

- [XBee Radios](https://learn.adafruit.com/xbee-radios.md)
- [Using NeoPixels and Servos Together](https://learn.adafruit.com/neopixels-and-servos.md)
- [Battery Powered Raspberry Pi Displays w/RaspiRobot Shield](https://learn.adafruit.com/raspirobot-battery-powered-raspberry-pi-displays.md)
- [How we designed an injection-molded case](https://learn.adafruit.com/how-we-designed-an-injection-molded-case-for-raspberry-pi.md)
- [Pinball Controller for iPad](https://learn.adafruit.com/pinball-controll-ipad.md)
- [Adafruit PiOLED - 128x32 Mini OLED for Raspberry Pi](https://learn.adafruit.com/adafruit-pioled-128x32-mini-oled-for-raspberry-pi.md)
- [Wood Case for Raspberry Pi 3](https://learn.adafruit.com/wood-case-for-raspberry-pi-3.md)
- [PiPhone - A Raspberry Pi based Cellphone](https://learn.adafruit.com/piphone-a-raspberry-pi-based-cellphone.md)
- [nOOds LED CV Signal Visualizers](https://learn.adafruit.com/noods-led-synth-cv-visualizers.md)
- [Mini Smart Home with Huzzah, HASSio and Crickit](https://learn.adafruit.com/mini-smart-home-with-esp8266-huzzah-feather-raspberry-pi-hassio-crickit.md)
- [Networked Thermal Printer using Raspberry Pi and CUPS](https://learn.adafruit.com/networked-thermal-printer-using-cups-and-raspberry-pi.md)
- [Running OpenGL-based Games & Emulators on Adafruit PiTFT Displays](https://learn.adafruit.com/running-opengl-based-games-and-emulators-on-adafruit-pitft-displays.md)
- [Making PCB Jewelry & Art with Gingerbread and KiCad](https://learn.adafruit.com/making-pcb-art-with-gingerbread-and-kicad.md)
- [Adafruit DPI Display Kippah](https://learn.adafruit.com/adafruit-dpi-display-kippah-ttl-tft.md)
- [Set up Home Assistant with a Raspberry Pi](https://learn.adafruit.com/set-up-home-assistant-with-a-raspberry-pi.md)
