DIY Steering Wheel for a robot: Difference between revisions
From wikiluntti
Line 5: | Line 5: | ||
USB HID (human interface device class) | USB HID (human interface device class) | ||
Arduino Joystick Library 2.0 | |||
''' Some Libraries''' | |||
* Arduino Joystick Library 2.0 | |||
** Arduino Leonardo or Micro? Will not work with Uno. | |||
** X, Y, and/or Z Axis (up to 16-bit precision); X, Y, and/or Z Axis Rotation (up to 16-bit precision), etc | |||
* UnoJoy https://github.com/AlanChatham/UnoJoy https://www.youtube.com/watch?v=Rq2QivBzshs | |||
** DFU mode (Device Firmware Update). | |||
Revision as of 08:40, 29 April 2025
Introduction
Game Controller
USB HID (human interface device class)
Some Libraries
- Arduino Joystick Library 2.0
- Arduino Leonardo or Micro? Will not work with Uno.
- X, Y, and/or Z Axis (up to 16-bit precision); X, Y, and/or Z Axis Rotation (up to 16-bit precision), etc
- UnoJoy https://github.com/AlanChatham/UnoJoy https://www.youtube.com/watch?v=Rq2QivBzshs
- DFU mode (Device Firmware Update).
Simple keyboard method
#include <Keyboard.h>
Press buttons?
- Brake: the code presses 'down arrow'
- Left arrow
- Right arrow
- etc
Components
Optical rotary pulse encoder; 600 ppr (pulse per revolution), 100 ppr.
Steering ratio
The inner & outer wheel to turn 35 and 30 degrees respectively
Steering ratio
- motorcycles and bicycles 1:1
- most passenger cars between 12 and 20:1
- F1 between 180deg to 270deg to a turn??
Angle
- Drift cars are 900 and 1080 I believe. (Reddit)
- 900 is pretty much around what on a real car.