Microsoft Teams Mute Button

Introduction: Microsoft Teams Mute Button

About: Resources for makers, by makers

Build an easy-to-reach pushbutton to mute/unmute yourself while on a Microsoft Teams call! Because 2020.

This project uses an Adafruit Circuit Playground Express (CPX) and a large pushbutton to create a mute button for Microsoft Teams via the hot key command "Ctrl + Shift + m".

Check out the Project Demo video here!

  • Skill level: Beginner
  • Estimated Build Time: 5 - 10 min
  • Estimated Cost: $30

Supplies

Mute Button Hardware

Optional: Mounting Case

  • 1 sturdy box (cardboard or wood), 3.75" x 3.75" x 2.75" (9.5cm x 9.5cm x 6.5cm)

Tools

  • Ruler
  • Pencil
  • Precision knife (e.g. Exacto Knife)
  • Tape

Step 1: Build It: Mute Button

  1. Connect the bottom pushbutton terminal to CPX pin A1.
  2. Connect the bottom side pushbutton terminal to CPX 3.3V pin.
  3. Plug in the microUSB cable between the CPX and your computer.

That's it!

Check the CPX pinout diagram in photo 3 if you want to change the trigger pin or just get more info!

Step 2: Optional: Build a Case!

I used a sturdy cardboard box for this, but you can also use or make a small wood box!

  1. Separate the pushbutton pieces! (Photo 1)
    1. Twist and pull out the pushbutton's electrical piece.
    2. Unscrew the white plastic bolt from the pushbutton base.
    3. Keep the large black circular support in-place (unless you want to add a support material like the acrylic on mine).
  2. Find the center of the box and mark an "X" that is 1" by 1" (2cm x 2cm). (Photo 2)
  3. Using the mark as a guide, cut out a circle with a 1" diameter. (Photo 3)
  4. Push the pushbutton center through the hole in the box. (Photo 4)
  5. Screw back on the white plastic bolt and twist the electrical piece back into place. (Photo 5)
  6. Secure the wires with tape and attach the CPX to the front of the box for easy access!

Step 3: Code It: Mute Button!

Here is the project GitHub repo, or here is the raw code if you prefer that.

  1. Download this repo, or copy and paste the code in "TeamsMuteButton" folder called "TeamsMuteButton.ino".
  2. Open the Arduino IDE (download for free here) and open (or paste) the "TeamsMuteButton.ino" file.
  3. Open the Boards Manager (under Tools --> Board) and install the Arduino SAMD Boards.
  4. Once the boards are installed, suggested to restart Arduino IDE. Then go back to Tools--> Boards and select "Adafruit Circuit Playground Express" from the "Arduino SAMD (32-Bits ARM Cortex-M0+) Boards" option.
  5. Select the port your CPX is connected to (under Tools --> Port).
  6. Upload the code to the CPX (click the arrow key on the shortcut menu).
  7. When the code is finished uploading, check that the program works by moving the slide switch to the left (towards CPX Button A) and pressing the pushbutton. You should see the red LED on the CPX turn on, and the command should open the Arduino Serial Monitor.
  8. Once it's working as expected, you're ready to deploy! Use the slide switch to enable/disable the button.

Note: The pushbutton triggers the keyboard "CTRL + Shift + M" keys, which does different things in different apps. The mute function will only work if you're actively using Teams.

Troubleshooting

  • Check the alligator clip connections between the pushbutton and CPX.
    • Ensure you're using the proper Pushbutton leads
    • Check that you're connected to CPX pin A1.
  • Use the Serial Monitor to check the CPX slide switch status. When it is enabled, it will print "Ready to mute!" to the Serial Monitor.
  • Use the Serial Monitor to check if the pushbutton is getting triggered. When it is pressed and read by the CPX, it will print "Pressed" to the Serial Monitor.
  • Questions or other problems? Please open an issue in GitHub or reach out to us: AskAMaker@microsoft.com

Step 4: Deploy Your Mute Button!

And that's it! Go forth and make muting/unmuting yourself easier and faster! Be sure to test out the button with friends and family before deploying it in a super important meeting :)

Going Further

  1. This is simple prototype designed to help you get a mute button up and running as fast as possible. Want a more permanent solution? Awesome! Here are some tips:
    1. Replace the CPX with a smaller and more robust M0 board, like the Arduino Nano 33 IoT.
      1. Note: You will need to change the wiring and add a resistor. Here's a helpful overview.
    2. Solder wires between the pushbutton and microcontroller, and/or coat in hot glue or epoxy.
    3. Build an enclosure for the pushbutton and microcontroller, or adhere to the side of your desk.
  2. Use the Microsoft Teams API mute call to write a more complex program that can mute/unmute Teams even if you aren't actively using it!

Happy Making!

Anything Goes Contest

Participated in the
Anything Goes Contest

Be the First to Share

    Recommendations

    • Anything Goes Contest 2021

      Anything Goes Contest 2021
    • Photography Challenge

      Photography Challenge
    • One Board Contest

      One Board Contest

    19 Comments

    0
    MAllgoewer
    MAllgoewer

    11 months ago

    Great idea! Sounds like it should work with a much cheaper ESP32-Board, too, or am I mistaken?

    0
    MakersAtMicrosoft
    MakersAtMicrosoft

    Reply 11 months ago

    Ah unfortunately the Arduino Keyboard library is only compatible with M0 processors (CPX was not necessarily my first choice but what I had on-hand..). But maybe there's another library that would work for the ESP boards? There's also the CircuitPython path which could open up other board options.

    0
    MAllgoewer
    MAllgoewer

    Reply 9 months ago

    I actually built a version of the same idea with an ESP32-board. The trick is not to connect via USB (which the ESP32 boards typically don't support), but via Bluetooth LE. There is a BLE-version of the Arduino Keyboard Library (https://github.com/T-vK/ESP32-BLE-Keyboard) that works much in the same way as the original one. Works like a charm. Thanks for the great idea!

    0
    MakersAtMicrosoft
    MakersAtMicrosoft

    Reply 9 months ago

    Ohhh that's awesome! Would definitely prefer a wireless version, thanks for sharing!

    0
    MAllgoewer
    MAllgoewer

    Reply 9 months ago

    Well, in practice it's less wireless than you might think -- I still use the USB port as power supply... ;-)

    0
    MakersAtMicrosoft
    MakersAtMicrosoft

    Reply 9 months ago

    Ha!! Well at least you have options and *chose* USB for power :)

    0
    Xxtwilight2468xX
    Xxtwilight2468xX

    1 year ago

    Wow! I use ms teams and this is a very nice idea! Next time make, Google meet and zoom mute button UwU..

    0
    MakersAtMicrosoft
    MakersAtMicrosoft

    Reply 1 year ago

    Thanks very much, glad you found it helpful! This project uses the CPX to "press" keyboard keys (CTRL + SHIFT + M), so you could quickly adapt it for Google meet and Zoom -- just look up what the mute button hot key is and swap in that command!

    0
    Xxtwilight2468xX
    Xxtwilight2468xX

    Reply 10 months ago

    Ok....Thanks by the ways it works in ms teams too ~_~

    0
    lukehayes05
    lukehayes05

    1 year ago

    I NEED TO MAKE THIS FOR DAD!! HE NEVER MUTES! NOT GOOD WHEN THE WHOLE FAM IS WORKING FROM HOME!!:)

    0
    MakersAtMicrosoft
    MakersAtMicrosoft

    Reply 11 months ago

    hah!! just saw this and yes, we support gifting of mute buttons :)

    0
    AntonioB127
    AntonioB127

    1 year ago

    Hi!
    The links to code (repository & raw) seems to be broken.
    Can you fix it?

    0
    AntonioB127
    AntonioB127

    Reply 1 year ago

    Nop. For me doesn't work. Error 404.
    It may be the repo is private?

    0
    MakersAtMicrosoft
    MakersAtMicrosoft

    Reply 1 year ago

    Ah, foo, still? I made it public, might take a lil' time to propagate. It's showing as public on my end but LMK if you're still unable to access and I'll just copy and paste the code in a message

    0
    Nikolaos Babetas
    Nikolaos Babetas

    1 year ago on Step 3

    Great implementation! I also wanted to let you know that the two links for the code don't work.

    0
    randofo
    randofo

    1 year ago

    Nice idea. Next up, Zoom mute button. :)

    0
    MakersAtMicrosoft
    MakersAtMicrosoft

    Reply 1 year ago

    Thank you! Yes, mute buttons are clutch for any video call program! Since this project uses a keyboard "hot key", it is likely easily adaptable for Zoom :)