{"id":16060857,"url":"https://github.com/geerlingguy/pi-bell-slapper","last_synced_at":"2025-03-16T08:32:05.905Z","repository":{"id":48557241,"uuid":"302171488","full_name":"geerlingguy/pi-bell-slapper","owner":"geerlingguy","description":"The King of Ding. Internet-connected Raspberry Pi-based notification bell.","archived":false,"fork":false,"pushed_at":"2023-03-31T15:04:13.000Z","size":2781,"stargazers_count":81,"open_issues_count":4,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T05:51:24.618Z","etag":null,"topics":["bell","ding","email","notifications","python","raspberry-pi","servo","slap","solenoid"],"latest_commit_sha":null,"homepage":"","language":"OpenSCAD","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geerlingguy.png","metadata":{"files":{"readme":"README-Mark-I.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-07T22:06:59.000Z","updated_at":"2024-11-28T22:41:03.000Z","dependencies_parsed_at":"2022-08-12T19:50:55.403Z","dependency_job_id":null,"html_url":"https://github.com/geerlingguy/pi-bell-slapper","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fpi-bell-slapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fpi-bell-slapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fpi-bell-slapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fpi-bell-slapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/pi-bell-slapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806070,"owners_count":20350775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bell","ding","email","notifications","python","raspberry-pi","servo","slap","solenoid"],"created_at":"2024-10-09T04:06:50.435Z","updated_at":"2025-03-16T08:32:05.480Z","avatar_url":"https://github.com/geerlingguy.png","language":"OpenSCAD","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Mark I - \"Ye Olde Bell Slapper\"\n\n\u003cimg src=\"images/bell-slapper-mark-1.jpeg\" width=\"600\" height=\"408\" alt=\"Raspberry Pi Bell Slapper - Mark I\" /\u003e\n\nThe original 2020 version of the notification bell was slapped using one of a pair of [MG90S Micro Servos](https://amzn.to/2I6sZSC) I bought from Amazon. The Pi tells the servo to go, the servo hits the bell with a little armature, and there you have it.\n\nWell now, here's where it gets interesting. I thought I'd share all the code and tell you how it's done. That's why you're reading this, isn't it?\n\n  1. Clone this repository to your Pi: `git clone -b 1.3.0 https://github.com/geerlingguy/pi-bell-slapper.git`\n  1. Run `python3 -m pip install RPi.GPIO` to install required dependencies.\n  1. Plug in the following wires on the servo motor (see illustration below):\n\n     1. Red wire to 5V power (pin 4)\n     1. Brown wire to ground (pin 6)\n     1. Orange wire to GPIO 21 (pin 40)\n\n  1. Change into this directory (`cd pi-bell-slapper`) and run the command `./bell_slap.py`.\n  1. Wait a second, and you'll see the motor spin, then reverse back to its original position.\n\nHere's an illustration of the servo connections:\n\n\u003cimg src=\"https://raw.githubusercontent.com/geerlingguy/pi-bell-slapper/master/images/servo-raspberry-pi-connections.jpeg\" width=\"600\" height=\"401\" alt=\"Servo motor Pi connections\" /\u003e\n\n\u003e Note: The servo's wires come preinstalled into a 3-pin dupont female connector. You can use a tiny thing to pry up the release on the orange pin barrel connector, and slide that out. Then slide it into a separate 1-pin dupont female connector, and voila! You can then plug that orange wire directly into pin 40.\n\n### But how do I mount this contraption to _actually_ slap a bell?\n\nWell... it's a little more complicated because to slap a real bell, you have to mount the servo motor to something solid, build a little armature to slap the bell, mount the bell so it doesn't move when slapped.\n\nYou can see my franken-build up at the top of this README. It ain't pretty, but she's got it where it counts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fpi-bell-slapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fpi-bell-slapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fpi-bell-slapper/lists"}