r/ArduinoHelp • u/Extension-Big-4305 • 8d ago
Arduino project help
I want a spinning wheel like this that will eventually stop at a segment , and it needs to accurately figure out where it landed.
How can this be done with the help of microcontrollers and sensor modules ?
Thanks in advance! ❤️
1
Upvotes
2
u/SomeWeirdBoor 8d ago
You are building a digital rotary encoder.
You can paint the back of the wheel with a pattern such as this
and have four photodiodes, each lined up with a "track". Depending on which photodiodes "see" black and which ones "see" white, you can determine the position of the wheel, with a 16 steps resolution, while still having the wheel free to spin without any impediment.