Cov txheej txheem:

Arduino Mechanical Keypad: 5 Kauj Ruam (nrog Duab)
Arduino Mechanical Keypad: 5 Kauj Ruam (nrog Duab)

Video: Arduino Mechanical Keypad: 5 Kauj Ruam (nrog Duab)

Video: Arduino Mechanical Keypad: 5 Kauj Ruam (nrog Duab)
Video: Easy DIY Macropad with Mechanical Switches 2024, Kaum ib hlis
Anonim
Arduino Mechanical Keypad
Arduino Mechanical Keypad
Arduino Mechanical Keypad
Arduino Mechanical Keypad

Kuv xav tau tus pin ncoo rau lwm qhov haujlwm, yog li kuv txiav txim siab los ua lub keyboard nrog cov khoom kuv muaj hauv tsev.

Khoom siv

  • 1 u Keycaps:

    • 1 rau 9
    • Rho tawm
  • 2 u Keycaps:

    • 0
    • NTUJ
  • 12 qhov tseem ceeb hloov pauv (Kuv siv Cherry yellows tab sis ib qho yuav Cherrys yuav ua haujlwm!)
  • Arduino Ib
  • 3D luam hloov phaj (saib Kauj Ruam 1)

Kauj Ruam 1: Tsim Tus Qauv Layout

Yog tias koj xav ua koj cov keyboard nrog cov lej loj ib yam li kuv, koj tuaj yeem rub tawm thiab 3D luam kuv cov ntawv STL ncaj qha, thiab hla mus rau Kauj Ruam 4!

Tab sis yog tias koj xav tsim koj tus kheej siv keyboard-layout-editor:

Rho tawm cov lus txais tos los ntawm txhaj rau nws thiab siv khawm Delete Key.

Txhawm rau kom tau txais cov txheej txheem koj xav tau, koj tuaj yeem hloov kho txhua tus yuam sij hauv qab Cov Khoom tab thiab teeb tsa Qhov Siab thiab Dav (1 = 1u, 1.5 = 1.5u thiab ntxiv rau). Koj tuaj yeem txav cov yuam sij ncig nrog koj cov yawm sij xub.

Thaum koj tus qauv tsim tiav, mus rau Raw Data tab thiab luam cov cai nyob ntawd.

Kauj ruam 2: Tsim SVG Cov Ntaub Ntawv

Koj yuav tig koj tus qauv rau hauv SVG cov ntaub ntawv nrog swilkb:

Muab tshuaj txhuam cov cai uas koj tau theej rau hauv Plate Layout

Xaiv koj hom hloov (Kuv qhia MX_t: 1 vim tias nws yuav yooj yim dua rau luam tawm)

Xaiv hom tshuaj tiv thaiv kab mob - Kuv xaiv Cherry + Costar {_s: 1} tab sis tsis tas yuav xav tau lossis siv cov tshuaj tiv thaiv kab mob.

Ntug padding yog loj npaum li cas ciam teb nyob ib ncig ntawm tag nrho koj cov yuam sij yuav yog (Kuv siv 10mm nyob ib puag ncig)

Tawm qhov seem ntawm cov kev xaiv tawm

Ntaus Kos Kuv CAD. Nyem rau khawm SVG, thiab khaws cov ntawv (koj yuav tsum tau CTRL-S lossis nyem rau ntawm daim duab).

Kauj Ruam 3: Tsim 3D Qauv

Tsim Qauv 3D
Tsim Qauv 3D

Nkag mus rau Tinkercad thiab pib qhov haujlwm tshiab.

Ntshuam koj cov ntaub ntawv SVG; tinkercad yuav cia li ntxiv tuab. Lub neej ntawd yog 10mm - txoj kev tuab heev rau cov phaj hloov! Teem lub tuab (lub xwm fab hauv nruab nrab) mus rau 3.00mm.

Export koj txoj haujlwm raws li STL thiab koj tau npaj rau 3D luam tawm!

Kauj Ruam 4: Solder and Assemble

Solder thiab Sib dhos
Solder thiab Sib dhos
Solder thiab Sib dhos
Solder thiab Sib dhos

Cov yuam sij tau txuas nrog kab thiab kab.

Kuv xub tsim lub Circuit nrog diodes los tiv thaiv qhov yuam kev yuam kev. Tus lej Arduino saib xyuas qhov ntawd, yog li txuag koj tus kheej qee qhov haujlwm thiab hla lub diodes!

Txuas kab rau tus pin 0, 1, 2

Txuas kab rau pins 10, 11, 12, 13

Kauj ruam 5: Code

Code
Code

Kuv siv Keypad lub tsev qiv ntawv uas koj yuav xav tau rub tawm

Mus rau Sketch -> Xws li Lub Tsev Qiv Ntawv -> Tswj Cov Tsev Qiv Ntawv.. thiab tshawb rau "Keypad" thiab nyem Nruab

Yog tias koj tsim koj tus kheej lub keyboard, hloov kho 2D array ntawm cov yuam sij.

Upload rau koj Arduino thiab koj ua tiav!

Pom zoo: