Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
- Kauj Ruam 2: Npaj Joystick rau Bluefruit EZ Key Jumper Wires
- Kauj ruam 3: Prep Enclosure
- Kauj Ruam 4: Nruab Joystick, Bluefruit EZ Key, thiab USB Breakout Board
- Kauj Ruam 5: EZ Key GUI
- Kauj Ruam 6: Lub Hwj Chim thiab Pair Bluefruit EZ Key
- Kauj Ruam 7: Tshem Tawm Cov Khawm ntawm Bluefruit EZ-Key
- Kauj Ruam 8: Tswj P5.js Sketch With Firefox Web Browser in Full Screen
- Kauj Ruam 9: Kho, Kho, lossis Tsim Koj Tus Kheej Web App
Video: Bluetooth Enabled Joystick Controller: 9 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Ua rau koj cov phooj ywg xav tsis thoob thiab txaus siab rau koj tsev neeg, thaum lawv tshawb xyuas "HypnoEllipse", sib tham sib A/V web app. Ua kom Bluetooth qhib lub joystick enclosure, txuas nws mus rau lub vev xaib, thiab hloov pauv ua tus kheej hypnosis.
Nov yog Bluetooth txuas nrog Joystick, uas xa HID (keyboard/nas) cov lus mus rau p5.js kos duab, uas nthuav tawm cov lus tsis pom kev tig thiab ua suab nrov piv.
Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
Cov cuab yeej
cam khwb cia hlau
laug
cov hlua hlau
laum
Drill ntsis 1/4"
qhov pom 3/4"
Qhov
Bluetooth qhib lub computer
Cov ntaub ntawv kaw
www.adafruit.com/product/905
Bluefruit EZ-Ntsiab
www.adafruit.com/product/1535
mini modular breadboard
www.sparkfun.com/products/12047
jumper cov xov hlau
www.sparkfun.com/products/8431
joystick
www.sparkfun.com/products/9182
USB micro-B breakout board
www.sparkfun.com/products/1833
5vdc rechargeable microUSB roj teeb
www.sparkfun.com/products/14167
SOFTWARE
Hypnoellipse lub web app
hypnoellipse.netlify.com/
Ua 1.5.1 (kom rov ua dua EZ Key)
processing.org/download/?processing
Tswj P5 (Ua lub tsev qiv ntawv)
www.sojamo.de/libraries/controlP5/
Firefoxhttps://www.mozilla.org/en-US/firefox/new/
Yog tias koj xav ua koj tus kheej version ntawm Hypnoellipse!
p5js ua
p5js.org/download/
Atom editor ua
atom.io/
Kauj Ruam 2: Npaj Joystick rau Bluefruit EZ Key Jumper Wires
Txiav thiab hle ib qho kawg ntawm txhua ntawm plaub khub ntawm cov xim sib txawv xim jumper xov.
Txhua tus khub xim sib xws rau qhov tshwj xeeb (Sab laug, Txoj Cai, Up, Down) joystick kev taw qhia - ib qho ntawm txhua khub mus rau EZ Key input, thiab lwm qhov rau GND.
Nrog rau lub siab no, ua tib zoo muab cov hlua jumper txuas rau joystick.
Kauj ruam 3: Prep Enclosure
Koj yuav xav tau ib qho 1/2 "qhov nyob ntawm ib sab ntawm lub thawv rau microUSB cable thiab plaub 1/4" qhov nyob rau sab saum toj rau npog lub joystick. Tus joystick nws tus kheej yuav xav tau 3/4 "qhov txiav.
Kuv siv ib daim ntawv thiab xaum ntawv txhawm rau taug cov qhov xav tau los ntawm lub rooj sib dhos joystick, ua ntej qhov kev khawb mus rau sab saum toj ntawm lub thawv yas.
Kauj Ruam 4: Nruab Joystick, Bluefruit EZ Key, thiab USB Breakout Board
Nco ntsoov txiav txim siab ua tib zoo li cas tus joystick plaub qhov xim tshwj xeeb cov hlua dhia txuas rau tus pin #0 - #4 ntawm EZ Key. Qhov no piav qhia li cas plaub lub microswitches ntawm tus joystick yuav hloov qhov txiaj ntsig ntawm mouseX thiab mouseY hauv p5.js kos duab.
Thaum koj txiav txim siab qhov kev taw qhia ntawm koj lub thawv ntim khoom, ua raws lub moos raws ib puag ncig ntawm txoj hlua txuas, txuas tus dhia mus rau qhov nkag ntawm EZ Key, thiab rov kho dua raws li qhov tsim nyog (sim thiab ua yuam kev!).
Cov pins hauv av los ntawm tus joystick tsim lub tsheb npav hauv av nrog rau tus pin hauv av ntawm Bluefruit EZ Key.
Hauv av thiab +5vdc los ntawm microUSB txuas tseem yuav txuas rau Bluefruit EZ Key.
Kauj Ruam 5: EZ Key GUI
Koj yuav tsum tau siv cov ntawv qub ntawm Kev Ua Haujlwm 2.2.1 los ua haujlwm GUI cov cuab yeej no.
Tus joystick nce/nqis/sab laug/sab xis txoj cai yuav ua raws li nas X thiab nas Y txav mus txhawm rau tswj p5.js kos duab (HypnoEllipse).
Phau ntawv qhia Adafruit no muab txhua yam ntaub ntawv tsim nyog los siv Bluefruit EZ-Key:
learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard
Kauj Ruam 6: Lub Hwj Chim thiab Pair Bluefruit EZ Key
Fais fab Bluefruit EZ-Key thiab nias khawm khawm.
Koj yuav tsum pom lub teeb liab liab LED. Tom ntej no nyem lub pob nyem me me ntawm EZ Key rau 5 vib nas this thiab tso tawm, qhov no yuav lwv cov ntaub ntawv ua khub yav dhau los thiab cia koj rov ua khub rau koj lub khoos phis tawj. Tam sim no LED liab yuav ntsais muag.
Qhib Bluetooth rau hauv System Preferences thiab nyem "Set Up New Device".
Cia tus pabcuam khiav mus txog thaum nws nrhiav thiab qhia EZ -Key module - xaiv nws thiab nyem "Txuas ntxiv".
Kauj Ruam 7: Tshem Tawm Cov Khawm ntawm Bluefruit EZ-Key
Hauv qhov screenshot sau tseg mouseX thiab mouseY qhov tseem ceeb cuam tshuam nrog tus lej tseem ceeb:
pib 0: x5
pin 1: x-5
pin 2: y 5
pin 3: y-5
Rub tawm ControlP5 LIbrary:
www.sojamo.de/libraries/controlP5/
Rub tawm cov ntawv zip nrog lub wireless remapper code:
learn.adafruit.com/system/assets/assets/000/013/042/original/GUI_EZKey_remapper_12-20-13.zip?1387568625
Uncompress thiab qhib GUI_EZKey_remapper.pde hauv Kev Ua.
Txheeb ob zaug tias Bluefruit tau ua khub rau koj lub khoos phis tawj.
Xaiv Sketch -> Khiav kom pib cov duab nraub qaum.
Tam sim no xaiv tus pin thiab siv cov ntawv qhia zaub mov xaiv cov nas qhia.
Tom ntej no nyem "SEND_MAP" xa nws mus rau koj li Bluefruit EZ-Key.
Cov ntawv tshaj tawm xov xwm hauv Txheej Txheem Txheej Txheem yuav tsum qhia tias nws tau pom Bluefruit thiab nws tau xa cov ntaub ntawv nrog Checksum Match.
Kauj Ruam 8: Tswj P5.js Sketch With Firefox Web Browser in Full Screen
Nov yog kuv p5.js kos duab tuav ntawm Netlify:
hypnoellipse.netlify.com
Koj tuaj yeem sim nrog koj tus nas, ua ntej tsim thiab txuas nrog lub joystick interface, kom pom thiab hnov qhov sib txawv ntawm lub suab.
Kauj Ruam 9: Kho, Kho, lossis Tsim Koj Tus Kheej Web App
Nov yog tus lej rau lub vev xaib app nws tus kheej:
github.com/dkonha01/HypnoEllipse
Koj tuaj yeem yooj yim txhim kho koj tus kheej cov ntawv, sim hloov pauv tus nqi hauv kab 44, 51, thiab 66 ntawm sketch.js - txheeb xyuas cov lus tawm kab rau cov piv txwv ntawm qhov no.
Pom zoo:
Qhov Taw Qhia Tsheb kauj vab Minimalist, Kov-Enabled !: 10 Kauj Ruam (nrog Duab)
Qhov taw qhia tsheb kauj vab Minimalist, Touch-Enabled!: Nyob zoo! Nov yog kuv thawj Phau Ntawv Qhia. Kuv ib txwm xav ua tej yam los ntawm kos tsuas yog pom nws ua haujlwm li cas thiab leej twg tsis nyiam DIY (Ua koj tus kheej) cov khoom thaum koj tuaj yeem hloov kho qee yam raws li koj xav tau txoj cai? Zoo li nthuav raws li DIY m
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
Bluetooth-Enabled Planetarium/Orrery: 13 Kauj Ruam (nrog Duab)
Bluetooth-Enabled Planetarium/Orrery: Cov lus qhia no tau tsim los ua kom tau raws txoj haujlwm xav tau ntawm Makecourse ntawm Tsev Kawm Qib Siab South Florida (www.makecourse.com) .This yog kuv lub ntiaj teb 3 lub hnub qub/orrery. Nws tau pib tawm tsuas yog ib txoj haujlwm nyob rau ib semester rau Makecour
1 Meter POV Nrog IOT Enabled: 3 Kauj Ruam (nrog Duab)
1 Meter POV Nrog IOT Enabled: Ua ntej pib piav qhia txog qhov haujlwm no kuv xav thov txim rau cov duab thiab yees duab tsis zoo, tab sis ua siab ncaj nws yog qhov nyuaj heev kom coj cov duab ntse thiab meej los ntawm kev khiav POV nrog lub koob yees duab zoo li kuv lub koob yees duab txawb. Nws xav tau nrawm heev
IoT Enabled Sensor Cov Chaw Sau Cov Ntaub Ntawv Nrog ESP8266 & PubNub: 9 Kauj Ruam (nrog Duab)
IoT Enabled Sensor Cov Chaw Sau Cov Ntaub Ntawv Nrog ESP8266 & PubNub: Feem ntau ntawm cov kev qhia ntawm ESP8266 yog ib qho ntawm cov neeg tshiab (nyob ntsiag to ntsais ib tus coj) lossis nyuaj rau qee tus neeg uas tab tom nrhiav qee yam los txhim kho thiab txhim kho raws li nws coj kev ntsais ntsais. qhia paub lub hom phiaj txhawm rau txhawm rau qhov sib txawv no rau kev tsim