- #36
Ouabache
Science Advisor
Homework Helper
- 1,346
- 8
I'll just toss out some ideas as if I was in your design group and we were brain storming a bit.. I suspect you are using a microcontroller. How about programming it with a "lookup table" with each "binary input" equivalent to a "unit of angular displacement" (e.g. 1deg, 5deg.) Since you can count positive and negative numbers in binary, maybe you can use positive binary to translate 0 to +90deg and negative binary for -1 to -90 deg.
Berkeman had a suggestion of using limit switches at the ends of your 180 degrees of travel. I am guessing he means some sort of conductive pin to catch the rotor at the endpoints. With a conductive pin, it could trigger a switch (limit switch) to let your microcontroller know (closed circuit = voltage or logic level), that it has reached a boundary. If you used limit switches, all you would need is a counter to increment (step the motor), then when it reaches a limit switch, the counter could change to decrement, then when it reaches next switch, change to increment again, and so on..
I am wondering how you will mount your transducers & stepper motor (see my post #33 this thread). I am trying to get a 3-dimensional image of your setup..
Berkeman had a suggestion of using limit switches at the ends of your 180 degrees of travel. I am guessing he means some sort of conductive pin to catch the rotor at the endpoints. With a conductive pin, it could trigger a switch (limit switch) to let your microcontroller know (closed circuit = voltage or logic level), that it has reached a boundary. If you used limit switches, all you would need is a counter to increment (step the motor), then when it reaches a limit switch, the counter could change to decrement, then when it reaches next switch, change to increment again, and so on..
I am wondering how you will mount your transducers & stepper motor (see my post #33 this thread). I am trying to get a 3-dimensional image of your setup..
Last edited: