user8524: I am trying to control a led ON/OFF using Arduino UNO and a Bluetooth shield
I have this



which is based on hc-05. The tutorials I found about hc-05 are not working for me. I have the hc-05 embedded in the shield and I did not  find any tutorials  for this shield. 
Here is my code (it is working when I use the USB serial ctrl + shift + m).
void setup () {
pinMode( 13, OUTPUT );
digitalWrite(13,LOW);

Serial.begin( 9600 );
Serial.println( "Ready" );
}

void loop() {
if ( Serial.available() > 0) {
    int inByte = Serial.read();

    switch ( inByte ) {

        case '0':
            digitalWrite( 13, LOW );
        break;

        case '1':
            digitalWrite( 13, HIGH );
        break;



    }
 }
}

I connected my android phone to the shield successfully using blurterm2. When I send 1 or 0 nothing happens. What am I missing?

user11143: Have you tried the turning just running a simple program to check if the led still works, such as
void setup () {
pinMode( 13, OUTPUT );
}
void loop() {
 digitalWrite( 13, HIGH );
 delay(1000);
 digitalWrite(13,LOW);
 delay(1000);
}


user11154: From your code I cannot see anything that actually initializes the shield and tells it what pins to use and how to use them. This github (https://github.com/jdunmire/HC05) has a library for the HC-05 shield and it appears to have instructions for setting baud rate and all of that good stuff. 
Also, their read-me mentions that, if properly configured, you should see traffic to and from the shield in your serial monitor. Are you seeing any traffic?
NOTE: This tutorial (http://www.instructables.com/id/Arduino-AND-Bluetooth-HC-05-Connecting-easily/?ALLSTEPS) seems to have step by step instructions to do exactly what you are asking.

8524: <p>I am trying to control a led ON/OFF using Arduino UNO and a Bluetooth shield</p>

<p>I have this</p>

<p><img src="https://i.stack.imgur.com/35Gsq.jpg" alt="enter image description here"></p>

<p><img src="https://i.stack.imgur.com/Sgi9C.jpg" alt="enter image description here"></p>

<p><img src="https://i.stack.imgur.com/o7cPz.jpg" alt="enter image description here"></p>

<p>which is based on hc-05. The tutorials I found about hc-05 are not working for me. I have the hc-05 embedded in the shield and I did not  find any tutorials  for this shield. </p>

<p>Here is my code (it is working when I use the USB serial ctrl + shift + m).</p>

<pre><code>void setup () {
pinMode( 13, OUTPUT );
digitalWrite(13,LOW);

Serial.begin( 9600 );
Serial.println( "Ready" );
}

void loop() {
if ( Serial.available() &gt; 0) {
    int inByte = Serial.read();

    switch ( inByte ) {

        case '0':
            digitalWrite( 13, LOW );
        break;

        case '1':
            digitalWrite( 13, HIGH );
        break;



    }
 }
}
</code></pre>

<p>I connected my android phone to the shield successfully using blurterm2. When I send 1 or 0 nothing happens. What am I missing?</p>
 11143: <p>Have you tried the turning just running a simple program to check if the led still works, such as</p>

<pre><code>void setup () {
pinMode( 13, OUTPUT );
}
void loop() {
 digitalWrite( 13, HIGH );
 delay(1000);
 digitalWrite(13,LOW);
 delay(1000);
}
</code></pre>
 11154: <p>From your code I cannot see anything that actually initializes the shield and tells it what pins to use and how to use them. This github (<a href="https://github.com/jdunmire/HC05" rel="nofollow">https://github.com/jdunmire/HC05</a>) has a library for the HC-05 shield and it appears to have instructions for setting baud rate and all of that good stuff. </p>

<p>Also, their read-me mentions that, if properly configured, you should see traffic to and from the shield in your serial monitor. Are you seeing any traffic?</p>

<p>NOTE: This tutorial (<a href="http://www.instructables.com/id/Arduino-AND-Bluetooth-HC-05-Connecting-easily/?ALLSTEPS" rel="nofollow">http://www.instructables.com/id/Arduino-AND-Bluetooth-HC-05-Connecting-easily/?ALLSTEPS</a>) seems to have step by step instructions to do exactly what you are asking.</p>
