I just did a little more testing and found that the photodiode reciever has a ramp up and a ramp down on the voltage. If turned to fast the voltage stays high. I do not think it is as easy as on/off pulses. That could explain the eratic behavior. If this is correct then I need to measure freq along with the change right? Or am I going in the wrong direction.
I am looking at another alternative. A pair of mems 360deg inclinometers with spi output. Here:
http://www.analog.com/en/prod/0%2C28...6203%2C00.html
I ordered a couple of the pcb samples
I love samples
I have a couple of 16f876 lying around and they have spi.
Bookmarks