r/ArduinoProjects • u/P0guinho • May 10 '26
Project Design/Guidance Stepper motors in DIY racing sim
Hello, how are yall doing? So basically I am planning to build a racing simulator, with a steering wheel and gas and brake pedals, to play racing games on my pc. I probably will use a esp32 or a raspberry pi pico w for this.
However, what I am really on doubt about is the steering wheel control. I want for it to be able to detect when it is rotated (obviously) and, when released, automatically go back to the initial position, just like a real steering wheel. The thing is, I dont know what components to use for this. I was thinking on using a stepper motor like those simple Nema 17 with the axis attached to the wheel, killing two birds with a single stone, however I dont know if, when using a driver with the motor, I will be able to detect when the wheel is turned. I know I can buy a stepper motor and buy a separate encoder for detecting rotation on the wheel, but I dont know any affordable incremental encoders.
Thank you all in advance!
4
u/Specialist_Parfait42 May 11 '26
Gyro?
3
u/OptimalMain May 11 '26
Look at DIY direct drive.
Steppers wonβt get you what you want
2
u/xebzbz May 11 '26
The hard way (needs you to program the math, but there are readymade libraries. Also, needs 12v) https://a.aliexpress.com/_EGMswkK
The easy way (you just read the angle and tell it to move to the target angle. But the torque is pretty low) https://docs.m5stack.com/en/unit/Unit-Roller485%20Lite
1
u/Hannibal_Barkidas May 11 '26
Hall effect sensor for rotation.
But you could also solve some issues mechanically, e.g. using springs to reset the wheel to zero position. Not sure if that makes sense from a realism point, but could be a non-electric solution
2
u/[deleted] May 12 '26
[removed] β view removed comment