# Synchronize two encoders

**URL:** <https://forum.universal-robots.com/t/synchronize-two-encoders/28879>\
**Category:** Technical Questions\
**Created:** [June 7, 2023, 11:12am UTC](https://forum.universal-robots.com/t/synchronize-two-encoders/28879 "2023-06-07T11:12:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PMonforte](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@PMonforte](https://forum.universal-robots.com/u/PMonforte)\
**Post date:** [June 7, 2023, 11:12am UTC](https://forum.universal-robots.com/t/synchronize-two-encoders/28879/1 "2023-06-07T11:12:59Z")

</div>

Greetings URCommunity,  
In my application, I have two identical encoders. One of them is connected to the robot, the other to a camera. I would like to know if it is possible to synchronize them. For instance, the one connected to the robot has a different tick count than the one of the camera and I would like them to be the same. I can’t change the value of the camera one, so I was hoping I could switch the one of the robot

For example,  
The encoder connected to the camera has a current tick count of 1000 and the robot has 3000. I want them to be always equal  
Is it possible to synchronize them?  
Best regards,  
Pedro Monforte

---

<div class="post-metadata">

**Author:** ![chrispocock](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@chrispocock](https://forum.universal-robots.com/u/chrispocock)\
**Post date:** [June 14, 2023, 11:08pm UTC](https://forum.universal-robots.com/t/synchronize-two-encoders/28879/2 "2023-06-14T23:08:13Z")

</div>

I’m not entirely sure what you want to do.

Can’t you just write something in script to divide 3 the count from the second encoder?
