/zoommuter

Code for a little Bluefruit device that mutes Zoom and also sends keys from the keyboard

Primary LanguageC++

Bluetooth LE Zoom Muter

A physical button to mute Zoom on iPad OS and Windows. Also sends keys through the Serial Monitor.

Based on twstokes/labs/zoommuter. Check out the website. Keyboard functionality based on the Bluefruit example 'hidkeyboard'.

NOTE: The mute button requires the iPad to map Option --> Command key.

This works for both iOS and Windows. The iOS mute hotkey for Zoom is Command+Shift+A. The Windows mute hotkey for Zoom is Alt+A. This presses one after the other. The one for the wrong platform is simply ignored by Zoom.

To send keystrokes, open the Serial Monitor while the device is plugged in to your computer, and type the keys you want to send into the serial monitor.

Hardware

How it works

  1. Connect up a button to the MCU. This code uses pin A0 for digital input, defined by BUTTON_PIN. Here's an example.
  2. Pair the button using Bluetooth settings
  3. Tell iPad OS to remap Option to Command (General -> Hardware Keyboard -> Modifier Keys)
  4. Load up Zoom
  5. Hit the button!

Why it works

Since the BLE device acts as a keyboard, it's simply hitting shift + alt + a. See keycodes here.

Building

  1. Install PlatformIO
  2. Connect the MCU and run pio run -t upload

Sending keystrokes

pio device monitor, then type some stuff. Type \r for return.

Gotchas

  • Monitor the serial output to make sure things are OK
  • If Bluetooth starts acting flaky, reset the microcontroller using the Adafruit reset example.