Cov txheej txheem:

Arduino (AutoCAD) ShortCut Keyboard: 3 Kauj Ruam
Arduino (AutoCAD) ShortCut Keyboard: 3 Kauj Ruam
Anonim
Arduino (AutoCAD) ShortCut Keyboard
Arduino (AutoCAD) ShortCut Keyboard

Nyob zoo txhua tus, Tom qab tshawb xyuas ntau teev, thiab tsim ntau yam khoom txias, thaum kawg kuv tau ncig los tsim ib yam dab tsi. Yog li ntawd, npaj rau kuv thawj Kev Qhia!

Kuv siv sijhawm ntau ntawm kuv cov sijhawm, ob qho tib si zoo li kev lom zem, doodling ncig hauv AutoCAD. Rau lub hom phiaj ergonomic Kuv twb tau yuav Numpad keyboard ntxiv los siv nrog kuv sab tes laug, yog li kuv tsis tas yuav tso tus nas. Txawm li cas los xij, Kuv tseem yuav tsum tau txav kuv txhais tes los ntaus qee yam lus txib xws li "BOX" lossis "RECT". Thiab kom ua rau tej yam tsis zoo: Kuv kuj yuav tsum tau ntaus ENTER qhov tseem ceeb tom qab kuv ua li ntawd. Tsis tas yuav hais, Kuv pom qhov no "Tsiv koj txhais tes laug" -cov kev siv dag zog ntau dhau rau kuv nyiam.

Yog li nws yuav tsis zoo yog tias koj tuaj yeem tsoo tsuas yog 1 tus yuam sij, thiab tau txais lub thawv (lossis qee yam zoo ib yam) rov qab?

Tias yog vim li cas kuv tsim qhov zoo kawg nkaus Arduino siv ShortCut Keyboard.

Khoom siv:

Yam uas koj xav tau:

1x Arduino Micro-Yog tias koj nyob hauv lub tebchaws zoo nkauj ntawm Lub Netherlands koj tuaj yeem pom nws ntawm no:

2x 2, 54mm, 10Pin Screw Terminal -

1x RobotDyn Button Hloov - Ntxiv: https://www.tinytronics.nl/shop/nl/arduino/access… lossis:

1x RobotDyn 4x4 Button Matrix -

robotdyn.com/button-keypad-4x4-module.html

1x Joystick rau Arduino - Kuv muaj qee qhov tso ncig, tab sis kuv zoo nkauj shure cov no yog cov uas kuv xaj:

1x USB rau Micro USB cable

Yeem:

1x Toggle hloov -

Kauj Ruam 1: Luam Koj Cov Ntaub Ntawv thiab Nqa Koj Cov Khoos Phis Tawj

Luam Koj Cov Case thiab Hook-Up Koj Cov Khoos Phis Tawj
Luam Koj Cov Case thiab Hook-Up Koj Cov Khoos Phis Tawj
Luam Koj Cov Case thiab Hook-Up Koj Cov Khoos Phis Tawj
Luam Koj Cov Case thiab Hook-Up Koj Cov Khoos Phis Tawj
Luam Koj Cov Case thiab Hook-Up Koj Cov Khoos Phis Tawj
Luam Koj Cov Case thiab Hook-Up Koj Cov Khoos Phis Tawj

Luam tawm cov ntawv stl kuv tau muab rau hauv qab no. Qhov no yuav yog lub hauv paus rau koj cov keyboard.

Nws coj kuv li 9 teev los luam cov ntaub ntawv no, uas muab sijhawm rau koj kom txaus los sib txuas txhua yam koj kho vajtse rau Arduino Micro.

Kuv txuas cov khoom sib txawv rau Arduino raws li hauv qab no:

Cov keyboard -> A0

X -Axis Joystick -> A1

Y -Axis Joystick -> A2

Selectpin Joystick -> 7

Khawm (ShiftPin) -> 6

Kuv tseem tsis tau txuas lub toggle hloov tsis tau vim tias kuv tseem tsis tau siv rau nws. Tab sis koj tuaj yeem siv ib qho (digital) tus pin koj xav tau.

Tam sim no koj tau txuas tag nrho koj cov khoom, koj rooj plaub zaum tseem tsis tau npaj txhij. Tab sis tsis txhob txhawj! Qhov no muab sijhawm rau koj los luam tawm cov duab rau cov nyees khawm. Koj yuav pom cov no hauv cov npe hu ua "ACAD Toetsenbord Knoppen".

Kuv paub tias qhov zoo ntawm cov no tsis zoo, tab sis kuv tsis tuaj yeem pom cov duab zoo dua hauv online, thiab tsis muaj kev txhawb siab los tsim qee tus kheej.

Kauj ruam 2: Upload Code

Cov kauj ruam no yooj yim. Tsuas yog nqes koj tus Arduino thiab xa koj cov cai rau nws siv Arduino IDE.

Xav tias dawb los hloov cov lus txib kom zoo dua rau koj cov kev xav tau. Kuv tsis paub yuav ua li cas ntxig qee qhov ntawm cov cai ntawm no rau kev piav qhia ntxiv, yog li yog tias koj muaj lus nug xav nug lawv hauv kab lus.

Kauj Ruam 3: Rooj Sib Tham Kawg

Tam sim no koj cov ntawv luam yuav tsum ua tiav, thiab koj yuav tau npaj rau nruab tag nrho cov khoom siv hauv rooj plaub. koj yuav xav tau 8x M3x5mm, 4x M2x5mm thiab 2 ntoo ntsia hlau 4x16. Qhov ntev sib txawv yuav ua haujlwm ib yam li kuv twv, tab sis cov no yog cov uas kuv tau siv.

Txhua yam uas tseem tshuav tam sim no yog txhawm rau txuas rau koj lub khoos phis tawj thiab pib muaj kev lom zem!

Pom zoo: