Skip to content

Arduino sketch for using an encoder as a USB scroll wheel

Notifications You must be signed in to change notification settings

neuromotion/dial-scroll-wheel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dial-scroll-wheel

Turn a dial to scroll up and down, and press a button to type a single character.

Required Hardware

  • Teensy LC (Teensy 3.2 should work also)

  • rotary encoder with pushbutton, like this one

  • micro USB cable

Loading firmware

You don't need to install anything to use the dial as a scroll wheel / keyboard. To load new firmware onto the teensy, you will need to:

  1. Install the Arduino IDE. You must install the offline IDE version, instead of using the online "Arduino Create" tool.

  2. Install the Teensyduino add-on to the Arduino IDE, to support the Teensy LC board. This should install the required teensy Encoder and Bounce libraries, as well.

  3. Connect the device to the computer with a USB cable, if it wasn't already plugged in.

  4. Launch the Arduino IDE.

  5. Open the file dial-scroll-wheel.ino.

  6. In the menu bar, select Tools -> Board: -> "Teensy LC".

  7. Select Tools -> USB Type: -> "Serial + Keyboard + Mouse + Joystick".

  8. Go to Tools -> Port and select which port the device is connected to. The port name will vary, but might look something like /dev/cu.usbmodem* on a Mac, or /dev/ttyACM* in linux. You can check by unplugging the device and seeing which entry in the port list disappears.

  9. Compile and load the firmware by clicking the round arrow button, or by selecting Sketch -> Upload in the menu bar. Look for messages printed in the bottom part of the window. If the upload was successful, you can now use the reconfigured device.

About

Arduino sketch for using an encoder as a USB scroll wheel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages