Interfacing Uno w/ HC-05 and Mindwave Mobile 2

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());
}

Welcome to the forum

Connections:
VCC - 5V
GND - GND
TXD - Digital Pin 2
RXD - Digital Pin 4
SoftwareSerial BT(4,2); //Rx/Tx

Rx on the HC-05 should go to Tx on the Uno and vice versa. It looks like you have got Tx connected to Tx and Rx connected to Rx

Thank you for the reply!

I believe my team tried that earlier but we will try it again.

Just tried your solution. It is still showing a blank Serial Monitor even at the baud rate of 57600.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.