Improved version of my older 6 speed gear shift, now with 8 speeds and better spring action. Instead of a simple rubber band and a PLA spring, it uses two cam elements for centering force and latch action. These were lessons learnt from my joystick project.
It uses an Arduino Micro for USB HID compliant gamepad support. No drivers required for your favourite game.
Video: https://youtu.be/fTknGo8n0Co
Source code: https://github.com/akakikuumeri/Akaki-H-shifter/blob/main/8_speed_shifter.ino
Also includes a simple analog handbrake. You need a generic potentiometer. Mount the pot in the base piece, then slip on the shaft and the grip, and tension it with a rubber band.
Connect the potentiometer to your arduino 5V, GND and A0. I used a detachable connector. The source code has a feature where if the pot is not connected at start-up, it ignores the signal.
Bill of Materials:
Arduino Pro Micro
PCB size microswitches, 5pcs
M3 nuts and bolts
Rubber bands
Desk clamps (I used two ebay microphone clamps)
For handbrake:
Generic rotational potentiometer (any resistance value will work)
Body.stl | 696.6KB | |
handbrake_base.stl | 126.4KB | |
handbrake_grip.stl | 210.0KB | |
handbrake_shaft.stl | 205.4KB | |
hinge.stl | 89.7KB | |
hinge_cam_-_glue_onto_hinge.stl | 76.9KB | |
h_shifter_2.step | 1.8MB | |
knob.stl | 834.0KB | |
left_right_cam_slider.stl | 19.0KB | |
shaft.stl | 130.6KB | |
up_down_rachet.stl | 27.0KB |