Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Txheeb Tawm Daim Video
- Kauj Ruam 2: [Yeem Tsis Tau] Pib Nrog ESP32
- Kauj Ruam 3: Txhim Kho ESP32 Ble Keyboard Library
- Kauj Ruam 4: Saib Qhov Piv Txwv
- Kauj Ruam 5: Lwm Cov Lus Qhia rau Lub Tsev Qiv Ntawv
- Kauj Ruam 6: Macro Keypad
- Kauj Ruam 7: Txoj Cai rau Macro Keypad
- Kauj Ruam 8: Cia Peb Ua Nws Wireless
- Kauj Ruam 9: Xeem Nws
- Kauj Ruam 10: Ua Tsaug Rau Kev Nyeem
Video: DIY Bluetooth Macro Keypad: 10 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv Cov Lus Qhia no peb yuav tshuaj xyuas siv lub Bluetooth built-in ntawm ESP32 kom ua raws li Bluetooth Keyboard.
Bluetooth HID (Tib Neeg Cov Khoom Siv Sib Txuas) yog cov txheej txheem siv los ntawm Bluetooth keyboard thiab nas thiab nws muaj peev xwm ua raws qhov no nrog tsuas yog ESP32, uas yog qhov zoo!
Nrog qee qhov ESP32 cov phiaj xwm txhim kho pib txij li tsawg dua $ 5* xa tawm, qhov no yog qhov pheej yig tiag tiag thiab txoj hauv kev yooj yim los tsim cov keyboard tsis raug cai xws li Macro keypads. Macro keypads tuaj yeem siv rau kev tswj hwm ntau daim ntawv thov xws li Video editors lossis Photoshop, tus kheej kuv siv kuv li kev tswj cov xwm txheej hauv OBS thaum kuv ua yeeb yaj kiab lossis tso tawm.
Peb yuav xub saib yuav siv ESP32 HID keyboard library li cas thiab tom qab ntawd kuv yuav qhia koj li cas kuv siv qhov no los tsim lub roj teeb uas siv Bluetooth Macro Keypad.
Khoom siv
- TinyPICO ESP32 Dev board (Txhua ESP32 tuaj yeem ua haujlwm)
- 4*4 Matrix Keypad*
Koj tseem yuav xav tau lub roj teeb lipo, Kuv tsuas yog siv qhov ib txwm kuv tau tso ib ncig yog li kuv tsis tuaj yeem txuas rau nws!
Yog tias koj lub PC tsis muaj Bluetooth koj tuaj yeem siv dongle zoo li qhov no:
Amazon.co.uk*:
Amazon.com*:
Amazon.de*:
* = Koom nrog
Kauj Ruam 1: Txheeb Tawm Daim Video
Kuv tau ua cov vis dis aus uas npog tib yam li Cov Lus Qhia no, yog li yog koj xav tau, thov txheeb xyuas nws! Kuv kuj ua cov vis dis aus ncig ESP8266 thiab ESP32 cov phiaj xwm tsis tu ncua yog li tej zaum muaj lwm cov vis dis aus ntawm kuv tus channel koj yuav pom qhov txaus siab!
Kauj Ruam 2: [Yeem Tsis Tau] Pib Nrog ESP32
ESP32s yog microcontrollers uas sib xws nrog Arduino IDE thiab tuaj nrog WiFi thiab Bluetooth suav nrog. Lawv kuj tseem pheej yig heev yog li lawv muaj txiaj ntsig zoo rau koj cov phiaj xwm.
Koj yuav tsum tau ntxiv ESP32 pawg lus txhais rau koj Arduino IDE, rau qhov no koj tuaj yeem ua raws cov kauj ruam teev tseg ntawm ESP32 Arduino cov haujlwm Github Page
Kauj Ruam 3: Txhim Kho ESP32 Ble Keyboard Library
Nws muaj peev xwm siv Bluethooth HID ntawm ESP32 tsis muaj lub tsev qiv ntawv sab nraud, tab sis Github tus neeg siv T-Vk tau sau lub tsev qiv ntawv hu ua ESP32-BLE-Keyboard uas ua rau nws zoo li tus qauv Arduino keyboard tsev qiv ntawv uas ua rau nws siv tau yooj yim dua.
Lub tsev qiv ntawv no tsis muaj nyob ntawm tus thawj tswj tsev qiv ntawv yog li koj yuav tsum rub nws los ntawm Github.
- Mus rau cov phiaj xwm tso tawm nplooj ntawv thiab rub tawm qhov tseeb ESP32-BLE-Keyboard.zip
- Thaum rub tawm tiav, koj tuaj yeem ntxiv nws rau koj Arduino IDE tab sis mus rau Sketch-> Xws li Lub Tsev Qiv Ntawv thiab tom qab ntawd ntxiv Zip rau lub tsev qiv ntawv thiab xaiv ESP32-BLE-Keyboard.zip los ntawm cov kauj ruam dhau los.
Kauj Ruam 4: Saib Qhov Piv Txwv
Thaum qhov ntawd tau ntxiv peb tuaj yeem qhib qhov piv txwv uas los nrog nws. Nws yog qhov piv txwv zoo nkauj zoo li nws qhia tau ob peb yam sib txawv uas koj tuaj yeem ua tiav nrog lub tsev qiv ntawv tab sis kuv tseem yuav ntxiv me ntsis ntxiv uas kuv xav tias nws yuav muaj txiaj ntsig.
Koj tuaj yeem nkag mus piv txwv los ntawm kev mus rau File -> Piv txwv -> ESP32 BLE Keyboard -> SendKeyStrokes
Teeb tsa kev sib txuas Bluetooth
Hauv kev teeb tsa nws pib txuas Bluetooth, nyob rau theem no nws yuav tsum muaj los ua ke nrog ntawm koj lub cuab yeej.
bleKeyboard.begin ();
Sab hauv lub voj nws tseem kuaj xyuas yog tias nws txuas nrog lub cuab yeej
bleKeyboard.isConnected ()
Ntaus
Thawj qhov piv txwv qhia yog yuav ua li cas koj tuaj yeem ntaus cov ntawv thaum nws txuas nrog nws yuav xub sau "Nyob zoo ntiaj teb" siv
bleKeyboard.print ("Nyob zoo ntiaj teb");
Ib zaug nias lub pob
Nws tom qab ntawd qhia yuav ua li cas koj tuaj yeem "sau" tus yuam sij rov qab, qhov no yog qhov ua piv txwv ib zaug xwb qhov tseem ceeb ntawm lub pob no.
bleKeyboard.write (KEY_RE END_TURN);
Koj tuaj yeem qhib BleKeyboard.h cov ntaub ntawv ntawm lub tsev qiv ntawv kom pom txhua tus yuam sij uas tau hais tseg zoo li no. Koj tseem tuaj yeem xa cov cim ascii los ntawm muab lawv tso rau hauv ib tus lej.
bleKeyboard.write ('A');
Cov Yeeb Yaj Kiab
Nws kuj tseem qhia tau tias koj tuaj yeem xa xov xwm tawm li cas, qhov no zoo ib yam li koj tuaj yeem tswj hwm lub ntim lossis hla txoj hauv kev nrog koj lub mloog pob ntseg Bluetooth. Qhov piv txwv qhia pom qhov ua si/ncua sijhawm, tab sis ntxiv koj tuaj yeem qhib BleKeyboard.h kom pom lwm txoj kev xaiv muaj.
bleKeyboard.write (KEY_MEDIA_PLAY_PAUSE);
Nias thiab tso cov yuam sij
Qhov kawg qhov piv txwv qhia peb yog yuav ua li cas koj tuaj yeem nias thiab tuav tus yuam sij, qhov no muaj txiaj ntsig zoo rau kev tsim Macro cov keyboard. Qhov piv txwv qhia ntawm no yog rau Ctrl + Alt + Delete
bleKeyboard.press (KEY_LEFT_CTRL);
bleKeyboard.press (KEY_LEFT_ALT);
bleKeyboard.press (KEY_DELETE);
Nws tom qab ntawd hu rau releaseAll, uas zoo li koj tuaj yeem kwv yees los ntawm lub npe tso tawm txhua qhov nias hauv.
bleKeyboard.releaseAll ();
Koj tseem tuaj yeem tso cov yuam sij tshwj xeeb yog tias koj xav tau los ntawm kev siv cov lus txib tso nrog tus yuam sij koj xav tso
bleKeyboard.release (KEY_DELETE);
Kauj Ruam 5: Lwm Cov Lus Qhia rau Lub Tsev Qiv Ntawv
Peb tau npog lub luag haujlwm tseem ceeb ntawm lub tsev qiv ntawv hauv qib dhau los, tab sis ntawm no yog qee yam ntxiv uas kuv xav tias yuav muaj txiaj ntsig kom paub
Siv Tus Txheej Txheem Sab Nraud
Nws yog qhov zoo tshaj plaws los tswj HID lub cuab yeej zoo li no siv lub zog sab nraud xws li lub pob nyem. Yog tias koj siv lub sijhawm thiab qee yam ua tsis raug nws yuav ua rau nws txawv txav mus rau kev sib txuas. Xav txog qhov yuav tsum sim kaw koj lub Bluetooth yog tias koj tau ua yuam kev nws kom nias Ctrl+Alt+Del txhua 100mS!
Hloov lub npe ntaus ntawv
Los ntawm lub neej ntawd lub cuab yeej lub npe yuav tshwm li "ESP32 BLE Keyboard", qhov no tuaj yeem hloov pauv thaum koj tab tom tsim ib qho piv txwv ntawm lub tsev qiv ntawv. Koj tuaj yeem teeb lub npe khoom, chaw tsim khoom thiab qib roj teeb pib.
BleKeyboard bleKeyboard ("Bluetooth Device Name", "Bluetooth Device Manufacturer", 100);
Teeb lub roj teeb theem (tsis ua haujlwm rau kuv tsawg kawg)
Lub tsev qiv ntawv lees tias koj tseem tuaj yeem teeb qib roj teeb tab sis nws tsis ua haujlwm rau kuv ntawm kuv lub Windows PC (nws nyob nrog qhov twg los tus nqi pib yog) thiab kuv lub xov tooj hauv xov tooj tsis qhia tag nrho nws qib. Nov yog cov lus txib rau nws yog tias nws ua haujlwm rau koj
bleKeyboard.setBatteryLevel (50)
Ntaus Compatibility
Kuv tau ua tiav qhov ua piv txwv ntawm kuv Windows 10 PC, xov tooj Android thiab kuv Mac (txawm hais tias nws tseem tab tom khiav Sierra li cas!)
Nws kuj tseem tuaj yeem txuas nrog ib lub cuab yeej ib zaug.
Troubleshooting Kev Pairing
Yog tias koj muaj qee qhov teeb meem ua ke, sim rov pib dua ESP32 thaum koj lub cuab yeej tab tom nrhiav. Kuv kuj ib zaug yuav tsum tau qhib thiab kaw kuv lub bluetooth ntawm kuv lub PC kom nws ua khub.
Kauj Ruam 6: Macro Keypad
Tam sim no peb muaj cov hauv paus tawm ntawm txoj kev, cia ua ib yam dab tsi tawm ntawm nws!
Hauv phau ntawv qhia dhau los kuv tau qhia yuav ua li cas thiaj yooj yim Macro cov keyboard tawm ntawm Arduino pro Micro thiab cov keyboard pheej yig. Rau txhua lub khawm ntawm lub keyboard nws xa sib txawv ua ke ntawm lub pob uas tuaj yeem siv los tswj cov ntawv thov, tus kheej kuv siv nws rau OBS, software kuv siv rau kaw cov vis dis aus thiab rau thaum kuv ntws. Qhov no zoo li yog txoj haujlwm zoo rau kev hla ESP32 yog li peb tuaj yeem ua lub wireless version.
Txog qhov kev tsim no kuv yuav siv Kev Ua Tsis Tau Txaus Siab TinyPICO ESP32 pawg thawj coj. Qhov laj thawj tseem ceeb rau kev xaiv nws yog pawg tswj hwm lub zog muaj txiaj ntsig zoo thiab muaj lub hauv paus rau kev khiav tawm thiab them lub roj teeb Lipo ua hauv, yog li txhua yam kuv yuav tsum tau ua yog ntsaws lub roj teeb rau hauv.
Kuv yuav dag yog tias qhov tseeb tias nws muaj kab sib nrug ib yam li Pro Micro thiab kuv tuaj yeem siv qhov uas tau ua dhau los ua pawg thawj coj uas kuv tau ua yav tas los tsis zoo txaus!
Cov keyboard yuav tsum tau 8 tus pin GPIO los ua haujlwm, thiab TinyPICO muaj 8 GPIO tus pin ua ke yog li peb yuav siv lawv. Koj tuaj yeem yooj yim txuas cov keyboard rau TinyPICO raws li qhia hauv daim duab saum toj no.
Kauj Ruam 7: Txoj Cai rau Macro Keypad
Cov cai rau Macro Keypad kos duab tuaj yeem pom ntawm kuv Github.
Ib yam li BleKeyboard lub tsev qiv ntawv uas tau teeb tsa hauv ib kauj ruam dhau los, koj tseem yuav xav tau teeb tsa lub tsev qiv ntawv rau cov keyboard, koj tuaj yeem ua qhov no los ntawm kev qhib lub chaw saib xyuas lub tsev qiv ntawv los ntawm kev mus rau Sketch -> Xws li Lub Tsev Qiv Ntawv -> Tswj Tsev Qhua
Sab hauv tus thawj tswj tsev qiv ntawv, tshawb rau "keypad" thiab teeb ib qho los ntawm Mark Stanley thiab Alexander Brevig
Ib qho kev teeb tsa uas koj yuav xav tau yog tias koj siv ESP32 sib txawv dua li TinyPICO yog tus lej khawm, lawv tau teeb tsa hauv rowPins thiab colPins array. Thaum saib ntawm lub hauv ntej ntawm cov keyboard thiab pib los ntawm sab laug, thawj 4 tus pin yog kab pins thiab thib ob 4 yog cov pins.
Thaum qhov no ua tiav, xa cov cai mus rau lub rooj tsavxwm thiab koj yuav tsum sim ntawm theem no nws ua haujlwm.
Kauj Ruam 8: Cia Peb Ua Nws Wireless
Raws li tau hais ua ntej, TinyPICO muaj kev sib txuas rau kev tuav lub Lipo ua hauv yog li txhua yam peb yuav tsum tau ua yog txuas nws. Nws los nrog JST cov khoom sib txuas uas tuaj yeem muab txuas rau hauv qab, lossis koj tuaj yeem siv Bat thiab GND pins yog tias koj xav ua nws ntawm tus pin.
Yog tias koj tab tom siv JST cov khoom sib txuas thov txheeb xyuas ob qho tib si ntawm koj lub roj teeb sib xws nrog TinyPICO, tsis muaj tus txheej txheem yuav ua li cas cov no yuav tsum tau siv kab yog li muaj lub sijhawm zoo koj lub roj teeb yuav tsis sib xws.
Txheeb xyuas qhov hluav taws xob ntawm koj lipo roj teeb ua ntej siv nws, lub roj teeb noj qab nyob zoo yuav tsum yog 3V lossis siab dua, lub roj teeb kuv pom nrog qhov raug JST txuas tau nyeem 0V!
Kuv tau siv lub xov tooj 18650 hauv tus tuav thiab muab nws txuas rau JST txuas ntawm lub roj teeb tuag.
TinyPICO txo nws lub zog siv thaum khiav lub roj teeb los ntawm tsis ua lub zog ntawm ib qho ntawm nws cov LEDs, yog li txawm tias nws tsis saib, vam tias nws yog! Kev txhim kho yav tom ntej ntawm txoj haujlwm yuav yog txhawm rau rub lub onboard dotstar LED ntawm kev pib tsuas yog qhia rau koj paub tias nws tau qhib tiag tiag thiab tej zaum ntxiv thaum nws txuas. Txog tam sim no koj tuaj yeem tshawb xyuas hauv koj lub tshuab Bluetooth cov ntawv qhia zaub mov uas nws tau qhib thiab txuas tau zoo.
Kauj Ruam 9: Xeem Nws
Cia peb sim nws, yog tias kuv qhib qhov hotkeys feem ntawm OBS Kuv tuaj yeem nyem rau ntawm qhov sib txawv los sau cov khawm ua ke uas yuav tswj nws, rau qhov no peb tuaj yeem nyem rau ntawm lub pob ntawm peb lub keyboard thiab nws yuav hloov tshiab.
Tom qab koj nyem thov, koj yuav tsum tsis tuaj yeem siv koj lub keyboard los tswj koj qhov xwm txheej hauv OBS.
Kauj Ruam 10: Ua Tsaug Rau Kev Nyeem
Vam tias koj pom Cov Lus Qhia no muaj txiaj ntsig. Kuv yuav nyiam hnov txog qhov koj yuav ua nrog hom teeb tsa no. Thov qhia rau kuv paub hauv cov lus hauv qab no, lossis koom nrog kuv thiab ib pawg ntawm lwm tus tsim ntawm kuv li Discord server, qhov uas peb tuaj yeem tham txog cov ncauj lus no lossis lwm tus tsim muaj feem cuam tshuam nrog koj muaj, tib neeg yeej muaj txiaj ntsig zoo yog li nws yog qhov chaw zoo rau dai tawm
Kuv kuj tseem xav ua tsaug ntau rau kuv Github Sponsors uas pab txhawb qhov kuv ua, Kuv yeej txaus siab rau nws. Yog tias koj tsis paub, Github sib piv cov kev txhawb nqa rau thawj xyoo, yog li yog koj ua tus txhawb nqa lawv yuav phim nws 100% rau ob peb hlis tom ntej.
Ua tsaug rau kev nyeem ntawv!
Pom zoo:
Diy Macro Lens Nrog AF (Sib txawv dua Li Lwm Yam DIY Macro Lenses): 4 Cov Kauj Ruam (nrog Duab)
Diy Macro Lens Nrog AF (Txawv Tshaj Li Lwm Yam DIY Macro Lenses): Kuv tau pom ntau tus neeg ua cov iav tsom iav nrog cov qauv txheej txheem lens (Feem ntau yog 18-55mm). Feem ntau ntawm lawv yog lub lens tsuas yog lo rau ntawm lub koob yees duab rov tom qab lossis tshem tawm lub hauv ntej. Muaj qhov tsis zoo rau ob qho ntawm cov kev xaiv no. Rau mounting lub lens
Qhov yooj yim DIY Macro Keypad: 10 Kauj Ruam (nrog Duab)
Qhov Yooj Yim DIY Macro Keypad: Lub Macro keypad tuaj yeem siv los ua qee yam kev ua lossis lub luag haujlwm ntawm koj lub khoos phis tawj thiab tuaj yeem muaj txiaj ntsig tiag tiag nrog qee cov ntawv thov, xws li kho video lossis ua si. Ntau daim ntawv thov muaj tus yuam sij kub rau kev ua tiav sai, tab sis qee zaum
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Custom Macro Mechanical Keypad: 12 Cov Kauj Ruam (nrog Duab)
Custom Macro Mechanical Keypad: Hauv Phau Ntawv Qhia no kuv yuav coj koj mus txog qhov pib ntawm kev tsim koj tus kheej 6 tus yuam sij macropad, tswj los ntawm Arduino. Kuv yuav coj koj mus txog qhov koj xav tau, yuav ua li cas sib sau ua ke, yuav ua haujlwm li cas, thiab yuav ua li cas txhim kho nws lossis ua kom nws yog koj li