Servo.read() returns -52

I called write(90) on a Servo object that was attached, but when I call read() on this object it returns -52. Any ideas why? I am using an Arduino Nano 33 BLE.

I don't have a physical Servo connected to the header, but I don't think that could be causing this issue.

Please post the sketch that you used

Not having a servo actually connected will make no difference but I assume that you have used the attach() function for the servo

What is the intention?

without your code it's hard to say.

Note that here is the servo code

on AVR

on NRF52

they are quite different, so if you don't have a bug in your code, may be there is some bug in the way readMicroseconds() works?

Yes, I did use the attach() function

I'm just trying to increment my servo position by 1every few milliseconds. I know that I can just use another variable for it, but I was hoping I could use Servo.read()

As previous requested, please post your sketch

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.