Cov txheej txheem:

Neurobots Battle Royale: Muscle-Controlled Combat Hexbugs: 7 Kauj Ruam
Neurobots Battle Royale: Muscle-Controlled Combat Hexbugs: 7 Kauj Ruam

Video: Neurobots Battle Royale: Muscle-Controlled Combat Hexbugs: 7 Kauj Ruam

Video: Neurobots Battle Royale: Muscle-Controlled Combat Hexbugs: 7 Kauj Ruam
Video: OpenBCI EEG/EMG Controlled Hexbug 2024, Hlis ntuj nqeg
Anonim
Neurobots Battle Royale: Muscle-Controlled Combat Hexbugs
Neurobots Battle Royale: Muscle-Controlled Combat Hexbugs

Phau ntawv qhia no qhia yuav siv EMG cov ntaub ntawv li cas los ntawm OpenBCI kho vajtse thiab OpenBCI GUI los tswj kev ua ntawm Hexbug. Kev muaj peev xwm sib ntaus ntawm cov hexbugs no tuaj yeem tswj tau los ntawm koj tus kheej cov leeg nqaij, thiab koj yuav tuaj yeem koom nrog Hexbug sib ntaus ntawm koj tus kheej!

Kev Pab Tom Qab Muaj Txiaj Ntsig:

  • Kev paub txog Arduino lossis C-based programming

    Pib Arduino

  • Yuav teeb tsa OpenBCI Headband Kit nrog Cyton lossis Ganglion li cas

    Qhov no yuav pab koj teeb tsa thiab ua haujlwm nrog OpenBCI Boards

  • Tshaj tawm EMG Cov Ntaub Ntawv nrog OpenBCI

Qee qhov kev paub keeb kwm yav dhau los txog EMG cov ntaub ntawv

Khoom siv

  • Kho vajtse

    • Lub khoos phis tawj uas ua tau raws li GUI System Requirements
    • Hexbug 2.0 Dual Pob
    • EMG/ECG Ua Npuas Ncauj Khoom Gel Electrodes (30/pob)
    • EMG/ECG Snap Electrode Cables
    • OpenBCI Cyton Board ($ 500) lossis Ganglion Board ($ 200)
    • 20 tus txiv neej-txiv neej jumper cables
    • Cov qhob cij
    • 10 x 10kΩ Resistors
    • Arduino Genuino Ib
    • Yeem 5 LEDs (txuas rau kev debugging)
  • Software

    • Qhib BCI GUI
    • Arduino IDE
    • Muab Txoj Cai
  • OpenBCI Kev Pib Qhia
    • Qhib BCI GUI
    • Ganglion lossis Cyton

Kauj Ruam 1: Solder Jumper Cables to Controller

Solder Jumper Cables rau Tus Tswj
Solder Jumper Cables rau Tus Tswj
Solder Jumper Cables rau Tus Tswj
Solder Jumper Cables rau Tus Tswj
Solder Jumper Cables rau Tus Tswj
Solder Jumper Cables rau Tus Tswj

1.1 Tshem lub hau ntawm Tus Tswj

Pry tawm lub pluaj yas kom huv los ntawm kev sib dhos lub hau ntswj ncaj lossis lwm yam cuab yeej hauv plaub lub xauv tab ntawm tus tswj. Dai rau ntawm tus swb channel-hloov thiab rooj plaub nws tus kheej. Txhua lwm cov nyees khawm tuaj yeem muab pov tseg.

Tshem cov kab xaum xaum khawm thiab muab pov tseg. Tsis tas li, de-solder khawm "Hluav Taws" thiab muab pov tseg.

1.2 Cuam Tshuam ntawm Jumper Cables

Tom qab ntawd, muab txhuam ntawm txhua tus txiv neej-txiv neej jumper cables rau qhov me me, sab hauv lub voj voog uas nyob rau tom ntej, rov qab, sab laug thiab sab xis khawm. Kuj tseem txuas qhov txuas mus rau qhov hluav taws xob txuas hluav taws xob, thiab tus pin hauv av rau nws sab laug.

1.3 Hloov Hau Ntawm Tus Tswj

Siv cov txiab lossis rab riam siv hluav taws xob, txiav ib daim ntawm lub hau yas uas yuav cuam tshuam nrog txoj haujlwm ntawm koj lub xov tooj hluav taws xob txuas thiab rov nruab nws mus rau tus tswj hwm, ua kom cov channel hloov hauv txoj haujlwm.

Peb rov siv lub hau rov qab kom cov zawv zawg channel-hloov pauv tseem ua tau zoo nyob rau hauv kev sib cuag nrog cov txheej txheem ua haujlwm ntawm lub rooj tsavxwm.

Kauj Ruam 2: Tsim Breadboard Teeb thiab Txuas Txuas

Tsim Breadboard Teeb thiab Txuas Txuas
Tsim Breadboard Teeb thiab Txuas Txuas
Tsim Breadboard Teeb thiab Txuas Txuas
Tsim Breadboard Teeb thiab Txuas Txuas
Tsim Breadboard Teeb thiab Txuas Txuas
Tsim Breadboard Teeb thiab Txuas Txuas

Rov teeb tsa dua li qhia saum toj no.

Piav qhia:

2.1 Muab Tus Kheej Tus Kheej rau hauv Breadboard

Txhua qhov lus txib yuav nyob hauv nws tus kheej kab. Muab txhua tus pin tso rau hauv nws tus kheej kab nyob rau sab hauv ntawm daim ntawv qhia zaub mov. Los ntawm saum toj mus rau hauv qab, qhov kev txiav txim ntawm cov no yuav tsum yog Txoj Cai, Sab laug, Forwards, Hluav Taws.

2.2 Ntxiv Resistors

Tom qab tso cov pins no, ntxiv 10KΩ resistor txuas ob sab ntawm lub khob cij. Qhov no kho qhov nyiaj tam sim no mus rau txhua tus pin, uas tso cai rau cov kab ua haujlwm kom raug.

2.3 Ntxiv Yuam Kev Txheeb Xyuas LEDs

Txog kev pom lub hom phiaj, ntawm qhov no peb tseem tuaj yeem ntxiv LED. Cov anode ntawm LED yuav tsum yog nyob rau hauv kab nrog tus pin tswj thiab resistor, thiab cov cathode nyob ntawm kab sib cais ntawm lub khob cij. Txuas lwm tus tiv thaiv los ntawm kab ntawm cathode mus rau lub khob cij hauv av. Nco ntsoov tias cov kauj ruam no yog nyob ntawm yeem, tab sis tuaj yeem pab daws qhov teeb meem uas tsis raug nrog lub Circuit Court.

2.4 Txuas teeb tsa rau Arduino

Thaum kawg, ntxiv lwm jumper cable los txuas txhua kab rau tus pin Arduino. Nws yog ib qho tseem ceeb uas lawv sib tham raws li hauv qab no:

3 - Hluav Taws 4 - Forwards 5 - Sab laug 6 - Txoj Cai

Kauj Ruam 3: Xeem Nrog Streaming Cov Khoom Siv Hluav Taws Xob

Kuaj Nrog Cov Khoom Siv Hluav Taws Xob
Kuaj Nrog Cov Khoom Siv Hluav Taws Xob
Kuaj Nrog Cov Khoom Siv Hluav Taws Xob
Kuaj Nrog Cov Khoom Siv Hluav Taws Xob

3.1 Upload Qauv Qauv rau Pawg Thawj Coj

Tom qab rub tawm peb cov cai muab, qhib hauv Arduino. Txuas koj lub rooj tsavxwm rau koj lub khoos phis tawj, thiab nco ntsoov xaiv nws ua chaw nres nkoj los ntawm Cov Cuab Yeej dropdown. Tom qab ntawd, xa koj cov cai rau Arduino Board.

3.2 Qhib Cov Khoom Hluav Taws Xob

8 Raws yuav ua haujlwm zoo rau qhov piv txwv no. Nyem rau "Start System" txuas ntxiv.

Thaum koj muaj GUI qhib, tua cov channel 6-8.

3.3 Teeb Networking Widget

Qhib thiab teeb tsa Networking Widget raws li qhia hauv daim duab, siv hom Serial. Peb xav kom cov ntaub ntawv hom yog "EMG".

Tsis tas li, nco ntsoov tus nqi baud hauv peb daim duab Arduino yog 57600, yog li peb xaiv 57600 los ntawm Baud qhov poob qis.

Nco ntsoov xaiv qhov chaw nres nkoj raug rau Arduino. Nws yog tib qhov chaw nres nkoj peb siv los rub cov duab kos rau Arduino. Yog tias siv Mac/Linux, nws yuav tsum tau sau tias "usbmodem" -different los ntawm OpenBCI board uas yuav sau "usbserial."

Thaum koj tau lees paub tias txhua yam ntawm cov ntaub ntawv raug, nyem pib!

3.4 Khiav Kev Xeem

Raws li cov ntaub ntawv hluavtaws nyuaj rau kev tswj hwm, hloov kho qhov teeb tsa hauv EMG widget kom txog rau thaum cov xwm txheej tsis txaus kom dhau tus nqi pib suav sau hauv tus lej. Yog tias qhov no tsis txaus, nws yuav yog qhov koj txaus siab los hloov tus nqi pib hauv cov cai thiab rov xa mus rau koj lub rooj tsavxwm.

Nws kuj tseem tuaj yeem pab tua txhua yam tab sis ib qho channel ib zaug, thiab sim txhua qhov kev hais kom ua ib tus los xyuas kom meej tias lawv txhua tus ua raws li lawv xav tau. Thaum koj tau lees paub tias txhua yam ua haujlwm tau zoo, tom qab ntawd koj tuaj yeem txav mus rau cov ntaub ntawv tiag.

Kauj Ruam 4: teeb tsa koj li OpenBCI Board thiab Electrodes

Teeb Koj Lub Rooj Tswjhwm Saib OpenBCI thiab Cov Hluav Taws Xob
Teeb Koj Lub Rooj Tswjhwm Saib OpenBCI thiab Cov Hluav Taws Xob
Teeb Koj Lub Rooj Tswjhwm Saib OpenBCI thiab Cov Hluav Taws Xob
Teeb Koj Lub Rooj Tswjhwm Saib OpenBCI thiab Cov Hluav Taws Xob

Muaj ob txoj hauv kev uas qhov no tuaj yeem ua tau: ib tus neeg tswj hwm txhua 5 lo lus txib, lossis ntau tus neeg tswj hwm cov lus txib sib txawv. Qhov no yuav txawv txoj hauv kev uas qhov no ua tiav.

Kev Xaiv A: Ib Tus Neeg Tswj Tag Nrho Cov Lus txib 5

Cias ua raws cov lus qhia hauv EMG teeb teeb qhia los ntawm OpenBCI Cov Ntaub Ntawv ntawm no.

Kev Xaiv B: Ntau Tus Neeg Tswj Cov Lus Txawv Sib Txawv

Ua raws li EMG teeb tsa kev qhia los ntawm OpenBCI lub vev xaib tab sis nrog ib qho kev hloov pauv: ntau thaj chaw yuav tsum tau muab sib dhos ua ke.

Txhawm rau ua qhov no, txiav tawm kwv yees li 3 ntiv tes ntawm tus txiv neej tus lej xov tooj thiab qhov kawg ntawm ib tus poj niam tus lej xaim thiab tshem tawm ib nti roj hmab los ntawm qhov kawg kom nthuav tawm cov xov hlau sab hauv. Rov ua qhov no rau ntau tus txiv neej xov hlau raws li qhov tsim nyog los muab rau txhua tus neeg hauv ib tus neeg. Muab cov ntawv tso tawm no tso ua ke, thiab muaj nyob hauv ib qho ntawm cov cua sov-ntsws tubing.

Kauj Ruam 5: Tau Txuas nrog Cov Ntaub Ntawv Tiag

Txuas nrog Cov Ntaub Ntawv Tiag
Txuas nrog Cov Ntaub Ntawv Tiag
Txuas nrog Cov Ntaub Ntawv Tiag
Txuas nrog Cov Ntaub Ntawv Tiag

Tam sim no, rov qab mus rau GUI lub tsev thiab xaiv LIVE (los ntawm Cyton) lossis LIVE (los ntawm Ganglion) -depending ntawm lub rooj tsavxwm koj tab tom siv- raws li cov ntaub ntawv.

Txij ntawm no, qhib EMG Widget thiab Networking Widget, thiab pib tshaj tawm raws nraim li peb tau ua dhau los. Tam sim no, cov ntaub ntawv yuav tsum tau ntws los ntawm koj cov tswv yim nyob!

Kauj ruam 6: Sib ntaus

Nrog txhua yam tam sim no teeb tsa, koj tau npaj rau kev sib ntaus sib tua. Yog tias ob qho kev teeb tsa tau tsim, koj tuaj yeem siv cov kev tswj kom sib ntaus sib tua.

Thov nco ntsoov cov neeg hlau yuav tsum tau tig ib zaug ib zaug txhawm rau kom ntseeg tau tias cov cim tau sib sau los ntawm ob qhov chaw tshwj xeeb.

Txhua tus hexbug muaj peb lub neej, thiab tom qab cov no tau dhau mus, tsuas yog nias lub hwj huam khawm kom rov pib dua cov qhab nia.

Muaj kev lom zem thiab tawm tsam!

Kauj Ruam 7: Teeb Meem - Keyboard Tswj Txoj Cai

Yog tias koj muaj teeb meem nrog koj lub rooj teeb tsa thiab xav tswj nws siv cov keyboard nkaus xwb, rub cov cai no los siv Arduino Serial Monitor built-in los tswj koj lub Circuit Court. Qhov no yuav tso cai rau koj cais txhua qhov kev nqis tes ua thiab txiav txim siab tias qhov teeb meem koj tab tom ntsib yog los ntawm kev teeb tsa Arduino lub cev lossis los ntawm cov ntaub ntawv.

Pom zoo: