Ricky_nz said:
I wonder how expensive the SIN/COS sensors are compared to decent incremental encoders. The sin/cos inputs would be nice in that you don't have to look for an index pulse after a cold start. I know the incremental encoders seem to get really expensive at higher pulse counts. I have got a 512 pulse one here to play with but ideally more pulse counts would be useful for better accuracy of the angle.
The ones in my powerchair motor are just plain linear halls, Honeywell SS495A. They're about two bucks at Mouser.
http://www.mouser.com/Search/ProductDetail.aspx?qs=%2Ffq2y7sSKcKEzWT94S3drA%3D%3D
http://www.endless-sphere.com/forums/viewtopic.php?p=486263#p486263
They're triggered by a magnetic ring inside the central bolt-plate for the rotor, just outside the rotor end of the shaft. I presume this is where the pulse count comes from, by the number of "poles" in the magnetic ring?
Since PC case fans and often floppy drive motors, etc., also usually use a magnetic ring for position sensing, you could probably take one of those rings off of them and install it on your test motor, then just mount some linear halls in whatever experimentally-determined positions give you a SIN and COS output from that ring. I don't know how many "poles" each ring has; probably a lot less than you'd really want, but possibly enough to at least work with the feature idea.
There is also an EEPROM on there, which has a data and a clock line running out to the external connector, but I have no idea what it does yet; I needed to first find a way to spin the motor under easy control (which meant adding my own halls to it for an ebike controller) and then I can analyze the output of the SIN/COS halls plus the EEPROM lines, to figure out what it is supposed to do.
I can't read the p/n on the EEPROM itself; I only know that it is one becuase that's what the datasheet on the motor calls two of the pins on the motor connector, and they lead to that board.
So far I have only gotten to test that the SIN/COS halls do work and do output analog signals, and are correct relative to each other.
[youtube]xlEFwQAygYM[/youtube]
Adding my own halls gets me this timing:
between the phase (top) and the hall for that phase (bottom); I havent' yet tested the SIN/COS relative to either of those; perhaps tonite or tomorrow I might be able to.
I like the idea of just setting the offset in the controller firmware, vs having to physically align the sensor with the motor's phases, especially if it is possible for the controller to "auto learn" where it should offset to.