Uploaded August 2021 | Updated September 2026, 2 weeks ago
Newer project: youtu.be/dtCh_3572yU
ATTiny USB support isn’t as good as it was and not all computers work so well with emulated USB.
PCBWay Supports High Precision Advanced PCBs: pcbway.com
MAME supports games that use the LS30 mechanical arcade Rotary Joystick, but it uses just 2 keyboard keys - clockwise and counter clockwise increments.
The original arcade joystick has 12 rotary switch positions, so to use the joystick with MAME, the 12 switches need to be monitored and converted into clockwise/counter clockwise signals.
This project uses an ATTiny85 configured similar to a Digispark module running the micronucleus bootloader to enable USB HID keyboard support.
When the joystick is rotated, a keypress is sent to indicate clockwise or counter clockwise rotation, which MAME can use.
Sketch/schematic: github.com/GadgetReboot/RotaryUSB
Recommended to use the newer project instead youtu.be/dtCh_3572yU
Previous videos that are applicable:
More about Rotary Joysticks youtu.be/iELbrBbQspM
Programming micronucleus bootloader: youtu.be/RlscDz5JCcI
Programming fuses: youtu.be/EKmn9WPrbVk
Arduino as ISP programmer: youtu.be/7Rz9A9VbDx4
avrdude command line used in a Mac terminal to set ATTiny fuses to disable the reset pin using an Arduino as ISP programmer hooked up to ATTiny85 SPI pins:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -pattiny85 -c avrisp -P/dev/cu.wchusbserialfa130 -b19200 -U hfuse:w:0x5d:m
More on using AVRDude to change ATTiny85 reset pin thetoivonen.blogspot.com/2015/12/fixing-pin-p5-or-6-on-digispark-clones.html
If you'd like to support the channel, you can:
Support me on Patreon: patreon.com/gadgetreboot
Shop through my affiliate links!
Banggood banggood.com/custlink/3vKYLANH8N
Aliexpress https://s.click.aliexpress.com/e/_AFeHwB
Amazon.com amazon.com/?&_encoding=UTF8&tag=gadgetreboo05-20&linkCode=ur2&linkId=952875a3564e2204d1786f94b9e1a8d3&camp=1789&creative=9325
Amazon.ca amazon.ca/?&_encoding=UTF8&tag=gadgetreboot-20&linkCode=ur2&linkId=70fa82315ac48f03342938bd4fb93535&camp=15121&creative=330641
Videos are mirrored at LBRY/Odysee: odysee.com/@GadgetReboot:4
#ElectronicsCreators
Newer project: youtu.be/dtCh_3572yU
ATTiny USB support isn’t as good as it was and not all computers work so well with emulated USB.
PCBWay Supports High Precision Advanced PCBs: pcbway.com
MAME supports games that use the LS30 mechanical arcade Rotary Joystick, but it uses just 2 keyboard keys - clockwise and counter clockwise increments.
The original arcade joystick has 12 rotary switch positions, so to use the joystick with MAME, the 12 switches need to be monitored and converted into clockwise/counter clockwise signals.
This project uses an ATTiny85 configured similar to a Digispark module running the micronucleus bootloader to enable USB HID keyboard support.
When the joystick is rotated, a keypress is sent to indicate clockwise or counter clockwise rotation, which MAME can use.
Sketch/schematic: github.com/GadgetReboot/RotaryUSB
Recommended to use the newer project instead youtu.be/dtCh_3572yU
Previous videos that are applicable:
More about Rotary Joysticks youtu.be/iELbrBbQspM
Programming micronucleus bootloader: youtu.be/RlscDz5JCcI
Programming fuses: youtu.be/EKmn9WPrbVk
Arduino as ISP programmer: youtu.be/7Rz9A9VbDx4
avrdude command line used in a Mac terminal to set ATTiny fuses to disable the reset pin using an Arduino as ISP programmer hooked up to ATTiny85 SPI pins:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -pattiny85 -c avrisp -P/dev/cu.wchusbserialfa130 -b19200 -U hfuse:w:0x5d:m
More on using AVRDude to change ATTiny85 reset pin thetoivonen.blogspot.com/2015/12/fixing-pin-p5-or-6-on-digispark-clones.html
If you'd like to support the channel, you can:
Support me on Patreon: patreon.com/gadgetreboot
Shop through my affiliate links!
Banggood banggood.com/custlink/3vKYLANH8N
Aliexpress https://s.click.aliexpress.com/e/_AFeHwB
Amazon.com amazon.com/?&_encoding=UTF8&tag=gadgetreboo05-20&linkCode=ur2&linkId=952875a3564e2204d1786f94b9e1a8d3&camp=1789&creative=9325
Amazon.ca amazon.ca/?&_encoding=UTF8&tag=gadgetreboot-20&linkCode=ur2&linkId=70fa82315ac48f03342938bd4fb93535&camp=15121&creative=330641
Videos are mirrored at LBRY/Odysee: odysee.com/@GadgetReboot:4
#ElectronicsCreators