Elegoo Nano Pinout3/22/2021
This library takes care of setting up the pins and polling the different columns and rows.You can use them to navigate menus, enter passwords, and control games and robots.
Elegoo Nano Pinout How To Find TheFirst Ill explain how the Arduino detects key presses, then Ill show you how to find the pinout of any keypad.Elegoo Nano Pinout Serial Monitor AndAs a simple example, Ill show you how to print out the key presses on the serial monitor and an LCD. Finally, Ill show you how to activate a 5V relay when a password is entered correctly. It covers all of the steps, diagrams, and code you need to get started. I like membrane style keypads because theyre thin and they also have adhesive backing so you can stick them to most flat surfaces. You can also get telephone style keypads that have thicker buttons if you like that style better. Even salvaged keypads from old telephones will work with the Arduino. A 3X4 keypad has 4 rows and 3 columns, and a 4X4 keypad has 4 rows and 4 columns. Each switch in a row is connected to the other switches in the row by a conductive trace underneath the pad. Each switch in a column is connected the same way one side of the switch is connected to all of the other switches in that column by a conductive trace. Each row and column is brought out to a single pin, for a total of 8 pins on a 4X4 keypad. 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. Youll need to build a test circuit by connecting an LED and a current limiting resistor to the Arduino (or any 5V power source) like this. Insert the ground (black) wire into the first pin on the left. Now insert the positive (red) wire into each one of the other pins. If the LED lights up at one of the pins, press and hold another button in row 1, then insert the positive wire into each one of the other pins again. If the LED lights up on a different pin, it means the ground wire is inserted into the row 1 pin. If none of the buttons in row 1 make the LED light up, the ground wire is not connected to row 1. Now move the ground wire over to the next pin, press a button in a different row, and repeat the process above until youve found the pin for each row. ![]() ![]() Now press down another button in the same row, and insert the positive wire into each one of the other pins. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |