Rotary encoder to control digital potentiometer

Hi, After many hours (days) without success with either ide or xod, I would just like a simple node/code to enable me to connect a rotary encoder to and arduino and output to a digital potentiometer in this case a MCP4131. Once I can sort a basic programme , I can then further investigate the circuit and hopefully learn from and expand it.
Many thanks

This is not a trivial project, but libraries already exist, so it should be doable for a beginner. Go to Libraries — XOD and search for “encoder” to find several libraries that might work with your encoder. You can also search for “MCP4131”, but unfortunately there are no matches; however, if you search for “SPI”, there is a library that includes “MCP413X”, which is probably what you want. A google search for something like “arduino encoder” and “arduino MCP4131” will probably find links that will show you how to wire up your devices, even if the code in those links won’t help with XOD coding.

1 Like

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