# Rotary encoder to modify value

**URL:** <https://community.ecumaster.com/t/rotary-encoder-to-modify-value/3672>\
**Category:** ADU\
**Created:** [May 10, 2025, 10:37am UTC](https://community.ecumaster.com/t/rotary-encoder-to-modify-value/3672 "2025-05-10T10:37:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnutz2](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@gnutz2](https://community.ecumaster.com/u/gnutz2)\
**Post date:** [May 10, 2025, 10:37am UTC](https://community.ecumaster.com/t/rotary-encoder-to-modify-value/3672/1 "2025-05-10T10:37:33Z")

</div>

Good day everyone 😀

I’m installing a blink marine power track CAN keypad to work with ADU, someone has kindly sent me a comprehensive project file to work with but I’m trying to figure out using the rotary encoder to manipulate a value.

So rotary has direction on 1 bit and tick counter on2 bytes, this is all received ok but I need to create a value eg, 0-255, traction control level, and modify the value with direction and count.

Hope that makes sense

 ![Screenshot_20250510-112427](https://europe1.discourse-cdn.com/flex013/uploads/ecumaster/original/2X/e/e9cbee864e5fc60078ebc28da383f9cf6564b260.jpeg)

---

<div class="post-metadata">

**Author:** ![gnutz2](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@gnutz2](https://community.ecumaster.com/u/gnutz2)\
**Post date:** [May 16, 2025, 5:12am UTC](https://community.ecumaster.com/t/rotary-encoder-to-modify-value/3672/2 "2025-05-16T05:12:17Z")

</div>

We ended up using a switch with 8 states, the encoder triggers a function which changes the state of the switch up or down.
