Log in

View Full Version : Magnetic Rotary Sensor Programming


dungeonmonkey
19-02-2011, 14:21
I am having issues figuring out what the outputs are from our austria microsystems magnetic rotary sensor (AS5030). I have declared them as DigitalInputs but cannot figure out how to use them in the code. I tried debugging it by setting up printf statements and cout statements, but I could not get the console to come up properly, even after following many guides about it (has issues getting information about the target).

Alan Anderson
19-02-2011, 16:48
You can configure them to be analog ("filtered PWM"), straight PWM, Analog Sine-Cosine, and 4-wire SPI.

One thing they are not is a boolean digital input.

See the 2011 Sensor Manual, available from the Kit of Parts (http://www.usfirst.org/frc/kitofparts) web page.