• Em promoção!
  • -0,60 €

Matriz De Botões De Pressão 4x4

:LCD03012
3,50 €
2,90 € Poupe 0,60 €
preço com IVA incluído

Teclado com 16 botões de pressão com ligações em matriz 4x4.

Neste link pode encontrar um bom tutorial de como usar um teclado do tipo matriz com o Arduino

Quantidade
Últimos artigos em stock

DESCRIÇÃO EM PORTUGUÊS BREVEMENTE DISPONÍVEL

Se tiver alguma dúvida neste produto não hesite em contactar-nos.

*Atenção: as imagens são meramente ilustrativas.

How a 4x4 matrix keypad works:

The Arduino detects which button is pressed by detecting the row and column pin that’s connected to the button.

This happens in four steps:

1. First, when no buttons are pressed, all of the column pins are held HIGH, and all of the row pins are held LOW:

Arduino Keypad Tutorial - How the Keypad Works STEP 1

2. When a button is pressed, the column pin is pulled LOW since the current from the HIGH column flows to the LOW row pin:

Arduino Keypad Tutorial - How the Keypad Works STEP 2

3. The Arduino now knows which column the button is in, so now it just needs to find the row the button is in. It does this by switching each one of the row pins HIGH, and at the same time reading all of the column pins to detect which column pin returns to HIGH:

Arduino Keypad Tutorial - How the Keypad Works STEP 3

4. When the column pin goes HIGH again, the Arduino has found the row pin that is connected to the button:

Arduino Keypad Tutorial - How the Keypad Works STEP 4

From the diagram above, you can see that the combination of row 2 and column 2 could only mean that the number 5 button was pressed.

LCD03012

Também poderá gostar