HC-06 Just stopped working

Hi,

i have e project which collects information from the environment and has to send it to the PC via Bluetooth. I am sure the code and the wiring are 100% correct because it worked perfect. The problem is, that it stopped working - the serial monitor stays empty without me changing anything. Can someone tell me what the problem could be?

Hi, Can you post your code please?

Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code. It will be formatted in a scrolling window that makes it easier to read.

Can you post a copy of your circuit?

Thanks.. Tom.. :)

Here is the code but like i told you it worked perfectly and i didn’t change anything.

#include <SFE_BMP180.h>
#include <Wire.h>
#include <dht.h>
#define dht_apin A3
#define lightPin A1
SFE_BMP180 pressure;
#define ALTITUDE 143.0
int brightness;
dht DHT;
void setup()
{
Serial.begin(38400);
brightness = 0;
Serial.println(“REBOOT”);
if (pressure.begin())
Serial.println(“BMP180 init success”);
else
{
Serial.println(“BMP180 init fail\n\n”);
while(1);
}
}
void loop()
{
char status;
double T,P,p0,a;
status = pressure.startTemperature();
if (status != 0)
{
delay(status);
status = pressure.getTemperature(T);
if (status != 0)
{
status = pressure.startPressure(3);
if (status != 0)
{
delay(status);
status = pressure.getPressure(P,T);
if (status != 0)
{
DHT.read11(dht_apin);
brightness = analogRead(lightPin);
status = pressure.startTemperature();
Serial.print("| Absolute pressure: “);
Serial.print(P,2);
Serial.print(” hPa “);
Serial.print(” ");
p0 = pressure.sealevel(P,ALTITUDE);
Serial.print("Relative(sea-level) pressure: “);
Serial.print(p0,2);
Serial.print(” hPa “);
Serial.print(” “);
Serial.print(“Temperature: “);
Serial.print(DHT.temperature);
Serial.print(” C”);
Serial.print(” ");
Serial.print("Humidity: “);
Serial.print(DHT.humidity);
Serial.print(” % “);
Serial.print(” ");
Serial.print(“Brightness: “);
Serial.print(brightness);
Serial.println(”/1023 |”);
}
}
}
}
delay(5000);
}

Hi, Please re-read post #1 about posting code and a schematic please.

Tom.... :o

iliyaniliev57: Serial.begin(38400);

HC-06 modules work at 9600 baud by default. Did you change the baud rate via AT commands?

iliyaniliev57:
like i told you it worked perfectly and i didn’t change anything.

I bet you did. Perhaps just the connections. Please don’t tell us you have bluetooth on a $1 breadboard.

Hi, Do you still have a Bluetooth to Bluetooth connection?

Tom.. :)