Check the 35 other Arduino tutorials

#29 · Use only 1 pin to read 4 buttons on the KC11B04 4x1 AD keypad


A KC11B04 analog AD 4x1 keypad only needs a single analog pin to readout 4 different buttons. The big advantage is that you save 3 pins, which you can now use for other components.

In this video I describe how to read the analog AD KC11B04 4x1 keypad and how this keypad uses resistors to split the different buttons. The keypad is called an AD-keypad since it has a single AD-pin (Analog Data).

#29 · Use only 1 pin to read 4 buttons on the KC11B04 4x1 AD keypad schakelschema

Tutorial goals

  • Reading an analog 4x1 AD keypad
  • Using resistors to determine button pressed

Components needed

  • 1× Arduino
  • 3× Jumper wire (male-female)
  • 1× KC11B04 4x1 analog AD keypad

Bas van Dijk

About Bas on Tech


My name is Bas van Dijk, entrepreneur, software developer and maker. With Bas on Tech I share video tutorials with a wide variety of tech subjects i.e. Arduino and 3D printing.

Years ago, I bought my first Arduino with one goal: show text on an LCD as soon as possible. It took me many Google searches and digging through various resources, but I finally managed to make it work. I was over the moon by something as simple as an LCD with some text.

With Bas on Tech I want to share my knowledge so others can experience this happiness as well. I've chosen to make short, yet powerful YouTube videos with a the same structure and one subject per video. Each video is accompanied by the source code and a shopping list.