Cov txheej txheem:

3 Amazing BRAIN / MIND Control Projects Teeb LedStrip LED Nrog Arduino thiab Neurosky: 6 Cov Kauj Ruam (nrog Duab)
3 Amazing BRAIN / MIND Control Projects Teeb LedStrip LED Nrog Arduino thiab Neurosky: 6 Cov Kauj Ruam (nrog Duab)

Video: 3 Amazing BRAIN / MIND Control Projects Teeb LedStrip LED Nrog Arduino thiab Neurosky: 6 Cov Kauj Ruam (nrog Duab)

Video: 3 Amazing BRAIN / MIND Control Projects Teeb LedStrip LED Nrog Arduino thiab Neurosky: 6 Cov Kauj Ruam (nrog Duab)
Video: how to make simple bicycle indicator / hw battery led light / led flasher simple circuit project 2024, Kaum ib hlis
Anonim
Image
Image

Koj puas tau xav tig lub teeb ON lossis OFF tsuas yog xav txog nws? Lossis koj puas xav paub tias koj nyuaj siab npaum li cas los ntawm kev saib cov xim ntawm RGB coj? Thaum tam sim no koj tuaj yeem ua raws cov lus qhia no!

Txhawm rau kom tau txais kev xav rau yam peb yuav ua hnub no kuv pom zoo koj ua ntej saib hauv youtube video saum toj no rau Kev Qhia Tawm luv luv!

Cov Lus Qhia no muaj nyob ntawm peb txoj haujlwm uas txhua tus siv kev tswj lub hlwb. Yog uas yog peb rau tus nqi ntawm ib!

Thawj qhov haujlwm yog MoodLight. Txoj haujlwm no siv RGB coj los qhia koj li kev xav. Thaum koj so heev nws yog ntsuab, tab sis thaum koj ntxhov siab nws yuav tig liab. Txoj haujlwm no xav tau cov hauv qab no:

1x Arduino Uno lossis Nano

1x Neurosky Mindwave lub mloog pob ntseg

1x RGB ntau qhov cim npe Led

3x N channel Mosfet

1x Visual Studio 2017

Qhov haujlwm thib ob yog Project Relay. Txoj haujlwm no siv Kev Tshawb Fawb kom tig lub LED ON lossis OFF tsuas yog xav txog nws! Vim tias nws siv Relay koj tuaj yeem nqig txhua yam rau nws. Koj Teeb, Koj lub TV lossis txawm tias koj lub tshuab kas fes! Rau qhov haujlwm no peb xav tau:

1x Arduino Uno lossis Nano

1x Neurosky Mindwave lub mloog pob ntseg

1x5v wb

1 BC BC 547 Transistor

1 x 5 V LED

1x Visual Studio 2017

Qhov haujlwm thib peb yog Led Strip project. Txoj haujlwm no siv WS2812 tus kheej qhov chaw nyob RGB Led Sawb uas yuav qhib ntau dua Led thiab tig liab ntau npaum li cas nyuab siab koj dhau los. Rau qhov haujlwm no peb xav tau cov hauv qab no

1x Arduino Uno lossis Nano

1x Neurosky Mindwave lub mloog pob ntseg

1x WSD2812 RGB Coj Sawb

1x Visual Studio 2017

Txoj haujlwm no siv Mindwave RF version. Koj tuaj yeem yuav nws piv txwv ntawm no:

www.aliexpress.com/item/NeuroSky-MindWave-Headset-international-RF-version-EEG-sensor-for-Cognitive-Attention-and-meditation-neuro-feedback-training/32269885670.html?spm= 2114.search0604.3.1.244e7510vBT6uO & ws_ab_test = searchweb0_0, searchweb201602_3_10065_10068_10890_319_10546_317_10548_10696_453_10084_454_10083_10618_431_10304_10307_10820_537_536_10843_10059_10884_10887_100031_321_322_10103-10890, searchweb201603_51, ppcSwitch_0 & algo_expid = 432def56-a9dd-4ff9-a1ff-4e83fde2db68-0 & algo_pvid = 432def56-a9dd-4ff9-a1ff-4e83fde2db68

Yog li cia peb Pib!

Kauj Ruam 1: Teeb Kev Sib Txuas

Teeb Kev Sib Txuas
Teeb Kev Sib Txuas
Teeb Kev Sib Txuas
Teeb Kev Sib Txuas

Rau tag nrho peb txoj haujlwm peb xub xav tau teeb tsa kev sib txuas. Peb yuav ua qhov no nrog qhov haujlwm me me hu ua ThinkGearConnector.

Txhawm rau pib rub tawm tag nrho cov cai thiab cov tsav tsheb los ntawm Github chaw cia hauv qab no:

github.com/sieuwe1/ArduMind

Kuj download tau Mindwave pairing installer los ntawm no:

download.neurosky.com/updates/mindwave/education/1.1.28.0/MindWave.zip

Tsav tsheb

Tom qab rub tawm Github chaw cia unzip cov ntaub ntawv ArduMind.zip.

Tom qab ntawd qhib ArduMind nplaub tshev thiab mus rau Drivers folder.

Tam sim no ntsaws rau hauv Mind Wave reciever rau hauv koj lub computer.

Tom qab ob npaug nias rau SETUP. EXE thiab nruab nws.

Kev sib txuas

Tom qab tau teeb tsa Drivers unzip MindWave.zip cov ntaub ntawv thiab khiav lub installer tseem nrog lub mloog pob ntseg ntsaws rau hauv.

ThinkGearConnector

Tom qab tau tsim kev sib txuas peb tuaj yeem teeb tsa ThinkGearConnector.

Los ntawm ArduMind nplaub tshev mus rau ThinkGear Connector> win32 thiab ob npaug nias rau ThinkGear Connector.exe nrog lub mloog pob ntseg tseem ntsaws.

Tau txais qhov chaw nres nkoj COM

Thaum lub mloog pob ntseg tseem tau ntsaws rau hauv peb xav tau kom tau txais cov comport ntawm MindWave lub mloog pob ntseg. Qhov no xav tau rau theem 2.

Kom tau txais qhov chaw nres nkoj COM:

1 nias qhov tseem ceeb windows + x thiab xaiv tus thawj tswj ntaus ntawv

2 mus rau chaw nres nkoj (COM & LPT)

3 tom qab ntawd nrhiav MindWave USB Adapter

Los ntawm lub npe no koj tuaj yeem pom COM chaw nres nkoj. Yog tias koj saib cov duab saum toj no koj tuaj yeem pom kuv qhov chaw nres nkoj COM yog COM8

Kauj ruam 2: Teeb Pom Kev Pom Duab Studio

Teeb tsa Visual Studio
Teeb tsa Visual Studio
Teeb tsa Visual Studio
Teeb tsa Visual Studio

Tam sim no peb tuaj yeem pib nrog Kev Lom Zem!

Ua ntej tshaj plaws xaiv qhov ntawm peb txoj haujlwm koj xav tau: Moodlight, Led Sawb lossis Relay.

Kuv tab tom yuav xaiv txoj haujlwm Relay.

Tom qab tau xaiv qhov haujlwm mus rau ArduMind nplaub tshev thiab tom qab ntawd mus rau: 3 Kev Tswj Xyuas Lub Siab> Relay Tswj> RelayControl C#.

Tam sim no ob npaug nyem rau ntawm HelloEEG.sln qhib nws hauv Visual Studio.

Hauv qhov kev tshawb nrhiav tshuaj ntawm sab xis nyem rau ntawm HelloEEG.cs cov ntawv.

Hauv no tshawb nrhiav kab 30 thiab hloov:

connector. ConnectScan ("COM3"); mus rau comport peb pom hauv qib 1.

Yog li rau kuv:

connector. ConnectScan ("COM8");

Tom qab qhov no peb tuaj yeem pib nrog kho vajtse. Tab sis khaws Visual Studio qhib vim tias peb yuav xav tau nws dua!

Tsis tas li tshem tawm lub mloog pob ntseg Mindwave

Kauj Ruam 3: MoodLight

Lub MoodLight
Lub MoodLight
Lub MoodLight
Lub MoodLight
Lub MoodLight
Lub MoodLight

Rau Moodlight project peb xub tau ua cov khoom siv hluav taws xob. Koj tuaj yeem pom cov txheej txheem hauv daim duab saum toj no ^.

Nco ntsoov tias koj siv Common Annode LED.

Rau mosfets kuv siv RFZ44N.

Tom qab tau ua cov khoom siv hluav taws xob peb xav tau xa cov Cai rau Arduino.

Txoj cai tuaj yeem pom hauv ArduMind nplaub tshev. Tom qab ntawd mus rau 3 Kev Tswj Xyuas Lub Siab> Moodlight> Moodlight Arduino.

Tam sim no yooj yim txuas rau Arduino thiab nyem lub pob Upload.

NCO TSEG: Yog tias koj tab tom siv Arduino nrog CH340G (Ntau tus chineese clones siv cov no) koj yuav tsum rov nruab tus thawj CH340G tus tsav tsheb qub vim tias Mindwave Adapter kuj tseem siv IC no. Tom qab tau rov nruab tus thawj tsav tsheb koj tuaj yeem xa mus rau koj tus arduino dua. Tom qab tau tshaj tawm cov cai rov nruab Mindwave Tsav Tsheb dua yog li nws yuav ua haujlwm rau theem kawg ntawm cov lus qhia no

Kauj Ruam 4: Lub Siab Tswj Kev Ntseeg

Lub Siab Tswj Kev Ntseeg
Lub Siab Tswj Kev Ntseeg
Lub Siab Tswj Kev Nyuaj Siab
Lub Siab Tswj Kev Nyuaj Siab
Lub Siab Tswj Kev Ntseeg
Lub Siab Tswj Kev Ntseeg
Lub Siab Tswj Kev Nyuaj Siab
Lub Siab Tswj Kev Nyuaj Siab

Rau qhov haujlwm Relay peb xub tau ua cov khoom siv hluav taws xob. Koj tuaj yeem pom cov txheej txheem hauv daim duab saum toj no ^.

Kev xa tawm uas kuv siv yog 5V SDR relay zoo li hauv daim duab saum toj no.

Cov xaim dub uas dhau los ntawm Transistor mus rau Relay thiab Red wire uas mus los ntawm kev xa mus rau 5v ob qho tib si yuav tsum tau txuas nrog ntawm kev xa mus rau cov xov txuas. Yog tias koj saib cov duab saum toj no ob lub xov hlau yuav tsum txuas nrog tus pin 1 thiab tus pin 2 ntawm qhov txuas.

Tom qab tau ua cov khoom siv hluav taws xob peb xav tau xa cov Cai rau Arduino. Txoj cai tuaj yeem pom hauv ArduMind nplaub tshev. Tom qab ntawd mus rau 3 Kev Tswj Xyuas Lub Siab> Relay Tswj> RelayControl Arduino

Tam sim no yooj yim txuas rau Arduino thiab nyem lub pob Upload.

NCO TSEG: Yog tias koj tab tom siv Arduino nrog CH340G (Ntau tus chineese clones siv cov no) koj yuav tsum rov nruab tus thawj CH340G tus tsav tsheb qub vim tias Mindwave Adapter kuj tseem siv IC no. Tom qab tau rov nruab tus thawj tsav tsheb koj tuaj yeem xa mus rau koj tus arduino dua. Tom qab tau tshaj tawm cov cai rov nruab Mindwave Tsav Tsheb dua yog li nws yuav ua haujlwm rau theem kawg ntawm cov lus qhia no

Kauj Ruam 5: Lub Siab RGB LedStrip

Lub siab RGB LedStrip
Lub siab RGB LedStrip
Lub siab RGB LedStrip
Lub siab RGB LedStrip
Lub siab RGB LedStrip
Lub siab RGB LedStrip
Lub siab RGB LedStrip
Lub siab RGB LedStrip

Rau qhov project RGB ledstrip peb xub tau ua cov khoom siv hluav taws xob. Koj tuaj yeem pom cov txheej txheem hauv daim duab saum toj no ^.

Qhov schematic no yog hmoov zoo heev. Tsuas yog xyuas kom txuas 5V thiab GND ntawm WS2812B mus rau 5V cais lub zog siv.

Tsis txhob hnov qab txuas GND nrog rau Arduino's GND

Tom qab tau ua cov khoom siv hluav taws xob peb xav tau xa cov Cai rau Arduino. Cov cai tuaj yeem pom nyob hauv ArduMind nplaub tshev. Tom qab ntawd mus rau 3 Kev Tswj Xyuas Lub Siab> LedStrip> LedStrip Arduino.

Tam sim no yooj yim txuas rau Arduino thiab nyem lub pob Upload.

NCO TSEG: Yog tias koj tab tom siv Arduino nrog CH340G (Ntau tus chineese clones siv cov no) koj yuav tsum rov nruab tus thawj CH340G tus tsav tsheb qub vim tias Mindwave Adapter kuj tseem siv IC no. Tom qab tau rov nruab tus thawj tsav tsheb koj tuaj yeem xa mus rau koj tus arduino dua. Tom qab tau tshaj tawm cov cai rov nruab Mindwave Tsav Tsheb dua yog li nws yuav ua haujlwm rau theem kawg ntawm cov lus qhia no

Kauj Ruam 6: Kauj Ruam Kawg

FINAL STEP !!
FINAL STEP !!
FINAL STEP !!
FINAL STEP !!
FINAL STEP !!
FINAL STEP !!

Txog theem kawg peb yuav tsum tau txais Com Port los ntawm Arduino. Qhov no tuaj yeem pom yooj yim heev los ntawm kev siv Arduino IDE.

Mus rau cov cuab yeej thiab tom qab ntawv nres ntawm no koj tuaj yeem pom COM chaw nres nkoj ntawm Arduino. Yog tias koj saib cov duab saum toj no koj tuaj yeem pom Kuv muaj COM20 rau kuv Arduino.

Tam sim no rov qab mus rau qhov muag pom Studio thiab nrhiav kab 55 hauv HelloEEG.cs ntawv.

Hloov qhov chaw nres nkoj COM rau koj qhov chaw nres nkoj Arduino COM.

Yog li rau kuv chaw nres nkoj = tshiab SerialPort ("COM8", 115200, Parity. None, 8, StopBits. One); yuav tsum tau hloov mus rau

chaw nres nkoj = tshiab SerialPort ("COM20", 115200, Parity. None, 8, StopBits. One);

Tam sim no txuas koj lub mloog pob ntseg Mindwave dua. Qhib lub mloog pob ntseg thiab nias lub xub ntsuab loj hauv qhov muag pom lub studio kom pib qhov haujlwm!

Ntawm txhua yam mus raug koj tam sim no koj li Kev Tswj Xyuas Lub Siab Ua tiav !!! Ua haujlwm zoo!

Yog tias koj tau ua qhov project thov qhia rau kuv nrog siv lub pob "Kuv tau ua nws" hauv qab no.

Kuj txheeb xyuas kuv lwm Lub Tsev automation thiab cov phiaj xwm neeg hlau!

Teeb meem tshwm sim

Nov yog qee qhov teeb meem tshwm sim thiab yuav kho lawv li cas:

C# program hais tias "Tsis pom cov cuab yeej!:("

1 Txheeb xyuas qhov chaw nres nkoj COM rau Mindwave lub mloog pob ntseg.

2 Txheeb xyuas yog tias ThinkGearConnector tau khiav hauv keeb kwm yav dhau. Txwv tsis pub rov pib ThinkGearConnector

3 Txheeb xyuas yog tias lub mloog pob ntseg neurosky muaj Blue LED rau.

4 Nco ntsoov tias koj tau teeb tsa Mindwave Tsav Tsheb thiab tsis yog CH340G cov tsav tsheb.

C# sib tsoo thaum txuas mus rau Arduino

Txheeb xyuas Arduino COM chaw nres nkoj.

Moodlight LED tsis qhia cov xim raug

Kos lub schematic dua.

Hloov Mosfets.

Pom zoo: