Hi!
I am currently working on a project in which we have an Arduino Uno connected to an HC-05 module to receive data from a Neurosky Mindwave Mobile 2 EEG Headset. We have successfully paired the HC-05 to the headset. However, the Arduino IDE serial monitor is blank. Does anyone know how to help?
Connections:
VCC - 5V
GND - GND
TXD - Digital Pin 2
RXD - Digital Pin 4
Code:
/*
*Configuration through AT Commands for HC-05
*Pairing Headset Neurosky Mindwave Mobile with Arduino
*Commands:
* AT+UART=57600,0,0
* AT+ROLE=1
* AT+PSWD="0000"
* AT+CMODE=0
* AT+BIND=<Address> ( 1234,56,ABCDEF ) 2068,9D,79D995
* AT+IAC=9E8B33
* AT+CLASS=0
* AT+INQM=1,9,48
*
* Lozano Ramirez Angel Ivan
* 02.07.2018
* NOTE: Set the Serial monitor with NL&CR and 9600 baud
*/
#include <SoftwareSerial.h>
SoftwareSerial BT(4,2); //Rx/Tx
void setup(){
BT.begin(38400);
Serial.begin(9600);
}
void loop(){
if( BT.available() ) Serial.write( BT.read() );
if( Serial.available() ) BT.write(Serial.read());
}