Okay, so getting the dome motor running was a good step, but now I wanted to use an optical sensor to keep the position of my dome. That way we can auto-center the dome or animate the dome if that is something we would like to do. I tore apart an old PS/2 mouse and wired up the 5vDC, ground, clock and data wires - then I used this code and was able to get input from the mouse (X and Y - no mouse buttons). Next part will be to integrate this into the Padawan code and get a switch to work for knowing where dome center is located.
No comments:
Post a Comment