Hi
I've been struggling for quite some time with this encoder.
It behaves perfectly when attached to the standard SPI pins (11,12,13 + CS) on an Arduino UNO
https://github.com/ZoetropeLabs/AS5048A-Arduino/tree/master/lib/AS5048A
BUT when I attach it to the Teensy I get sporadic results, only returning a value about every 5th read. I have also tried the device with a separate 3.3V supply. I don't know what else to try.
thanks
John
I've been struggling for quite some time with this encoder.
It behaves perfectly when attached to the standard SPI pins (11,12,13 + CS) on an Arduino UNO
The library is located at#include "AS5048A.h"
AS5048A angleSensor(6);
void setup(){
delay (2000);
angleSensor.init();
Serial.begin(115200);
}
void loop()
{
delay(1000);
int val = angleSensor.getRawRotation();
float angle=val/45.511;
Serial.print("Got rotation of: ");
Serial.print(angle);
Serial.println(" degrees ");
}
https://github.com/ZoetropeLabs/AS5048A-Arduino/tree/master/lib/AS5048A
BUT when I attach it to the Teensy I get sporadic results, only returning a value about every 5th read. I have also tried the device with a separate 3.3V supply. I don't know what else to try.
thanks
John