Hi; I want to connect magnetic encoder AS5145 to Arduino Uno 3. Can anyone here tell me which pins of encoder go where in Uno 3 ? I want to get the position/angle of the DC motor from AS5145. I attached the datasheet in My Files section. Please read. File name is AS5145 HSSU.pdf

Hi; I want to connect magnetic encoder AS5145 to Arduino Uno 3. Can anyone here tell me which pins of encoder go where in Uno 3 ? I want to get the position/angle of the DC motor from AS5145. I attached the datasheet in My Files section. Please read. File name is AS5145 HSSU.pdf

If you are talking about incremental mode, then you should connect Dtest1_A and Dtest1_B to IO2 and IO3 which correspond with the atmega328p external interrupts. Then you will to learn how the incremental mode works and implement an external interrupt oriented code. Other modes will need more fiddling, because of the reprogramming of the AS5145 chip which is quite a hard task when tackling these chips for the first time. Good luck!

If you are talking about incremental mode, then you should connect Dtest1_A and Dtest1_B to IO2 and IO3 which correspond with the atmega328p external interrupts. Then you will to learn how the incremental mode works and implement an external interrupt oriented code. Other modes will need more fiddling, because of the reprogramming of the AS5145 chip which is quite a hard task when tackling these chips for the first time. Good luck!