# Optical encoder

**URL:** <https://forum.xod.io/t/optical-encoder/2675>\
**Category:** Uncategorized\
**Created:** [October 8, 2019, 8:15am UTC](https://forum.xod.io/t/optical-encoder/2675 "2019-10-08T08:15:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![john-barry](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@john-barry](https://forum.xod.io/u/john-barry)\
**Post date:** [October 8, 2019, 8:15am UTC](https://forum.xod.io/t/optical-encoder/2675/1 "2019-10-08T08:15:26Z")

</div>

Hi,  
I am building a rig to measure electrical cable.  
So far i have an incremental optical encoder with 3 output signal wires with a Arduino UNO.  
With only two wires (signal A and B) connected i have a serial output using the Arduino IDE but i want to use this in XOD to be able to manipulate the data and display on a simple LCD screen.  
I am still new to XOD so could anyone point me to a node/library for this or how i can import code to XOD?

---

<div class="post-metadata">

**Author:** ![gabbapeople](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/gabbapeople/32/1517_2.png) [@gabbapeople](https://forum.xod.io/u/gabbapeople)\
**Post date:** [October 8, 2019, 8:29am UTC](https://forum.xod.io/t/optical-encoder/2675/2 "2019-10-08T08:29:31Z")

</div>

Hey [john-barry](https://forum.xod.io/u/john-barry) !  
Checkout the [https://xod.io/libs/nkrkv/encoder/](https://xod.io/libs/nkrkv/encoder/) library.  
This library contains base nodes for any incremental encoders, both magnetic and optical.

---

<div class="post-metadata">

**Author:** ![john-barry](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@john-barry](https://forum.xod.io/u/john-barry)\
**Post date:** [October 8, 2019, 9:04am UTC](https://forum.xod.io/t/optical-encoder/2675/3 "2019-10-08T09:04:49Z")

</div>

That was an easy solution  
Somehow it says library not found when i’m signed in  
But anyways thanks for the help!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [October 10, 2019, 9:04am UTC](https://forum.xod.io/t/optical-encoder/2675/4 "2019-10-10T09:04:57Z")

</div>

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