I am planing on using the encoder from a computer mouse
Old days mouse encoders are not suitable for your application, since they have very low resolution. they will have no more than 48 pulses per turn. Additionaly you will need two channels so that you will control also direction (I am sure you will need to turn CW and CCW your antenna)
You will need also a reference pulse that will be activated when direction is at 0 degree, so you can adjust possible error in the count.
You will need at least a 360 pulses per turn, yielding a resolution of 1 degree (I am not an expert in directional antenna but one degree seems to me not enough). With an ecoder at 360 pulses per turn two channels, using a technique called "quadrature" You could achieve a resolution of 1/4 of degree, that can be doubled with a mechanical transmission yielding two turns of the encoder per turn of the antenna.
Pic mcu can handle the encoder input and display the direction of your antenna on a LCD.
The hardware is not very difficult, apart the shielding of the signal cables, the software is also not very difficult but not for a beginner for sure!
Al.
All progress began with an idea
Bookmarks