Close

Adding an LCD Display

A project log for Polling a Push Button Rotary Encoder

A push button rotary encoder is a neat input device for an Arduino. Unfortunately interfacing to it is not!

agp.cooperagp.cooper 01/26/2018 at 22:380 Comments

Adding an LCD Display

What is so hard? Just use the LCD library. Actually the problem is hooking it up in a semi-permanent way rather than the using the LCD library.

Issues

When I first layout the strip-board for the display adapter I first used the standard pin numbers as shown below:

Except I used D6 and D7 for "E" and "RS", and D8 to control the LED power.

The first problem was adding a rotary encoder. The first rotary encoder code used two rising level interrupts and on the Uno/Nano you have to use D2 and D3. So I shuffled all the LCD pin number down by three (D4 was to be used for the switch). Leaving D12, D13 (the LED) and the analog pins free.

As the design progressed I realised it would be nice to keep the interrupt and PWM pins free, and I decided to use polling as I had to deal with switch bounce anyway.

For contrast a 1k8 resistor to ground work okay but access for contrast adjustment was provided.

Here is my strip-board design:

Magic

Discussions