{"id":21107319,"url":"https://github.com/ninjascl/rpitune","last_synced_at":"2026-04-28T09:04:13.388Z","repository":{"id":119741336,"uuid":"529378039","full_name":"NinjasCL/rpitune","owner":"NinjasCL","description":"🎹 Rasperry Pi Buzzer Tunes with RTTTL","archived":false,"fork":false,"pushed_at":"2022-08-26T19:21:03.000Z","size":1334,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T03:58:20.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NinjasCL.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-26T19:14:11.000Z","updated_at":"2022-08-26T19:21:10.000Z","dependencies_parsed_at":"2023-07-21T00:30:30.154Z","dependency_job_id":null,"html_url":"https://github.com/NinjasCL/rpitune","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NinjasCL/rpitune","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Frpitune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Frpitune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Frpitune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Frpitune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NinjasCL","download_url":"https://codeload.github.com/NinjasCL/rpitune/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Frpitune/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32373515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T00:38:37.906Z","updated_at":"2026-04-28T09:04:13.337Z","avatar_url":"https://github.com/NinjasCL.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi Music Tunes with RTTTL\n\nThis is a simple project for sending Nokia's RTTTL (RingTone Text Transfer Language) to a buzzer in a Raspberry Pi.\n\nThis code will compile a single binary that will send\nthe frequencies to the buzzer.\n\n## Hardware\n\n- Raspberry Pi Model B\n- *Passive* Buzzer 5v. (Computer Speaker)\n- Cables.\n\nIt’s important that your buzzer is a passive one, if it beeps when you feed it with 3.3V then it is not a passive one and this project will not work properly.\n\n## Software\n\n- http://wiringpi.com/\n- https://dietpi.com/ (Debian 11)\n\n## Deps\n\nFirst must install the dev packages:\n\n```sh\n$ sudo apt -y install gcc g++ make automake git\n```\n\nThen install _WiringPi_ dev files:\n\n```sh\n$ git clone https://github.com/WiringPi/WiringPi.git\n$ cd WiringPi\n$ ./build\n```\n\nMake sure to add your user to the `gpio` group.\n\n```sh\n$ sudo usermod -aG gpio \u003cusername\u003e\n```\n\n## Schematics\n\nYou can connect the buzzer to the GPIO 4 (positive) and the other to the ground. Or change it in _pin.h_.\n\nimage:https://user-images.githubusercontent.com/292738/186971780-e5cdf7a5-927c-4838-ba56-de2199d0b36a.png[https://www.circuitbasics.com/how-to-use-buzzers-with-raspberry-pi/]\n\n\n## Song\n\nYou can select a song in _song.h_. There is a bunch of sample songs\ntoo inside `docs/songs`. (Got from https://picaxe.com/rtttl-ringtones-for-tune-command/). This song will play if you\ndo not give any arguments to the program.\n\n## Compilation\n\nOnce you configured your _PIN_ and _SONG_ you can compile with:\n\n```sh\n$ make build\n```\n\nIt will generate a new binary named `tune`.\nThis binary can be executed and will play the _SONG_. \nMaybe can be used on login? or startup sound?.\n\nA binary is included in this repo if you want to avoid\ncompilation.\n\n## Play\n\nNow you can play using the command `./tune`.\n\nExample:\n\n```sh\n$ cat docs/songs/mix1/adams.txt | xargs ./tune\n```\n\n## Similar Projects\n\nIf you want more complex tunes you can use https://en.wikipedia.org/wiki/Music_Macro_Language[MML] instead of https://en.wikipedia.org/wiki/Ring_Tone_Text_Transfer_Language[RTTTL].\n\nSee: https://cubeatsystems.com/tinymml/faq.html\n\n### Other Links\n\n- https://www.bristolwatch.com/debian/beep.htm\n- https://computers.tutsplus.com/articles/creating-a-speaker-for-your-raspberry-pi-using-a-piezo-element--mac-59336\n- https://projects-raspberry.com/piezo-ring-tones-with-raspberry-pi/\n- https://docs.circuitpython.org/projects/rtttl/en/latest/\n- https://github.com/james1236/buzzer_music\n- https://github.com/joan2937/pigpio/\n- http://www.airspayce.com/mikem/bcm2835/\n\n## Composers\n\n- https://adamonsoon.github.io/rtttl-play/\n- https://github.com/zserge/nokia-composer/\n- https://eddmann.com/nokia-composer-web/\n\n## LICENSE\n\nBSD 2-Clause License\n\n## Credits\n\n++++\nMade with \u003ci class=\"fa fa-heart\"\u003e\u0026#9829;\u003c/i\u003e by \u003ca href=\"https://ninjas.cl\" target=\"_blank\"\u003eNinjas.cl\u003c/a\u003e.\n++++","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjascl%2Frpitune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninjascl%2Frpitune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjascl%2Frpitune/lists"}