Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 2.02 KB

README-Mark-I.md

File metadata and controls

30 lines (18 loc) · 2.02 KB

Mark I - "Ye Olde Bell Slapper"

Raspberry Pi Bell Slapper - Mark I

The original 2020 version of the notification bell was slapped using one of a pair of MG90S Micro Servos 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.

Well 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?

  1. Clone this repository to your Pi: git clone -b 1.3.0 https://github.com/geerlingguy/pi-bell-slapper.git

  2. Run python3 -m pip install RPi.GPIO to install required dependencies.

  3. Plug in the following wires on the servo motor (see illustration below):

    1. Red wire to 5V power (pin 4)
    2. Brown wire to ground (pin 6)
    3. Orange wire to GPIO 21 (pin 40)
  4. Change into this directory (cd pi-bell-slapper) and run the command ./bell_slap.py.

  5. Wait a second, and you'll see the motor spin, then reverse back to its original position.

Here's an illustration of the servo connections:

Servo motor Pi connections

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.

But how do I mount this contraption to actually slap a bell?

Well... 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.

You can see my franken-build up at the top of this README. It ain't pretty, but she's got it where it counts.