A simple PCB design to easily use a rotary encoder with a breadboard.
I've always found it inconvenient to try to fit a rotary encoder on a breadboard and find and use the correct resistors every time. I love rotary encoders, and I have used them in several projects such as The Sleep Sensei, a Valentine's Day gift, and the Theremax.
The PCB is pseudo two-layer as the rotary encoder is soldered on the top of the board.
The attached code is a simple "hello world" for the rotary encoder. It will print "Clockwise" or "Counter Clockwise" to the serial monitor for each twist of the knob, and it will adjust the brightness of an LED.