Tag Archives: rotary encoder

Wiring of panel-mounted switches to the LCD Shield

IMG_7066_5855_edited-1

The front panel of my Valve EchoTapper with rotary encoder (on stripboard) and four push-button switches. The Up and Down buttons could actually be left out.

The Adafruit LCD Shield kit which is used in my automation project  is supplied with pcb mounting tactile switches but they are too short to protrude through the front panel with the lcd mounted in the enclosure. Switches with extra-long actuators can be purchased to replace them but I have concerns about the long-term reliability of these little tactile switches so I opted to replace them with off-board panel mounted switches when I built my Valve EchoTapper.

A couple of builders have asked for the details of how to wire them to the LCD Shield so I’ve prepared a document to show how I’ve done it.

Click here to download the instructions as a pdf file.

How to Wire up a Rotary Encoder

I’ve personally found that adding a simple rotary encoder to the EchoTapper makes selecting and editing patches a whole lot faster and more user friendly. The Automation firmware has supported the use of such an encoder for some time but I have been remiss in not documenting how it is connected.

Before I delve into the details let me explain what the rotary control does in the EchoTapper with Automation. It basically replaces the up, down and select buttons so you can simplify your control panel to just a knob for the rotary encoder (which acts as Up, Down and, by pressing the knob, Select) and two buttons, Mem and Edit.

I recommend labelling the encoder knob Patch/Adjust and Select (Push) as in this photo.Rotary+ControlsYou’ll notice that I have retained the Up and Down buttons (and these still work but you can omit them) and turning the Patch/Adjust knob clockwise and anticlockwise will act as ‘up’ and ‘down’ respectively. Pushing the knob acts as the ‘Select’ button.

This more recent build omits the redundant Up and Down buttons:Front panel controls

 

Patch/Adjust Knob Functions

  • Turn to flick through presets and User patches.
  • In Basic Editor mode, turn to adjust the ‘Prog’, ‘Wet/Dry’ and ‘Feedback’ values of the patch.
  • In Manual mode, turn to change the echo model.
  • In Advanced Editor mode, turn to change the echo model then Press to select it for the patch you are editing.
  • When editing the patch name (Advanced Editor) turn to change the current letter and press to advance to the next character position.

Wiring it to your Arduino

So how do you wire it up then? I’ve covered this in detail in a document which you can download here.

The recommended parts are:

Rotary Encoder: sparkfun Part #: COM-10982
Breakout board: sparkfun Part #: BOB-11722