How can I best clean, replace or lubricate this fairly well sealed digital rotary mechanical encoder?

Rotary encoder volume knob from Cambridge Soundworks Radio/CD Player

The equipment operates, but the encoder is super finicky, often encoding in the wrong direction when spun. With patience it's possible to get it to the right value, but quite tedious.

The equipment is about 15 years old, and the encoder has been unreliable for the last year or so.

Question 1: if it can be replaced, how would I find a pin for pin match?

Question 2: if it can't be replaced, what's the best way to clean or re-lubricate it? It has a crack, I can probably flood some chemical junk into it.

enter image description here

Update: I opened the cleats:

Rotary encoder digital repair replacement lubrication

  • 2
    \$\begingroup\$ Just out of curiosity, is this a Yamaha digital audio mixer? \$\endgroup\$
    – user156429
    Commented Jun 16, 2019 at 20:43
  • \$\begingroup\$ It looks like it's soldered in place - do you know how to use a soldering iron? \$\endgroup\$
    – nick012000
    Commented Jun 17, 2019 at 6:39
  • \$\begingroup\$ Yes, I can solder. This only has 5 contacts (including the ground lug). The existing solder contacts look solid, but I should first try to freshen them up, in case there are micro-cracks in the solder from use. \$\endgroup\$
    – Bryce
    Commented Jun 17, 2019 at 15:05
  • \$\begingroup\$ You should try cleaning it before replacing it. Better for the environment! \$\endgroup\$
    – hekete
    Commented Jun 18, 2019 at 6:55

4 Answers 4


By the limited information you give and the (not too great) photo, it seems it is a mechanical encoder, not an optical one.

You don't give any information about the equipment it is mounted on, but 15 years of continuous operation may be quite a lot for a mechanical encoder. Probably the contacts have worn out and there is no reliable way to fix them using any sort of chemical.

Best course of action is to replace it with a new one. The cheapest crappy encoder you can buy on ebay (~1$) could work better than your worn-out encoder, at least for a while.

Of course that is not a suggestion for a long-term fix. If you care about the equipment, you could probably find a suitable replacement on any major component distributor (digikey for example, or RS components), for a couple of dollars.

Just for example, I just did a quick search on digikey trying to find something vaguely similar: BOURNS PEC11L Series - 11 mm Low Profile Encoder (datasheet).

As you can see from this datasheet excerpt (emphasis mine):

enter image description here

the expected minimum encoder life is 100k full rotations. Assuming (optimistically) that the average life is twofold (200k rotations) and that the shaft is rotated on average 50 times a day (not uncommon in a control console in a work environment) you get 4000 days average life, i.e. about 11 years. Therefore what I initially said about your encoder being at its end of life, is perfectly reasonable.

All this assuming it is not some specialized high-reliability encoder.

If you want better advice post more information on that encoder (model number, better photos, info about the equipment, etc.).

  • \$\begingroup\$ The knob has been rotated no more than ten times a day. The encoder unfortunately has no visible maker mark or part number. I could measure it however. \$\endgroup\$
    – Bryce
    Commented Jun 17, 2019 at 15:07
  • \$\begingroup\$ This, of course, doesn't say what the failure will be, just that it is expected to fail. There could certainly be a failure mode, maybe even a common one, where contact cleaning or blowing out detritus fixes it. Not that replacement isn't the right answer (it is), but a failure expected by spec doesn't nullify the question. \$\endgroup\$ Commented Jun 17, 2019 at 15:34
  • \$\begingroup\$ It's worth double checking what the pin configuration is on the existing one. I don't know if there's a standard but it would certainly not work if you got one with a different pinout! \$\endgroup\$
    – Hearth
    Commented Jun 17, 2019 at 16:28

The best way to clean it is replace it. That encoder has a de facto-standard design, and replacements are cheap and readily available (I've got a box with dozens of them, from multiple manufacturers). While it is possible to disassemble and clean one, doing that without first desoldering it from the board would be tricky and could easily result in accidental damage to the board. (Basically, you'd use needle-nose pliers to squeeze the two split-and-flared flanges shown in the photo, as well as the ones on the other side, then lift off the top half from the blue housing.)

If you're reasonably adept with a soldering iron and with a desoldering braid and/or solder sucker, you should be able to replace it yourself without too much difficulty, though an iron under 40 watts or so may have trouble desoldering the anchors on the side. Otherwise, any electronic repair shop can do it for you easily.

  • \$\begingroup\$ Electronics repair shops hardly exist any more. The encoder unfortunately has no visible maker mark or part number. It's clearly a three terminal device. I have a full electronics shop, and a high power iron. \$\endgroup\$
    – Bryce
    Commented Jun 17, 2019 at 15:10
  • \$\begingroup\$ Then go for it :) These things really differ only by number of detents, shaft shape/length, and presence/absence of a push-button (though of course you can just clip the extra pins off if your spare has a push-button). Ten bucks says you can find a drop-in replacement here as well as here. \$\endgroup\$
    – Sneftel
    Commented Jun 17, 2019 at 15:38
  • \$\begingroup\$ Added footprint to question. \$\endgroup\$
    – Bryce
    Commented Jun 17, 2019 at 21:33
  • \$\begingroup\$ "The best way to clean it is replace it. That encoder has a de facto-standard design, and replacements are cheap and readily available (I've got a box with dozens of them, from multiple manufacturers)." Can you elaborate on that? I have a couple of Teac all in one shelf units with bad volume encoders, I have no issue with a shaft that sticks out a little further, but any information on pin-outs standards, voltage or resistance values, vendors, etc. would be greatly appreciated as I doubt my ability to find my exact replacement part \$\endgroup\$ Commented Mar 16, 2021 at 20:49
  • \$\begingroup\$ @johnpatrickfoley The encoder will be read by a digital input, so voltage/resistance/whatever are unimportant, and the pinout will be the obvious one, with the common ground in the middle and the two encoder taps on the sides. Seriously, if the footprint is the same, the part will be the same. \$\endgroup\$
    – Sneftel
    Commented Mar 16, 2021 at 21:53

enter image description here

Figure 1. Open the cleats.

I have successfully cleaned an encoder in an audio amplifier by squeezing the cleats on one side enough enable me to create a crack through which I squirted some switch / contact cleaner. (The cans with the straw attached help direct the spray.) Then the switch should be pressed together and the cleats spread once again.

The technique avoids the risk of parts flying off in various directions, not to mention the trouble of finding a suitable replacement, de-soldering, etc.

  • \$\begingroup\$ I opened the cleats, see above for the pic. \$\endgroup\$
    – Bryce
    Commented Jun 18, 2019 at 4:07
  • \$\begingroup\$ It's surprisingly dirty. \$\endgroup\$
    – Transistor
    Commented Jun 18, 2019 at 7:39

I simply open it up completely (no desoldering is necessary), then with a small screwdriver scrape up any clean lubricating grease to save for reapplication after cleaning

Then use alcohol and brush to clean away any left over grease on the rotating disk and the small wipers, but be careful, the wipers are very fragile. Then take a pink eraser and clean the disk and tiny wiper pads, this will shine them right up, reclean with alcohol, then re-apply the saved grease.

This step is optional: very slightly bend the wiper contacts to give slightly more mechanical pressure. Reassemble and test. I have fixed countless mechanical encoders this way. Good luck.

P.S. This works on pots too, if the pot or encoder is very worn, you can carefully shift the wiper contacts left or right to contact a new section, this works wonders, almost new again.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.