Hi i have a project based on a prize wheel and as many buttons than slots the prize wheel has(8 slots equal 8 buttons) and i want to be able to move an specific wheel slot to the arrow pressing the corresponding button to that slot (press button 3 move slot 3 and press number 7 after, move from 3 to 7)
I know i can achieve that with a hall sensor and one magnet in slot one as a home trigger and calculate from that how many steps the wheel have to move, for example my wheel have 8 slots and betwen slots are 10 steps if the wheel is home when i press 4 the motor move 40 steps right, if I press 6 only add 20 steps more and if i want from 6 to to 3 three move 30 steps opposite direction thats easy to do it but i have a main issue what can i do if the wheel doesn't are in the last position i press because someone moveit manually example last position was 8 but someone move it manually to 3rd slot, when i press 7 going to move 10 steps but instead of point me slot number 7 going to point 2nd slot how i can fix that
Thanks and sorry for any mistake english is my second language
if someone can modify manually the position of the wheel, then the code needs to find out where the wheel was in order to go to the right position.
This could be done by spinning in one direction until you find the home position (you need a sensor for that like your magnet) and then once you know exactly where you are, then it's easy to go to the target position.
having more than one magnet could minimise the spinning to find a reference point.
@cuasitos - You should not start new topics with the same subject.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.