2

Without using Occidentalis (which might not even work that way), is there any way to get the current angle of a servo? I know it has a potentiometer, I just have no idea how to go about getting that info from it (if you can at all)... I am wanting to hook this up to a deadbolt and have an app that you can control it with, but if you manually unlock it with a key, I would like it to update the app saying that the door is now unlocked.

  • 2
    A traditional RC servo does not provide any position reporting outside of the case. With analysis of the control circuit inside you could potentially interpret the utilized signals, or you could replace the control circuit with an MCU & H-Bridge replacement that talks bidirectional I2C or something like that instead of PWM. However, it might be simplest of all to add an additional switch or magnetic/optical sensor to tell you the state of the latch. – Chris Stratton Nov 28 '15 at 7:01
  • 1
    @ChrisStratton Why not make that an answer? – joan Nov 28 '15 at 9:45
  • Yeah, Chris, please add this as an answer so I can mark it? – alwade24 Dec 4 '15 at 1:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.