Professional Documents
Culture Documents
Paper 2021
Paper 2021
Paper 2021
A)
B)
Fig. 1. Sichiray TGAM brainwave EEG sensor kit (A) and Arduino
Uno board with HC-05 Bluetooth module (B)
Fig. 2. Arduino sketch and serial monitor with baud rate 9600 bits/sec
and line ending tab “Both NL & CR”
To communicate the Sichiray TGAM brainwave EEG sensor kit, the
following AT commands are entered for the HC-05 module:
1. Change the mode to slave to set up the password of the Sichiray
Bluetooth module:
AT+ROLE=0
2. Change the password (0000 is the password of the Sichiray
Bluetooth module):
AT+PSWD=0000
3. Change the mode to master:
AT+ROLE=1
4. Change the baud rate to 9600 bits/sec with no parity bits and one
stop bit:
AT+UART=9600,0,0
5. Change connection mode to 0, where the HC-05 module only pairs
with the Sichiray Bluetooth module with a specific Bluetooth address
provided in the BIND AT command:
AT+CMODE=0
6. Specify a Bluetooth address of the Sichiray Bluetooth slave module
(00:BA:61:00:09:89 in our case):
AT+BIND=00ba,61,000989
Figure 2 shows the Arduino sketch that starts AT commands for the
HC-05 module. In the serial monitor, the basic settings of the HC-05
module are shown.
To pair HC-05 and Sichiray Bluetooth modules, the power supply is
turned on – HC-05 LED must blink twice about every 5 sec, Sichiray
Bluetooth module LED must be “ON” all the time.
PARSE THE DATA FROM THE SICHIRAY TGAM BRAINWAVE
EEG SENSOR KIT IN THE ARDUINO SKETCH
To receive data from the Sichiray TGAM brainwave EEG sensor kit,
HC-05 TXD and RXD pins are wired with Arduino Uno RX and TX pins,
respectively. These pins must be disconnected during the Arduino sketch
uploading into the Arduino Uno board.
Arduino Brain Library is the most known way to parse data from
Neurosky-based EEG headsets [4] nowadays. The standard test is the
Arduino sketch BrainSerialTest.ino. Unfortunately, the serial monitor
shows only errors in the data received by the HC-05 module (see
Figure 3). The solution was found using analysis of the Bluetooth packets
sent by the Sichiray Bluetooth module.
Fig. 4. Sketch output after two Bluetooth devices are paired: Analysis
of Bluetooth packets