TinyKnob is a rotary encoder with a USB interface based on the ATtiny45/85 and the V-USB software-only implementation of USB1.1 devices on AVR microcontrollers (https://www.obdev.at/products/vusb/index.html). The example code implements a volume control knob for PCs which works without installing any driver by acting like a generic HID device.
- Make sure you have installed avrdude.
- Connect your programmer to your PC and to the ICSP header on the board.
- Open a terminal.
- Navigate to the folder with the hex-file (software/binaries).
- Execute the following command (if necessary replace "t85" with your chip and "usbasp" with the programmer you use):
avrdude -c usbasp -p t85 -U flash:w:tinyknob.hex -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m
- Make sure you have installed avr-gcc toolchain and avrdude.
- Connect your programmer to your PC and to the ICSP header on the board.
- Open a terminal.
- Navigate to the folder with the makefile (software/sources).
- Run
DEVICE=attiny85 PROGRMR=usbasp make install
to compile, burn the fuses and upload the firmware (change DEVICE and PROGRMR accordingly).
This work is licensed under Creative Commons Attribution-ShareAlike 3.0 Unported License. (http://creativecommons.org/licenses/by-sa/3.0/)