Summary: The author built a tiny Reddit Upvote/Downvote button using a Teensy USB-capable development board, a 3D-printed enclosure with arrow keys, and custom Teensyduino code to send keystrokes (CTRL+SHIFT+A and CTRL+SHIFT+Z) that trigger Reddit Enhancement Suite voting shortcuts. STL and Sketchup files were shared on Thingiverse.
- Teensy development board
- Makerspace/3D-printed project box enclosure (STL/Sketchup files)
- 3D-printed up arrow (red plastic)
- 3D-printed down arrow (blue plastic or colored with Sharpie)
- Push buttons (for upvote and downvote)
- USB cable (to connect Teensy to computer)
- Computer with Teensyduino / Arduino IDE installed
Reddit is a website that has in the past few months taken over my life. Not unlike Digg it aggregates all the best stuff on the internet and makes it easy to consume. The way posts are sorted or brought to the front page on Reddit has to do with the number of Upvotes and Downvotes a post gets over time. Now while these voting options are usually toggled by clicking arrow icons on the webpage they can also be controlled using keystrokes after installing the Reddit Enhancement Suite. After I found this, all the stars aligned for my project.
Step 1: Makerbotting a project box
Step 2: Circuit design and Teensy programming
Programming the keyboard functions on the Teensy is surprisingly simple. There are great instructions on the Teensy development board page for sending keystrokes to your computer and because the board identifies itself as a USB keyboard it works when plugged into a PC or Mac with no additional software! One note: to use the USB keyboard mode you must use the “Teensyduino” software which allows you to program the Teensy using the Arduino programming language and IDE rather than the native Teensy language. I’ve included the code in full at the bottom of the post, but to give a brief overview, when the upvote button is pressed the key combination “CTRL + SHIFT + A” is sent to the computer over USB, likewise if downvote is pressed “CTRL + SHIFT + Z” is sent to the computer. I defined these keystrokes in the Reddit Enhancement Suite manually because they seemed like a key combination that wouldn’t conflict with other programs (default is “a” and “z”).
For more detail: Reddit Controller, USB Upvote/Downvote button
- How does the device send upvote and downvote commands?
The Teensy identifies as a USB keyboard and sends keystrokes: CTRL + SHIFT + A for upvote and CTRL + SHIFT + Z for downvote. - Can the Teensy work on both PC and Mac?
Yes; because the board identifies itself as a USB keyboard it works when plugged into a PC or Mac with no additional software. - What software is required to program the Teensy for this project?
You must use Teensyduino, which allows programming the Teensy using the Arduino programming language and IDE. - Do I need Reddit Enhancement Suite for the keystrokes to work?
Yes; the keystrokes correspond to shortcuts you define in the Reddit Enhancement Suite. - How were the enclosure and buttons made?
The enclosure and arrow keys were 3D-printed from STL/Sketchup files uploaded to Thingiverse. - Are the arrow colors important?
The upvote arrow was printed in red and the downvote arrow in blue or colored with a Sharpie for visual distinction. - Can the project box size be adjusted?
Yes; the author iterated designs and scaled the box to just fit the components before printing. - What key choices were used and why?
CTRL + SHIFT + A and CTRL + SHIFT + Z were chosen to avoid conflicts with other programs instead of the default a and z.

