RTTTL - Ring Tone Text Transfer Language driving a Piezo Speaker

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
User avatar
dhylands
Posts: 2881
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

RTTTL - Ring Tone Text Transfer Language driving a Piezo Speaker

Post by dhylands » Sun Jul 24, 2016 5:54 am

I've put together an RTTTL parser and a sample which drives a piezo speaker.

The RTTTL parser can be found here: https://github.com/dhylands/upy-rtttl
I put together a quick video (so you can hear it playing a tune): https://www.youtube.com/watch?v=TadV2AEvfww

The pyb_test.py file has the function which plays a single tone, and rttlt.py has the RTTTL parser.

User avatar
mcauser
Posts: 326
Joined: Mon Jun 15, 2015 8:03 am

Re: RTTTL - Ring Tone Text Transfer Language driving a Piezo Speaker

Post by mcauser » Thu May 31, 2018 12:01 am

Works great with my pyboard + Seeed Grove buzzer!
There's millions of RTTTL examples a short Google search away.

You can even play them online:
https://adamonsoon.github.io/rtttl-play/

I used this tool to help figure out the frequencies I wanted to play:
http://www.szynalski.com/tone-generator/

Post Reply