Customer:
I need help connecting a Dasduino Core ATmega 328 to a matrix keypad for a project. Could you explain the wiring or provide instructions?
Original message (Croatian)
Dobar dan, molio bih Vas da mi objasnite ili posaljete upute kako spojiti Dasduino Core ATmega 328 sa Matrix tipkovnicom koji mi je jedan od zadataka za završni rad.Materijal mi je preporučio Profesor [name removed] sa Vaše stranice.
Originally submitted via email support on 8 January 2025. Migrated to the forum for community visibility.
Soldered Support:
Use digital pins starting from D2 onwards (if you run out of pins, you can also use A0 and A1 as digital pins) as many as needed to connect the entire matrix. Connect it directly to the Dasduino on these selected pins without any additional components, then you can use this library: GitHub - Chris--A/Keypad: A version of the keypad library found in Wiring. This is just a copy made compatible with the Arduino IDE library manager. · GitHub
In this library you’ll find this example which is the simplest example: Keypad/examples/HelloKeypad/HelloKeypad.ino at master · Chris--A/Keypad · GitHub
As you can see, the number of rows and columns and the pins they are connected to are declared - here you must specify the pins on the Dasduino to which they are connected.
To upload code to the Dasduino you need the CH340 driver if you don’t already have it installed, and you need to install the Dasduino Board definitions: GitHub - SolderedElectronics/Dasduino-Board-Definitions-for-Arduino-IDE · GitHub
Original message (Croatian)
naravno, preporučujem da koristiš digitalne pinove od D2 nadalje (ako ponestane pinova, mogu se koristiti i A0, A1 pinovi kao digitalni) koliko god ih treba da se spoji cijeli matrix. On se spaja direktno na Dasduino na te izabrane pinove bez neke druge komponente i onda se može koristiti ova bilbioteka GitHub - Chris--A/Keypad: A version of the keypad library found in Wiring. This is just a copy made compatible with the Arduino IDE library manager. · GitHub
U ovoj biblioteci se nalazi ovaj example koji je najjednostavniji primjer: Keypad/examples/HelloKeypad/HelloKeypad.ino at master · Chris--A/Keypad · GitHub
Kao što možeš vidjeti, deklariran je broj redova i stupaca i pinova na koje su oni spojeni, tu se moraju navesti pinovi na Dasduinu na koje su spojeni.
Kako bi se kod mogao uploadati na dasduino potreban je CH340 driver ako ga već nemaš instaliranog i potrebno je instalirati Dasduino Board definitione: GitHub - SolderedElectronics/Dasduino-Board-Definitions-for-Arduino-IDE · GitHub
Nadam se da ovo pomaže 